Results 1 to 15 of 188

Thread: [HowTo] Get a HeadStart on a WL-500gP

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Lightbulb [HowTo] Get a HeadStart on a WL-500gP

    Hi, I've released a new version of this system image: HeadStart II
    this one runs under oleg's latest firmware:v1.9.2.7-10
    read on here: http://www.wl500g.info/showthread.ph...117#post112117 how to install it.


    As of now, the old images of the system are not available anymore.


    Since I've became an owner of this device (june/july 2007) I've always been browsing this board on how to get the most out of this machine. Now it's my time to do something back for the board, specifically new users, to give them a headstart.

    That's why I created something like a 'system-image' of a setup with 'basic-needs' running on a asus wl500gp with oleg's (1.9.2.7-8, 1.9.2.7-7g should also work) firmware installed.



    In short: How to get it running?
    1) meet the prerequisites before actually continueing this setup
    2) download the opt.tar.gz package which is needed to setup/replace the '/opt' part on your asus
    3) download the mnt.tar.gz package which is needed to setup/replace the '/mnt' part on your asus
    4) configure to your needs (like other passwords, download/web folders)
    5) read about what you you have installed and how to use it.
    6) enjoy !

    What is in the package?

    central network attached storage device where files are hosted which are used by a wide variety of devices in my home.
    automatic newsgroup and bittorrent downloader
    website to host a website and share (secure) files stored on as if on home network

    Software/tools

    • samba2 with swat (to work with windows filesharing, vista included.)
    • lighttpd webserver with php and mysql support running a version of simpleCMS (with a password protected directory, and choice of running http or https protocol)
    • hellanzb with zussaweb webinterface (to download,verify,unpack binaries from newsservers)
    • Transmission (BitTorrent Downloader)
    • mysql database with myphpadmin (included in AIOCP)
    • Wake On lan application (password protected) with which you can remotely turn-on your pc's at home (if pc-hardware supports)
    • tuned system to get a good and acceptible response on any service regardless of heavy load. (with the use of nice)
    • cron
    • etc. etc. for a complete list of installed packages see the attached file.


    Prerequisites:
    oleg's firmware installed. (at the moment I have running: WL500gp-1.9.2.7-8 version and can confirm it also runs on WL500gp-1.9.2.7-7g))
    a hard drive (with 3 partitions: /opt (system), /mnt (data), and a swap, the tutorial uses these mounting points. if you want to leave your own mounting points intact in the post-boot file, you have to change the configuration files for the various services which are included in this setup and the extraction of the mnt.tar.gz package might fail.)
    post-boot file in which mounting of partitions is done. (mine is attached, use it for reference, but tune to your own needs).


    Need to knows:
    I have never changed my ip of the asus (192.168.1.1) so this setup assumes that address.
    I am running in Access Point only mode, I have no experience with the other settings so I can't answer questions about that. (configure this in the basic asus setup http://192.168.1.1)
    The name of my device is: NAS (Not that I know of it has be configured in this setup, but should you run into something, which I doubt, then this of NAS as the name of the device in the system setup of the basic asus setup http://192.168.1.1)


    Backup your current system:
    If you have nothing setup op on your asus already or do no wish to keep what's installed, skip this step and continue to the next step System/Harddisk preparation without a backup of your current /opt

    2 different ways to try this asus headstart

    • just use an old harddisk, even an old 10gb will do to test this image
      (You will have to backup your post-boot file though !!!)
    • backup your current /opt according to the following steps.
      edit post-boot file to NOT start services on startup (a lot of services don't like being archived when they are running.)
      use your favorite text editor (nano/vi) and edit the following file according to the steps below.
      Code:
      /usr/local/sbin/post-boot
      do as below and comment-out the line to start the services in the post-boot file
      Code:
      # Run all active services - active means starts with S
      #/opt/etc/init.d/rc.unslung
      write file and flash/reboot
      Code:
      flashfs save && flashfs commit && flashfs enable && reboot
      login to console again and create a backup of /opt to /mnt/opt.tar.gz with the following command:
      Code:
      tar -cvzf /mnt/opt.tar.gz /opt
      (or other location if you have your datafile not mounted to /mnt)
      (this process takes quite some time if you have a lot installed. if you have also data (audio/video, I would not recomend it. 370mb of /opt takes 70+ minutes.))

      now, enable the services in the post-boot file like you disabled them above by uncommenting the line you commented before.
      enable the services on bootup in:
      Code:
      /usr/local/sbin/post-boot
      do as below and uncomment the line to start the services in the post-boot file
      Code:
      # Run all active services - active means starts with S
      /opt/etc/init.d/rc.unslung
      write file and flash/reboot
      Code:
      flashfs save && flashfs commit && flashfs enable && reboot
      now you have access to your share again save this opt.tar.gz on /mnt file to another computer/network share. not on the asus.
      THIS IS YOUR BACKUP OF YOUR CURRENT SYSTEM !!!


    System/Harddisk preparation:
    next step is only to be taken for new users or if you don't have created the 3 partitions already. If you already have the 3 partitions continue to the next step.

    For this step I must redirect you to the first steps ( 1,2,3,4a,4b) of the excellent tutorial written by wengi on how to setup and install oleg's firmware: http://www.wl500g.info/showthread.php?t=10307
    (i can copy all those steps here, but I couldn't have done a better job on it than wengi, thanks wengi/oleg, you guys figure it all out, 'i just put stuff toghether')

    Now that you've completed the first steps of wengi's setup, we're going to make a small change in post-boot file you've created in his setup: The data directory in wengi's setup mounts to /tmp/harddisk. this has to be changed to /mnt.

    open the post boot script at
    Code:
    /usr/local/sbin/post-boot
    and change the line: (where part3 is your data partition, if it's not, change it)
    Code:
    mount /dev/discs/disc0/part3 /tmp/harddisk

    to (where part3 is your data partition, if it's not, change it)
    Code:
    mount /dev/discs/disc0/part3 /mnt

    write file and flash/reboot
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    I decided to mount to /mnt because it was easier for the system image and /tmp sound to 'temporary' to me that's why /mnt (mounted).

    Now that you've learned how to access the router and issue the commands, it's time to move on to the next step.



    System/Harddisk preparation (continued):
    edit post-boot file to NOT start services on startup (a lot of services don't like being archived when they are running.)
    use your favorite text editor (nano/vi) and edit the following file according to the steps below in:
    Code:
    /usr/local/sbin/post-boot
    do as below and comment-out the line to start the services in the post-boot file
    Code:
    # Run all active services - active means starts with S
    #/opt/etc/init.d/rc.unslung
    write file and flash/reboot
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    Now, skip below and continue to "Install the HeadStart 'system-image'" If you are continueing after just making a backup of your current system you have to take the next step.
    because we're installing a new system, it wouldn't hurt to 'flush' the old one, so nothing gets mixed up. (that's why we've created the backup in the step before.)
    unmount all current mounted partitions with umount
    Code:
    umount /opt
    (to view how partitions are mounted, use the df command.)

    open fdisk
    Code:
    fdisk /dev/discs/disc0/disc
    delete your current /opt partition.
    recreate the partition again with the same parameters.
    (exit with w)

    create the filesystem for /opt
    Code:
    mke2fs -j /dev/discs/disc0/part1
    (where /dev/discs/disc0/part1 is your /opt partition, if you have your /opt partition on another partion, change the command to the partition you are using!)
    reboot


    Install the HeadStart 'system-image':

    The parts below are no longer valid ! read on in this reply on this topic

    http://www.wl500g.info/showthread.ph...117#post112117


    log on to your router and download system file to /mnt (77,5MB)
    extract the file to /opt
    Code:
    cd /
    tar -xvzf /mnt/opt.tar.gz
    - sit back and wait (get a beer, takes 4 minutes or so)



    Install the webapplications and directory structure:
    download dir structure and web file to /opt (10,5MB)
    extract the file to /mnt
    Code:
    cd /
    tar -xvzf /opt/mnt.tar.gz
    - sit back and wait (get another beer :-), takes 3 minutes or so)

    enable the services on bootup in:
    Code:
    /usr/local/sbin/post-boot
    do as below and uncomment the line to start the services in the post-boot file
    Code:
    # Run all active services - active means starts with S
    /opt/etc/init.d/rc.unslung
    write file and flash/reboot
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot

    Read on in the next reply how to configure things.
    Attached Files Attached Files
    Last edited by raas; 10-10-2008 at 12:33. Reason: new version, old version unsupported.

Similar Threads

  1. Alle Howto's, all howto's
    By newbiefan in forum German Discussion - Deutsch (DE)
    Replies: 17
    Last Post: 29-03-2013, 13:57
  2. [Howto] Install hddtemp
    By Denmike in forum WL-500gP Tutorials
    Replies: 11
    Last Post: 26-02-2012, 06:46
  3. Compiling [need HowTo]
    By FilimoniC in forum WL-500g Q&A
    Replies: 20
    Last Post: 16-05-2011, 21:40
  4. HowTo: Use Palm as 500gP LCD
    By Tamadite in forum WL-500gP Tutorials
    Replies: 1
    Last Post: 08-02-2009, 21:18
  5. [HOWTO] WL-HDD + Dbox2
    By akbor in forum German Discussion - Deutsch (DE)
    Replies: 14
    Last Post: 07-02-2008, 20:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •