PDA

View Full Version : [How To] Install and Configure Olegs firmware


Pages : [1] 2

wengi
15-08-2007, 10:42
Hier findest Du das originale deutsche HowTo: http://wl500g.info/showthread.php?t=8424

After some people asked me to, this is a translation of my original, german Howto.
00. News
This howto is for version 1.9.2.7-9 and newer. Older versions are not supported any more. Due to the fact, that -9 will be the last version supporting my WL-HDD, this howto will more or less remain in this stage. I will try to keep it up to date but will not be able to test it.

Important: I exclude any liability.

This HowTo is for newbies! please contact me if you find any mistakes.

0. Premises
I am working with an Asus WL-HDD. But this HowTo is known to work with other hardware where you can install olegs firmware.
If you are still searching for hardware and want Asus my recommendation is a WL500g Premium with USB drive.
The WL-HDD has a weak CPU and small memory, but it does the job :-)

You also need:
- basic linux knowledge (cd, vi, ps, df, free, top, ...)
- time. I needed about 5 hours for modifying my WL-HDD incl. dinner. So you need time.
- an internet connection for downloading the software.

1. Install firmware

The easiest way is the Asus Firmware Restoration Tool. Download the tool according to your hardware.

ASUS WL-HDD2.5 wireless hard disk drive box utility program in English (http://dlsvr02.asus.com/pub/ASUS/wireless/WL-HDD/Eng_Cht_1362.zip)
It will also work with the Asus Webinterface but be sure to have the restoration tool by hand.
Download olegs firmware: Firmware Wizzard (not allways newest) (http://website.wl500g.info/beta/wizard.php) or directly at http://oleg.wl500g.info
Always use the newest version for your hardware model.

This HowTo wil only work with versions 1.9.2.7-9 and newer!

Reset your Asus to factory defaults. (user:admin / pw:admin)
Extract the zip.
Install the Asus tool, start it and select "firmware restoration".
Select the firmware (hardware_version.trx) and click upload.
After the reboot browse to the Webinterface of the router and again reset to factory defaults.
Again a reboot and your router has a default oleg firmware.

remark:
My WL-HDD does NOT act as Router in my network. It is only a client. Because of this i will not handle firewall settings within this howto.

Do the following in the Webinterface:
- enter the Name of the router (mine is "blechbuechse").
- enter you IP settings (IP, gateway, DNS aso.)
- disable FTP, Samba, NFS
- enable telnet
- Change the password
- do any changes as you need them. (DHCP, time zone, WLAN, aso.)
- If used as router: login data, firewall, allow ping from WAN.

If this did NOT work until here you will NOT be able to go on!

2. Telnet

Start telnet. For Windows: Start-Execute - "telnet IPOFASUS"

user:admin / pw:admin

Test your internet connection:
ping google.de

Should look like this:
[admin@blechbuechse root]$ ping google.de
PING google.de (66.249.93.104): 56 data bytes
64 bytes from 66.249.93.104: icmp_seq=0 ttl=243 time=35.5 ms
64 bytes from 66.249.93.104: icmp_seq=1 ttl=243 time=36.5 ms
64 bytes from 66.249.93.104: icmp_seq=2 ttl=243 time=35.0 ms

--- google.de ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 35.0/35.6/36.5 ms
[admin@blechbuechse root]$
The ping can be interrupted with ctrl-c.

If this is NOT working: Do not ping a name, ping an IP adress.
If you are not able to ping an ip adress: check your network (IP, DNS) settings and cabeling.

telnet is not a secure way to work on your asus. Espacially over internet. This is why you install SSH now:

3. SSH-deamon
TIP: You can copy & paste all commands within telnet and putty. For Windows use ctrl-c and ctrl-v, for putty mark the text and right click.

The name of the ssh daemon is dropbear.
create a directory:
mkdir -p /usr/local/etc/dropbear

generate keys:
dropbearkey -t dss -f /usr/local/etc/dropbear/dropbear_dss_host_key
dropbearkey -t rsa -f /usr/local/etc/dropbear/dropbear_rsa_host_key

create startup scripts:
mkdir -p /usr/local/sbin/
touch /usr/local/sbin/post-boot
touch /usr/local/sbin/post-firewall
touch /usr/local/sbin/post-mount
touch /usr/local/sbin/pre-mount
touch /usr/local/sbin/pre-shutdown
chmod +x /usr/local/sbin/*

To make dropbear start at reboot:
echo "#!/bin/sh" >> /usr/local/sbin/post-boot
echo "dropbear" >> /usr/local/sbin/post-boot

Start dropbear:
dropbear
Here is a listing of the active processes. dropbear should be one of them:
[admin@blechbuechse sbin]$ ps
PID Uid VmSize Stat Command
1 admin 580 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
46 admin 332 S telnetd
51 admin 380 S httpd
54 admin 408 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
56 admin 364 S klogd
57 admin SW [khubd]
72 1 364 S [portmap]
74 admin 504 S /usr/sbin/statd
76 admin SW [nfsd]
77 admin SW [lockd]
78 admin SW [rpciod]
80 admin 484 S /usr/sbin/mountd
83 admin 484 S watchdog
85 admin 344 S ntp
94 admin SW [kjournald]
95 admin SW [kjournald]
99 admin 580 S -sh
128 admin 468 S dropbear
129 admin 392 R ps

save all the stuff and reboot:
flashfs save && flashfs commit && flashfs enable && reboot
That's it for this part.

wengi
15-08-2007, 10:42
4a. partition and format HDD
Important for USB Disks: Power on First HDD , second router.

IMPORTANT: You will loose all the data on your HDD. Make a backup if necessary.

From now on you will work with putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/).

Start putty, enter the IP adress of your box and select SSH.
Confirm the Key.

My HDD (80GB) is partitioned as follows:
data (part1), IPKG (part2) und swap (part3)
all primary, no extended
Swap 512MB (You can also use 128MB if you want to save some space)
IPKG 1GB
Data the rest (~78GB)

View mountpoints

[admin@blechbuechse root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part1 75398848 683812 70884940 1% /tmp/mnt/disc0_1
[admin@blechbuechse root]$
If there is nothing except / go directly to fdisk.

If you allready partitioned your HDD as you want (incl. swap) go to the next chapter. BUT: i recommend using fdisk because several users reported problems in mounting partitions created with third party software.

You should unmount all mounts except /.
umount /place/of/mountpoint
/place/of/mountpoint needs to be replaced with the entries from df. E.g. "umount /tmp/mnt/disc0_1".
If there is an error message during umount there is activity on the mount. Did you disable FTP / Samba, ...?

After unmounting all it should look like this:
[admin@blechbuechse root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
Partition with fdisk:
fdisk /dev/discs/disc0/disc

fdisk:
m for help.
p for view partitions.
d for delete.
n for new.

Delete all existing partitions, if any. All data will be lost!!! create new partitons after deleting the old ones:

partitions:
part1 Swap 512MB type82
part2 IPKG 1024MB /opt
part3 data rest /tmp/harddisk (This is a point where WL-HDD differs to others..!?!)

Create swap: n -> p -> 1 -> 'return' -> +512M -> t -> 82
Create IPKG: n -> p -> 2 -> 'return' -> +1024M
Create data: n -> p -> 3 -> 'return' -> 'return'

Save settings by pressing w and exit.
"fdisk -l" will show your partitions: [admin@blechbuechse root]$ fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 1 993 500440+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part2 994 2978 1000440 83 Linux
/dev/ide/host0/bus0/target0/lun0/part3 2979 155061 76649832 83 Linux
Now you activate the swap:
This is a 'free' without swap:
[admin@blechbuechse root]$ free
total used free shared buffers
Mem: 13932 11304 2628 0 1388
Swap: 0 0 0
Total: 13932 11304 2628
[admin@blechbuechse root]$

activate swap:
mkswap /dev/discs/disc0/part1
swapon /dev/discs/disc0/part1

'free' should look like this after activating:
[admin@blechbuechse root]$ free
total used free shared buffers
Mem: 13932 10236 3696 0 1320
Swap: 500432 0 500432
Total: 514364 10236 504128
[admin@blechbuechse root]$

Now you have enough free memory to format the rest of the HDD:
mke2fs -j /dev/discs/disc0/part2
mke2fs -j /dev/discs/disc0/part3
part3 will take some time, depending on HDD size.
A remark for the newbies: The partitions are ext3 formated. This is what you want!. You do NOT need Fat or NTFS to access your data.

You need to edit the file fstab to automaticaly mount the partitions
a short vi Explanation: vi is an editor.
You enter the insert mode with i, you leave it with ESC.
You can insert the content of the clipboard by right clicking within insert mode.
After leaving the insert mode you quit and save by typing ':wq'. Leaving without saving is ':q!'.
This is all. Search for a vi howto for more.
Edit the file /etc/fstab by typing:
vi /etc/fstab
and paste this:
#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1
Partitions are mounted and swap is activated.
Important: The data partition is mounted to /tmp/hardisk as in fstab. This is handled different in the firmware because of compatibility issues: The Partition is mounted to /tmp/mnt/disc0_3 and a symlink is pointing from /tmp/hardisk to /tmp/mnt/disc0_3
To save fstab for reboot:
echo "/etc/fstab" >> /usr/local/.files

4b. Startup-scripts
There is a script to keep the file system clean:
vi /usr/local/sbin/pre-mount
with this content:
#! /bin/sh

swapon -a

for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
if [ -b $i ] ; then
grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
else
logger -t fstab "$i is not attached"
fi
done
pre-mount will start e2fsck if needed. My WL-HDD with its 80GB HDD takes some hours to do this check! It is possible that your router is switched on and the HDD becomes available hours later. You can leave pre-mount empty to prevent this, but your file system will have to be checked from time to time. Your decision. I have this activated.
post-mount is executed after pre-mount
vi /usr/local/sbin/post-mount
content:
#! /bin/sh

/opt/etc/init.d/rc.unslung start
And this file is executed before shutting down:
vi /usr/local/sbin/pre-shutdown
And again content:
#! /bin/sh

/opt/etc/init.d/rc.unslung stop

sleep 10s

for i in `cat /proc/mounts | awk '/ext3/{print($1)}'` ; do
mount -oremount,ro $i
done

swapoff -a

sleep 1s
This script is remounting all partitions as read only to prevent loss of data at power off.

The HDD has to be mounted before editing the next file. But the best is to save and reboot:
flashfs save && flashfs commit && flashfs enable && reboot

check swap and mount of HDD with 'free' and 'df -h'. Everything ok? Next step.

Software and services installed via IPKG write scripts to /opt/etc/init.d.
You need a mechanism to start these scripts. This mechanism (a script) is triggert by post-boot.
mkdir /opt/etc
mkdir /opt/etc/init.d
vi /opt/etc/init.d/rc.unslung
Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only file system" your HDD (here the IPKG pertition) is NOT mounted.

Content:
#! /bin/sh

# Start/stop all init scripts in /opt/etc/init.d
# starting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi

daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r`

for i in $daemons; do

# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue

# Write to syslog
logger -t rc.unslung "$1 service $i"

case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set $1
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i $1
;;
esac
done

Make it executable:
chmod +x /opt/etc/init.d/rc.unslung

And this part is done :D

wengi
15-08-2007, 10:43
5. IPKG

IPKG is a package management system. You can install additional software with it.
IPKG works on your HDD in /opt. Thats why you created and mounted the IPKG partition in /usr/local/sbin/post-boot.
By the way: The log files are written to /opt/var/log.

The steps to install the package management system are:
create a directory.
mkdir -p /opt/tmp/ipkg
cd /opt/tmp/ipkg

Download and install the packages (ignore all errors):
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
ipkg.sh install ipkg-opt_0.99.163-10_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-13_mipsel.ipk
ipkg update

Use the following command to see which packages are installed:
ipkg list_installed

It looks like this:
[admin@blechbuechse ipkg]$ ipkg list_installed
ipkg-opt - 0.99.163-9 - The Itsy Package Manager
uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
Successfully terminated.

You can keep your installation up to date in future.
Execute regularly:
ipkg update
ipkg upgrade

6. Midnight Commander (optional)

Install MC
ipkg install mc
Some settings are necessary for MC to run properly.
echo "export TERMINFO=/opt/share/terminfo">>/opt/etc/profile
echo "alias mc=\"mc -c\"">>/opt/etc/profile
make profile executable:
chmod +x /opt/etc/profile

7. Tools (optional)

These tools are very helpful. I recommend installing them even if they are not necessary. 1GB on the HDD is enough space, so:
ipkg install coreutils
ipkg install findutils
ipkg install diffutils
ipkg install screen
ipkg install nano
ipkg install procps
ipkg install less
ipkg install unzip
ipkg install hdparm
ipkg install man
ipkg install man-pages

8. CRON

Cron is a task scheduler. You need cron for the torrent client.
ipkg install cron

Edit the cron startup script:
vi /opt/etc/init.d/S10cron
And replace the content with:
#!/bin/sh
#
# Startup script for cron

PIDFILE=/opt/var/run/cron.pid

case $1 in
start)
/opt/sbin/cron
;;
stop)
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}` ;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac

Save and reboot:
flashfs save && flashfs commit && flashfs enable && reboot

Cron must be in the process list (ps) after a reboot.
Remark: If you installed procps you should execute:
ps axf
If cron is NOT listed as running process: Check the content of rc.unslung and post-boot.

Finished with cron ;)

wengi
15-08-2007, 10:43
9. TRANSMISSION (The torrent Client)
IMPORTANT: This chapter is outdated and will be rewritten in near future.
In the meantime please read http://www.nslu2-linux.org/wiki/Optware/Transmission.
wengi, 19.11.2008


You have some routine 'til here. So we start directly:
ipkg install logrotate
ipkg install gnuplot #(there are many dependencies. This will take some time)
ipkg install transmission

transmission recommends mini-sendmail and thttpd. Nothing of this will be installed here. busybox httpd is working fine and if you want to use any other try lighttpd.
Create working directories:
mkdir /tmp/harddisk/torrent
mkdir /tmp/harddisk/torrent/source
mkdir /tmp/harddisk/torrent/work
mkdir /tmp/harddisk/torrent/target
chmod -R ugoa+w /tmp/harddisk/torrent

transmission is controlled with a conf file.
vi /opt/etc/transmission.conf

If your Asus is not directly connected to the internet and your router supports upnp:
#Uncomment the following for UPNP NAT traversal
NAT_TRAVERSAL=--nat-traversal
Depending on your hardware you have to restrict the amount of active torrents. This is for my WL-HDD:
# If the following limit is reached watchdog will not enqueue new one
MAX_ACTIVE_TORRENTS=5
syslog has to be changed:
SYSLOG=/opt/var/log/syslog.log
Check
vi /opt/etc/crontab
if the following was inserted. If not: Insert it.
*/30 * * * * admin nice transmission_watchdog

9b. Change Syslog settings
Add the following to crontab:
0 0 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null

Edit logrotate:
vi /opt/etc/logrotate.conf

Substitute the complete content with this:
compress

/opt/var/log/syslog.log {
size 1024k
weekly
rotate 9
postrotate
killall -HUP syslogd
endscript
}

include /opt/etc/logrotate.d

Syslog needs to be started:
vi /opt/etc/init.d/S05syslogd

Content:
#!/bin/sh
#
# Startup script for syslog
#
PATH=/opt/bin:/opt/sbin:/opt/local/bin:/sbin:/bin:/usr/bin:/usr/sbin

LOGFILE=syslog.log
KERNLOGFILE=kern.log
LOG_OLD=/tmp
LOG_NEW=/opt/var/log

prefix=""
sbindir=${prefix}/sbin

NAME=syslogd
DAEMON=${sbindir}/${NAME}
DESC="syslogd"
OPTIONS="-m 0 -O $LOG_NEW/$LOGFILE -S -l 7 -s 0"

case "$1" in
start0)
printf "Starting ${DESC}: "
# Copy old syslog and create symlink to new
if [ ! -L /tmp/syslog.log ]; then
cat $LOG_OLD/$LOGFILE >> $LOG_NEW/$LOGFILE
mv $LOG_OLD/$LOGFILE $LOG_NEW/$KERNLOGFILE
ln -s $LOG_NEW/$LOGFILE $LOG_OLD/$LOGFILE
fi
${DAEMON} ${OPTIONS}
printf "${NAME}.\n"
logger -t ${NAME} "started."
;;
stop)
if [ -n "`pidof syslogd`" ]; then
printf "Stopping ${DESC}: "
killall "${NAME}"
printf "${NAME}.\n"
fi
;;
start|restart|force-reload)
$0 stop
sleep 1
$0 start0
;;
*)
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
exit
;;
esac

