Page 2 - Guide History
2 of 35 Guide History Version Date Comments 0.1 7 January 2006 Initial version 1.0 8 January 2006 Integrated ChunkyWizard's guide. Incorporated comments and corrected errors based on feedback from forums 1.1 9 January 2006 Incorporated Jackofall's guide. Added esmtp for sending emails. Incorporated ...
Page 3 - Document conventions; Entering commands; Editing files; Files used in this document
3 of 35 Document conventions Entering commands You will be typing commands for the Asus in a telnet session, using MS Windows telnet, PuTTY or the telnet client of your choice (see Accessing your Asus using Telnet on p7 for more on this). Commands that you type are shown as follows: mkdir /opt/etc/s...
Page 4 - Contents
4 of 35 Contents Why get an Asus WL-500g? .................................................................. 5 What is involved? ................................................................................. 5 The PC, Windows and your home network ........................................... 5 The...
Page 5 - How long does it take?; The PC, Windows and your home network
5 of 35 Why get an Asus WL-500g? The Toppy doesn't have an Ethernet port or any wireless capability, out-of-the-box the only way to connect it to a PC is through its USB port. If you wish to add your Toppy to your wireless network, you will need a wireless device that supports attached USB storage, ...
Page 6 - Asus firmware version
So what do you get for your money? See below. As you can see, the Asus is about A5 size. It comes with a Quick Start guide (which you will not need), a CD (containing a manual and some tools which hopefully you will not need), and an Ethernet cable and power supply which you will need. If you got yo...
Page 7 - Accessing your Asus; Accessing your Asus through a web browser; Accessing your Asus using Telnet
7 of 35 Jackofall's original " Connecting an Asus WL500g deluxe to your network " guide. Great care must be taken in selecting the correct firmware version for your model. Accessing your Asus Your initial access to the Asus will be through a wired Ethernet connection, until you have the wire...
Page 8 - PuTTY; Text editors: vi and nano; Upgrading the firmware; Downloading the firmware; Installing the firmware using the web interface
8 of 35 PuTTY PuTTY is an excellent Windows telnet client. You can get it from http://www.chiark.greenend.org.uk/~sgtatham/putty/ Hints and tips: a) Connect by entering the Asus IP address (default 192.168.1.1) in the Host Name box. Select the telnet protocol. Enter your user name and password (defa...
Page 9 - Installing the firmware using Recovery Mode
System Setup -> Firmware Upgrade Click on browse and find the previously downloaded .trx file, click open then upload. The Asus will then show a progress bar and reboot when upgrade is complete. Installing the firmware using Recovery Mode It is recommended that you do this with a wired Ethernet c...
Page 10 - Basic configuration using the web interface; Operation mode
Basic configuration using the web interface The web interface is used to perform the basic LAN and wireless setup This covers configuring the Asus in Hybrid mode, so it should be able to connect to your main wireless router using WDS, and also allow wireless connections to itself. We also cover usin...
Page 12 - Wireless setup
Wireless setup If you changed the IP address in the previous section, you now need to point your browser to the new IP address. Enter your login details as before, and navigate to Wireless -> Interface Here you will need to enter the following information SSID: The same as your existing AP Channe...
Page 17 - Macsat: Installing basic software; Macsat: Configuring the router to mount on boot
17 of 35 Macsat: Installing basic software Install ipkg as per macsat's "Installing Basic Software". However at this point the Asus won't have the IP address of a DNS server, so won't be able to resolve the URL for the ipkg software. To resolve this echo nameserver 10.1.2.3 > /etc/resolv....
Page 19 - DNS setup; Setting the DNS server IP address on boot-up
19 of 35 copy/paste straight from this guide. Also note the backwards-apostrophe character used in some of the "echo" statements. This is probably on the top left key on your keyboard. After you have rebooted as per the macsat guide, you can check for any problems with cat /tmp/var/log/post-...
Page 20 - Using the built-in FTP server and Samba server; Using the built-in FTP server; Using the built-in Samba server
20 of 35 Using the built-in FTP server and Samba server Oleg's firmware contains both an FTP server (stupid-ftpd) and Samba, which can be used to access files on the USB key only (they can't be used to access the Toppy, nor can they be used to access files on the Asus itself – for this you should re...
Page 21 - FTP access to files on the Toppy using ftpd-topfield; Installation; Configuration
21 of 35 7) Use the Apply button to apply your changes, then click on the Finish button, and when the next page appears click on the button to restart the Asus. Remember: the Samba server will only start if you boot up the Asus without the USB key present, and then insert it. The shared folder on th...
Page 22 - Turbo Mode
22 of 35 This will return something like this: Usage: /opt/sbin/ftpd-topfield [OPTION] ... Internet File Transfer Protocol server. -A, --anonymous-only Server configure for anonymous service only -b, --turbo Default to turbo mode on for transfers -D, --daemon Start the ftpd standalone -d, --debug De...
Page 23 - Filezilla; Novell NetDrive
23 of 35 Filezilla Filezilla ( http://filezilla.sourceforge.net/ ) is an open-source ftp client that is easy to use with the Asus. You just need to put the IP address for the ASUS in (ie 192.168.1.151), leave the port as the default and logontype as Anonymous. If you click connect you should get the...
Page 24 - Windows file sharing access to the Asus using Samba; Set up the Samba configuration file
24 of 35 Windows file sharing access to the Asus using Samba With ftpd-topfield installed, you now have ftp access to files on the Toppy, but no mechanism for transferring files to and from the Asus – this is necessary if you want to install rt2mei. Samba can be used for this – it basically shares d...
Page 25 - Command-line access to the Toppy using Puppy; Set up cron for scheduling tasks
25 of 35 Set up the Samba start-on-boot script Create a Samba startup script in /opt/etc/init.d, so that Samba will be started automatically when you reboot the Asus: /opt/etc/init.d/S97Samba #!/bin/sh # get rid of any already-running instances killall smbd killall nmbd # start samba /usr/sbin/smbd ...
Page 26 - Set up automatic switching between GMT and BST; Adding cron jobs
26 of 35 So, create the directory with mkdir -p /opt/var/cron/crontabs And then create the startup script as: /opt/etc/init.d/S10cron #!/bin/sh # # Startup script for cron # # use built-in cron, which expects # to use /var/spool/cron/crontabs for # crontabs, but symlink /var/spool/cron # to /opt/var...
Page 27 - Automated download of Radio Times EPG using rt2mei; Install prerequisites and configure
27 of 35 If you would prefer to use nano, type export VISUAL=nano crontab -e You need to type the export command every time – if you want to make nano default editor (so you don't have to type the export command) then see Setting up a .profile file to store the default crontab editor on page 33. Add...
Page 28 - Install and test the automation
28 of 35 Install and test the automation Copy the automation shell script to /opt/usr/local/rt2mei/ -- this is in the package you downloaded, and is named rt2mei. Make the script executable chmod +x /opt/usr/local/rt2mei/rt2mei Test the script, first creating the /tmp directory for the output: mkdir...
Page 29 - Secure access using ssh: external access to your Asus; dropbear configuration
29 of 35 Remember to reissue the echo command above with the correct time in it once you've finished testing. You might also want to add a Toppy wake-up timer, set for 10 minutes or so prior to the crontab time of 7:05am, with a duration of an hour or so, to ensure the Toppy is on when the rt2mei up...
Page 31 - Using ssh tunnelling to connect to your Asus: Cygwin/OpenSSH; Sending emails from your Asus
31 of 35 b) Select SSH for the protocol c) Click on "Tunnels" under Connection -> SSH d) Under Source Port, put 1234 e) Under Destination, put the IP address of your Asus, and the port to forward, eg 192.168.1.1:80 (use the IP address of the Asus on your local network for 192.168.1.1) f) ...
Page 33 - Other hints and tips; Shutting down and rebooting your Asus; Disabling services from starting on boot
33 of 35 Other hints and tips Shutting down and rebooting your Asus You can shut down your Asus using telnet interface by typing halt You can also shut it down from the box itself by pressing and holding in the Restore button until the power light goes off. In both cases it should only take a few se...
Page 34 - FAQ; The rt2mei scheduled download doesn't seem to be working; What is stored on the USB key, and what is stored on the Asus?
34 of 35 FAQ Here we hope to include answers to the most commonly asked questions on the forums. The rt2mei scheduled download doesn't seem to be working First of all, check the log file that the scheduled cron job produces. This is /tmp/var/log/rt2mei. Make sure you haven't rebooted your Asus in th...