mark_q4xprt
04-02-2008, 02:33
df
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
w
fdisk -l
mkswap /dev/discs/disc0/part1
mke2fs -j /dev/discs/disc0/part2
reboot
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 ]
#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/part1
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
================
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
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
================
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.
=======
SAMBA=
=======
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
[global]
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
SO_SNDBUF=8192
force user = admin
[torrent]
path=/opt/download1
writeable = yes
browseable = yes
[opt]
path=/opt/download2
writeable = yes
browseable = yes
[linux]
path=/opt
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>
#!/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
======================
ctrl o enter = save
ctrl x enter = exit
======================
chmod 755 /opt/etc/init.d/S97Samba # < enter >
reboot
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
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
w
fdisk -l
mkswap /dev/discs/disc0/part1
mke2fs -j /dev/discs/disc0/part2
reboot
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 ]
#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/part1
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
================
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
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
================
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.
=======
SAMBA=
=======
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
[global]
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
SO_SNDBUF=8192
force user = admin
[torrent]
path=/opt/download1
writeable = yes
browseable = yes
[opt]
path=/opt/download2
writeable = yes
browseable = yes
[linux]
path=/opt
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>
#!/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
======================
ctrl o enter = save
ctrl x enter = exit
======================
chmod 755 /opt/etc/init.d/S97Samba # < enter >
reboot
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