/var is actually part of the readonly cramfs. /var/run is permanently symlinked into /tmp so any pid files are definitely not being saved across reboots.
- K.C.
Printable View
/var is actually part of the readonly cramfs. /var/run is permanently symlinked into /tmp so any pid files are definitely not being saved across reboots.
- K.C.
I have just noticed the following error in the system log, not sure if it has been doing it all the time or not. Neither do I know what it means.
Please can any one tell me if I need to do anything.
May 23 09:29:44 portmap[802]: user rpc not found, reverting to user bin
May 23 09:29:44 rpc.statd[808]: Version 1.0.5 Starting
May 23 09:29:44 rpc.statd[808]: statd running as root. chown /var/lib/nfs/sm to choose different user.
TIA Chris
I'd say if NFS is working OK then these warnings can be ignored.
- K.C.
the instruktions is gone and asus has no description on how to do it.?
Hi there,
Bought a WL-700 eG Yesterday and it looks quite nice to me. Ive bought it becaus of its BT feature. Ive looked in many fora last night about my wl, because i have the feeling bt isnt working like i want it. In this forum ive seen many solution for upgrading firmware. But loads of posts is abacadabra for me! Still i see lots of people upgrading the firmware to Kfurge its version, but i dont have too many experience with linux and telnet. Could somebody make a walktrough or post a link how to upgrade to Kfurge's version. Ive read his website also, but it is still to hard for me. I think this walktrough will help a lot of people like me, who want to share data whit the WL700.
Hope to hear from someone soon.
Woffels
woffels@hotmail.com
@ kfurge
many thanks for your excellent work and investigations !
as many others i finally worked it out to get a much better WL700g router than ASUS sold me !
there are a few issues, where i got into trouble and after reading completely this monster-thread, i found all relevant informations how to solve these issues. it seems that most people get into the same troubles if any.
1. forget to chmod the rc.local
2. problems when editing /opt/etc/sudoers
3. continous reboot of the router after editing /etc/passwd while there exists another /shares/MYVOLUME1/__pdc/passwd file with different content.
this led me to the idea, to update your instructions, and commentary at:
http://home.comcast.net/~kfurge/wl700ge.html
in order to prevent others to get in troubles.
there are only a few steps to watch, my proposal for the updated instructions in Step #5:
Code:Step #5, Making a better system
1. Install the bash package for a better shell
2. Install the sudo package so you don't have to login as root to perform administrative functions (you can't login as root via ssh anyway)
3. Add a non-root <username> account via the web interface
4. Give yourself <username> supreme permissions in /opt/etc/sudoers, e.g.
# User privilege specification
root ALL=(ALL) ALL
<username> ALL=(ALL) ALL
5. Add /opt/bin/bash to /etc/shells (echo "/opt/bin/bash" >> /etc/shells)
6. Give yourself <username> a home directory (mkdir -p /opt/home/<username>; chown <username> /opt/home/<username>)
7. Modify /etc/passwd to make /opt/bin/bash your login shell and /opt/home/<username> your home directory (vi /etc/passwd). See here for a non-functional sample.
8. Optionally symlink yourself <username> directory into /shares/MYVOLUME1/MYSHARE1 if you want it accessable via cifs (Samba). This trick won't work for ftp, nfs or the web interface. You'll have to make your home directory in /shares/MYVOLUME1/MYSHARE1 if you want full access from all methods. (cd /shares/MYVOLUME1/MYSHARE1; ln -s /opt/home/<username>)
9. Within your .profile, add /opt/bin and /opt/lib to your PATH and LD_LIBRARY_PATH environment variables
10. Install dropbear and start it manually at first (/opt/etc/init.d/S51dropbear), then via rc.local, see the last rc.local file below.
11. Test your configuration if everything works fine and that you can login using ssh too.
12. WARNING: Before you test a reboot of your router, change the share management to use PBSA (Password Based Share Access) , then check if there exists the file /shares/MYVOLUME1/__pdc/passwd and remove it (rm /shares/MYVOLUME1/__pdc/passwd), then switch back to UBSA (User Based Share Access) and reboot your router. If everything works well you should be able to login by telnet and ssh.
13. Disable telnet from rc.local to completely eliminate any chance of root logins,
WARNING: test ssh login before commenting out utelnetd, otherwise you can lock out yourself of your router!
14. Install ncurses, ncursesw, and termcap packages for better terminal support. You may need to use the -force-overwrite option when installing ncurses.
15. Install man and man-pages packages, install hdparm package too, if you plan to use the APM features of your HDD
thanks again,
best regards,
--
tiwag
Thanks for the feedback. The section you referred to was more of a "stream of consciousness" than a step-by-step. I figured that if you'd gotten that far then the rest would be easy. ;-)
I've cut out your text and will put it on the website soon.
- K.C.
7. Modify /etc/passwd to make /opt/bin/bash your login shell and /opt/home/<username> your home directory (vi /etc/passwd). See here for a non-functional sample.
** what do i add here? i have no clue Thank you. My username is Bhavdip that i made in the web interface. i can login via telnet. and i am on the "making a better system" and i been stuck on that. Sorry i don't understand unix systems very much. But i have made enhanced-ctorrent work :) on my router and it is operating great.
@fullback
you have to modify it as like this if this is your username (Bhavdip):
Bhavdip
don't modify all before 1001:42000!!!! thats your password!Quote:
root:PASSWORDXXXXX:0:42000:root:/:/bin/sh
user1:PASSWDORYYYYY:1001:42000:Bhavdip:/opt/home/Bhavdip:/opt/bin/bash
grat182
the <username> is already set from the system since you've created the user
e.g. <username>=bhavdip (only lowercase letters !)
let the password unchanged of course !Code:root:PASSWORDXXXXX:0:42000:root:/:/bin/sh
bhavdip:PASSWDORYYYYY:1001:42000:bhavdip:/opt/home/bhavdip:/opt/bin/bash
brgds
--
tiwag
[Bhavdip@(none) ~]$ipkg install man-pages
Installing man-pages (2.33-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/op...3-3_mipsel.ipk
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/man-pages_2.33-3_mipsel.ipk'
Failed to download man-pages. Perhaps you need to run 'ipkg update'?
WARNING: Unable to remove temporary directory: : No such file or directory
[Bhavdip@(none) ~]$
_____________________________
[Bhavdip@(none) ~]$ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages'
WARNING: Unable to remove temporary directory: : No such file or directory
*** Thank you for your last response i got to log in via shell now! :) but i can't seem to install man-pages i get this problem can you please help me? thank you guys aging!! I also ran ipkg update and i get message. thank you.
Tiwag:
Step 12 in the list you posted would imply erasing the user list afaik. Why is this necessary? I have followed kfurge's step by step list which didn't specify doing anything to delete the user list.
The problem I have now is that my smb shares have stopped working. Is that what step 12 above is intended to help avoid?
/LO
without following the advice in step 12 my router got crazy after a reboot, it rebooted continously and i could only stop that behaviour with a long (10sec) reset.
but you can make a backup copy of your previously edited /etc/passwd file and copy it to /shares/MYVOLUME1/__pdc/passwd after switching back to UBSA mode and successful rebooting.
in the meanwhile, i keep my own passwd.original file (with permissions set to read only, user root, group root) and copy it to /tmp/passwd
on each reboot by some commands in my rc.local
this works fine and i don't get a crazy router after switching from and to UBSA mode.
brgds
Hey i tired to add my own function in the rc.local file
fi [-x /opt/etc/init.d/S8appWeb]; then
/opt/etc/init.d/S8appWeb
if
if
____
And now i can't telnet into the router....
i get
""telnet> open
(to) 192.168.1.1
Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused
""" Thank you!!!
shouldn't it be 'if [ ..' rather than 'fi [ ..' ? Or maybe you figured that out already? When I locked myself out of telnet access by accident, I got back in by putting the minimal rc.local from kfurge's help page in the web folder of the wl700 by means of ftp and rebooting
yeah but what should i do? reload the firmware?? because i tired reloading the rc.local file in shares/MYVOLUME/MYSHARE1/web... But telnet still is not working.
******Hey i tired to add my own function in the rc.local file
fi [-x /opt/etc/init.d/S8appWeb]; then
/opt/etc/init.d/S8appWeb
if
if
____
And now i can't telnet into the router....
i get
""telnet> open
(to) 192.168.1.1
Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused
""" Thank you!!!
Edit/Delete Message
********** THANK you guys for any help!!! :) thanks for the reply.
Hi,
One of the easy ways to solve this is to check if you have access to the webinterface. If so, try uploading a textfile which will be named 'start.cgi' (or something more creative... with the following contents (Don't include the stuff starting with asterisks and pound (#*****)):
#******begin file
#!/bin/ash
################flag
echo "Content-type: text/html"
echo ""
echo ""
echo ""
PATH=$PATH:`pwd`:`pwd`/functions:`pwd`/../../../bin
/apps/bin/utelnetd -d
#*******end file
Upload the file to your webroot (/shares/MYVOLUME1/MYSHARE1/web), for example by using the webinterface (browse shares).
Enable your photoalbum and use the default album..
This will give you access to the photoalbum... (assuming you have used port 8081) you'll type in something like this:
http://192.168.1.1:8081/start.cgi
hey Thank you guys all for your help!!! i got enhanced-ctorrent 3.2 running with gui so i don't have to type in command anymore, and i got to fix my rc.local :) THANK YOU VERY MUCH, ROUTER IS WORKING GREAT AGING WITH TELNET AND SSH working great!! thank you thank you thank you guys!
After HDD crash im trying to reinstall kfurge firmware, but it seems some packages are gone ...
Please help...Code:# wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc_0.9.28-1_mipsel.ipk
wget: server returned error 404: HTTP/1.1 404 Not Found
# wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg_0.99-163-4_mipsel.ipk
wget: server returned error 404: HTTP/1.1 404 Not Found
It seems that the latest busybox isnt compatible.
it uses the command update-alternatives
Code:# ipkg install -force-overwrite busybox
Installing busybox (1.7.2-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox_1.7.2-3_mipsel.ipk
Installing busybox-links (1.7.2-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-links_1.7.2-3_mipsel.ipk
Configuring busybox
Configuring busybox-links
syntax error
syntax error
syntax error
...
syntax error
syntax error
postinst script returned status 255
ERROR: busybox-links.postinst returned 255
Successfully terminated.
#
0: i assume nano is there, otherwise use: ipkg install nano or ipkg-opt install nano
1: cd /opt/lib/ipkg/info
2: nano busybox-links.postinst
3: comment all the lines, coz "/opt/bin/update-alternatives" doesnt work
4: ipkg upgrade or ipkg-opt upgrade
5: doe this for all other software with errors
Sollie
Hi Sollie, why comment the lines about upgrade_alternatives, isnt there a way to get it to work? Without it the commands in Busybox is not usable by themselves. For example vi must be used like this "busybox vi filename".
Have a post about this yesterday: http://wl500g.info/showthread.php?t=11384
I dont know :(
Ok, found it :D:
0: ipkg-opt install busybox-links
1: change first line:
nano /opt/bin/update-alternatives #!/bin/sh ---> #!/opt/bin/bash
2: ln -s /opt/bin/busybox sort /opt/bin/sort
3: ln -s /opt/bin/busybox dirname /opt/bin/dirname
4: /opt/lib/ipkg/info/busybox-links.postinst
Sollie.
thanks mate!!
Please Help....
I'm desperate to get KFurge's custom firmware installed to take advantage of the updated torrent/drive spin down capabilities.
For some reason I can't telnet and successfully login into the router. I get a login prompt, login with an admin user created in the GUI, but the screen keep coming back with a connection closed response.
Here are the steps I've taken:
- Reverted firmware to 1.0.4.6
- Copied rc.local script into /shares/MYVOLUME1/MYSHARE1/web
- Rebooted router
- Open windows dos shell
- Telnet to router (login prompted)
- Enter username/password (admin account created in GUI)
Telnet session is immediately closed and I'm bumped back to dos prompt.
Anyone have suggestions to successfully telnet to the router?
@yeller: username: root
grat182
vi doesn't seem to be part of busybox. Am I missing something?
busybox-base_1.8.1-1_mipsel.ipk
busybox-links_1.8.1-1_mipsel.ipk
busybox_1.8.1-1_mipsel.ipk
Busybox has the following commands :
# ls
[ date gunzip msh sensord umount
ash dd head mv setfacl uncompress
attr df hexdump ping setfattr unzip
bunzip2 du kill printcmd sh utelnetd
busybox echo killall printd sleep uuencode
bzcat env ln printjob sync wc
cat expr login ps tail wget
chacl false ls pwd tar wipedisks
chmod free mkdir rcsysver test zcat
chown getfacl mknod rm touch
cp getfattr more rmdir tr
cut grep mount sed true
Does anyone have the original packages:
uclibc_0.9.28-1_mipsel.ipk
busybox-base_1.1.3-3_mipsel.ipk
busybox-links_1.1.3-3_mipsel.ipk
wget_1.10.2-3_mipsel.ipk
ipkg_0.99-163-4_mipsel.ipk
I've downloaded and installed the latest packages but can't get past the update-alternatives problem even after Sollie's steps.
0a: ipkg-opt install uclibc-opt
0b: ipkg-opt install busybox-links
1: change first line (/opt/bin/update-alternatives):
- nano /opt/bin/update-alternatives
- #!/bin/sh ---> #!/opt/bin/bash
2: ln -s /opt/bin/busybox sort /opt/bin/sort
3: ln -s /opt/bin/busybox dirname /opt/bin/dirname
4: /opt/lib/ipkg/info/busybox-links.postinst
5: nano /opt/bin/update-alternatives and change tho folowing line:
- local olink=`head -n 1 $ad/$name` ---> local olink=`$IPKG_OFFLINE_ROOT/opt/bin/busybox head -n 1 $ad/$name`
I figured if anyone has the original package versions I can run through KFurge's instructions without deviation.