exit 0

And must be executable:
chmod +x /opt/etc/init.d/S05syslogd

To be sure, you know what will come, save and reboot:
flashfs save && flashfs commit && flashfs enable && reboot

Now you can test transmission. Start watchdog manually:
transmission_watchdog

Check the transmission process with ps axf and browse to http://ASUSIPADRESS:8008/cgi-bin/transmission.cgi

transmission is working :rolleyes:
It is a good idea to use ONE widely distributed torrent (http://distribution.openoffice.org/p2p/index.html) for testing transmission.
Download the torrent file, copy it to /tmp/harddisk/torrent/source and push the status to active in the webinterface.
You can also use the fetch-function of the webinterface.
The help is your friend:)

NEWS: If your transmission webinterface is hanging and transmission.cgi is consuming 100% cpu please read this: http://wl500g.info/showpost.php?p=102442&postcount=316

wengi
15-08-2007, 10:44
10a. original SAMBA
Samba will show your local HDD in the windows network.
oleg integrated a good working samba version from firmware -9 on.
You activate it in the web interface USB Application -> Samba.

Simply choose "All partitions" for Samba File Shares and a Default Access Level of "read/write".
Do not forget to enter your hostname and workgroup.

10b. IPKG SAMBA
I recommend using samba as in chapter 10a. This chapter is for the advanced users who want more flexibility.
Samba has to be disabled in the webinterface!

ipkg install xinetd
ipkg install samba2

You have to change /opt/etc/init.d/S10xinetd to work with the start|stop feature of rc.unslung.
vi /opt/etc/init.d/S10xinetd
content:
#! /bin/sh
#
# Startup script for xinetd
#
prefix=/opt
sbindir=${prefix}/sbin

NAME=xinetd
DAEMON=${sbindir}/${NAME}
DESC="xinetd"
PIDFILE="/var/run/xinetd.pid"
OPTIONS="-pidfile $PIDFILE"
CONFDIR="/opt/etc/xinetd.d"

# installation check
test -x ${DAEMON} || exit 0

case "$1" in
start)
if [ -z "`pidof ${NAME}`" ] ; then
printf "Starting ${DESC}: "
${DAEMON} ${OPTIONS}
printf "${NAME}.\n"
fi
;;
stop)
if [ -n "`pidof ${NAME}`" ]; then
printf "Stopping ${DESC}: "
kill -SIGTERM `cat $PIDFILE`
printf "${NAME}.\n"
for i in ${CONFDIR}/* ; do
if [ -n "`grep "^[[:space:]]*disable[[:space:]]*=[[:space:]]*no" ${i}`" ] ; then
daemon="`basename $(awk -F= '/^[[:space:]]*server[[:space:]]*=[[:space:]]*.*/{print $2}' ${i})`"
printf "Stopping ${daemon}: "
kill "`pidof ${daemon}`" > /dev/null 2>&1
printf "${daemon}.\n"
fi
done
fi
;;
reload|reconfigure)
if [ -n "`pidof ${NAME}`" ]; then
printf "Reloading ${DESC}: "
kill -SIGHUP `cat $PIDFILE`
printf "${NAME}.\n"
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
printf "Usage: $0 {start|stop|reload|reconfigure|restart|force-reload}\n" >&2
exit
;;
esac

exit 0
To make this clear: Stopping xinetd will stop all registered services. Restarting xinetd will stop all services and start only xinetd itself.

Edit the conf for swat:
vi /opt/etc/xinetd.d/swat
You should cutomize the IP settings as you need them and exchange "user = root" with admin -> "user = admin".

Save... reboot... You know... i do this too often, but to be shure...
flashfs save && flashfs commit && flashfs enable && reboot

Samba and xinetd are running after the reboot.
But samba still needs to be configured. This is done with a webinterface:
http://IP.ADRESS.OF.ASUS:901

Goto "Globals":
- Change "workgroup" to your workgroup.
- "netbios name" is the name of your asus (for me again blechbuechse).
- "hosts allow" should be your subnet e.g. "192.168.1." (leave out the last number)
- "guest account" is 'admin'.
Commit changes with "Commit Changes". (You never would have known this :D)
Changes in globas need a restart to take effect!

goto "Shares":
- Insert "torrent" beside "create share" and press "create share".
- "comment": "torrent files"
- "path": "/tmp/harddisk/torrent"
- "read only" NO
- "guest ok" YES
- "browseable" YES
- Press "commit changes".

The settings take effect immediately. No reboot necessary.
You should see your asus in the windows network now.

wengi
15-08-2007, 10:45
11. LYNX

I access my asus with SSH when i am on the road. With dyndns and portforwarding. (This is not explained here. Search the forum).
I can copy files with scp.
But i need a browser in my SSH terminal to check my torrents: Lynx!
ipkg install lynx

lynx installs some dependend packages. But then you can start:
lynx localhost:8008/cgi-bin/transmission.cgi
Enough to see whats going on.

12. NLOAD
You can see your network load with nload.

ipkg install nload

This is for a DSL 2000 (2000kbit/sec down- 256kbit/sec upstream):
nload -t 200 -s 7 -i 2048 -o 256 -u H eth1

13. Adjust profile
To make life easier at the command promt you will add some alias.
vi /opt/etc/profile The file should be executable (chmod ...).
The content (Edit the nload settings!):
# Some alias for making life easier
# To start lynx with transmission: 'tlynx'
alias tlynx="lynx -cache=0 localhost:8008/cgi-bin/transmission.cgi"

# To start nload with DSL 6000 settings: 'nld'
alias nld="nload -t 200 -s 7 -i 6656 -o 640 -u H eth1"

