Bekijk de volledige versie : need help on how to set up

04-02-2008, 02:33
killall stupid-ftpd
umount /tmp/harddisk/

fdisk /dev/discs/disc0/disc

d n p 1 enter +512M <---for swap
t 1 82
n p 2 enter +200M <---for prog
n p 3 enter enter <-for downloded data


fdisk -l

mkswap /dev/discs/disc0/part1
mke2fs -j /dev/discs/disc0/part2
swapon /dev/discs/disc0/part1
mke2fs -j /dev/discs/disc0/part3

mkdir /opt/tmp # < enter >
mkdir /opt/tmp/ipkg # < enter >
cd /opt/tmp/ipkg
ipkg.sh update # < enter >
ipkg.sh install ipkg # < enter >
/opt/bin/ipkg update # < enter >
/opt/bin/ipkg install nano # < enter >

mkdir /usr/local < enter >
mkdir /usr/local/sbin < enter >
touch /usr/local/sbin/post-boot < enter >
touch /usr/local/sbin/post-firewall < enter >
chmod +x /usr/local/sbin/* < enter >

/opt/bin/nano /usr/local/sbin/post-boot

# 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 ]
#insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s

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

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

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

# Run all active services - active means starts with S

save ctrl+O+enter ctrl+x=

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

for i in /opt/etc/init.d/S??* ;do

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

case "$i" in
# Source shell script for speed.
set start
. $i
# No sh extension, so fork subprocess.
$i start


save ctrl+O+enter ctrl+x=
chmod +x /opt/etc/init.d/rc.unslung

flashfs save && flashfs commit && flashfs enable && reboot

Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only

file system" your HDD (here the IPKG pertition) is NOT mounted.


mkdir /opt/etc/samba # < enter >
mkdir /opt/download1 # < enter >
mkdir /opt/download2 # < enter >
nano /opt/etc/samba/smb.conf # < enter >

WORKGROUP = name of your group

workgroup = WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

force user = admin

writeable = yes
browseable = yes

writeable = yes
browseable = yes

writeable = yes
browseable = yes

writeable = yes
browseable = yes
ctrl o enter = save
ctrl x enter = exit

chmod 777 /opt/download1
chmod 777 /opt/download2
chmod 777 /opt/etc/init.d/
chmod 777 /opt
chmod 777 /opt/share/www/images

nano /opt/etc/init.d/S97Samba # <enter>

/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s
/usr/sbin/nmbd -D -n myasus -o -l /tmp -s

ctrl o enter = save
ctrl x enter = exit

chmod 755 /opt/etc/init.d/S97Samba # < enter >


ps |grep "smb" < enter >

is there something wrong in what ive done ?

this is the only one that appears

ps |grep "smb"
304 admin 376 R grep smb

please feel free to edit my guide up there

04-02-2008, 08:01
also ill be using vista

04-02-2008, 12:54
What exactly is your question?

is it with the ps |grep "smb" thing? that you only see something with smb? (because you're filtering with 'smb')

Or do you have other problems.

05-02-2008, 01:49
i cant run samba

and now im trying to run samba2 for vista compatibility but

when i tried nano

[admin@myasus root]$ nano /opt/etc/init.d/rc.unslung
Error opening terminal: linux.

05-02-2008, 11:55
Are you using WLHDD or a wl500g (premium) with usb-disk attached?

I saw in your post-boot file that you've not uncommented the 4 lines in the post boot in order to prepare usb-disc before mounting.

probably, that's why discs aren't mounted and software/packages can not be started.

# 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 ]
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s

(uncomment last 4 lines like above)

what's your output of the command: df and mount ?
mine looks like this:

[admin@NAS root]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3008 3008 0 100% /
/dev/root 3008 3008 0 100% /
9851340 442712 8908204 5% /opt
470371152 360481756 85995924 81% /mnt


/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/part1 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /mnt type ext3 (rw,noatime)

Also, which tutorial did you use to set it up. and,
which firmware do you have installed?

05-02-2008, 12:00
im using wl-500g premium
with a usb enclosure

i manage to make the samba work by following the steps for samba2 how ever im having a problem accesing the shared folder it seems like its taking too long and sometimes hang my windows explorer

anyway ill reformat again and boot on my vista since im just experementing the router right now in windows xp sp2

so which is compatible for vista?
samba in olegs fw
samba2 or samba 3

also whats the best torrent manager so i can acces or view it anywhere when eve im not at home, also im planning to put a php+sql for joomla

any suggestions?

thank you

the link that i followed

fw release

05-02-2008, 12:33

if it's taking a long time, maybe some other processes are running on the router which take up a lot of cpu time.

log on to the router and use command: top
this is some kind of 'task-manager' which will tell you which processes are taking cpu time and how much..

if total load is not high, and samba still responds slow, try priority settings for samba as described in this thread.

I've never used the samba in oleg's firmware, nor have I used samba3
samba2 is working for me, vista included.