calebz
23-01-2008, 21:45
Hello
Id like to get a complete info about howto get transmission to work on kamikaze.
After I will get mine to work stable I will try to get a noob howto for all this.
As I am at very early stage of doing stuff I can 'log' all what Ive done here and with others here maybe we can get my router to work and get a noob howto for kamikaze with transmission.
At the moment Ive managed to flash it to kamikaze install Xwrt,qos,nano,install USB/ext2 stuff,ipkg-opt,transmission,gnuplot.
The 3 things that come in handy. As for QoS I havent configured everything nicely to filter traffic but my goal will be working VOIP while leeching torrents.
Kamikaze is a very nice system. As for me I had stock/oleg/Whiterussian/ and kamikaze is the most 'logical' one there is. Im pretty much a noob so everything I do is with howtos/tutorials/forums with the uber tool known as 'SEARCH'.
What you need to know before you get your hands on putty and start messing is:
A - The startup system is diffrent and messing with it too much may result with a softly bricked router. There is no flash bla bla thing here just plain and easy script files that do/set the stuff.This means if you overdo stuff in /etc/init.d/ or /etc/rc.d you might end up with serial connecting the router to save it.
Therefore I suggest fallowing a retarded rule to 1st get proper scripts into init.d and testing with start/stop/restart commands if everything is working like a charm.
How it works is 1st you need to put a your script in proper kamikaze format to
/etc/init.d - this doesnt mean that unplugging/restarting the router (accident?wife?power failure? anything...) just after you placed your BAD script into init.d will leave you with a lot of trouble and waste of time to get it back to default state. It wont start up these scripts unless you tell it to with '/etc/init.d/scriptname enable'.
To test simply issue '/etc/init.d/scriptname start' then change 'start' option to 'stop' and 'restart'. After you review your kernel log with Xwrt and be sure that everything works like a charm and for example your HDD is mounting/unmounting properly you can finally enable the script with the mentioned above '/etc/init.d/scriptname enable'
How should a startup script look like ?
Take a look with vi/nano at other scripts in init.d.
Basicly you kinda need all the lines till STOP=XX line.
START means when the script is started. Important if you have some stuff on your HDD and want it to run at boot. You have to remember when your HDD gets mounted so the stuff is available when your application script starts.
Stop is the other way around (as I understand ^^) at shutdown/reboot I guess. Also it is important to fallow the scheme of start() {..} stop() {..} etc.
For specific scripts that you want you can try to use SEARCH.
Also post it here with info what you wanted to do and how you did it. Will help spread the knowledge.
1. For getting kamikaze up it was easy for me as I already had WhiteRussian.
Fallow http://wiki.openwrt.org/OpenWrtDocs/Hardware/Asus/WL500GP?highlight=%28wl500%29
To get it to work with kamikaze and have qos,wifi,usbhdd.
(If u havent put stuff inside your router you need the brcm2.4 thing)
More information on usb howto ( a little outdated but it wont hurt you to read)
http://wiki.openwrt.org/UsbStorageHowto?highlight=%28usb%29
2. To get a webif fallow manual installation section here
http://wiki.x-wrt.org/index.php/Kamikaze_Installation#Install_X-Wrt_manually
3. To get ipkg-opt fallow
http://www.nslu2-linux.org/wiki/Optware/OpenWRT-brcm24Build
I skipped the part with "libpthread and libstdcpp for some Optware packages".
EDIT : Don't skip anything! You need this for transmission
For now everything works but most likely youll need it so dont be as lazy as I am and install it.
Somehow I couldnt get it to install with 'install' 'ipkg.sh install' so I found my own noobish way of adding the repository to Xwrt and installing it from there ^^.
4. To get samba to work Install it with ipkg-opt (you need a HDD or a stick for this as it takes MiBytes). Reading the tutorial here helps http://wl500g.info/showthread.php?t=10761
My startup scripts for usb HDD, swap,samba look like
#!/bin/sh /etc/rc.common
START=40
STOP=40
start()
{
echo -n "Testing USB Partition: "
e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part1 &
sleep 5
echo -n "Mounting USB drive: "
mount -t ext2 -o noatime /dev/scsi/host0/bus0/target0/lun0/part1 /opt
echo "Done."
}
stop()
{
echo -n "Umounting USB drive: "
sync
sync
umount /dev/scsi/host0/bus0/target0/lun0/part1
echo "Done."
}
restart()
{
stop
start
}
#!/bin/sh /etc/rc.common
START=40
echo "mounting swap...."
swapon /dev/scsi/host0/bus0/target0/lun0/part2
echo "done with swap"
#!/bin/sh /etc/rc.common
START=50
STOP=50
samba_active=1
start()
{
echo -n "Starting samba "
/opt/sbin/nmbd -D
/opt/sbin/smbd -D
echo "Done."
}
stop()
{
echo -n "Stopping samba: "
killall smbd
killall nmbd
echo "Done."
}
restart()
{
stop
sleep 2
start
}
As it is stated above Im stuck with getting busybox http to load transmission.
I keep spamming one guys PM box all the time but I think hes tired of me :)
So if anybody knows how to get transmission up on kamikaze from this point it would be nice if you keep this going.
Also remember to post everything you've done on Kamikaze and WL500gp.
It is always nice to find a complete or at least essential howto post around to go on.
Id like to get a complete info about howto get transmission to work on kamikaze.
After I will get mine to work stable I will try to get a noob howto for all this.
As I am at very early stage of doing stuff I can 'log' all what Ive done here and with others here maybe we can get my router to work and get a noob howto for kamikaze with transmission.
At the moment Ive managed to flash it to kamikaze install Xwrt,qos,nano,install USB/ext2 stuff,ipkg-opt,transmission,gnuplot.
The 3 things that come in handy. As for QoS I havent configured everything nicely to filter traffic but my goal will be working VOIP while leeching torrents.
Kamikaze is a very nice system. As for me I had stock/oleg/Whiterussian/ and kamikaze is the most 'logical' one there is. Im pretty much a noob so everything I do is with howtos/tutorials/forums with the uber tool known as 'SEARCH'.
What you need to know before you get your hands on putty and start messing is:
A - The startup system is diffrent and messing with it too much may result with a softly bricked router. There is no flash bla bla thing here just plain and easy script files that do/set the stuff.This means if you overdo stuff in /etc/init.d/ or /etc/rc.d you might end up with serial connecting the router to save it.
Therefore I suggest fallowing a retarded rule to 1st get proper scripts into init.d and testing with start/stop/restart commands if everything is working like a charm.
How it works is 1st you need to put a your script in proper kamikaze format to
/etc/init.d - this doesnt mean that unplugging/restarting the router (accident?wife?power failure? anything...) just after you placed your BAD script into init.d will leave you with a lot of trouble and waste of time to get it back to default state. It wont start up these scripts unless you tell it to with '/etc/init.d/scriptname enable'.
To test simply issue '/etc/init.d/scriptname start' then change 'start' option to 'stop' and 'restart'. After you review your kernel log with Xwrt and be sure that everything works like a charm and for example your HDD is mounting/unmounting properly you can finally enable the script with the mentioned above '/etc/init.d/scriptname enable'
How should a startup script look like ?
Take a look with vi/nano at other scripts in init.d.
Basicly you kinda need all the lines till STOP=XX line.
START means when the script is started. Important if you have some stuff on your HDD and want it to run at boot. You have to remember when your HDD gets mounted so the stuff is available when your application script starts.
Stop is the other way around (as I understand ^^) at shutdown/reboot I guess. Also it is important to fallow the scheme of start() {..} stop() {..} etc.
For specific scripts that you want you can try to use SEARCH.
Also post it here with info what you wanted to do and how you did it. Will help spread the knowledge.
1. For getting kamikaze up it was easy for me as I already had WhiteRussian.
Fallow http://wiki.openwrt.org/OpenWrtDocs/Hardware/Asus/WL500GP?highlight=%28wl500%29
To get it to work with kamikaze and have qos,wifi,usbhdd.
(If u havent put stuff inside your router you need the brcm2.4 thing)
More information on usb howto ( a little outdated but it wont hurt you to read)
http://wiki.openwrt.org/UsbStorageHowto?highlight=%28usb%29
2. To get a webif fallow manual installation section here
http://wiki.x-wrt.org/index.php/Kamikaze_Installation#Install_X-Wrt_manually
3. To get ipkg-opt fallow
http://www.nslu2-linux.org/wiki/Optware/OpenWRT-brcm24Build
I skipped the part with "libpthread and libstdcpp for some Optware packages".
EDIT : Don't skip anything! You need this for transmission
For now everything works but most likely youll need it so dont be as lazy as I am and install it.
Somehow I couldnt get it to install with 'install' 'ipkg.sh install' so I found my own noobish way of adding the repository to Xwrt and installing it from there ^^.
4. To get samba to work Install it with ipkg-opt (you need a HDD or a stick for this as it takes MiBytes). Reading the tutorial here helps http://wl500g.info/showthread.php?t=10761
My startup scripts for usb HDD, swap,samba look like
#!/bin/sh /etc/rc.common
START=40
STOP=40
start()
{
echo -n "Testing USB Partition: "
e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part1 &
sleep 5
echo -n "Mounting USB drive: "
mount -t ext2 -o noatime /dev/scsi/host0/bus0/target0/lun0/part1 /opt
echo "Done."
}
stop()
{
echo -n "Umounting USB drive: "
sync
sync
umount /dev/scsi/host0/bus0/target0/lun0/part1
echo "Done."
}
restart()
{
stop
start
}
#!/bin/sh /etc/rc.common
START=40
echo "mounting swap...."
swapon /dev/scsi/host0/bus0/target0/lun0/part2
echo "done with swap"
#!/bin/sh /etc/rc.common
START=50
STOP=50
samba_active=1
start()
{
echo -n "Starting samba "
/opt/sbin/nmbd -D
/opt/sbin/smbd -D
echo "Done."
}
stop()
{
echo -n "Stopping samba: "
killall smbd
killall nmbd
echo "Done."
}
restart()
{
stop
sleep 2
start
}
As it is stated above Im stuck with getting busybox http to load transmission.
I keep spamming one guys PM box all the time but I think hes tired of me :)
So if anybody knows how to get transmission up on kamikaze from this point it would be nice if you keep this going.
Also remember to post everything you've done on Kamikaze and WL500gp.
It is always nice to find a complete or at least essential howto post around to go on.