# Make ls default -la with color coding
alias ls="ls --color=auto -la"

# Make pss a grep ps function
alias pss="ps axf | grep"

# df human readable (Only works with coreutils installed!)
# alias df="df -h"There is one more line if you installed mc in chapter 6.

Make it executable:
chmod +x /opt/etc/profile

Save, reboot:
flashfs save && flashfs commit && flashfs enable && reboot

You can verify your modification by entering 'alias':
[admin@blechbuechse root]$ alias
ls='ls --color=auto -la'
nld='nload -t 200 -s 7 -i 6656 -o 640 -u H eth1'
tlynx='lynx -cache=0 localhost:8008/cgi-bin/transmission.cgi'
pss='ps axf | grep'

14a. Automate SSH login
Until now you need to insert user and password for every ssh login. I assume you are as lazy as i am. So we will do this with keys.
First you need to create a pair of keys. For Windows this is done with PuttyGen (http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe).
Start, press generate and move your mouse until the key is generated.
The field "Key comment" is used to identify the keys, if there are more than one. Insert your name here.

Save the private key as file:
You can save your private key with a passphrase. This is for security reasons. Enter a passphrase.
Press "Save private Key" and save your private key to a file. (e.g. C:\keys\mykey.ppk)

Save the public key on the Asus:
Copy the content of the upper, grey field to the clipboard. The key shold look like this:
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAn+NorNZlb9xhogR2DfNq6R qRg04KKXm2t4WIxj/0NWxjOVUAg4fFl2diA+3+f7gjIPdyEJnGUhkfgckYqhfMoZswr TjtvjP00p5O/LPcvGxzpy0XOBty1NQjcYOrOMC6BFrp6Rh0cVThF+sdAYXogn6 w49GOoSvKdgcTLCDubyM= testkey
YOUR KEY SHOULD LOOK DIFFERENT! THIS IS ONLY AN EXAMPLE.

You need a special directory to store your public key in. This is in the root/admin home directory:
mkdir /usr/local/root/.ssh
Edit the filevi /usr/local/root/.ssh/authorized_keys
and insert the content of your clipboard.
Multiple keys can be inserted here and are seperated by a new line. One line for each key.

This part of the filesystem is in the flash so you have to save it:
flashfs save && flashfs commit && flashfs enable && reboot

Next step is to tell putty to use the key:
Configure putty:
"Connection - Data" bei "Auto-login username" enter the username: admin
"Connection - SSH - Auth" at "Private key file for authentication" Enter the file saved in the above step (e.g. C:\keys\mykey.ppk)
Do not forget to save (Session - Save)

Your login should look like this now:
Using username "admin".
Authenticating with public key "testkey"
[admin@blechbuechse root]$

Optional: Disable login with passwort
The option "dropbear -s" disables login with password. Only login with keys will be possible!
Edit /usr/local/sbin/post-boot to modify the option for start.
Insert a "-s" directly behind dropbear.
ATTENTION: If you loose your key you are locked out! Use this with care!

Do not forget to save and reboot.

14b. SSH via Internet (in home gateway mode)
You have to open port 22 in your firewall to connect to your router over internet. If your Asus is directly connected to the internet and in home gateway mode you can do this directly. The firewall is iptables.
Remark: This is a security risk! Be sure to set at least a strong password for your users!!! Have a look at THIS (http://wl500g.info/showpost.php?p=98784&postcount=268) for a secure sshd config.

Edit your /usr/local/sbin/post-firewall and insert:
#!/bin/sh
# this opens the ssh port to internet! Be sure to have strong passwords!
iptables -I INPUT -m tcp -p tcp --dport 22 -j ACCEPT
And don't forget to save!

wengi
15-08-2007, 10:45
15. Optimize performance
This chapter is for advanced users. You should not do this if you are a newbie.

Your Asus is completely setup now. Only some optimization regarding the performance is to be done.
This is to keep as much processor and memory free as possible. Even the WL-HDD only has 16MB RAM and a 125MHz CPU. Not that much...
The goal is to start services only if they are needed.
This works with xinetd. Here (http://www.xinetd.org/) is a description.

A) Start samba with xinetd

This chapter is using the original samba of the firmware. If you installed the IPKG samba you will have to change the path /usr/sbin/ to /opt/...
I only need samba for moving my torrent files. So this is rather seldom.
This is why i atart samba with xinetd. To keep system resources free for transmission.
Your samba must work for 100% before making this step!

If xinetd is not installed until now:
ipkg install xinetdYou have to change /opt/etc/init.d/S10xinetd to work with the start|stop feature of rc.unslung.
Do this as it is described in chapter 10b). Only the part with the content of S10xinetd!

samba comprises two daemons:
vi /opt/etc/xinetd.d/netbios-ssn
Content:
service netbios-ssn
{
disable = no
socket_type = stream
protocol = tcp
port = 139
user = admin
wait = no
only_from = localhost 192.168.XXX.1/24
server = /usr/sbin/smbd
}
And the second:
vi /opt/etc/xinetd.d/netbios-ns
Content:
service netbios-ns
{
disable = no
socket_type = dgram
protocol = udp
port = 137
user = admin
wait = yes
only_from = localhost 192.168.XXX.1/24
server = /usr/sbin/nmbd
}
You have to fit the IP Settings for your own needs!

There should already be a /etc/smb.conf. If not you will have to create it. This one shares the data partition with read/write for everyone.
[global]
interfaces = br0
bind interfaces only = yes
workgroup = YOURWORKGROUP
server string = YOURHOSTNAME
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = no
preserve case = yes
short preserve case = yes
client code page = 850

[disc0_3]
path = /tmp/mnt/disc0_3
writable = yes
force user = adminYou have to edit Name and workgroup in this file too!

Now you have to make shure that the /etc/smb.conf is stored before a reboot:
echo "/etc/smb.conf" >> /usr/local/.files && flashfs save && flashfs commit && flashfs enable
Samba must not run as daemon. You have to disable it in the webinterface and accept the restart now.

and if you installed samba with IPKG you have to delete the startup file:
rm /opt/etc/init.d/S80samba

B) Unload unnecessary kernel modules

Attention: You should know which modules you need, before unloading them in post-boot.

List all running modules:
lsmod
It is looking like this:
[admin@blechbuechse root]$ lsmod
Module Size Used by
nfsd 93016 1
lockd 64236 1 [nfsd]
sunrpc 83480 1 [nfsd lockd]
usb-storage 62184 0 (unused)
sd_mod 13292 0 (unused)
scsi_mod 70216 1 [usb-storage sd_mod]
printer 12676 0 (unused)
usb-ohci 21940 0 (unused)
usbcore 77264 1 [usb-storage usb-ohci]
ipt_NETMAP 992 0 (unused)
ip_nat_starcraft 2224 0 (unused)
wl 423856 0 (unused)
et 34912 0 (unused)
ide-disk 13524 3
ide-probe-mod 11468 0
ide-mod 109608 3 [ide-disk ide-probe-mod]
You have to know which modules are unnecessary. 'Unused' is (sometimes) a good advice.

This is how you unload a module:
rmmod MODULNAME
Unloading the module 'et'is not a good idea because network will not work anymore. (Happend to me at this moment :))

Try this modules:

printer - printer support
usb-storage - USB mass storage
usb-ohci - USB host
usbcore - USB main component
wl - WLAN

It would be nice to have a complete list of all modules here. contact me if you can provide information.

Unload a module and check if all the services are still working.
If there is something wrong: Do a reboot!
After knowing the possible modules you can edit the post-boot and paste the unload commands.

16. Firmwareupdate
If oleg releases a new firmware you should update:

1) In webinterface 'System Setup' -> 'Setting Management' click "HERE", to save your settings.
2) In webinterface 'System Setup' -> 'Flashfs Management' click "HERE", to seve the flash file system.
3) Download and extract the new firmware. You need the .trx file.
Important: Wait for the reboot after every following step.
4) In webinterface 'System Setup' -> 'Firmware Upgrade' select the .trx file and click 'Upload'.
5) In webinterface 'System Setup' -> 'Setting Management' select your saved settings and click 'Upload'.
6) In webinterface 'System Setup' -> 'Flashfs Management' select your saved flashfs and click 'Upload'.

The update is finished and all services should be accessible.
There will be no data lost.

General
I try to keep this HowTo up to date.
Contact me if you have some improvement or you found a mistake.

Known problems:

- a 'find' in / results in an error "./proc/7/fd: No such file or directory". Thats normal.

Things that are not at the optimum

- Stop seeding after uploading a ratio or reaching a time limit (not supported by transmission until now.)
- The webinterface links to source, work, and target do not work. (You must install thttpd to fix this.)
- The WL-HDD is really slow. A RAM-Upgrade (http://wl500g.info/showthread.php?p=48706#post48706) would be fine.
- Ipkg (still) has no history funktion. Can ipkg log to syslog? Thats a way how installations could be logged.


Thanks to:

Oleg (for the firmware)
marcnesium (for his premium How To)
Oleo (for transmission and good help)
My wife (for the patience) :D :D

Martin1802 (for finding a mistake in step 4a / 4b and supporting me with the profile)
hanseugen (for USB HDD und Cron-Tips)
And all others who helped me improving this howto.

Important links:
http://www.nslu2-linux.org/wiki/Optware/Transmission (Step-by-Step Howto for the 500. At the end of the page)
http://wl500g.info/showthread.php?t=6823 (Controlling torrent downloads thru webpage)
http://wl500g.info/showthread.php?t=5909 (Premium HowTo)
http://www.macsat.com/macsat/content/category/3/13/29/ (MacSat Tutorials)
http://wl500g.info/showthread.php?t=8010 (How to connect to dbox2)
http://www.sprayfly.com/wiki/Sprayfly (Sprayfly WL-HDD Wiki)
http://wl500g.info/showpost.php?p=25037&postcount=1 (summary of Olegs firmware versions)
http://wl500g.info/showthread.php?t=6826 (Autocopy funktion for the photographer of you)
http://wl500g.info/showthread.php?t=13785 (Information on boot files and fstab in firmwares -9 and newer)

For those of you who want to be up to date with the development:
http://trac.nslu2-linux.org/optware/timeline Shows all changes.

wengi
15-08-2007, 10:46
Happy working with your "new" Asus.
May the force be with you.

wengi

super101
24-08-2007, 17:26
Thanks so much, it spent me more than a week now, I couldn't finish everything without your great tutorial. Great tutorial!

wengi
24-08-2007, 20:44
Happy to hear it was helpfull for you.

wengi

TinyRK
25-08-2007, 16:38
Awesome! Good work guys.

One question, there is possibility to just provide us with a config;file which has already everything integrated? :D

wengi
26-08-2007, 07:46
Hi,

1) I am not the guy to build firmware. So i am not your man.
2) There will never be a firmware with "everything integrated" because you never know who need which comonents and some components will never work together.
3) (And the important one) If anybody over here will provide a "all-in-one firmware" you would install it and have no idea how to use it. So the questions would start again. And there would be howtos for using the things. In my eyes its better you learn by modifying your own firmware.

Learning by doing!

wengi

