Log in

Bekijk de volledige versie : New 1.0.4.6 based custom firmware



Pages : 1 [2]

tiwag
10-08-2007, 10:17
@fullback
don't modify all before 1001:42000!!!! thats your password!


the <username> is already set from the system since you've created the user
e.g. <username>=bhavdip (only lowercase letters !)


root:PASSWORDXXXXX:0:42000:root:/:/bin/sh
bhavdip:PASSWDORYYYYY:1001:42000:bhavdip:/opt/home/bhavdip:/opt/bin/bash


let the password unchanged of course !

brgds

--
tiwag

Fullback
10-08-2007, 23:43
[Bhavdip@(none) ~]$ipkg install man-pages
Installing man-pages (2.33-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/man-pages_2.33-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.

AverySimonsen
26-08-2007, 17:20
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

tiwag
26-08-2007, 22:29
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

Fullback
01-09-2007, 03:33
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!!!

AverySimonsen
01-09-2007, 07:18
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

Fullback
01-09-2007, 09:20
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.

anieln
01-09-2007, 11:02
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

Fullback
03-09-2007, 06:52
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!

Zucht
03-11-2007, 19:35
After HDD crash im trying to reinstall kfurge firmware, but it seems some packages are gone ...


# 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


Please help...

back2basic
04-11-2007, 06:56
After HDD crash im trying to reinstall kfurge firmware, but it seems some packages are gone ...


# 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


Please help...

use ipkg-opt & uclibc-opt instead

Grtzzz

Zucht
04-11-2007, 10:26
use ipkg-opt & uclibc-opt instead

Grtzzz

It seems that the latest busybox isnt compatible.

it uses the command update-alternatives


# 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.
#

sollie
04-11-2007, 11:46
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

Rejan
04-11-2007, 13:09
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

sollie
04-11-2007, 14:00
I dont know :(

sollie
04-11-2007, 15:14
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.

Zucht
04-11-2007, 16:47
thanks mate!!

yeller
19-11-2007, 20:42
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?

gratitude182
19-11-2007, 23:14
@yeller: username: root

grat182

yeller
20-11-2007, 00:09
@yeller: username: root

grat182

You the man... thanks....

yeller
20-11-2007, 02:49
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

yeller
20-11-2007, 03:01
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



Found it... busybox vi..

yeller
20-11-2007, 16:15
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.