Thanks all.
I will try that you offered. :)
MrPeeth
Printable View
I have changed my firmware on wl-500w to the org asus 2.0.01 from oleg version 10.
I have installed Hdd with the guide 4a.
Now i cant find the HDD.
What are the folders called/partions on the HDD called??
What can i do?
Hi all gurus,
I applied lots of these configuration to my ASUS fw, what is done by engy from Czech Rep. due to the support for CDMA/HSDPA devices.
Everything works for me, I installed Samba3 and now I'm able to access it on the address of the router on a port 901, but have a serious problem with Transmission, which doesn't work at all.
I applied a step-by-step tutorial from this thread, but my Transmission is probably not running, see my output from "ps axf" below:
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:02 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
45 ? S 0:00 telnetd
50 ? S 0:03 httpd eth1
55 ? S 0:00 klogd
56 ? S 0:00 snmpd -c /tmp/snmpd.conf
60 ? S 0:00 [dnsmasq]
62 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
65 ? S 0:00 [khubd]
74 ? Ss 0:00 lpd
76 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
79 ? Ss 0:00 waveservermain
81 ? Ss 0:00 rcamdmain
85 ? S 0:00 [usb-storage-0]
86 ? S 0:00 [scsi_eh_0]
99 ? Ss 0:00 infosvr br0
100 ? Ss 0:00 watchdog
104 ? Ss 0:00 \_ ntp
113 ? S 0:00 dropbear
1132 ? Ss 0:01 \_ dropbear
1133 pts/1 Ss 0:00 \_ -sh
1218 pts/1 R+ 0:00 \_ ps axf
127 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
144 ? S 0:00 [kjournald]
145 ? S 0:00 [kjournald]
148 ? Ss 0:00 /usr/sbin/vsftpd
186 ? Ss 0:00 [smbd]
199 ? S 0:00 \_ [smbd]
1217 ? S 0:00 \_ [smbd]
188 ? Ss 0:00 /opt/sbin/nmbd -D -n rybarrouter -o -l /tmp -s /opt/etc/samba/smb.conf
193 ? Ss 0:00 /opt/sbin/cron
203 ? Ss 0:00 /opt/sbin/xinetd -pidfile /var/run/xinetd.pid
213 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
219 ? S 0:00 upnp -D -L br0 -W eth1
533 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
Can anybody help me, where can be a problem?
@nunbaggi
i am not sure if the original firmware will accept the partitions made with oleg and my howto. No experience with this.
Maybe anyone else can help?
@Kubicz
Is the webinterface accessible?
If yes:
- Control if transmission is paused. If yes -> press pause button.
- Press watchdog button to start deamon
wengi
Well, webinterface is accessible but there is an error:
Unable to find recent transfer stats in syslog
13:02:28 up 18 min, load average: 0.25, 0.67, 0.65
From ps I understood it that transmission is not running, so than I pressed pause button and result is:
touch: /.paused: Read-only file system /opt/share/www/cgi-bin/transmission.cgi: kill: 788: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] Stopping transmissison!
Transmission will eventually stop. Last Log line should report transmissiond exiting.
Unable to find recent transfer stats in syslog
13:04:39 up 20 min, load average: 0.02, 0.43, 0.56
After pressing Watchdog it generates:
touch: /.watchdog: Read-only file system BusyBox v1.1.3 (2008.03.30-21:31+0000) multi-call binary Usage: rm [OPTION]... FILE... /opt/sbin/transmission_watchdog: kill: 304: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] Usage: transmissiond [options] active-torrents.txt [options] Options: -h, --help Print this help and exit -v, --verbose Verbose level implies foreground (0 to 2, default = 0) -p, --port Port we should listen on (default = 51413) -u, --upload Maximum upload rate (-1 = no limit, default = 20) -d, --download Maximum download rate (-1 = no limit, default = -1) -f, --finish Command you wish to run on completion -n --nat-traversal Attempt NAT traversal using NAT-PMP or UPnP IGD -w, --watchdog Watchdog interval in seconds (default = 600) -i, --pidfile PID file path -e, --encryption Turns on encryption as preferred Signals: HUP reload active-torrents.txt and start/stop torrents USR1 write .status files into torrent directories USR2 list active torrents rm: cannot remove `/.watchdog': No such file or directory
13:06:14 up 21 min, load average: 0.07, 0.32, 0.50
Hi,
"Unable to find recent transfer stats in syslog" is normal if you didnt dl torrents before.
It seems that transmission can not write to the WORK directory.
Check permissions of the WORK directory and have a look at your syslog for errors.
wengi
Hi,
Thanks for a tools you proposed me.
First thing I haven't known before - OK than.
Work is configured through chmod, I did it by collective command: chmod -R ugoa+w /tmp/harddisk/torrent
In syslog (/opt/var/log/syslog.log) I have there errors:
Jun 6 10:25:34 xinetd[201]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/swat] [line=7]
But than I have no problem. At the end I've been posting log from last reboot after initializing DHCP server.
Jan 1 01:00:06 dnsmasq[60]: bad name at /etc/hosts line 3
Jan 1 01:00:06 dnsmasq[60]: read /etc/hosts - 7 addresses
Jan 1 01:00:06 dnsmasq[60]: read /etc/ethers - 2 addresses
Jan 1 01:00:06 dnsmasq[60]: reading /tmp/resolv.conf
Jan 1 01:00:06 kernel: usb.c: registered new driver usbdevfs
Jan 1 01:00:06 kernel: usb.c: registered new driver hub
Jan 1 01:00:06 kernel: usb-uhci.c: $Revision: 1.275 $ time 23:51:07 Mar 30 2008
Jan 1 01:00:06 kernel: usb-uhci.c: High bandwidth mode enabled
Jan 1 01:00:06 kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
Jan 1 01:00:06 kernel: ECHI PCI device 30381106 found.
Jan 1 01:00:06 kernel: UCHI reg 0x41 = 10
Jan 1 01:00:06 kernel: UCHI reg 0x41 changed to = 0
Jan 1 01:00:06 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 01:00:06 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:06 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 01:00:06 kernel: Product: USB UHCI Root Hub
Jan 1 01:00:06 kernel: SerialNumber: 100
Jan 1 01:00:06 kernel: hub.c: USB hub found
Jan 1 01:00:06 kernel: hub.c: 2 ports detected
Jan 1 01:00:06 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan 1 01:00:06 kernel: ECHI PCI device 30381106 found.
Jan 1 01:00:06 kernel: UCHI reg 0x41 = 10
Jan 1 01:00:06 kernel: UCHI reg 0x41 changed to = 0
Jan 1 01:00:06 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 01:00:06 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:07 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 01:00:07 kernel: Product: USB UHCI Root Hub
Jan 1 01:00:07 kernel: SerialNumber: 120
Jan 1 01:00:07 kernel: hub.c: USB hub found
Jan 1 01:00:07 kernel: hub.c: 2 ports detected
Jan 1 01:00:07 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 01:00:07 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 01:00:07 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 01:00:07 kernel: ehci_hcd 01:03.2: irq 12, pci mem c0004000
Jan 1 01:00:07 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 01:00:07 kernel: ECHI PCI device 31041106 found.
Jan 1 01:00:07 kernel: ECHI reg 0x49 = 80010f20
Jan 1 01:00:07 kernel: ECHI reg 0x49 changed to = 80010f00
Jan 1 01:00:07 kernel: ECHI reg 0x4b = 80010f09
Jan 1 01:00:07 kernel: ECHI reg 0x4b changed to = 80010f29
Jan 1 01:00:07 kernel: PCI: 01:03.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32
Jan 1 01:00:07 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
Jan 1 01:00:07 kernel: Manufacturer: Linux 2.4.20 ehci_hcd
Jan 1 01:00:07 kernel: Product: PCI device 1106:3104
Jan 1 01:00:07 kernel: SerialNumber: 01:03.2
Jan 1 01:00:07 kernel: hub.c: USB hub found
Jan 1 01:00:07 kernel: hub.c: 4 ports detected
Jan 1 01:00:07 kernel: hub.c: connect-debounce failed, port 1 disabled
Jan 1 01:00:08 dnsmasq[60]: DHCPREQUEST(br0) 10.10.10.4 00:1d:e0:9c:e4:1f
Jan 1 01:00:08 dnsmasq[60]: DHCPACK(br0) 10.10.10.4 00:1d:e0:9c:e4:1f MCCK_Rybar
Jan 1 01:00:08 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan 1 01:00:08 kernel: Manufacturer: Western Digital
Jan 1 01:00:08 kernel: Product: External HDD
Jan 1 01:00:08 kernel: SerialNumber: 574341505A30363735393839
Jan 1 01:00:08 kernel: usb.c: USB device 2 (vend/prod 0x1058/0x910) is not claimed by any active driver.
Jan 1 01:00:08 kernel: Length = 18
Jan 1 01:00:08 kernel: DescriptorType = 01
Jan 1 01:00:08 kernel: USB version = 2.00
Jan 1 01:00:08 kernel: Vendor:Product = 1058:0910
Jan 1 01:00:08 kernel: MaxPacketSize0 = 64
Jan 1 01:00:08 kernel: NumConfigurations = 1
Jan 1 01:00:08 kernel: Device version = 1.06
Jan 1 01:00:08 kernel: Device Class:SubClass:Protocol = 00:00:00
Jan 1 01:00:08 kernel: Per-interface classes
Jan 1 01:00:08 kernel: Configuration:
Jan 1 01:00:08 kernel: bLength = 9
Jan 1 01:00:08 kernel: bDescriptorType = 02
Jan 1 01:00:08 kernel: wTotalLength = 0020
Jan 1 01:00:08 kernel: bNumInterfaces = 01
Jan 1 01:00:08 kernel: bConfigurationValue = 01
Jan 1 01:00:08 kernel: iConfiguration = 00
Jan 1 01:00:08 kernel: bmAttributes = c0
Jan 1 01:00:08 kernel: MaxPower = 2mA
Jan 1 01:00:08 kernel:
Jan 1 01:00:08 kernel: Interface: 0
Jan 1 01:00:08 kernel: Alternate Setting: 0
Jan 1 01:00:08 kernel: bLength = 9
Jan 1 01:00:08 kernel: bDescriptorType = 04
Jan 1 01:00:08 kernel: bInterfaceNumber = 00
Jan 1 01:00:08 kernel: bAlternateSetting = 00
Jan 1 01:00:08 kernel: bNumEndpoints = 02
Jan 1 01:00:08 kernel: bInterface Class:SubClass:Protocol = 08:06:50
Jan 1 01:00:08 kernel: iInterface = 00
Jan 1 01:00:08 kernel: Endpoint:
Jan 1 01:00:08 kernel: bLength = 7
Jan 1 01:00:08 kernel: bDescriptorType = 05
Jan 1 01:00:08 kernel: bEndpointAddress = 81 (in)
Jan 1 01:00:08 kernel: bmAttributes = 02 (Bulk)
Jan 1 01:00:08 kernel: wMaxPacketSize = 0200
Jan 1 01:00:08 kernel: bInterval = 00
Jan 1 01:00:08 kernel: Endpoint:
Jan 1 01:00:08 kernel: bLength = 7
Jan 1 01:00:08 kernel: bDescriptorType = 05
Jan 1 01:00:08 kernel: bEndpointAddress = 02 (out)
Jan 1 01:00:08 kernel: bmAttributes = 02 (Bulk)
Jan 1 01:00:08 kernel: wMaxPacketSize = 0200
Jan 1 01:00:08 kernel: bInterval = 00
Jan 1 01:00:09 kernel: usb.c: registered new driver usblp
Jan 1 01:00:09 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:10 kernel: usb.c: registered new driver audio
Jan 1 01:00:10 kernel: audio.c: v1.0.0:USB Audio Class driver
Jan 1 01:00:11 kernel: Linux video capture interface: v1.00
Jan 1 01:00:11 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 01:00:11 kernel: Initializing USB Mass Storage driver...
Jan 1 01:00:11 kernel: usb.c: registered new driver usb-storage
Jan 1 01:00:11 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 01:00:11 kernel: Vendor: WD Model: 3200AAJ External Rev: 1.06
Jan 1 01:00:11 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 01:00:11 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 01:00:11 kernel: SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
Jan 1 01:00:11 kernel: Partition check:
Jan 1 01:00:13 dnsmasq[60]: DHCPINFORM(br0) 10.10.10.4 00:1d:e0:9c:e4:1f
Jan 1 01:00:13 dnsmasq[60]: DHCPACK(br0) 10.10.10.4 00:1d:e0:9c:e4:1f MCCK_Rybar
Jan 1 01:00:17 kernel: p1 p2 p3
Jan 1 01:00:17 kernel: USB Mass Storage support registered.
Jan 1 01:00:17 udhcpc[97]: udhcpc (v0.9.9-pre) started
Jan 1 01:00:18 dnsmasq[60]: bad name at /etc/hosts line 3
Jan 1 01:00:18 dnsmasq[60]: read /etc/hosts - 7 addresses
Jan 1 01:00:18 dnsmasq[60]: read /etc/ethers - 2 addresses
Jan 1 01:00:18 dnsmasq[60]: reading /tmp/resolv.conf
Jan 1 01:00:18 dhcp client: deconfig: lease is lost
Jan 1 01:00:18 kernel: usb.c: deregistering driver usblp
Jan 1 01:00:18 kernel: usb.c: deregistering driver audio
Jan 1 01:00:18 dropbear[114]: Running in background
Jan 1 01:00:20 udhcpc[97]: Lease of 172.20.1.8 obtained, lease time 86400
Jan 1 01:00:20 dnsmasq[60]: bad name at /etc/hosts line 3
Jan 1 01:00:20 dnsmasq[60]: read /etc/hosts - 7 addresses
Jan 1 01:00:20 dnsmasq[60]: read /etc/ethers - 2 addresses
Jan 1 01:00:20 dnsmasq[60]: reading /tmp/resolv.conf
Jan 1 01:00:20 dnsmasq[60]: using nameserver 172.20.1.1#53
Jan 1 01:00:22 dhcp client: bound IP : 172.20.1.8 from 172.20.1.1
Jan 1 01:00:28 kernel: Adding Swap: 506008k swap-space (priority -1)
Jun 6 15:53:21 e2fsck: /dev/discs/disc0/part2: recovering journal
Jun 6 15:53:21 e2fsck: /dev/discs/disc0/part2: clean, 9090/125696 files, 43390/251015 blocks
Jun 6 15:53:21 e2fsck: /dev/discs/disc0/part3: clean, 109/38895616 files, 5026592/77764640 blocks
Jun 6 15:53:21 kernel: kjournald starting. Commit interval 5 seconds
Jun 6 15:53:21 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
Jun 6 15:53:21 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jun 6 15:53:22 kernel: kjournald starting. Commit interval 5 seconds
Jun 6 15:53:22 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
Jun 6 15:53:22 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jun 6 15:53:22 USB storage: ext3 fs at /dev/discs/disc0/part3 mounted to /tmp/mnt/disc0_3
Jun 6 15:53:22 rc.unslung: start service /opt/etc/init.d/S05syslogd
Jun 6 15:53:22 System log daemon exiting.
Jun 6 15:53:24 syslogd started: BusyBox v1.1.3
Jun 6 15:53:24 syslogd: started.
Jun 6 15:53:24 rc.unslung: start service /opt/etc/init.d/S08samba
Jun 6 15:53:27 rc.unslung: start service /opt/etc/init.d/S10cron
Jun 6 15:53:27 /opt/sbin/cron[193]: (CRON) STARTUP (V5.0)
Jun 6 15:53:28 rc.unslung: start service /opt/etc/init.d/S10xinetd
Jun 6 15:53:28 rc.unslung: start service /opt/etc/init.d/S80busybox_httpd
Jun 6 15:53:28 xinetd[203]: xinetd Version 2.3.14 started with no options compiled in.
Jun 6 15:53:28 xinetd[203]: Started working: 1 available service
Jun 6 15:53:37 ntp client: Synchronizing time with time.nist.gov ...
Jun 6 15:57:58 dropbear[222]: password auth succeeded for 'kubicz' from 10.10.10.4:52442
Jun 6 16:00:01 /opt/sbin/cron[230]: (kubicz) CMD (nice transmission_watchdog)
Jun 6 16:00:07 transmission_watchdog: Transmission daemon restarted!
Another thing, if I click within the webinterface to log, it shows me:
sed: Empty filename
Creating graph...
/opt/share/www/cgi-bin/transmission.cgi: /opt/share/www/cgi-bin/transmission.cgi: 788: cannot create : Directory nonexistent
16:30:43 up 7 min, load average: 0.03, 0.05, 0.03
In bookmark "URL", there is a no box for filling a link.
I found an article on http://www.nslu2-linux.org/wiki/Optware/Transmission and problem might be cause because my root account is not "admin/root", but "kubicz". I was trying to find to change something in "transmission.cgi" but without result!
Hi,
The download speed is very low on my wl 500gp V2 with 1.9.2.7-10 firmware. I followed wengi's guide for setting up my sistem (asus + HDD).
the same torrent: on pc I get 137 - 152kb/s and 34 peers dl from 11 (using uTorrent) and on asus I get 9 - 15kb/s and 5 peers dl from 2.
another torrent: on PC 1,3 - 2Mb/s 1194 peers dl from 36, and on asus .... 11 peers dl from 1 at 6.6 kb/s
What am I missing?
I have transmission setup without using admin for the username. Make sure to check the transmission_watchdog entry in the crontab file and change admin to your username. I also have transmission in a non-standard folder from the server so it doesn't appear to have anything hardcoded. It also worked fine downloading at 50KB/sec (I set that limit). The major thing I was concerned about is how the router would handle it. In the past I had issue with too many things running and torrents now so I didn't know how it would handle but it appears to have done fine last night.
Configuration:
IPv6 enabled (radvd is running)
Lighttpd server w/ php FCGI (eaccelerator enabled, 8080 external, 8081 internal)
2 SSH servers w/ SFTP (one internal -- one external)
Cron jobs
Transmission torrent client using Lighttpd for interface
A crap load of additional stuff including a, hopefully working, build environment. Memory is pretty much full but the system has been going over to swap as I had hoped.
The attached file is how I got cgi working in lighttpd (I know some had questions about it). Note that it only defines the .cgi extension. I assume that if you want to do .pl files as well you would install perl and add it to my file since it already enables mod_cgi. If you need additional information then you can always check the lighttpd docs @ http://trac.lighttpd.net/trac/wiki/Docs
This was probably not a reply to my post, because I can't use anything you written down there.
My crontab contains raw:
*/30 * * * * kubicz nice transmission_watchdog, but by "ps" command I see no transmission process running.
Will not change my admin account from "kubicz" to "admin", because I had to change settings in many apps I have on my ASUS.
I am using default busybox_httpd instead of an additional lighthttpd.
Your right. I must of been out of it that night. Anyways your crontab looks fine. It is working ok using a username other than admin for me as well. I actually run it in low priority too ( I won't go into detail). Here is the contents of the section of code that controls the log list.
Note the lines in bold.Code:# Show transfer log from log file
# Replace "transmissiond" with "transmission" if all logs are preferred
_log ()
{
if [ ! -r ${SYSLOG} ]; then
echo "<p>${SYSLOG} not readable. Properly configure syslogd at "
echo "system startup.</p>"
return
fi
echo "<pre>"
sed -n -e "/ transmission.*:/{s/.*: \([0-9]\{1,10\}\) [0-9]\{1,\} dl \([0-9.]\{1,\}\) ul \([0-9.]\{1,\}\) ld \([0-9.]\{1,\}\)/\1 \2 -\3 \4/;t data;p;b;:data w ${GNUPLOT_DATA}" -e "}" ${SYSLOG}
echo "</pre>"
if [ ! -x ${GNUPLOT} ]; then
echo "<p>gnuplot: ${GNUPLOT} not found. Properly configure paths "
echo "in transmission.conf for transfer graphing!</p>"
return
fi
echo "<p>Creating graph...</p>"
TZO=${TIMEZONE_OFFSET:-0}
cat > ${GNUPLOT_COMMAND} << __EOF__
set terminal png small size 800,320
set output '${GNUPLOT_OUTPUT}'
set xdata time
set timefmt "%s"
set format x "%H:%M\n%m/%d"
set ytics nomirror
set y2tics nomirror
set y2range [0:]
set ylabel "Transmission transfer rate [kB/s]"
set y2label "System load (5 min average)"
set y2tics 1
set xlabel "Time [UTC ${TZO} seconds]"
plot '${GNUPLOT_DATA}' using (\$1+86400+${TZO}):2 title 'download' axis x1y1 with impulses, \
'${GNUPLOT_DATA}' using (\$1+86400+${TZO}):3 title 'upload' with impulses, \
'${GNUPLOT_DATA}' using (\$1+86400+${TZO}):4 axis x1y2 title 'load' with lines
quit
__EOF__
${GNUPLOT} ${GNUPLOT_COMMAND}
echo "<img src=\"${HTTP_IMG_LOCATION}\">"
}
The first one calls sed and parses the system log. Looks like GNUPLOT_DATA may not be set. Also the same goes for the second one but instead referring to GNUPLOT_COMMAND. Give me a sec and I'll rig up the function with some debug lines to see what those settings are being recorded as. Maybe even show us the command lines that are being attempted.
EDIT: I've rigged up the _log() function with echo lines that will output the current value of the variables used in this function as well as the command lines as they are being executed. I did not bother to echo back the contents of the file that was being created yet. I can always add that. I did check and the file works fine even with these lines added.
Anyways backup your current copy of transmission.cgi and use the one that is attached instead. Try checking the Log area then copy and paste in the bolded lines in the file. These are the ones that I need to see what might be wrong.
P.S. - I could probably do this all over the place if I really wanted to. I kinda got used to the way the script is coded and can get around pretty easily now. Oleg did a good job organizing it.
Ok guys. I am going to setup a secure openssh configuration similar to the dropbear one and I'll post the details here. Right off the bat you would want the following packages installed (plus dependencies).
openssh
openssh-sftp-server
scponly
I'll also cover doing a chroot configuration for scponly using scponlyc. I think I have the chroot environment already however it doesn't appear to work with dropbear. It drops the connection when it tries to chroot. :(
This is a directory listing of my chroot environment. In includes the vital items including their current working location. It was generated from my current tar archive that I will use to recreate it every time the router reboots. Currently it has dropbear instead of openssh in it. This will change once I have openssh working. The nice thing with openssh is that I should be able to re-create my current setup (2 ports -- 2 different configurations) with one sshd server and one sshd_config file. Hopefully.
There are alot of links there because of dropbear and busybox.Code:drwxr-xr-x shinji/root 0 2008-06-12 20:43 bin/
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/rmdir -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/rm -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/mv -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/mkdir -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/ls -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/ln -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/chown -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/chmod -> busybox
lrwxrwxrwx shinji/root 0 2008-06-12 20:44 bin/chgrp -> busybox
-rwxr-xr-x shinji/root 1291000 2008-06-12 20:43 bin/busybox
drwxr-xr-x shinji/root 0 2008-06-12 20:46 etc/
-rw-r--r-- shinji/root 33 2008-06-12 20:47 etc/group
-rw-r--r-- shinji/root 113 2008-06-12 20:47 etc/passwd
-rw-r--r-- shinji/root 23 2008-06-12 20:46 etc/ld.so.conf
-rw-r--r-- shinji/root 1097 2008-06-12 20:46 etc/ld.so.cache
drwxr-xr-x shinji/root 0 2008-06-12 20:51 lib/
-rwxr-xr-x shinji/root 5816 2008-06-12 21:02 lib/libutil.so.0
-rwxr-xr-x shinji/root 27108 2008-06-12 20:56 lib/ld-uClibc.so.0
-rwxr-xr-x shinji/root 501260 2008-06-12 20:56 lib/libc.so.0
-rwxr-xr-x shinji/root 84212 2008-06-12 20:56 lib/libm.so.0
-rwxr-xr-x shinji/root 14756 2008-06-12 20:56 lib/libcrypt.so.0
drwxr-xr-x shinji/root 0 2008-06-12 20:50 opt/
drwxr-xr-x shinji/root 0 2008-06-12 20:58 opt/lib/
-rwxr-xr-x shinji/root 27104 2008-06-12 21:01 opt/lib/ld-uClibc.so.0
-rw-r--r-- shinji/root 698368 2008-06-12 21:00 opt/lib/libc.so.0
-rw-r--r-- shinji/root 68368 2008-06-12 21:00 opt/lib/libgcc_s.so.1
-rw-r--r-- shinji/root 1628 2008-06-12 20:59 opt/lib/libresolv.so.0
-rw-r--r-- shinji/root 11552 2008-06-12 20:59 opt/lib/libcrypt.so.0
-rw-r--r-- shinji/root 76300 2008-06-12 20:59 opt/lib/libz.so
-rw-r--r-- shinji/root 4832 2008-06-12 20:59 opt/lib/libutil.so.0
-rw-r--r-- shinji/root 1386308 2008-06-12 20:58 opt/lib/libcrypto.so.0.9.7
drwxr-xr-x shinji/root 0 2008-06-12 20:50 opt/libexec/
-rwxr-xr-x shinji/root 60920 2008-06-12 20:50 opt/libexec/sftp-server
drwxr-xr-x shinji/root 0 2008-06-12 20:48 usr/
drwxr-xr-x shinji/root 0 2008-06-12 20:49 usr/sbin/
-rwxr-xr-x shinji/root 368448 2008-06-12 20:49 usr/sbin/dropbear
drwxr-xr-x shinji/root 0 2008-06-12 20:48 usr/bin/
lrwxrwxrwx shinji/root 0 2008-06-12 20:49 usr/bin/scp -> ../sbin/dropbear
Hi,
I have transmission_watchdog in post-boot, but it doesn't start after reboot :(
And some questions:
- If i have a power loss, when the power comes back againt, transmission won't start automaticaly, it is normal?
- Has Samba 2 (ipkg) has issues with VISTA?
- It is possible to have instead of "listening_port" somethink like "port_range", in transmission? I hope that in this way the download speed could increase, by accesing not only one defined port.
- What is the best way, and first the safest, for accesing files, stored on my hdd, attached on wl 500 gp, from wan?
Thank you
Hi Everybody,
I was tried to install Oleg custom firmware v1.9.2.7-10 on my WL-700gE, but I could not, always appears this error message:
"An error was detecting during the upgrade.
The firmware has NOT been succesfully changed."
What can cause this error?
Hi,
@metamorphose:
Never had this before. Make sure you have the right firmware and try the asus recovery tool.
@bogd_A:
- if watchdog is in post-boot and transmission is not paused: It should be started on reboot.
- As far as i know the newest samba2 works with vista. But i don't have vista.. But you could use the samba integrated with olegs -10 and up. He fixed the vista issues in the orig firm. see changelog.
- transmission uses only one port. As far as i know this is by design. oleo is your man for further questions.
- the most secure way is ssh/scp. Also sftp is secure. I use ssh and winscp from wan.
wengi
I have watchdog in post-boot, it is not paused but won't start on reboot, I'll recheck when i'll get back home -
It will not start at reboot
As for samba, I like in samba 2 the feature of password protected folders, and this is what it is not working with VISTA, if i don't password protect folders it works, but on XP I can't acces shared folders, not with integrated samba or samba 2 - i get a logon window, with user: name_of_ASUS\guest - not editable and password: and nothing works.
It is a way of pasword protect folders using samba integrated in oleg's firmware, and do you have a solution for the XP acces?
About transmission, it is normal to do:
Jun 16 20:49:27 transmission_watchdog: Transmission daemon restarted!
Jun 16 20:00:10 transmission_watchdog: Transmission daemon restarted!
Jun 16 18:00:10 transmission_watchdog: Transmission daemon restarted!
Jun 16 14:00:10 transmission_watchdog: Transmission daemon restarted!
Jun 16 10:30:15 transmission_watchdog: Transmission daemon restarted!
but the roter wasn't restarted, and it wasn't the case of a power loss, after restart of transmission_watcdog i get Checking files ... and it takes a long time to do this.
And finaly about the speed in transmission, at upload I have speeds of 120 - 400kb/s (after setting UPLOAD_SPEED=41 I get 41kb/s - max for upload), but on download ... best was 40 - 50 kb/s (total) from 2 downloading torrents ... I don't know what to check :( any ideea?
in transmission.conf I have:
DOWNLOAD_SPEED=-1
UPLOAD_SPEED=41
ENCRIPTION=-e
my /usr/local/sbin/post-firewall looks like:
#!/bin/sh
## FIREWALL
## set default policy
iptables -P INPUT DROP
## deny ftp access from WAN
iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 21 -j DROP
## Allow access to various router services from WAN
for P in 65534; do
iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
done
And on ASUS web page, under NAT Setting - Virtual Server, I have at Virtual server list:
Port Range: 65534
Local IP: IP of ASUS
Local Port: 65534
Protocol: BOTH
Is anything wrong with this set-up, and what else should I do?
What the numbers of "20:30:26 up 21:28, load average: 3.56, 3.04, 2.55" means, what is cpu, mem ... load?
Can you help me with a how to, step by step config of ssh and winscp, if you have the time :)
Thank you
Hi wengi,
to tell the truth I must tell that kfurge custom firmware was on my router (I love it, however I am curious, that's why I would like to try Oleg's version). I had downgraded kfurge 1.0.4.6 to official 1.0.4.6, then I restarted router and tried to install Oleg's firmware. I am sure I downloaded it from right place: http://oleg.wl500g.info/1.9.2.7-10/W...1.9.2.7-10.zip
On the other hand, I do not understand where is the relationship between firmware upgrade and post boot file, because error message appears almost directly after upgrade process starts (about 2-3 seconds).
@bogd_A:
Your transmission is fine. Checking files takes hours if you have big torrent files on the hdd. My transmission speed is always about 40k. never had it faster except "official" downloads.
I will not write a step-by-step howto. This is linux basics. You have to read and learn....
@all
ALWAYS REMEMBER: Your Asus is a Router and NOT a Pentium Core II Duo with 3GHz. THIS MACHINES ARE SLOW!!!
@metamorphose
Did you extract the zip?
wengi
Amen! Anyways it is a miracle how much I got going on my router.
Full IPv6 support (radvd broadcasting IPv6 subnet)
Lighttpd w/ PHP using FastCGI and eAccelerator extension
Transmission
RRDTool (macsat.com setup)
2 x Dropbear servers w/ SFTP capability
Syslog Daemon (from ipkg)
Now then I do have Wordpress going on the server using a SQLite database (addon db support) and it works surprisingly well. Slow but well enough. I spec the router for the equivalent to an approx 8 year old computer. Not very fast but enough. I won't even attempt to push on a MySQL server. The swapfile works well. So well that even though the number of applications running well exceeds the available ram my router has kept on ticking.
HI,
I had to reconfig from scratch my WL-500gP V2 - HDD system.
Everything worked ok, using Wengi's tutorial, but after installing transmission, I had the first error.
Note that I set my sistem (WL-500gP V2 + HDD) two times before, and had no error.
at vi /opt/etc/crontab
I have:
On the firs two setups I had:Quote:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
This is the first difference.Quote:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
*/30 * * * * admin nice /opt/sbin/transmission_watchdog
The second error was:
[admin@WL-500gP root]$ transmission_watchdog
-sh: transmission_watchdog: not found
[admin@WL-500gP root]$
ps axf looks like this:
As firmware I use oleg 1.9.2.7-10Quote:
[admin@WL-500gP root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
57 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
85 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
92 ? Ss 0:00 rcamdmain
96 ? S 0:00 [usb-storage-0]
97 ? S 0:00 [scsi_eh_0]
107 ? Ss 0:00 infosvr br0
108 ? Ss 0:00 watchdog
111 ? Ss 0:00 \_ ntp
118 ? S 0:00 dropbear
241 ? Ss 0:00 \_ dropbear
242 pts/0 Ss 0:00 \_ -sh
245 pts/0 R+ 0:00 \_ ps axf
135 ? S 0:00 [kjournald]
136 ? S 0:00 [kjournald]
162 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7
168 ? Ss 0:00 /opt/sbin/cron
177 ? Ss 0:00 /opt/sbin/xinetd -pidfile /var/run/xinetd.pid
187 ? Ss 0:00 /opt/sbin/smbd -D
189 ? Ss 0:00 /opt/sbin/nmbd -D
195 ? S 0:01 upnp -D -L br0 -W vlan1
What went wrong?
reinstall transmission.
wengi
It is possible that the packages may not be downloading or installing correctly. Try uninstalling the packages and then reinstalling it and see if that works. I do know that I installed it fine recently.
did that, still the same ...
It is possible that all this could be caused by the HDD?
I did a e2fsck -fv /dev/discs/disc0/part2, - the IPKG part, and the result is:
Can u post your transmission.conf and version of transmission? Perhaps it is a new ver of transmission and this is why I have this errorQuote:
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
3132 inodes used (2%)
6 non-contiguous inodes (0.2%)
# of inodes with ind/dind/tind blocks: 58/0/0
14115 blocks used (5%)
0 bad blocks
0 large files
1908 regular files
110 directories
0 character device files
0 block device files
0 fifos
0 links
1105 symbolic links (1105 fast symbolic links)
0 sockets--------
3123 files
Thank you
I have the same problem as bogd_A. I found out that there is no transmission_watchdog in opt/sbin and trasmissiond in opt/bin and also no www subdirectory under opt/share and also busybox does not listen on port 8008. There must be something wrong with transmission package. After I copied all missing files and run 'busybox_httpd -p 8008 -c /opt/etc/httpd.conf -h /opt/share/www' I got transmission to work.
transmissiond inclusion solved with changeset/8556. Our package master bzhou downgraded to 1.22 and left out transmissiond.
I recommend ipkg update && ipkg upgrade
I'm having the same problem with transmission :(
What files and where do will I put them?
Thanks
I'm having the same problem.. But no new package is available for download.
I did "ipkg update && ipkg upgrade" but it says it has nothing to do.
I am using this one: http://ipkg.nslu2-linux.org/feeds/op...2-1_mipsel.ipk
but it's not working.
The firmware is WL500gpv2-1.9.2.7-10.trx
Sometimes you just need to wait a while that autobuild machine compiles new package for all platforms!
Packages are now available!
One can also do ipkg force reinstall transmission if fails to upgrade. Bu I doubt it.Code:ipkg update
ipkg upgrade
the only problem I have with transmission is that somehow no graph data is being written to the file...
so I can't create any graphs.
maybe it's due the fact I have /tmp/harddisk mounted as /mnt
?
I did do the right setup for everything, and changed the values to the right place...
so, oleo, what would you reckon goes wrong?:confused:
(yes I have the lasted transmission)
I'm having two problems here :)
First of all, I noticed that when I do ipkg update it updates itself from this url:
http://ipkg.nslu2-linux.org/feeds/un...l500g/Packages
Is that the right URL to use ? I'm using 500gP v2 with latest oleg's fw.
on the upper url I find only this (old transmission version):
Code:Package: transmission
Version: 0.82-3
Depends: openssl, libevent
Conflicts: torrent
Suggests: gnuplot, logrotate, thttpd
Section: net
Architecture: mipsel
Maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
MD5Sum: cb7ecd44bcdc0a8feaae2ec28d9a4859
Size: 405817
Filename: transmission_0.82-3_mipsel.ipk
Source: http://download.m0k.org/transmission/files/transmission-0.82.tar.gz
Description: lightweight BitTorrent client and daemon with WWW interface
I then downloaded the package myself from this url:
http://ipkg.nslu2-linux.org/feeds/op...5-1_mipsel.ipk
And installed it.
That's the point of problem #2 beginning:
Once I do everything described in this tutorial on point #9, I can't get transmission to work:
What am I doing wrong ? I only getCode:[admin@router disc0_1]$ transmission_watchdog
/opt/sbin/transmission_watchdog: /opt/sbin/transmission_watchdog: 304: transmissiond: not found
in my log.Code:Jun 24 20:03:15 transmission_watchdog: Transmission daemon restarted!
I found this thread where a guy had the same problem. He solved it by installing "Uclibc-op", but I rather won't try that, before consulting someone here who is smarter and more expirienced than I am. I don't like the idea of piling loads of various (unneeded?) packages on my router, and slow it down.
What is "Uclibc-op" ? Do I need it ?
please help...
Hi@all,
News for the hanging of transmission webinterface:
Do the following:
Install the shell "bash".
Edit transmission.cgi. First line to be replaced with:Code:ipkg install bash
done.Code:#!/opt/bin/bash
technical background: The integrated busybox shell and transmission.cgi do not work 100% ok. The exact problem is not pointed out until now.
29.06.2008
wengi
hi i just get this kind of msg.
http://rapidshare.com/files/127593111/Snap3.bmp
http://rapidshare.com/files/127594398/transmission.bmp
What went wrong ??
after i start manualy transmission_watchdog, its start and stop strange..
[admin@WL500gP /opt]$ ps
PID Uid VmSize Stat Command
1 admin 652 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]
59 admin 328 S telnetd
64 admin 396 S httpd vlan1
71 admin 368 S klogd
72 nobody 464 S dnsmasq
77 admin SW [khubd]
91 admin 320 S infosvr br0
92 admin 484 S watchdog
94 admin SW [usb-storage-0]
95 admin SW [scsi_eh_0]
97 admin 340 S ntp
108 admin 468 S dropbear
122 admin 432 S udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
125 admin 580 S -sh
134 admin 552 S upnp -D -L br0 -W vlan1
138 admin SW [kjournald]
139 admin SW [kjournald]
141 admin 404 S stupid-ftpd
143 admin 980 S /usr/sbin/nmbd -D
146 admin 1008 S /usr/sbin/smbd -D
176 admin 396 S /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
183 admin 396 S /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
190 admin 408 S /opt/sbin/cron
199 admin 420 S /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
1178 admin 780 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pi
1180 admin 780 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pi
1181 admin 780 S transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pi
1184 admin 404 R ps
[admin@WL500gP /opt]$
when i trying start torrent it says /opt/share/www/cgi-bin/transmission.cgi: kill: 9: (1178) - No such process
Hi,
you are running transmission 0.82!!!!
And see the post above with the bash install.Code:ipkg update
ipkg upgrade
wengi
[admin@WL500gP lists]$ ipkg upgrade
Nothing to be done
Successfully terminated.
[admin@WL500gP lists]$ ipkg update
Downloading http://wl500g.dyndns.org/ipkg/Packages
Updated list of available packages in /opt/lib/ipkg/lists/wl500g
Downloading http://ipkg.nslu2-linux.org/feeds/un...l500g/Packages
Updated list of available packages in /opt/lib/ipkg/lists/unslung
Successfully terminated.
With ver. is correct ? transmission_0.82-3_mipsel.ipk ?
or should I downgrade to transmission_0.6+r961-1_mipsel.ipk??