wengi
10-09-2007, 15:31
From PM:
hi,wengi
got a problem

putty connect to WL-HDD
network error:connection refused.

how to :eek:

thanks.
More input! From LAN or internet?
Firewall? What are you doing EXACTLY?

wengiFrom LAN ,no Firewall

AT 4b. Startup-scripts

APPEND the following line:
Quote:
echo "nameserver IP.OF.DNS.SERVER" > /etc/resolv.conf

when save and reboot then putty connection refused:)
You only need this line if your Asus is NOT configured as Router to connect to the internet. If you are NOT using it as router try to use DHCP (If you have a DHCP Server in your LAN) for the first step.

You can ping your Asus and connect to the Webinterface?

wengi

carry
11-09-2007, 05:23
Yes, I can ping,telnet and connect to the Asus Webinterface.
also can set IP Address and Gateway...
my Asus is as a client in the network.

the point is when i add this line:
echo "nameserver IP.OF.DNS.SERVER" > /etc/resolv.conf
save and reboot

then use putty program SSH connect to Asus

PuTTY Fatal Error
network error:connection refused
:rolleyes:

wengi
11-09-2007, 08:55
Just to be sure: You replaced the "IP.OF.DNS.SERVER" with the IP adress of your DNS server?
This line for _my_ network looks like this:
echo "nameserver 192.168.201.1" > /etc/resolv.conf
wengi

realfolkblues
13-09-2007, 11:54
hi when i do

mkdir /tmp/harddisk/torrent

i get

cannot create directory `/tmp/harddisk/torrent': Read-only file system

any help?

wengi
13-09-2007, 14:49
Your hdd is not mounted to /tmp/harddisk!

Do a 'mount' to see what is mountet or a 'df -h'.
Recheck partitioning, formating. Try to mount manualy.

wengi

realfolkblues
13-09-2007, 17:43
i found that it was mounted at

/tmp/harddisk/part1/

so i just ajusted for the tutorial.

BTW great tut A+

EDIT:
Ummm this might sound totaly noob, but do i need to forward a bittorrent port for transmission if it's on the router?

wengi
14-09-2007, 08:51
Have a look at the transmission.conf: You can use upnp if your router supports it and you want to.
Otherwise you have to do a portmapping on the router.

wengi

pmi
14-09-2007, 23:39
thanx for great manual!
I still can't create folders "torrent". Whenever I try I've got "cannot create ... read-only file system"

after mount I've got:

/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw)
/dev/discs/disc0/part3 on /tmp/harddisk type ext3 (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type vfat (ro,noatime)

please tell me what's wrong - I'm linux rookie (realy fresh one)

Best Regards and thanx in advance
Piotr

pmi
15-09-2007, 06:25
thanx for great manual!
I still can't create folders "torrent". Whenever I try I've got "cannot create ... read-only file system"

after mount I've got:

/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw)
/dev/discs/disc0/part3 on /tmp/harddisk type ext3 (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type vfat (ro,noatime)

please tell me what's wrong - I'm linux rookie (realy fresh one)

Best Regards and thanx in advance
Piotr

I've been googling and tring to mount drive manually ([admin@(none) root]$ /dev/discs/disc0/part3 mount /tmp/harddisk), and in return I'm reciving :
-sh: /dev/discs/disc0/part3: Permission denied

realfolkblues
15-09-2007, 07:19
I've been googling and tring to mount drive manually ([admin@(none) root]$ /dev/discs/disc0/part3 mount /tmp/harddisk), and in return I'm reciving :
-sh: /dev/discs/disc0/part3: Permission denied

what output do you get from "df"?

wengi
16-09-2007, 01:12
/dev/discs/disc0/part3 on /tmp/harddisk type ext3 (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type vfat (ro,noatime)

1) Prob: Both partitions are mounted at the same point. Change this.
2) the ro for part1 means readonly! change this to rw!

wengi

pmi
17-09-2007, 23:06
My part3 is not mounting automaticaly. Maybe there is something wrong with vi /usr/local/sbin/post-boot, and waiting for part2?

Best Regards
piotr

wengi
18-09-2007, 08:49
Try to unmount part3, and remount part1 as rw.
After you confirmed that this is working you can think about making it permanent.

wengi

WhiteAss
24-09-2007, 22:41
Thanks voor the great Tutorial.

I still have a problem with the samba server.
I can configure it with the webinterface, however the server dosn't work.

I tryed to go directly to the IP adres and via windows network.

When I look in de webinterfase at status I see:
smbd: not running
nmbd: not running

when I try to activate them (nmbd isn't really a must I think) they still doesn't work. Anyone a solution for this problem?

wengi
25-09-2007, 10:34
Do you try to use samba as daemon or with xinetd?

daemon:
try to run /opt/etc/init.d/S80samba.
post the logfile if nmbd or smbd are not running

xinetd:
make sure xinetd is running or run /opt/etc/init.d/S10xinetd

Samba will only work if (smbd AND nmbd) OR xinetd are running (check with ps axf)

wengi

WhiteAss
25-09-2007, 13:04
I'm not sure. I folowed your tutorial. 1th installed xinetd then samba2

ipkg install xinetd
ipkg install samba2


I will look at it when I'm at home.

ps. not mentioned before, but I think it's already clear. I'm a linux newbie.

WhiteAss
25-09-2007, 17:57
I don't know witch is running (daemon or with xinetd)

I tried both
/opt/etc/init.d/S80samba
/opt/etc/init.d/S10xinetd

to run. this doesn't make a diferent.

Where do I find the log?

what is the best way? xinetd or smbd AND nmbd
can I work with the webinterface in both situations?

wengi
26-09-2007, 08:39
Forget xinetd. You first have to run it as daemon.
You are running samba as daemon as long as you did NOT follow chapter 15.

Do the following:

1. run /opt/etc/init.d/S80samba and post result
2. post output of "ps axf"
3. post the latest content of the log: /opt/var/log/messages

wengi

EDIT: Did you follow the whole tut or only parts? This is important to know.

WhiteAss
26-09-2007, 15:51
I didn't follow the whole tut.


I didn't format the hdd in the same way, but I've made partitions:
swap (ca 500mb)
programs (/opt, ca 500mb, ext3)
data (tmp/harddisk/part1,ext3)
data (tmp/harddisk/part2, ntfs, some data that I want on ntfs)

I use the startup script (4b) with some chances in the mounting part

didn't do:
4a. partition and format HDD
7. Tools (optional)
8. CRON
9. TRANSMISSION (want to use samba 1th maybe later)
9b. Change Syslog settings
Didn't go further then this jet.

edit:
1. run /opt/etc/init.d/S80samba and post result

[admin@WL500gp root]$ /opt/etc/init.d/S80samba
Starting smbd:
Starting nmbd:
[admin@WL500gp root]$

2. post output of "ps axf"

[admin@WL500gp root]$ ps axf
BusyBox v1.1.3 (2007.01.01-14:37+0000) multi-call binary

Usage: ps

[admin@WL500gp root]$

3. post the latest content of the log: /opt/var/log/messages
I don't have a log "messages" at that location. I do have a dir named "samba" and in this dir a file log.smbd
latest content of this log is:


[2007/09/24 22:09:14, 0] source/smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2007/09/26 00:19:00, 0] source/smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2007/09/26 00:19:13, 0] source/smbd/server.c:main(835)


edit2
maybe also helpful:
found another logfile /opt/var/samba/nmbd
last part is

[2007/09/26 00:29:26, 0] source/nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2007/09/26 00:29:30, 0] source/nmbd/nmbd_responserecordsdb.c:find_response_reco
rd(235)
find_response_record: response packet id 6592 received with no matching record
.
[2007/09/26 18:07:26, 0] source/nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2007/09/26 18:07:30, 0] source/nmbd/nmbd_responserecordsdb.c:find_response_reco
rd(235)
find_response_record: response packet id 4588 received with no matching record
.


and this log:
/opt/var/samba/log.smbd
last part:

[2007/09/26 00:31:07, 0] source/smbd/server.c:main(791)
smbd version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2007/09/26 18:07:26, 0] source/smbd/server.c:main(791)
smbd version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002

wengi
27-09-2007, 10:22
Hi,

"ps axf" will not work. Post result of a simple "ps".
"ps" will show you the running processes. There should be s- and nmbd.

Also make sure that samba in the original webinterface is DISabled.

Do the following:
- Disable Samba in Webinterface (if it isn't already)
- reboot router
- post result of "ps"

wengi

Arise
27-09-2007, 12:07
WhiteAss, you should read my tutorial for a working Samba3.

However... to see the processes, type:
ps (if you don't have 7. Tools (optional))

Or:
ps aux
ps -ef
if you installed 7. Tools (optional).

WhiteAss
27-09-2007, 18:37
I'm trying to install samba on the way explained by arise for the moment.

will post my questions over there.

edit:
Came back on this.

after folowing the tut of arise my router didn't work so good anymore.

Will follow this tut again from the begin (exept for the fdisk/fromat part)

WhiteAss
01-10-2007, 18:36
I began from scratch again

I can conf the standard samba which is there wit the oleg firmware.

149 admin 892 S /usr/sbin/smbd -D
151 admin 964 S /usr/sbin/nmbd -D


This is v1.x (don't know the exact version)

I want to use the web interface (swat) so I'v to install samba2.

When I install samba 2 (the one in this tut) I can use the web interface but samba doesn't work then (even without the web interface an with the same conf as samba 1)

smbd and smbd just won't run and I can't find out what is wrong.

wengi
02-10-2007, 10:54
So the fun starts again:

try to start manually and give us the logs....
i need input ;)

wengi

PS: I am on vacation from thursday on. We need to solve this quickly or anyone else has to help you.

sven7
04-10-2007, 19:27
I am using SAMBA 2 but not working good on chinese character file name (both samba2 and vsftp). I read the article in here saying need Samba 3

http://www.nslu2-linux.org/wiki/Optware/Samba

But some artical saying need a codepage.....

I search this for long but still can't find the exit.... Any good people can help please : <

Aramaki
22-10-2007, 22:17
9. TRANSMISSION (The torrent Client)

Transmission works really strange :(

when i open http://192.168.1.1:8080/cgi-bin/transmission.cgi i get syslog: /opt/var/log/messages unavailable for transfer stats!

although I did everything just like in howto

when i click watchdog i get /opt/sbin/transmission_watchdog: kill: 306: (524) - Operation not permitted grep: /tmp/harddisk/torrent/work/my.torrent/.status: No such file or directory


when i select torrent in list and click push i get
transmission.cgi: kill: 9: (524) - Operation not permitted

Any ideas?

Update 1

Right after restart transmission_watchdog doesn't appear.
If it's started manually i get a lot of instatnces

183 admin 468 S upnp -D -L br0 -W vlan1
214 admin 1696 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
217 admin 1700 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
218 admin 1700 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
219 admin 1700 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
220 admin 1700 R transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/harddisk/torrent/active-torrents.txt
222 admin 412 R ps


Does it matter?

wengi
23-10-2007, 08:44
Hi,

transmission is not started directly after restart. It normaly depends on the cron entry. E.g. if the watchdog is started hourly, transmission will be started the next full hour after thr reboot.

If you want to start it directly after the reboot: Add transmission_watchdog to your post-boot.

There are always multiple instances of transmission running.
This is normal.

For the errors: try another torrent. Maybe the file was damaged. How do you copy the torrents? wget in ssh / ftp / samba? I normaly use wget in ssh session.

wengi

PS: please edit your post and delete the torrent name or use a legal torrent.

Aramaki
24-10-2007, 14:53
Hi,

transmission is not started directly after restart. It normaly depends on the cron entry. E.g. if the watchdog is started hourly, transmission will be started the next full hour after thr reboot.

If you want to start it directly after the reboot: Add transmission_watchdog to your post-boot.

There are always multiple instances of transmission running.
This is normal.

For the errors: try another torrent. Maybe the file was damaged. How do you copy the torrents? wget in ssh / ftp / samba? I normaly use wget in ssh session.

wengi

PS: please edit your post and delete the torrent name or use a legal torrent.

don't know what was the problem. I just did everything by your guide from the start and it worked - first time I combined yours and olegI's.

And I was a dumb at linux - now situation improved.

Thanks for your great manual. What about putting it into wiki?

wengi
25-10-2007, 11:00
Good to know its working now :D

wengi

Aramaki
25-10-2007, 14:22
Good to know its working now :D

wengi

may you can help me with this? http://wl500g.info/showthread.php?p=67114#post67114

wengi
26-10-2007, 08:50
Hi Aramaki,

i already read your post but unfortunately am not able to help you.

wengi

Aramaki
26-10-2007, 12:48
Hi Aramaki,

i already read your post but unfortunately am not able to help you.

wengi

Anyway thx :)

Arise
29-10-2007, 18:17
So, I've created the pair of keys for automatic login.

Then I run
vi /usr/local/root/.ssh/authorized_keys and right click of my mouse in order to paste text in the putty window.

Then I pressed exactly the next keys:

[Esc]
:wq!
[Enter]

... and I tried to login and didn't worked as expected.

Found out later in Midnight Commander viewer that the first later from "ssh-rsa ..." was missing and I had only "sh-rsa ...".

I've added the missing "s" and it worked like a charm. :D

Don't know if it's my problem (I'm a stupid user sometimes :D) or is a bug or something. Just in case anyone gets in the same problem as me... :D

Jeroen van Omme
30-10-2007, 09:44
Arise,

I had a similar problem. It seems that copy-pasting from a webpage to Putty doesn't always work well. Some of my post-boot code was missing when I pasted it to putty from this tutorial. Only found out after a few reboots, of course :(

wengi
30-10-2007, 10:09
Arise,

I had a similar problem. It seems that copy-pasting from a webpage to Putty doesn't always work well. Some of my post-boot code was missing when I pasted it to putty from this tutorial. Only found out after a few reboots, of course :(

Missing parts in pasted content is mostly a result of the following:

you open vi and _forget_ to press "i" to change to insert mode.
When you paste the content is not pasted until the first i in the content appears.

example:

"this is the content" pasted in vi WITHOUT being in insert mode results in the following: "s is the content"

wengi

Hreks
30-10-2007, 22:23
Wengi, thank you for your great tutorial. I've decided that it is the most detailed and started using it for connecting my usb hdd with 500gp.
Unfortunately, a have a problem after this steps:

# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
#if [ ! -d /dev/discs ]
#then
#insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
#fi

#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done

mount /dev/discs/disc0/part3 /tmp/harddisk


# Activate swap
swapon /dev/discs/disc0/part1

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung

I wrote it in VI editor after pressing 'i' and i saved it with :wq command.

I use 500gp like a router, so after those steps I make a command to reboot:
flashfs save && flashfs commit && flashfs enable && reboot

And then Putty says that "Fatal error (connection lost)"
I try to connect using SSH again, but also Fatal error appears (writing "network connection refused")
And i only can connect to 500gp using telnet or web.:( And when i run telnet, swap is not activated and driver is not mounted (so, startup script don't work i think) although all steps before i did according to your tutorial.

After that, i've refreshed the firmware and did everything again, but the result was the same.:confused:
Help me solve this problem please...
P.S. excuse me for my english: i've haven't any practice for a long time...

Hreks
31-10-2007, 08:23
So, i've solve the problem myself: there were some mistakes in my post-boot file.
But i still have one question: how can i establish connection to my router from any place with internet. I have a real IP and using Putty thought SSH, it can't connect to router. May be i should open any ports?

wengi
31-10-2007, 11:35
Hi Hreks,

"Fatal error (connection lost)" is normal when you reboot the router.
Normaly the network connection is also droped.

Due to the Asus also is running DHCP (i suggest) all should be ok after you request a new ip (in windows: ipconfig /renew).

But good to see that you managed it yourself :D

SSH is using port 22. You have to open this port in your firewall and/or forward this port to the local ip adress of the asus.
you can also use a different port (e.g. 222) and redirect ist to 22 on local ip.
This prevents ssh scanning, which is often done in the last month.

have fun with your asus
wengi

Hreks
31-10-2007, 17:23
1) Hi, Wengi, thank you for your reply, but can you give me more detailed answer?
What firewall do you mean, software or in the router?
What does it mean "forward this port to the local ip adress of the asus."
How can i use different port?
And what should i do on the computer, from which i want to connect my router(open any ports?)
Big thanks

2)WoW! I'm very happy) I've configured everything, writen in Wengi's manual. Now i have Samba, and my torrents are downloading! I can't belive:)
Wengi, really your tutorial is the best for new users of 500gp:) only one step became a problem: while activating RTC, it was error: can't create folder, permission denided.
3)And also one question: can i create my media library in \tmp\harddisk or in another folder? actually, i don't understand folders in samba according to the partitions in router, explane me please.
4) One more question: i want to make a web site in the router, considering a real IP, so i don't understand if any steps of your tutorial connected with this topic?
regards, Hreks

Jeroen van Omme
01-11-2007, 08:39
Missing parts in pasted content is mostly a result of the following:

you open vi and _forget_ to press "i" to change to insert mode.
When you paste the content is not pasted until the first i in the content appears.

wengi

Of course! Why didn't I think of that? :o

wengi
01-11-2007, 19:06
Hi Hreks,

i dont have that much time atm.

RTC is ONLY for WL-HDD. Others do not have a RTC.
i will come back in a few days for the other questions.

wengi

oggie
03-11-2007, 15:14
10. SAMBA2
The original version in olegs firmware has a problem with Windows Vista.
Because of this, you install the package 'samba2'. This should work with Vista (Due to a missing Vista i can not test it).
Samba has to be disabled in the Asus webinterface! (USb Application -> Samba -> Enable Samba Demo mode: NO)

ipkg install xinetd
ipkg install samba2

Edit the conf of xinetd:
vi /opt/etc/xinetd.d/swat
You should cutomize the IP settings as you need them and exchange "user = root" with admin -> "user = admin".

Save... reboot... You know... i do this too often, but to be shure...
flashfs save && flashfs commit && flashfs enable && reboot

Samba and xinetd are running after the reboot.
But samba still needs to be configured. This is done with a webinterface:
http://IP.ADRESS.OF.ASUS:901


I followed all the steps you outlined, but samba isn't starting on it's own after reboot. I can start it manually by running /opt/etc/init.d/S80samba and everything works fine then.

Am I missing something?

wengi
03-11-2007, 18:37
Hi,

/opt/etc/init.d/S80samba is normaly started by /opt/etc/init.d/rc.unslung.
check if rc.unslung is executable and if it is called from your post-boot.

Are the other services (/opt/etc/init.d/S*) running after restart?

wengi

oggie
04-11-2007, 01:09
Hi,

/opt/etc/init.d/S80samba is normaly started by /opt/etc/init.d/rc.unslung.
check if rc.unslung is executable and if it is called from your post-boot.

Are the other services (/opt/etc/init.d/S*) running after restart?

wengi


rc.unslung is executable, and is being called from the post boot. I see that the one script (S80busybox_httpd) is running when I reboot since I can go to the transmission web page -
http://192.168.1.1:8008/cgi-bin/transmission.cgi?ACTION=List

so it make no sense why it's not running. I ran dmesg and I don't see any errors in it either.

wengi
04-11-2007, 14:30
Hi,

Is /opt/etc/init.d/S80samba executable?
What happens if you run /opt/etc/init.d/S80samba manually?

Pls. post last lines of your syslog (/opt/var/log/messages).

wengi

oggie
04-11-2007, 23:10
This is strange. I rebooted it again after I made another minor change, and now it's working. I hate it when things like that happen.

Thanks for the help though! This howto has been a great help.

Melicous
05-11-2007, 05:21
First of all thx a bunch for the gr8 tut, finally I can get to my smb share without going through sftp and tranmission works so much better than e-ctorrent.

I am a bit of a linux noob though and it might be handy for the rest of you to know that if you can't get a ipkg package (mc), or some dependensies (font libraries for the bt cgi :P), or even if nano locks up (it happend to me faulty ncurses was to blame) just go too http://ipkgfind.nslu2-linux.org/.

Find the right package (always select the oleg version if possible) then copy the download link and do this in the terminal:
ipkg install PASTE_THE_DOWNLOAD_LINK_HERE

Or alternatively you can change your unslung package directory to the oleg version
nano /opt/etc/ipkg.conf

then
src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest root /

Don't forget to run ipkg update / upgrade and be amazed how outdated your system is :P

But I do still have some question marks I hope you can help me with.
First I mosty use my smb share on the network for storage of my music so that every pc and mac all have the same songs. I haven't tried the optimisation bit yet and would like to know if I do run samba under xinetd will it be slower or something.

Furthermore I would like to get a ftp or sftp running again and was wondering if this can be run under xinetd aswell

Also if you don't have a webcam attached you can put this in the post-boot
rmmod videodev

Lasty why isn't this a sticky yet, this goes along gr8 with the macsat tut

wengi
05-11-2007, 08:37
This is strange. I rebooted it again after I made another minor change, and now it's working. I hate it when things like that happen.

Thanks for the help though! This howto has been a great help.

Would be nice to know what was wrong/changed.

wengi
05-11-2007, 08:41
1) I haven't tried the optimisation bit yet and would like to know if I do run samba under xinetd will it be slower or something.

2) Furthermore I would like to get a ftp or sftp running again and was wondering if this can be run under xinetd aswell

3) Also if you don't have a webcam attached you can put this in the post-boot
rmmod videodev

4) Lasty why isn't this a sticky yet, this goes along gr8 with the macsat tut
Hi,

1) it will not be slower. *mbd will only start when you access the share. Thats all.

2) Yes, you can. You only have to find the right config for xinetd listening on port 21.

3) I never had such a module in my firm...

4) Good question :D

wengi

Aramaki
08-11-2007, 22:12
transmission downloads files OK
at least I can see them with ls command

drift_USA_JAP.torrent.seeding
ÐÑиÑ
Ñ Ð¯Ð¿Ð¾Ð½Ð¸Ñ Ð¿ÑоÑив Ð

but samba shows only .torrent files and no .avi

Right now samba works with russian symbols OK - i can write them from XP client and see them by SMB and on Asus with ls command in appropriate way

my smb.conf

# Samba config file created using SWAT
# from 192.168.1.2 (192.168.1.2)
# Date: 2007/10/27 16:03:19

# Global parameters
[global]
client code page = 866
workgroup = BELL
netbios name = ASUS
server string =
security = SHARE
log file = /opt/var/log/samba/log.%m
max log size = 50
load printers = No
character set = 1251
dns proxy = No
guest account = admin
hosts allow = 192.168.1.

[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No

[www]
comment = HTTP server files
path = /opt/share/www
read only = No
guest ok = Yes

[torrent]
comment = torrent files
path = /tmp/harddisk/torrent
read only = No
guest ok = Yes



I don't remember whether I did the oleg's instructions but i guess i did

nvram set lan_stp=0
nvram set usb_vfat_options=codepage=866,iocharset=cp1251
nvram set usb_ntfs_options=iocharset=cp1251
nvram set usb_smbcpage_x=866
nvram set usb_smbcset_x=1251
nvram set regulation_domain=0x00ALL
nvram commit


Can i switch everything to UTF and will it work?

wengi
09-11-2007, 07:54
Sorry, but i have no idea. You will have to try.

wengi

realfolkblues
11-11-2007, 06:31
Hi i've bean running with your tut for awhile and i noticed that file transfer rate is much slower with the custom firmeare over samba. VS the ogiginal firmware that asus supplys. But if i use the original firmware i cant get it to work with vista.

Any idea how to speed up access time? Its really slow.

wengi
11-11-2007, 12:13
The only way is to stop all other things.
Stopping transmission is most important before copying files over samba.
And running samba with xinetd if you want to use transmission is recommended.

It is not that the orig firmware is faster, it is that you normaly run more services when oleg is installed.

wengi

QMax
11-11-2007, 13:11
First of all thank you very much Wengi for this great tutorial, it should be sticked and unified with the one by marcnesium.

Today I upgraded my Wl500gP firmware with the latest from Oleg, so I decided to take a look to your toturial to change something on my filesystem...

Some note after installation:

Installed Samba2, due to problems browsing my USB disk from WinVista.
Now it's ok. Installing via ipkg Samba2 on top of original Oleg's firmware, in /opt/etc/init.d I 've found 2 samba start script:

S80samba
#!/bin/sh


if [ -n "`pidof smbd`" ] ; then
echo "Stopping smbd:"
killall smbd
fi

if [ -n "`pidof nmbd`" ] ; then
echo "Stopping nmbd:"
killall nmbd
fi

#sleep 2

echo "Starting smbd:"
/opt/sbin/smbd -D;
echo "Starting nmbd:"
/opt/sbin/nmbd -D;



and S97Samba
#!/bin/sh
/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
/usr/sbin/nmbd -D -n myasus -o -l /tmp -s /opt/etc/samba/smb.conf



I don't know if this is a my mistake, but moving samba service from initd to xinitd, I had to remove both file.

One question about samba2 on xinitd: at first startup both samba services are not loaded, when I try to access my shared disk, i can see nmbd and smbd running. Are these precesses stopped after some time of inactivity ?

Another question about xinitd: I'd like to run my MediaServer (WizD) using xinitd too, to save memory space. Is it possible ?

A note about SSH autologin. This is how my login appear now:

Using username "root".
Authenticating with public key "MyAsus"
Passphrase for key "MyAsus":


As you can see is asking me my Passphrase instead of a complete autologin. Is this normal ?

About modules: in my WL even if not listed by lsmod, videodev is removable to gain some more Kb in memory.

More questions on the way... let me test deeply this new fw/sw combination... :D

Max

wengi
12-11-2007, 09:34
Hi,

i have not seen the S97Samba script until now. Maybe this is new with the latest oleg firmware. I could not test this until now. But running samba with xinetd needs both files to be deleted. Maybe there will have to be done some changes to the xinetd files if the conf entries of S97 are required. But i dont think so.

The processes _should_ be stopped after a timeout. In fact i sometimes see nmbd keep on running while smbd is stopped as expected. Don't know why.

WizD should also work with xinetd. But i have no idea which ports are used. This is nothing special to the oleg firmware. Simply search the inet for "wizd AND xinetd". (And write a HowTo if you managed it to work :-))

Did you define a passphrase when you saved the private key? If yes: This is the reason.

I never saw the module videodev. So thanks for the hint. It works: [admin@blechbuechse init.d]$ rmmod videodev
rmmod: videodev: Success
Strange..

wengi

QMax
12-11-2007, 22:45
The processes _should_ be stopped after a timeout. In fact i sometimes see nmbd keep on running while smbd is stopped as expected. Don't know why.



Something strange happens running Samba2 with xinetd.
I also use xinetd for vsftp, and everytime i close an ftp session, vsftp disappear from running processes immediately, this doesn't happens with smbd and nmbd, even if I closed my last SMB connection about one hr ago... :(

About WizD, I've take a look to the startup file... too complicated for my knowledge :confused:

Max

wengi
13-11-2007, 09:16
Hi,

xinetd works for me with smbd. I never looked at the time when smbd is stopped. But it is possible that it lasts more than one hour.... Windows allways keeps smb connections open...

apostrophe
17-11-2007, 00:36
Does this also work on wl500gx using Oleg 1.9.2.7-7g?
I've followed steps 1 to 10 of wengi's tutorial (with the exception of 9 Transmission) but cannot get Samba2 to work. Neither smbd or nmbd can (ever) be seen to be running.
What steps should I take to solve this? I have a USB drive and a USB Hard-drive attached and both mount ok. Everything else (cron, syslog etc) seems fine.
The embedded Samba will work but I'd like to use SWAT if possible. I've looked through the posts in this thread and others and cannot see what I'm missing.

Thanks :)

this might help:

log.nmbd shows....

[2007/11/16 23:43:34, 0] source/nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 14764 received with no matching record.

and log.smbd...

[2007/11/16 23:43:30, 0] source/smbd/server.c:main(791)
smbd version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002

is this a clue?

wengi
18-11-2007, 12:13
Hi,

My HowTo is working with all WL-xxx if there is a oleg firmware for it. Some little things differ, but this is mentioned in the text.
The newest firmware (-8) has some changes but this will be corrected the next days. (RTC ...)

Samba seems to be running. Could you post the result of "ps" or "ps axf".

Thanx

apostrophe
18-11-2007, 19:20
Hi

I stopped the firmware smbd and nmbd with killall and then ran the S80samba script. If I run ps axf immediately you can see nmbd running.

ASUS:/tmp/local/root$ /opt/etc/init.d/S80samba
Starting smbd:
Starting nmbd:

ASUS:/tmp/local/root$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:02 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 6:35 [ksoftirqd_CPU0]
4 ? S 0:12 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
63 ? S 0:02 telnetd
1935 pts/0 Ss 0:00 \_ -sh
1954 pts/0 R+ 0:00 \_ ps axf
68 ? S 0:10 httpd vlan1
74 ? S 0:32 dnsmasq
76 ? S 0:00 klogd
81 ? S 0:00 [khubd]
89 ? Ss 0:00 lpd
91 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
95 ? Ss 0:00 waveservermain
97 ? Ss 0:00 rcamdmain
101 ? Ss 0:00 infosvr br0
102 ? Ss 0:11 watchdog
106 ? Ss 0:00 \_ ntp
127 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
129 ? S 0:02 [usb-storage-0]
130 ? S 0:00 [scsi_eh_0]
133 ? S 0:00 [kjournald]
136 ? S 4:31 [usb-storage-1]
137 ? S 0:00 [scsi_eh_1]
151 ? S 0:08 /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
158 ? Ss 0:00 /opt/sbin/cron
162 ? S 0:03 [kjournald]
1826 ? S 0:12 upnp -D -L br0 -W vlan1
1953 ? Ss 0:00 /opt/sbin/nmbd -D

I waited a few more seconds and ran again and it has stopped.

ASUS:/tmp/local/root$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:02 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 6:35 [ksoftirqd_CPU0]
4 ? S 0:12 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
63 ? R 0:02 telnetd
1935 pts/0 Ss 0:00 \_ -sh
1955 pts/0 R+ 0:00 \_ ps axf
68 ? S 0:10 httpd vlan1
74 ? S 0:32 dnsmasq
76 ? S 0:00 klogd
81 ? S 0:00 [khubd]
89 ? Ss 0:00 lpd
91 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
95 ? Ss 0:00 waveservermain
97 ? Ss 0:00 rcamdmain
101 ? Ss 0:00 infosvr br0
102 ? Ss 0:11 watchdog
106 ? Ss 0:00 \_ ntp
127 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
129 ? S 0:02 [usb-storage-0]
130 ? S 0:00 [scsi_eh_0]
133 ? S 0:00 [kjournald]
136 ? S 4:31 [usb-storage-1]
137 ? S 0:00 [scsi_eh_1]
151 ? S 0:08 /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
158 ? Ss 0:00 /opt/sbin/cron
162 ? S 0:03 [kjournald]
1826 ? S 0:12 upnp -D -L br0 -W vlan1

Thnx

wengi
19-11-2007, 09:12
I stopped the firmware smbd and nmbd with killall and then ran the S80samba script.
Hi,
i am not sure if htis will work. Please disable the orig. samba in the webinterface. Then uninstall and reinstall samba2 pck. Just to be sure that nothing from the firmware is running. S80samba should be started automaticaly.

wengi

apostrophe
20-11-2007, 01:51
wengi

Just tried that. Still nothing. log.nmbd and log.smbd show services started but that's it. No sign that SAMBA is actually running e.g. nothing to see in 'ps axf' or 'top' and ASUS not showing in MSHOME. Any further thought? Should I just start again?

Thanks. :)

wengi
20-11-2007, 09:08
Your xinetd is not running. Did you install it?

No xinetd -> no swat -> no config -> no samba.

wengi

apostrophe
21-11-2007, 00:38
wengi

I've reinstalled everything and xinetd is now running and using SWAT 'Status' page I can see smbd is 'running' and nmbd 'not running'.

log.nmbd shows

[2007/11/20 23:08:32, 0] source/nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2007/11/20 23:08:32, 0] source/lib/charset.c:load_client_codepage(213)
load_client_codepage: filename /opt/lib/codepages/codepage.850 does not exist.
[2007/11/20 23:08:32, 0] source/lib/util_unistr.c:load_unicode_map(617)
load_unicode_map: filename /opt/lib/codepages/unicode_map.850 does not exist.
[2007/11/20 23:08:32, 0] source/lib/util_unistr.c:load_unicode_map(617)
load_unicode_map: filename /opt/lib/codepages/unicode_map.ISO8859-1 does not exist.
[2007/11/20 23:08:36, 0] source/nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 30649 received with no matching record.

When I try to browse with XP explorer I see 'ASUS' under MSHOME but when I try to browse I get '\\ASUS is not accessible' message.

Thanks :)

wengi
21-11-2007, 08:58
Hi,

the files of the codepages are missing. Very strange!
Here is the listing of my codepages:
[admin@blechbuechse /]$ ls /opt/lib/codepages/
total 3708
drwxr-xr-x 2 admin root 4096 Feb 25 2007 .
drwxr-xr-x 18 admin root 8192 Nov 5 08:37 ..
-rw-r--r-- 1 admin root 588 Feb 23 2007 codepage.1125
-rw-r--r-- 1 admin root 140 Feb 23 2007 codepage.1251
-rw-r--r-- 1 admin root 196 Feb 23 2007 codepage.437
-rw-r--r-- 1 admin root 148 Feb 23 2007 codepage.737
-rw-r--r-- 1 admin root 388 Feb 23 2007 codepage.775
-rw-r--r-- 1 admin root 132 Feb 23 2007 codepage.850
-rw-r--r-- 1 admin root 172 Feb 23 2007 codepage.852
-rw-r--r-- 1 admin root 132 Feb 23 2007 codepage.857
-rw-r--r-- 1 admin root 460 Feb 23 2007 codepage.861
-rw-r--r-- 1 admin root 588 Feb 23 2007 codepage.866
-rw-r--r-- 1 admin root 8 Feb 23 2007 codepage.932
-rw-r--r-- 1 admin root 8 Feb 23 2007 codepage.936
-rw-r--r-- 1 admin root 8 Feb 23 2007 codepage.949
-rw-r--r-- 1 admin root 8 Feb 23 2007 codepage.950
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.1125
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.1251
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.437
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.737
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.775
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.850
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.852
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.857
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.861
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.866
-rw-r--r-- 1 admin root 262174 Feb 23 2007 unicode_map.932
-rw-r--r-- 1 admin root 262174 Feb 23 2007 unicode_map.936
-rw-r--r-- 1 admin root 262174 Feb 23 2007 unicode_map.949
-rw-r--r-- 1 admin root 262174 Feb 23 2007 unicode_map.950
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-1
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-13
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-15
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-2
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-5
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-7
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.ISO8859-9
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.KOI8-R
-rw-r--r-- 1 admin root 131614 Feb 23 2007 unicode_map.KOI8-U
Please recheck these files on your system.

Also post the result ofcat /opt/etc/ipkg.conf

wengi

zheka_ppp
21-11-2007, 14:57
My /opt/lib/codepages/ is emtpy too.
Where can I find all this codepage files ? I use samba3.

apostrophe
23-11-2007, 01:34
wengi

I do not know what I did different but I cleared everything and started again. Samba2 and everything else is working. I will move onto Transmission soon once the samba drive is fully configured. Thank you for your advice and patience.

:D

wengi
23-11-2007, 10:40
My /opt/lib/codepages/ is emtpy too.
Where can I find all this codepage files ? I use samba3.

I have no idea about smaba 3. Dont use it. But a reinstall should fix it _if_ these files are in the ipkg package.

wengi

EDIT:
You can download the ipkg package and extract it. Windows: e.g. use Winrar

wengi
24-12-2007, 12:22
Hi all,

i updated to the new Version of olegs firmware following chapter 16 of my howto.

One single problem:
My WL-HDD was not responding after step 4. So i pulled the plug after 30 mins and then it worked fine.
Following my Howto after that and all went fine.

You need to substitute the real time clock driver!
The HowTo is updated.

wengi

Trailblazer
27-12-2007, 10:14
wengi,
Thanks so much for your tutorial! An MS Geek can't do it without the help of you and marcesium.

And Oleg, thanks for the great firmware. It's why I bought this router! :D

alex.bumbacea
05-01-2008, 22:37
how can i get a report daily about loggin hours on ssh?

Serpent
06-01-2008, 10:07
Simplest way is:
cat /tmp/syslog.log |grep dropbear

wengi
06-01-2008, 10:38
Hi,

only to correct it. The path to the log is different if you installed with my howto:[admin@blechbuechse root]$ cat /opt/var/log/messages | grep -i dropbear
Jan 1 01:00:08 post-boot: starting dropbear:
Jan 1 01:00:08 dropbear[93]: Running in background
Jan 6 10:24:47 dropbear[3496]: password auth succeeded for 'admin' from ::ffff:192.168.1.21:1148
[admin@blechbuechse root]$

wengi

al37919
06-01-2008, 11:05
wengi, it's a good idea to put a symlink:
ln -s /opt/var/log/messages /tmp/syslog.log
Then you will be able to see log from the web-IF, and the above statements will be correct.

wengi
06-01-2008, 11:26
This is indeed a very good idea!!!
Didn't think about it until now.

Thanks :cool:

wengi

wengi
06-01-2008, 11:40
Hi all,

I made a little change in the syslog config.

There are two lines added to /opt/etc/init.d/S05syslogd:
# remove old syslog.log
rm /tmp/syslog.log
# add symlink so log is available at old location (e.g. for webinterface)
ln -s /opt/var/log/messages /tmp/syslog.log

/sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7

Background:

syslog is now linked to /tmp/syslog.log.
In result the syslog is viewable in the webinterface again.

Howto is updated
Thanks to al37919 for this.

wengi

velcrow
11-01-2008, 00:09
Hi Wengi,

Have just finished re-setting up my asus wlg500p with a USB WD Passport 250GB.

I wanted to replace the old USB harddisk (which worked for a year - no problems) with one that needed no external power supply.

Anyway, I was revisiting these forums and just wanted to thank you again for all your great posts - they are excellent!

Velcrow

wengi
11-01-2008, 08:51
Hi,

nice to hear that. Thank you ;)

wengi

Syl
11-01-2008, 19:20
Hi i was just wondering why i can't connect to ma usb hdd?? any clue?
on that hdd i have first partition ntfs, second after format swap and last one ext3

[admin@(none) root]$ dmesg |grep sda
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)



Jan 1 00:00:04 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
Jan 1 00:00:04 kernel: hub.c: USB hub found
Jan 1 00:00:04 kernel: hub.c: 4 ports detected
Jan 1 00:00:05 kernel: usb.c: registered new driver usblp
Jan 1 00:00:05 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 00:00:05 kernel: usb.c: registered new driver audio
Jan 1 00:00:05 kernel: audio.c: v1.0.0:USB Audio Class driver
Jan 1 00:00:05 kernel: hub.c: connect-debounce failed, port 2 disabled
Jan 1 00:00:05 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 00:00:05 kernel: Initializing USB Mass Storage driver...
Jan 1 00:00:05 kernel: usb.c: registered new driver usb-storage
Jan 1 00:00:05 kernel: USB Mass Storage support registered.
Jan 1 00:00:05 kernel: hub.c: new USB device 01:03.2-2, assigned address 2
Jan 1 00:00:06 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 00:00:06 kernel: Vendor: USB Model: Storage Rev: 1.04
Jan 1 00:00:06 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 00:00:06 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 00:00:06 kernel: SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
Jan 1 00:00:06 kernel: Partition check:
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 0
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 2
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 4
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 6
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 0
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 2
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 4
Jan 1 00:00:06 kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jan 1 00:00:06 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
Jan 1 00:00:06 kernel: I/O error: dev 08:00, sector 6
Jan 1 00:00:06 kernel: unable to read partition table
Jan 1 00:00:06 kernel: usb.c: USB disconnect on device 01:03.2-2 address 2
Jan 1 00:00:06 portmap[102]: user rpc not found, reverting to user bin
Jan 1 00:00:06 statd[103]: Version 1.0.7 Starting
Jan 1 00:00:06 statd[103]: statd running as root. chown /var/lib/nfs/sm to choose different user
Jan 1 00:00:06 statd[103]: gethostbyname error for (none)
Jan 1 00:00:07 kernel: vlan1: Setting MAC address to 00 1d 60 46 90 37.
Jan 1 00:00:07 kernel: VLAN (vlan1): Underlying device (eth0) has same MAC, not checking promiscious mode.
Jan 1 00:00:07 udhcpc[112]: udhcpc (v0.9.9-pre) started
Jan 1 00:00:07 dnsmasq[75]: read /etc/hosts - 4 addresses
Jan 1 00:00:07 dnsmasq[75]: reading /tmp/resolv.conf
Jan 1 00:00:07 dhcp client: deconfig: lease is lost
Jan 1 00:00:07 udhcpc[112]: Lease of xxxxxx obtained, lease time 86484
Jan 1 00:00:07 dnsmasq[75]: read /etc/hosts - 4 addresses
Jan 1 00:00:07 dnsmasq[75]: reading /tmp/resolv.conf
Jan 1 00:00:07 dnsmasq[75]: using nameserver 212.76.33.102#53
Jan 1 00:00:07 dnsmasq[75]: using nameserver 212.76.33.104#53
Jan 1 00:00:08 dropbear[129]: Running in background
Jan 1 00:00:08 dhcp client: bound IP : xxxxxxxxxx from xxxxxxxxxxxxx
Jan 1 00:00:17 kernel: Device 08:00 not ready.
Jan 1 00:00:17 kernel: I/O error: dev 08:00, sector 2
Jan 1 00:00:17 kernel: EXT3-fs: unable to read superblock
Jan 1 00:00:17 kernel: MSDOS FS: Using codepage 950
Jan 1 00:00:17 kernel: MSDOS FS: IO charset cp950
Jan 1 00:00:17 kernel: Device 08:00 not ready.
Jan 1 00:00:17 kernel: I/O error: dev 08:00, sector 0
Jan 1 00:00:17 kernel: FAT: unable to read boot sector
Jan 1 00:00:17 kernel: FAT: freeing iocharset=cp950
Jan 1 00:00:17 kernel: Device 08:00 not ready.
Jan 1 00:00:17 kernel: I/O error: dev 08:00, sector 0
Jan 1 00:00:17 kernel: FAT: unable to read boot sector
Jan 1 00:00:17 kernel: Device 08:00 not ready.
Jan 1 00:00:17 kernel: I/O error: dev 08:00, sector 0
Jan 1 00:00:17 kernel: NTFS: Reading super block failed
Jan 11 17:55:29 ntp client: Synchronizing time with time.nist.gov ...
Jan 11 17:59:10 login[150]: root login on `pts/0'
Jan 11 18:00:11 kernel: hub.c: connect-debounce failed, port 2 disabled
Jan 11 18:01:21 kernel: hub.c: connect-debounce failed, port 2 disabled
Jan 11 18:01:45 kernel: hub.c: connect-debounce failed, port 2 disabled
Jan 11 18:02:09 kernel: hub.c: connect-debounce failed, port 2 disabled

wengi
14-01-2008, 08:56
Hi,
on that hdd i have first partition ntfs, second after format swap and last one ext3???

There are three partitions?
1 ntfs
2 swap
3 ext3

Does the drive work in a windows machine (the ntfs part)?
Can you be shure the drive has no bad sectors?

wengi

Arbadelli
15-01-2008, 20:19
My Compliments for this very helpfull Tutorial!!

But i have 2 strange things.

First i had a problem with Cron

The problem is: after a reboot, i have start cron myself.
i did many times, the CRON part, but everytime, after reboot, and pressing ps axf. He didn't show it:

PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
63 ? S 0:00 telnetd
67 ? S 0:28 httpd
72 ? S 0:00 klogd
73 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
74 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
85 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
90 ? Ss 0:00 rcamdmain
92 ? Ss 0:00 infosvr br0
93 ? Ss 0:00 watchdog
94 ? Ss 0:00 \_ ntp
102 ? S 0:00 dropbear
123 ? Ss 0:00 \_ dropbear
124 pts/0 Ss 0:00 \_ -sh
127 pts/0 R+ 0:00 \_ ps axf
107 ? S 0:00 [usb-storage-0]
108 ? S 0:00 [scsi_eh_0]
114 ? S 0:00 [kjournald]
115 ? S 0:00 [kjournald]


after each reboot, i start it manual by typing cron

so i could go on with the tutorial.

But at Part 9. TRANSMISSION (The torrent Client)

i have a prolbem at the end. the problem is by typing:
192.168.1.150:8008/cgi-bin/transmission.cgi

i get the message:

Kan geen verbinding maken

Firefox kan geen verbinding maken met de server op 192.168.1.150:8008.

* Misschien is de website tijdelijk niet beschikbaar of overbelast. Probeer over enkele ogenblikken opnieuw.

* Controleer uw netwerkverbinding indien u geen enkele pagina kunt laden.

* Verzeker u ervan dat Firefox toegang heeft tot het web als uw
computer of netwerk beveiligd is door een firewall of proxyserver.

that's dutch for:

Cannot make connection
Firecox cannot connect the server on 192.168.1.150:8008


Can you help me with these 2 problems?

If your wive can bring up the patience again :)

I hope,

greetings Emiel

Syl
17-01-2008, 20:01
Hi,
???

There are three partitions?
1 ntfs
2 swap
3 ext3

Does the drive work in a windows machine (the ntfs part)?
Can you be shure the drive has no bad sectors?

wengi

yes Im sure. there are 3 partitions exactly. ntfs is working under win xp, there is no bad sectors on it.

wengi
18-01-2008, 08:57
@Arbadelli

First of all: It seems that i missed your post. Sorry for the late reply.

Your problem ist rc.unslung!! The script is not executed.

- cron is not working
- syslog is not logging to /opt/var...
- busybox httpd is not running with transmission webinterface.

Check your post-boot if rc.unslung is started.
Check the content of rc.unslung
Make sur rc.unslung is executable

@Syl

Jan 1 00:00:06 kernel: unable to read partition table
Jan 1 00:00:06 kernel: usb.c: USB disconnect on device 01:03.2-2 address 2
There is something wrong with your partition table.
I recommend deleting the partitions and recreate them directly on the asus.

wengi

Arbadelli
18-01-2008, 23:59
WENGI VIELEN DANK!!

Thanks for your answer!
No problem it was a day later, it gives me more time to think about it ;)

Now i have solved the problem down here ( How? use in the webinterface a password, if you leave it blank, then it doesn't work!)

Now, i have a little problem with 10. SAMBA2

i have done that one, and when i use ps axf everything is running well, but when i put in 192.168.1.150:901 ( in web ). He cannot make connection:


401 Bad Authorization
username or password incorrect

I think i have problems with logging in. or the IP or your following text:

You should cutomize the IP settings as you need them and exchange "user = root" with admin -> "user = admin".

This is my script:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost 192.168.1.1/24
user = admin
server = /opt/sbin/swat
log_on_failure += USERID
disable = No
}
~


My homenetwork ( maybe interesting to know )

the modemcable goes to my Linksys WRT54G

i connected 2 pc's with this one, and one UTP cable is going to 1 LAN port of my Asus WL500gp. In another LAN port i plugged another UTP for one pc ( so, i can see if the router has got internet yes or no ) :)

the WRT54G ip is 192.168.1.1
the WL500GP ip is 192.168.1.150

My username to get with web or putty in is admin
( i changed the password, as you said in your tut)

so, how does my vi /opt/etc/xinetd.d/swat has to look like?

I tried many things, but i think not the good one.

thanks for your help offcourse :)

Arbadelli
20-01-2008, 03:20
Hello, everyone..

Here i am back again :)

i have got the next problem:
I've got 2 torrents in my Transmiossion.cgi, they are waiting now for about 1 hour, but the won't download. They are in the Active menu.

Progress: 0.00 %, 0 peers, dl from 0 (0.00 KB/s), ul to 0 (0.00 KB/s) Start: 01 Jan 01:01 End: 01 Jan 01:02 uploaded: 0.0 MB

How can i fix this problem, i think this is my last problem with Transmission, So i hope it's the last one, i am close to the end!

Thanks for helping and solving my last problem

EDIT:

i get the following information:

an 1 01:05:45 transmissiond[362]: Transmission daemon 1.01+ (4684) started - http://transmission.m0k.org/ at port 65534
Jan 1 01:05:45 transmission_watchdog: Transmission daemon restarted!
Jan 1 01:05:46 transmissiond[362]: Starting torrent /tmp/harddisk/torrent/work/Davilex Business Software.amp/Davilex Business Software.amp.torrent
Jan 1 01:05:46 transmissiond[362]: Starting torrent /tmp/harddisk/torrent/work/Trein/Trein.torrent
Jan 1 01:10:46 transmissiond[362]: Tracker: Error - Tracker could not be reached.
Jan 1 01:10:46 transmissiond[362]: Previous message repeated 3 times

and one extra question,

how can i put the right time in the router?

thanks for helping

wengi
21-01-2008, 11:34
Hi,

it is always a good idea to test transmission with a 100% working torrent file.
E.g. use OpenOffice as torrent: http://distribution.openoffice.org/p2p/index.html

If this does not work you will have to check if the port is opened and reachable.

For time adjustment: Use Webinterface or ntpclient in shell.

wengi

Arbadelli
22-01-2008, 20:11
EVERYTHING IS WORKING NOW!!!


Thanks a lot, i had one problem because i had 2 routers, and a modem.

I put the wrong default gateway in my Asus,
I told ( with that gateway ) he had to go the modem. but he had to go to the wrt54g router, because there was the port forwarding.

But anyway

Many thanks..

(shy) do you have also made a Tutorial for a webserver with php and mysql on my router??

So i can put here a online DVD Sofware on it ( http://vcddb.konni.com/

with this software i can make my own DVD Librarie :) See the link for information

Very thanks for helping

wengi
23-01-2008, 08:36
Hi,

no, i have no howto for php/mysql. But there are some postings in the forum about this.
Just to have it mentioned: An installation of apache / php / mysql will REALLY slow down you asus. And i mean slow!

But as i read, it can work.
Just give it a try.

wengi

Arbadelli
23-01-2008, 22:25
Hi,

But as i read, it can work.
Just give it a try.

wengi

Ok, Thanks for looking around!

But can i go with the different tutorials? or can i get problems with the Transmission tutorial?

I also looked at http://www.macsat.com/macsat/content/category/3/13/29/

and can i go on with this tut or can i get problems?

thanks for the answer again.

Greetings Arbadelli

wengi
24-01-2008, 09:59
Hi,

you can use any Tut you want.
Only one important thing: You allready have the "better ipkg" that is mentioned by macsat (http://www.macsat.com/macsat/content/view/73/29/).

You can directly start with " ipkg install mysql"

If you are going to change the username from "admin" to "root" there is one more thing:
You will also have to change your samba config to use "root" as guest account.

Have fun.
wengi

none
25-01-2008, 13:32
Hi there!

At the Step 2 (the ping commands) I can see that I don't have internet access on my asus. :'o(
After I connected with telnet, when I do ping www.google.com I have "UNKNOWN HOST"
and when I put the IP adress of the google server, I have "NETWORK UNREACHABLE"

The bizarre thing is that the computers connected to the Asus receive an IP adress and have access to the Internet without any problem...

I have no idea what and where I should look to find a solution. Anybody can help me in telling me where I should investigate?

Thanks!

PS: I use the firmware 1.9.2.7-8 and I don't use the WAN port. I use the LAN only.

none
25-01-2008, 14:18
Me again...

I did the ROUTE command and a friend told me that the Gateway was missing... so I did the following command:
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 dev br0

and then I could access internet from my asus box...
and do a ping on an ip of an internet website.

but each time I restart the asus, it looses the information :(

1. Why do I have to put the gateway by hand? Is there a filed I missed in the web interface`?

2. If I cannot use the webinterface... is there any config where I can save that new route table?

Thanks a lot for your help!

wengi
25-01-2008, 16:15
Hi,

in -8 and later firmwares you have to set the default gateway in the webinterface.
IP Config -> LAN -> default gateway
This will do the job :)

wengi

Edit: I changed the text in the HowTo to make this more clear.

none
25-01-2008, 16:31
Thank a lot for your answer! :)

I have the firmware 1.9.7.2-8, but ( :( :( )

in "IP Config", I don't have only "LAN"
it is actually "WAN & LAN"

so I suppose it is what you meant...
so then, in "WAN & LAN" I don't use WAN, so the only thing I can configure are:
->Host Name
->Ip Address
->Subnet Mask


no "default gateway" :(

I am lost... sniff!


EDIT: by the way, I have a WL500g Premium, maybe that is the problem?

wengi
25-01-2008, 21:32
Hi,

Just to get it right: The asus is connected to a modem and acts as router or do you have another router doing the internet stuff?

wengi

accsi
27-01-2008, 13:17
HI!

I'm newbie. I can't download IPKG Packet .
wget http://ipkg.nslu2-linux.org/feeds/op...-12_mipsel.ipk
gives a message:
wget: server returned error 404: HTTP/1.1 404 Not Found

What's the problem? What make I wrong?

Thanks
accsi

wengi
27-01-2008, 14:16
Hi,

as mentioned in the german thread:
http://ipkg.nslu2-linux.org/ is not reachable atm.

Not your fault. Just wait.

wengi

EDIT: Updated HowTo due to new version of uclib.

none
29-01-2008, 09:57
Thank you for your answer Wengi!
Sorry for the delay, I was sick...

To answer your question, my asus is connected to a modem-router that does everything concerning internet.

Does it answer your question?

Thanks again for your help!

wengi
29-01-2008, 10:13
Hi,

i think you operation mode is the wrong one.

Do the following:

- Make sure that webinterface -> System Setup -> Operation Mode is set to "Access Point"
- Make sure that webinterface -> IP Config -> LAN is set correctly corresponding to your network/router.

wengi

alex.bumbacea
29-01-2008, 17:22
this firmware can be user with download master?
LE: *used

wengi
29-01-2008, 18:04
Hi,

no, the oleg firmware does not include the download master.
(If this was your question, 'cause it is not that clear)

wengi

calebz
29-01-2008, 22:11
DM wont work on oleg.
You need transmission to download torrents.
Its better than DM but you need to put some time into configuration :)

alex.bumbacea
29-01-2008, 22:25
thx for your answers.
Now i have another :-s, i hope u don't mind.
Let's say i wanna use my router as torret client, lamp server and , of course, as a router. i would like to know if it has the power to do so much, and if it does, please tell me an aprox. number of torrents that i should let active in the same tine in the transmission conf.
LE: I managed to install a lamp, but i can not acces my web server from net.
In lan i have 192.168.10.0/24. I made PF from 80->192.168.10.1:8080. I can acces it from inside my net home with the public ip, but when somebody else try to access it, there si no answer. Any idea?

alex.bumbacea
31-01-2008, 16:30