PDA

Bekijk de volledige versie : Custom 1.0.7.8 firmware is ready to download



kfurge
24-01-2008, 03:12
Finally a custom version of the 1.0.7.8 Asus release is ready to release. This version continues many of the philosophies of the 1.0.4.6 version, but has some additional features that make it much more usable out of the box.

For those of you using the previous 1.0.4.6 version, this one is not 100% backwards compatible, though it's pretty close. Read the documentation carefully and you should be OK.

The documentation and firmware image are on back2basic's web site here:

http://wl700g.homelinux.net/drupal/?q=node/134

I would like to thank him for his generous offer to host everything.

- K.C.

P.S. As usual, this software is provided "AS IS". Use at your own risk.

fireflash
24-01-2008, 04:31
So, umm, dumb question.. What's the login & pw for the telnet? :) I tried my router's login & pw for the web interface but it didn't work.

nvm, figured it out.. ok, next dumb question.. does the rc.local go in the same spot? My old one was still hanging around but it doesn't look
like it was executed, since watchdog was still running when it all came up, and I had it set to kill watchdog.

Also is there anyway to tell that I'm actually running your 1.0.7.8 and somehow didn't get the stock version?
I remember when I was tinkering with the source a while back I found where the version number was stored and was able to change it..
don't remember if it actually reflected it when I flashed the firmware though. :)

ok, and just to err on the side of paranoia, when I downloaded your image, the website named it something totally random, which made
finding it on my hard drive interesting. :) So I honestly don't know which version I actually downloaded, but from what I read of your
documentation and what I'm seeing on this end, I think I'm running the stock 1.0.7.8. SSH isn't working, and my telnet login is the good
ol' root with no password.. my web interface l/p isn't working.

ice-cool
24-01-2008, 05:06
I install kfirge firmeware follow
http://wl700g.homelinux.net/drupal/?q=node/83

but in step 1.3 Installing optware packages topic 5

Add the following line to /opt/etc/ipkg.conf with the newly installed busybox version of vi:
# src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

is'show "src: not found" did I miss anything ?

ice-cool
24-01-2008, 07:42
That my stupid -_-""
Now I add src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
to ipkg.conf

but when I update ipkg
ipkg install uclibc-opt busybox ipkg-opt wget

It show syntex error like this

[u@h W]ipkg -force-overwrite install uclibc-opt busybox ipkg-opt wget
Package uclibc-opt (0.9.28-12) installed in /opt/ is up to date.
Package busybox (1.9.0-1) installed in /opt/ is up to date.
Package ipkg-opt (0.99.163-9) installed in /opt/ is up to date.
Package wget (1.10.2-4) installed in /opt/ is up to date.
Configuring busybox-links
syntax error
syntax error
syntax error
syntax error
syntax error
.....
....
syntax error
syntax error
postinst script returned status 255
ERROR: busybox-links.postinst returned 255
Nothing to be done
Successfully terminated.

What I should do ?

dalanik
24-01-2008, 13:04
Wooow, cool! Can't wait to flash it! :-) Thanx, kfurge!!!!!!

D.

kfurge
24-01-2008, 13:47
syntax error
syntax error
postinst script returned status 255
ERROR: busybox-links.postinst returned 255
Nothing to be done
Successfully terminated.
Read the FAQ section. You need to insure that the environment variable KCSHELL is set to /opt/bin/bash so that the postinstall scripts will run properly:

export KCSHELL=/opt/bin/bash

Logging in as root via ssh will do this, as will a "sudo -l bash" if logged in as the admin user.


ok, and just to err on the side of paranoia, when I downloaded your image, the website named it something totally random, which made finding it on my hard drive interesting. :) .
Interesting... Perhaps back2basic can chime in here! Tonight I'll mirror it to the wl500g.info site which should preserve the filename.

To make sure you got the right file, confirm the md5 sum.


SSH isn't working, and my telnet login is the good ol' root with no password.. my web interface l/p isn't working.
Both of these features are configured via rc.local. If you're running your old rc.local, then the scripts which fix the password file are probably not being executed.

When migrating from 1.0.4.6, I'd recommend temporarily renaming /shares/MYVOLUME1/opt to /shares/MYVOLUME1/opt.DO_NOT_LOAD so that the /opt filesystem from the firmware image is executed.

After that, combine the new 1.0.7.8 rc.local with your old 1.0.4.6 rc.local, rename opt.DO_NOT_LOAD back to opt, and reboot the router.

- K.C.

kfurge
24-01-2008, 13:53
ok, next dumb question.. does the rc.local go in the same spot? My old one was still hanging around but it doesn't look like it was executed, since watchdog was still running when it all came up, and I had it set to kill watchdog.


Regarding rc.local, please read the documentation. I specifically addressed this point.

It's OK to keep watchdog running now. Asus fixed the problem where it kept the HDD spinning. Also, it's been released as source again, that's how I confirmed the original problem has been fixed.



Also is there anyway to tell that I'm actually running your 1.0.7.8 and somehow didn't get the stock version?


You'll be able to tell by poking around the filesystems. If you have an /bin/kcsh then it's running the custom firmware.

- K.C.

ice-cool
24-01-2008, 14:55
Read the FAQ section. You need to insure that the environment variable KCSHELL is set to /opt/bin/bash so that the postinstall scripts will run properly:

export KCSHELL=/opt/bin/bash

Logging in as root via ssh will do this, as will a "sudo -l bash" if logged in as the admin user.

- K.C.

Thank for your help.
I have read the FAQ but due to I'm a newbie. So, I don't understand. T-T
How ever I try this
[u@h W]sudo -l bash
sudo: not found

but I think I login as root ( because I use login name as root )
so. I try this follow your suggestion
export KCSHELL=/opt/bin/bash
and
ipkg install uclibc-opt busybox ipkg-opt wget

Package uclibc-opt (0.9.28-12) installed in /opt/ is up to date.
Package busybox (1.9.0-1) installed in /opt/ is up to date.
Package ipkg-opt (0.99.163-9) installed in /opt/ is up to date.
Package wget (1.10.2-4) installed in /opt/ is up to date.
Configuring busybox-links
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative [ to /opt/bin/[ since it is already registered to
.......
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative cal to /opt/bin/cal since it is already registered to
xsystem: ERROR: Child process died due to signal 2: `//opt/lib/ipkg/info/busybox-links.postinst configure'
postinst script returned status -1
ERROR: busybox-links.postinst returned -1
Nothing to be done
Successfully terminated.

Could You help me to fix this ?
PS. I'm just a user. And have a litle knowledge about linux T-T

fireflash
24-01-2008, 15:54
Regarding rc.local, please read the documentation. I specifically addressed this point.

It's OK to keep watchdog running now. Asus fixed the problem where it kept the HDD spinning. Also, it's been released as source again, that's how I confirmed the original problem has been fixed.

[QUOTE=fireflash;79214]
Also is there anyway to tell that I'm actually running your 1.0.7.8 and somehow didn't get the stock version?
[/QUOTE4]

You'll be able to tell by poking around the filesystems. If you have an /opt/bin/kcsh then it's running the custom firmware.

- K.C.

Yeah sorry about that, I did notice after I posted that you did put instructions up.. It was late :)

I looked, kcsh isn't there.. But based on your next response, it may not have written the /shares/MYVOLUME1/opt because it already existed. I'll rename my /opt to something else and reflash it and see if that gets it working right.

Also, when I did flash the new firmware, my router didn't reboot like it was suppose to. I had to tell it to reboot.. very strange, but everything fired back up with the new firmware.

UPDATE: I renamed my /shares/MYVOLUME1/opt and reflashed the firmware. This time it took off without a hitch, rebooted, and now my web l&p is working for logging into the telnet session, and SSH works. Still don't see kcsh in /opt though, but I did compare the md5 and they match, so it's definitely the right .nas file.

Ok, so after more tinkering, I noticed it doesn't seem to like my old /shares/MYVOLUME1/opt directory being there.. or any /opt directory being there for that matter. If I rename the old one and reboot the router, dropbear works and everything seems to be working as it should, but as soon as I either rename the old opt dir back to opt, dropbear doesn't work, and the telnet login is back to root, no password. Even if I create a blank /opt directory there, it still doesn't work right (figured it was a nice test). I even renamed my old rc.local to rc.local.OLD in case it was trying to run it. So I guess I should start with a fresh /shares/MYVOLUME1/opt directory, since it symlinks the /opt directory to that if it sees it.. I guess I need to go back over your old tutorials for your 1.0.4.6 firmware and rebuild it..?

Sorry to be a pain, life of an early adopter. :)


UPDATE THE UPDATE: RTFM, that's all I gotta say... I followed your instructions, copied /opt to /shares/MYVOLUME1, rebooted, and everything seems to be working wonderfully. There was definitely something about my old /shares/MYVOLUME1/opt directory it didn't like (probably has a lot to do with it missing your rc.local script lol), but I wasn't attached to it, so I just replaced it and it's working great.

Question though.. if I start changing anything in the web interface, is it going to re-write the passwd file like it use to? making it so I'd have to reboot the router (or at the very least attempt to run your fix scripts) to get it working right?

Kudos on a job well done sir! Nice to see someone has the skills and the desire to help us make this little white brick into something a bit more useful :)

kfurge
24-01-2008, 18:18
Thank for your help.
I have read the FAQ but due to I'm a newbie. So, I don't understand. T-T
How ever I try this
[u@h W]sudo -l bash
sudo: not found

but I think I login as root ( because I use login name as root )
so. I try this follow your suggestion
export KCSHELL=/opt/bin/bash


OK, I think your problem is that you must already have a /shares/MYVOLUME1/opt directory. If this directory is present, the firmware assumes you want to use it in place of the static firmware /opt directory.

Follow the directions I gave to fireflash in this thread and read the documentation about upgrading from 1.0.4.6 to 1.0.7.8.

- K.C.

P.S. Along with KCSHELL, you'll have to define and export LD_LIBRARY_PATH and a reasonable PATH. This is illustrated in the /.profile on the router.

kfurge
24-01-2008, 18:28
Still don't see kcsh in /opt though, but I did compare the md5 and they match, so it's definitely the right .nas file.


My bad. I meant to say /bin/sh



Question though.. if I start changing anything in the web interface, is it going to re-write the passwd file like it use to?

From what I've been able to tell, the passwd file is only updated upon reboot or when a user gets changed/updated in UBSA windows filesharing mode. In either case, I've not yet experienced the passwd file being completely rewritten without rc.local also being called.

- K.C.

back2basic
24-01-2008, 18:32
Interesting... Perhaps back2basic can chime in here! Tonight I'll mirror it to the wl500g.info site which should preserve the filename.

To make sure you got the right file, confirm the md5 sum.

- K.C.

Somehow all the files downloaded from wl700g.homelinux.net are renamed as 'drupal' maybe there is a fix for this,I'm gonne check it out.

kfurge
24-01-2008, 18:35
I install kfirge firmeware follow
http://wl700g.homelinux.net/drupal/?q=node/83

but in step 1.3 Installing optware packages topic 5


Wrong version! The step 1.3 you're referring to is for the super old 1.0.4.6 version, not 1.0.7.8. For 1.0.7.8, you need to be here:

http://wl700ge.hezik.nl/ - http://wl700g.homelinux.net/drupal/?q=node/134

- K.C.

back2basic
24-01-2008, 18:45
Somehow all the files downloaded from wl700g.homelinux.net are renamed as 'drupal' maybe there is a fix for this,I'm gonne check it out.

I fixed that all files should be displayed with the proper name.

fireflash
24-01-2008, 18:55
Was mt-dappd updated, or is that still on the to-do list?

kfurge
24-01-2008, 19:25
Was mt-dappd updated, or is that still on the to-do list?

Unless Asus did it (they updated samba, I didn't check mt-daapd), it's still on the to-do list.

- K.C.

dalanik
24-01-2008, 19:35
Just flashed my white box to 1078 kfurge. The funny thing is - I thought it didn't work. I used web interface and selected the file, and then screen went blank, URL was something on flashing progress, but page said "done." and nothing was happening. PC wasn't transfering anything, and I waited and waited, had another cigarette.... nothing.

The internet was working, though, so I said, no go. I said i'll restart the router and try again, but router wouldn't react to nothing. power button just didn't do anything.

So after a while I gave up, and unplugged the power cable. After the damn thing booted, I normally logged on to web interface and... it said 1.0.7.8 !!! (was 1.0.4.6)

Cool! :-)

Now... how does one add .torrent files to MLDonkey???? :-)

fireflash
24-01-2008, 19:54
Mine did something similar. When I flashed it using the web interface, it went through the motions, then said it was going to reboot, but it didn't. So I just let it sit there and spin it's wheels, then it came back to the web interface like nothing had happened.. So I had to make it reboot, after that, it was all good.

To add torrents to mldonkey, go to the mldonkey interface page, and copy and paste the .torrent url into the DL box.

neil
24-01-2008, 21:44
Just updated to 1078. All worked fine via the web interface - none of the oddities reported above.

Couple of things: if i reboot the unit (from the web interface, cos the asus is physically upstairs and i'm lazy) and telnet in, i can work for a bit (with different prompt) before connection is dropped/kicked after say 30secs. then when i log back in, the login prompt is different; all good tho!

Done as said: renamed old opt dir /shares/MYVOLUME1/opt to something else, and copied the 'new' /opt in place to start afresh from. However,
doing 'ipkg update' gives me the following, and i can't add any new packages afterwards (e.g. optware-devel etc)



$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'


also, whenever i try to do 'sudo bash' i get something about /opt/etc/sudoers being owned by gid 42000 should be 0.

but i love the whole 'press copy button to use default boot' - great solution to mucked up rc.local, and finally a fix for /bin/sh -> /opt/bin/bash. great stuff.

UPDATE: ok ok ok...so my asus couldn't actually access the wider world (was reset to gateway mode not access point which is how i normally have it). so ipkg thing fixed, but the sudo oddity still there...

elgatoz
25-01-2008, 00:10
Yeeeeehaaaaa big thx, cheers everyone!!! :D

kfurge
25-01-2008, 02:29
also, whenever i try to do 'sudo bash' i get something about /opt/etc/sudoers being owned by gid 42000 should be 0.


Something must have happened when the file got copied... The 42000 GID is indicative of an Asus made user. Maybe you didn't copy it as root? The firmware image has the UID:GID for all files set to 0:0.

Fixing is easy with chgrp, though other sudo related files are probably also broken.

- K.C.

kfurge
25-01-2008, 02:32
Couple of things: if i reboot the unit (from the web interface, cos the asus is physically upstairs and i'm lazy) and telnet in, i can work for a bit (with different prompt) before connection is dropped/kicked after say 30secs. then when i log back in, the login prompt is different; all good tho!


The first shell is started by the Asus code, but is completely insecure without the firewall enabled (though not having the firewall enabled is suicidal anyway). So, in rc.local I kill the Asus telnet and start my own to close the hole. That's when you get kicked off. This is a good FAQ item.

- K.C.

neil
25-01-2008, 10:33
One small thing: i've taken my asus to work, so i can mess with it during lunchtime to get everything sorted; this has inadvertently led me to set the IP address to a duff value that means i can no longer access it.

so i hold down reset for 10 seconds, which i thought just reset the settings, then reboot - i can access it again (via 192.168.1.1) but the firmware has been reset to 1.0.4.6 -> which obviously means reflashing all over again...is there a better way to just reset to factory settings, without reverting the flash??

ice-cool
25-01-2008, 12:04
OK, I think your problem is that you must already have a /shares/MYVOLUME1/opt directory. If this directory is present, the firmware assumes you want to use it in place of the static firmware /opt directory.

Follow the directions I gave to fireflash in this thread and read the documentation about upgrading from 1.0.4.6 to 1.0.7.8.

- K.C.

P.S. Along with KCSHELL, you'll have to define and export LD_LIBRARY_PATH and a reasonable PATH. This is illustrated in the /.profile on the router.

I try to start at first step again by
remove all file in /shares/MYVOLUME1
except MYSHARE1,__share_MYSHARE1_vars.txt,bin,etc

And I re-flashing via web interface with WL700gE_kc_1078_01.nas
after that I press reset button for 10 second
and run EZsetup again

Everything seem ok.
I can telnet to router as Admin and can Sudo bash -l to gain root
I start MLDONKEY follow http://wl700g.homelinux.net/drupal/?q=node/190
But I can't open MLDONKEY web interface http://192.168.1.1:4080
and MYSHARE in ASUS web interface ( I can't access share, And I can't create new share )

Am I do a big mistake ? (remove all file in /shares/MYVOLUME1 )
T-T
Can I fix it ?

kfurge
25-01-2008, 13:23
I
Am I do a big mistake ? (remove all file in /shares/MYVOLUME1 )


Erasing everything in /shares/MYVOLUME1 was probably not the best idea... I'm not sure how to recover from that.

Regarding MLDonkey, the startup output is in /tmp/mldonkey.out. It'll show you why it's not starting. I suspect it's because you don't have a /shares/MYVOLUME1/MYSHARE1 any more.

- K.C.

kfurge
25-01-2008, 13:31
so i hold down reset for 10 seconds, which i thought just reset the settings, then reboot - i can access it again (via 192.168.1.1) but the firmware has been reset to 1.0.4.6 -> which obviously means reflashing all over again...is there a better way to just reset to factory settings, without reverting the flash??

I've run across this once or twice in the past. For sure your flash is not being reverted. There's not enough room in it to store two copies. The .nas file consists of two parts, the flash part and a filesystem part. Only the kernel and a very small filesystem reside in the flash. There are two cramfs partitions (I use the term loosely since they're not truly partitions) on the routers HDD which hold the "firmware" contained within the filesystem segment. The router seems to toggle back and forth between them when a .nas file is flashed into it.

I believe you're experiencing a failsafe built into the flash copy of "init" to protect against corruption or failure to one of the cramfs partitions on the HDD. If the reset button is pressed, I think it forces the router to boot from a previously good partition.

I would suspect that flashing the router twice, with a successful boot in between, would completely flush out any old images.

Can you experiment with this concept a bit and try to figure out its behavior?

- K.C.

neil
25-01-2008, 15:36
I've run across this once or twice in the past. For sure your flash is not being reverted. There's not enough room in it to store two copies. The .nas file consists of two parts, the flash part and a filesystem part. Only the kernel and a very small filesystem reside in the flash. There are two cramfs partitions (I use the term loosely since they're not truly partitions) on the routers HDD which hold the "firmware" contained within the filesystem segment. The router seems to toggle back and forth between them when a .nas file is flashed into it.

I believe you're experiencing a failsafe built into the flash copy of "init" to protect against corruption or failure to one of the cramfs partitions on the HDD. If the reset button is pressed, I think it forces the router to boot from a previously good partition.

I would suspect that flashing the router twice, with a successful boot in between, would completely flush out any old images.

Can you experiment with this concept a bit and try to figure out its behavior?

- K.C.


will do...

(and then its time to get cups working again; latest svn 1.4.x fixes the bug that's in the current optware package, so i'll try and compile that one rather than reverting back to the 1.2.12 that i had working under old firmware)

Henrikh
25-01-2008, 18:51
Just flashed your firmware, and had no problems at all after deleting my old opt directory (Was filled with a lot of crap anyways :-)).

Seems to work very impressive, MLDonkey worked out of the box, same with SSH. Thank you very much for this impressive firmware, you have really improved Asus default firmware :)

mumsoft
25-01-2008, 21:35
Hi,



When migrating from 1.0.4.6, I'd recommend temporarily renaming /shares/MYVOLUME1/opt to /shares/MYVOLUME1/opt.DO_NOT_LOAD so that the /opt filesystem from the firmware image is executed.

After that, combine the new 1.0.7.8 rc.local with your old 1.0.4.6 rc.local, rename opt.DO_NOT_LOAD back to opt, and reboot the router.
- K.C.

I assume your image contains a 'default' /opt that contains /opt/etc/rc.local. I also assume /.profile is there 'somewhere'. I can't find it. But I did the minimal thing: copied my rc.local to /opt/etc. That is to my /opt, because I ran your previous firmware.
Now, I like to do what you suggest. But how? /shares/MYVOLUME1/opt is mounted to /opt and always busy (mv: cannot rename 'opt': Device or resource busy).
Should I first rename rc.local to something not functional? But will your rc.local than take over (after reboot), and again mount /shares/MYVOLUME1/opt ?

Sorry, I'm a bit :confused:
Marc

kfurge
26-01-2008, 01:27
I assume your image contains a 'default' /opt that contains /opt/etc/rc.local. I also assume /.profile is there 'somewhere'. I can't find it. But I did the minimal thing: copied my rc.local to /opt/etc. That is to my /opt, because I ran your previous firmware.
Now, I like to do what you suggest. But how? /shares/MYVOLUME1/opt is mounted to /opt and always busy (mv: cannot rename 'opt': Device or resource busy).
Should I first rename rc.local to something not functional? But will your rc.local than take over (after reboot), and again mount /shares/MYVOLUME1/opt ?

Sorry, my mistake on the .profile, I set this up a while ago... The default bash profile is in /opt/etc/profile.

Regarding your /opt problem...

The firmware looks for /shares/MYVOLUME1/opt and if it's there, then it mounts /shares/MYVOLUME1/opt over the top of the /opt that's already there and attempts to execute /opt/etc/rc.local. Which rc.local gets executed depends on whether or not /shares/MYVOLUME1/opt exists or not.

To insure the flashed copy of /opt is active, you need to rename /shares/MYVOLUME1/opt (not /opt) to something else:

cd /shares/MYVOLUME1
mv opt opt.DO_NOT_LOAD
reboot

When the router boots again, what's in /opt is the flashed filesystem. Do what you need to do to the /shares/MYVOLUME1/opt.DO_NOT_LOAD/etc/rc.local. After that, repeat the above steps, except step #2 which becomes "mv opt.DO_NOT_LOAD opt" to put everything back.

Lather, rinse, repeat until everything works...

- K.C.

kfurge
26-01-2008, 01:29
Just flashed your firmware, and had no problems at all after deleting my old opt directory (Was filled with a lot of crap anyways :-)).

Seems to work very impressive, MLDonkey worked out of the box, same with SSH. Thank you very much for this impressive firmware, you have really improved Asus default firmware :)

Yeah! Finally success for someone!

- K.C.

kfurge
26-01-2008, 01:32
will do...

(and then its time to get cups working again; latest svn 1.4.x fixes the bug that's in the current optware package, so i'll try and compile that one rather than reverting back to the 1.2.12 that i had working under old firmware)

How broken is the optware CUPS? That's been my primary (read lazy) way of adding features to the router. Is it unusable?

If so, I guess I'll have to build and install it on the router.

- K.C.

fireflash
26-01-2008, 01:40
time to nit-pick. :) Something keeps accessing the hard drive, so the drive won't power down. MLDonkey is disabled, and so is the media server.. Not much is running on it except what it needs to do it's job. I could try and kill watchdog just for giggles and see what it does.. Any suggestions?

exbliss
26-01-2008, 02:09
thanks everyone and most specially to kfurge for all your effort...

anyway, i am getting this warning.. any thoughts?

i just installed this custom firmware version 1.0.7.8 from version 2.0.0.7 via web upload.. at first nothing happened because my box doesnt reboot by itself nor even by the power button in front.. yeah, i know thats really weird.. so i then reset the box totally... and after the reboot, it reverted back to custom firmware version 1.0.4.6... i didnt know where it came from.. anyway, i tried installing the custom firmware version 1.0.7.8 via web upload and everything looks ok... except that i could not log in to the telnet using admin account so i login as root...

i read somewhere you mentioned that i kindoff store the previous firmware as sort of backup or something maybe thats why it reverted back to 1.0.4.6 from 2.0.0.7...

then i noticed that mldonkey is not starting up on its own via the rc.local script.. so i just start it myself after i login via telnet and check the logs and get this messege...

WARNING: Directory /shares/MYVOLUME1/MYSHARE1/.mldonkey is full, MLDonkey shuts down

does this means i dont have enough free space?


[root@(none) MYSHARE1]$ df -h
Filesystem Size Used Available Use% Mounted on
rootfs 67.1M 67.1M 0 100% /
/dev/root 1.3M 1.3M 0 100% /mnt
/dev/ide/host2/bus0/target0/lun0/part2
67.1M 67.1M 0 100% /

if its is and so... how do i clean up and free up some space? HELP! ='(

kfurge
26-01-2008, 02:11
time to nit-pick. :) Something keeps accessing the hard drive, so the drive won't power down. MLDonkey is disabled, and so is the media server.. Not much is running on it except what it needs to do it's job. I could try and kill watchdog just for giggles and see what it does.. Any suggestions?
It's not watchdog. Try disabling more applications. You can speed up the trial and error process by issuing the following command from a terminal window:

hdparm -y /dev/ide/host2/bus0/target0/lun0/disc

Keep disabling applications and doing this until the drive stays spun down for at least 60 seconds.

FWIW, the drive does not completely spin down with this firmware. It enters a low RPM mode which reduces drive wear and tear at spin up.

- K.C.

kfurge
26-01-2008, 02:35
WARNING: Directory /shares/MYVOLUME1/MYSHARE1/.mldonkey is full, MLDonkey shuts down

You have some strange stuff going on. Your primary data partition on the HDD is not there! You should have a /dev/se/2 mounted on /shares/MYVOLUME1.

My output looks like:

[root@WL700gE cups]$ df -h
Filesystem Size Used Available Use% Mounted on
rootfs 67.1M 67.1M 0 100% /
/dev/root 1.3M 1.3M 0 100% /mnt
/dev/ide/host2/bus0/target0/lun0/part2 67.1M 67.1M 0 100% /
/dev/se/2 232.3G 170.6M 232.1G 0% /shares/MYVOLUME1
/dev/se/2 232.3G 170.6M 232.1G 0% /opt


I'd recommend completely purging the router of the 2.0.xx settings by pressing the recessed reset button while powering up the router. You may have to reflash the 1.0.7.8 image after this.

- K.C.

exbliss
26-01-2008, 03:03
You have some strange stuff going on. Your primary data partition on the HDD is not there! You should have a /dev/se/2 mounted on /shares/MYVOLUME1.

I'd recommend completely purging the router of the 2.0.xx settings by pressing the recessed reset button while powering up the router. You may have to reflash the 1.0.7.8 image after this.

- K.C.

Oh my god! now that you mentioned, yeah i realized its missing.. in the web it says unmounted and there isnt any option to mount it... in the explorer, \\192.168.1.1 doesnt have the share forlder...

what have i done?!?!

i have already reset it a couple of times already and reflash it again and its still not mounting... is there anything i can mount this manually? :confused:

fireflash
26-01-2008, 03:40
It's not watchdog. Try disabling more applications. You can speed up the trial and error process by issuing the following command from a terminal window:

hdparm -y /dev/ide/host2/bus0/target0/lun0/disc

Keep disabling applications and doing this until the drive stays spun down for at least 60 seconds.

FWIW, the drive does not completely spin down with this firmware. It enters a low RPM mode which reduces drive wear and tear at spin up.

- K.C.

if I disable anything else the poor thing will stop working! :) I'll see what else I can kill, but it's running just enough to do what it needs to do, nothing special.

Edit: Here's what I've got running:


PID Uid VSZ Stat Command
1 root 9116 S init
2 root SW< [keventd]
3 root SW [events/0]
4 root SWN [ksoftirqd_CPU0]
5 root SW [kswapd]
6 root SW [bdflush]
7 root SW [kupdated]
8 root SW [mtdblockd]
9 root SW [khubd]
14 root SW< [mdrecoveryd]
74 root SW< [ksed]
75 root SW [ksechanged]
77 root SW [gpio_out_pulse]
78 root SW [button_notify_u]
106 root SW< [raid1d]
111 root SW< [raid1d]
120 root SW [kreiserfsd]
195 root 3600 S syslogd -R 255.255.255.255
197 root 3552 S klogd
199 root 11040 S httpd 80 y
201 root 11020 S httpd 8080 share_browsing
207 root 4908 S upnp -D -L br0 -W eth0
208 root 4708 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
217 root 1880 S udhcpd /tmp/udhcpd_lan.conf
221 root 2188 S dnsmasq -i br0 -r /tmp/resolv.conf
228 root 8520 S /usr/local/samba/sbin/smbd
241 root 1856 S udhcpc -i eth0 -p /var/run/udhcpc.pid -s /tmp/udhcpc -H Routerhosen
242 root 6792 S /usr/local/samba/sbin/nmbd
267 root 8520 S /usr/local/samba/sbin/smbd
275 root 5824 S waveservermain
277 root 5824 S rcamdmain
278 root 4808 S infosvr br0
289 root 5824 S usbcopymain
512 root 2164 S utelnetd -d -i br0
519 root 1364 S /opt/sbin/dropbear
4235 root 1444 R /opt/sbin/dropbear
4236 admin 2108 S -bash
4237 root 2108 S bash
4242 root 1792 R ps

marcolino
26-01-2008, 07:29
Am not experienced with linux, anyway i tried to upgrade to kfurge version.
After plain installation I didn't have the new telnet interface and I was not able to run mldonkey (changes do not commit to nvram, "nvram show" seems to be unchanged).
I was playing with rc.local for a while, so i had copy rc.local form /opt/etc to /shares/MYVOLUME1/opt/etc and BIG MISTAKE I deleted rc.local from /opt/etc. After reboot I was no more able to gain login access to system trough a telnet session. Telnet has old interface and system ask for a login and a password but no name/password satisfy the request. My windows is USBA.
Please, what can I do?

exbliss
26-01-2008, 10:53
Oh my god! now that you mentioned, yeah i realized its missing.. in the web it says unmounted and there isnt any option to mount it... in the explorer, \\192.168.1.1 doesnt have the share forlder...

what have i done?!?!

i have already reset it a couple of times already and reflash it again and its still not mounting... is there anything i can mount this manually? :confused:

i did my homework and took crash course on unix 101 and... eureka! it turns outs i just had corrupted partition table.. so i just fixed with fdisk and rebooted a couple of times after reconfiguring stuff and al... and walla! everything is perfect! Thanks kfurge! :p your the best!

Henrikh
26-01-2008, 11:50
Am not experienced with linux, anyway i tried to upgrade to kfurge version.
After plain installation I didn't have the new telnet interface and I was not able to run mldonkey (changes do not commit to nvram, "nvram show" seems to be unchanged).
I was playing with rc.local for a while, so i had copy rc.local form /opt/etc to /shares/MYVOLUME1/opt/etc and BIG MISTAKE I deleted rc.local from /opt/etc. After reboot I was no more able to gain login access to system trough a telnet session. Telnet has old interface and system ask for a login and a password but no name/password satisfy the request. My windows is USBA.
Please, what can I do?

Well the easiest option would be to reflash with the kfurge 1.0.7.8 firmware, connect via telnet. Enter "root" as username, and you should not be prompted for a password.

This is because (as far as i understand) that firmware has programmed the firmware to mount the /shares/MYVOLUME/opt as /opt if it finds any. This means that none of his included goodies will be loaded, and therefore you can not SSH to the router and so on :)

rm -R /shares/MYVOLUME1/opt

When you reboot, the firmware no longer finds an /shares/MYVOLUMe1/opt directory, and will therefore use the /opt directory included in the firmwares filesystem. You should now be able to connect via SSH or telnet, and use the password/username you use in the webinterface.

Alternateively, you will need to rename your old opt directory by doing:
* mv /shares/MYVOLUME1/opt_DO_NOT_LOAD
* Reboot
* Copy the contents of /opt to /shares/MYVOLUME1/opt_DO_NOT_LOAD
* Rename the /shares/MYVOLUME1/opt_DO_NOT_LOAD to /shares/MYVOLUME1/opt
* Reboot

Anyways i would strongly recommend to just delete your old opt directory. I did so because i was afraid the some of my files would interfere with the files Kfurge has included. I had no problems at all after deleting my old opt directory.

kfurge
26-01-2008, 14:42
if I disable anything else the poor thing will stop working! :) I'll see what else I can kill, but it's running just enough to do what it needs to do, nothing special.

Edit: Here's what I've got running:

The only think you have running that I don't is, nas, PID 208. What's that? One other thought... Are you using the original HDD or did you change it out?

What happens when you use the hdparm command? Does the drive spin back up immediately?

- K.C.

mumsoft
26-01-2008, 16:07
Regarding your /opt problem...

The firmware looks for /shares/MYVOLUME1/opt and if it's there, then it mounts /shares/MYVOLUME1/opt over the top of the /opt that's already there and attempts to execute /opt/etc/rc.local. Which rc.local gets executed depends on whether or not /shares/MYVOLUME1/opt exists or not.
[cut]
Lather, rinse, repeat until everything works...
- K.C.

Hi, thanks, this just confirms my dark thoughts... So, as the Old formerware user, I see The Battle of Two rc.locals, fighting each other with fierce strength, until one passes away. Awry!
Here we have the K.C.Furge soldier that sets KCSHELL and names asoc in the LIB-path, en there we have my formerware fellow with his evel sword: mount -o bind /shares/${pool}/opt /opt. Wow! Klang! That wipes away our new brave fellow in /opt/etc. No! Too much dust and smoke is smashed into my eyes! It's not my brave rc.local thats doing the killing. It's the treacherous, evil rcex that stabs K.C.Furge's rc.local in the back, with it's mount bind.

As spectator of this fight I once logged in as marc and had no hostname, then with export I saw KCSHELL and asoc, which my rc.local does not have. Apparently your rc.local was executing. After sudo bash -l I did have a hostname 'sneeuwwitje', that is from my rc.local. That does its ugly mount -o bind /shares/${pool}/opt /opt.
With mount I saw this as the last lines:
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)

Henrikh likes to delete his old opt. But that is no opt(ion) for me. I have mt-daapd and Twonky running, and so much time spent there. I want to tear these rc.locals apart. So I go for the renaming of my opt, if possible.

Thanks again for clarifying, maybe it eventually can lead to a better documentation for the formerware users.

Marc

marcolino
26-01-2008, 16:10
many tanks for your prompt respons, but i forget to mention that i have already tried to reflash three times without results.

Just after telneting is shown:

(none) login:

and no passwords are good. No way to gain control. I am stuck.

Any suggestion will greatly appreciated.

fireflash
26-01-2008, 16:21
The only think you have running that I don't is, nas, PID 208. What's that? One other thought... Are you using the original HDD or did you change it out?

What happens when you use the hdparm command? Does the drive spin back up immediately?

- K.C.

I thought NAS was another form of network disc access... fat lot of good that does though, I can't get anything to connect to it :P Samba works with everything, so far.

It is the original drive, the Hitachi drive. I tried killing nas, waveservermain, rcamdmain (which seems to have killed my 'Ready' light ?!), and watchdog, and issued the command and it still spins right back up after a few seconds. I don't know what else to kill.

kfurge
26-01-2008, 18:35
It is the original drive, the Hitachi drive. I tried killing nas, waveservermain, rcamdmain (which seems to have killed my 'Ready' light ?!), and watchdog, and issued the command and it still spins right back up after a few seconds. I don't know what else to kill.
OK. There's one final place to look. Make sure "mount" shows nodiratime and noatime as below:

/dev/se/2 on /shares/MYVOLUME1 type reiserfs (rw,noatime,nodiratime)
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)

If these options are not set then any time an applications reads from the HDD the access time will be updated causing a write to the HDD.

You set these options with:

mount -o remount,noatime,nodiratime /shares/MYVOLUME1

- K.C.

kfurge
26-01-2008, 18:49
and no passwords are good. No way to gain control. I am stuck.


I'm seeing a trend here... The conversion of rc.local from 1.0.4.6 to 1.0.7.8 can be somewhat difficult and many people are getting stuck with no ability to log in. Unfortunately, unless you put the copy button bypass into *your* rc.local, the bypass does not work.

In retrospect, the bypass is in the wrong spot. It should be in /apps/bin/rcex which mounts the /opt directory and executes rc.local. That way pressing the copy button will *force* a boot with the firmware's /opt directory which is known to work. I'll be uploading an updated firmware image shortly which addresses this issue.

- K.C.

fireflash
26-01-2008, 19:37
OK. There's one final place to look. Make sure "mount" shows nodiratime and noatime as below:

/dev/se/2 on /shares/MYVOLUME1 type reiserfs (rw,noatime,nodiratime)
/dev/se/2 on /opt type reiserfs (rw,noatime,nodiratime)

If these options are not set then any time an applications reads from the HDD the access time will be updated causing a write to the HDD.

You set these options with:

mount -o remount,noatime,nodiratime /shares/MYVOLUME1

- K.C.

Nope, that ain't it either.. both are mounted correctly. I'm gonna try something silly like disabling my wireless.. Just had a silly thought.. And I'm not using it right now anyways.

kfurge
27-01-2008, 01:22
Nope, that ain't it either.. both are mounted correctly. I'm gonna try something silly like disabling my wireless.. Just had a silly thought.. And I'm not using it right now anyways.
I think I have the answer (again...). Spindown seems hit-or-miss without "smartctl -dT" to disable SMART.

Add "smartctl -dT ${internal_hdd}" to your rc.local and see if it stays spun down.

- K.C.

fireflash
27-01-2008, 01:27
I think I have the answer (again...). Spindown seems hit-or-miss without "smartctl -dT" to disable SMART.

Add "smartctl -dT ${internal_hdd}" to your rc.local and see if it stays spun down.

- K.C.

I seem to recall the same command in the old rc.local :) I'll give it a whirl and see what it does later tonight when I've stopped playing music off of it. :)

kfurge
27-01-2008, 02:54
I seem to recall the same command in the old rc.local :) I'll give it a whirl and see what it does later tonight when I've stopped playing music off of it. :)
Yea. I was hoping I could keep SMART enabled. It would be nice to have the smart status available. Wish full thinking, I guess.

- K.C.

kfurge
27-01-2008, 03:08
I've posted another release to help those who are locking themselves out with bad rc.local startup scripts. Please read this link for details:

http://wl700g.homelinux.net/drupal/?q=node/193

The image can be downloaded from here:

http://www.wl500g.info/files/asus/custom/kfurge/WL700gE_kc_1078_02.nas

or here:

http://wl700g.homelinux.net/drupal/?q=node/134

- K.C.

fireflash
27-01-2008, 03:39
Yea. I was hoping I could keep SMART enabled. It would be nice to have the smart status available. Wish full thinking, I guess.

- K.C.

Yes, it would. but the good news is, that seems to have done the trick, it just went to sleep. :)

monkey8
27-01-2008, 06:21
I'm another telnet/unix/linux newbie here.... please bare with my stupidity..

I'm able to install the customer firmware perfectly. My stupidity was to change my BT client port and tracker port to the same port#.. Now, mldonkey wouldn't start.. here is the log for mlnet.log



2008/01/27 00:14:02 [bTM] BT-client_port and BT-tracker_port can not be the same.
2008/01/27 00:14:02 [bTM] Change one of the settings and restart MLDonkey, exiting...


so I tried editing the bittorrent.ini files, but no success as the file is no attribute for write access.. I suspect mldonkey is still running? I tried turning it off, by doing nvram set kc_run_mldonkey=No. but no success also.

tried force change attribute, still no go... Can you experts point me to a possible resolution? thanks.

monkey8

Henrikh
27-01-2008, 10:48
I'm another telnet/unix/linux newbie here.... please bare with my stupidity..

I'm able to install the customer firmware perfectly. My stupidity was to change my BT client port and tracker port to the same port#.. Now, mldonkey wouldn't start.. here is the log for mlnet.log



2008/01/27 00:14:02 [bTM] BT-client_port and BT-tracker_port can not be the same.
2008/01/27 00:14:02 [bTM] Change one of the settings and restart MLDonkey, exiting...


so I tried editing the bittorrent.ini files, but no success as the file is no attribute for write access.. I suspect mldonkey is still running? I tried turning it off, by doing nvram set kc_run_mldonkey=No. but no success also.

tried force change attribute, still no go... Can you experts point me to a possible resolution? thanks.

monkey8

*NEVER MIND THIS. Bear with me, i have hangovers and have only slept for like 5 hours :-P*
Your problem is that you have both the client_port and tracker_port set to the same value. The tracker_port defines what port MLDonkey will use if you want to run your own tracker, where the client_port is the port being used to download torrents. Just reset tracker_port to its default value (6881) and only change client_port.

have you tried to open the file starting with the sudo command? (Eg. "sudo nano bittorrent.ini")? Or change the permissions (sudo chmod bittorrent.ini 777)?

pixelartist
27-01-2008, 13:46
I just want to add a hint to the new WL700gE_kc_1078_02.nas image instruction.

WAIT for it. As written by kfurge, the ready lamp will blink.

After installing this on my brick, my ready lamp came back on, no flashing at all. After 3 Minutes of hdd activity, it suddenly started flashing!

Right now i am successfully connected via telnet and trying to fix all the mess.

hweom
27-01-2008, 19:20
First of all, I want to thank kfurge for doing such a great job. Without this custom image, this router has only small part its powers.

Now goes the question :)
I've successfully installed the image and set up MLDonkey. However, MLDonkey seems to eat all available CPU time:



PID PPID USER STAT VSZ %MEM %CPU COMMAND
541 1 root R 40340 65% 93% /opt/bin/mlnet.lite -allowed_ips 127.
582 580 root S N 40340 65% 3% /opt/bin/mlnet.lite -allowed_ips 127.
191 1 root S 4880 8% 1% upnp -D -L br0 -W eth0
588 587 admin R 1792 3% 1% top
4 1 root RWN 0 0% 0% [ksoftirqd_CPU0]
5 1 root SW 0 0% 0% [kswapd]
580 541 root S 40340 65% 0% /opt/bin/mlnet.lite -allowed_ips 127.

MLDonkey web interface loads for ages. It takes several minutes to fully load transfers page.

Is it normal, or I have misconfigured something?

LeperKing
27-01-2008, 21:15
I've posted another release to help those who are locking themselves out with bad rc.local startup scripts.

So far, so good! Thanks for the great custom firmware, KC.

LK

gratitude182
27-01-2008, 21:53
thanks kfurge for your newfirmware and the work on it...

i will test it today.

grat182

pixelartist
27-01-2008, 22:13
I too want to thank Kfurge, i havent tested everything, but so far its running nice and smooth.

Great JOB!

mumsoft
27-01-2008, 22:21
Hi,

I'm doing the update of this great firmware the difficult way. I want to update my opt directory, not to remove it.
So I'm busy doing that and meanwhile I prepare sort of a howto for others.

Of course, if one of you has it complete already, please overrule me.

Marc
O, BTW: I like to THANK mister Furge for his excellent job! :)

kfurge
28-01-2008, 01:17
I'm doing the update of this great firmware the difficult way. I want to update my opt directory, not to remove it.
So I'm busy doing that and meanwhile I prepare sort of a howto for others.


Thank you Marc! I look forward to your how-to contributions.

- K.C.

P.S. I'm in the same boat you are. I have quite a substantial /opt on my own primary router that will be brought kicking and screaming to 1.0.7.8 soon.

tuepen
28-01-2008, 03:32
will i lose all my files on the box when i reflash/upgrading firmware?

fireflash
28-01-2008, 03:44
will i lose all my files on the box when i reflash/upgrading firmware?

99.9% of the time, no. There is always that .1% chance that something will go ker-plooie though. If you're the paranoid type, backup your goods. :)

mumsoft
28-01-2008, 09:10
will i lose all my files on the box when i reflash/upgrading firmware?

Not likely. But if you have a /shares/MYVOLUME1/opt folder and a running rc.local from your 1.0.4.6 KC Furge image, it is best to, BEFORE you do the update: mv /shares/MYVOLUME1/opt /shares/MYVOLUME1/opt_DO_NOT_LOAD
If you get a message about opt being busy
a) disable all own added software. Set # in front of such startups in rc.local, but at least leave the telnet stuff there unaltered.
b) reboot
c) mv /shares/MYVOLUME1/opt /shares/MYVOLUME1/opt_DO_NOT_LOAD (you need to have telnet running or this will not be possible)

I have updated my Asus without this and had several problems with not starting up, resetting etc. I even had to reset to factory defaults once. I blame the old rc.local.
But all my shares are untouched, music, pictures etc are not affected.

So take care, and wait a while till I finish my how to

Marc

elgatoz
28-01-2008, 12:27
First of all, I want to thank kfurge for doing such a great job. Without this custom image, this router has only small part its powers.

Now goes the question :)
I've successfully installed the image and set up MLDonkey. However, MLDonkey seems to eat all available CPU time:



PID PPID USER STAT VSZ %MEM %CPU COMMAND
541 1 root R 40340 65% 93% /opt/bin/mlnet.lite -allowed_ips 127.
582 580 root S N 40340 65% 3% /opt/bin/mlnet.lite -allowed_ips 127.
191 1 root S 4880 8% 1% upnp -D -L br0 -W eth0
588 587 admin R 1792 3% 1% top
4 1 root RWN 0 0% 0% [ksoftirqd_CPU0]
5 1 root SW 0 0% 0% [kswapd]
580 541 root S 40340 65% 0% /opt/bin/mlnet.lite -allowed_ips 127.

MLDonkey web interface loads for ages. It takes several minutes to fully load transfers page.

Is it normal, or I have misconfigured something?

i believe not, are you downloading files with many sources? or have you put files in your share folder and now its hashing? give more info's

marcolino
28-01-2008, 16:41
Two question:
1) Since mldonkey use a LOT of cpu resources would be very interesting having the possibility to start and stop it in a easy way. Stopping of course is only a matter of killing the core using Sancho, but restarting requires a telnet session and typing some annoying commands (not very comfortable).

2) I have the ftp server accessible from wan and would be very interesting to me knowing who is connected at that time, possibly in real time. Is there the possibility? Could I manage the user's connections?

Thanks in advance to anyone will help me.
(sorry for my ignorance and rusty english, but EXPERTS exists to be hopefully helpful)

hweom
28-01-2008, 17:58
i believe not, are you downloading files with many sources? or have you put files in your share folder and now its hashing? give more info's

I have ~10 files with >100 sources each.
I have set up share a day ago, so I suppose hashing should be done by now. CPU usage is sill up to 100%

dalanik
28-01-2008, 22:05
2) I have the ftp server accessible from wan and would be very interesting to me knowing who is connected at that time, possibly in real time. Is there the possibility? Could I manage the user's connections?


I wanted to ask the same thing! Or at least, be able to disable some accounts that have access to ftp?

D.

elgatoz
29-01-2008, 02:56
I have ~10 files with >100 sources each.
I have set up share a day ago, so I suppose hashing should be done by now. CPU usage is sill up to 100%

hmmm i think that is too much for the cpu :eek:
you can play with loop_delay to save cpuload and try to reduce disk access cause i think this is still the bottleneck playing with diskbuffer etc..
http://mldonkey.sourceforge.net/MemoryUsage maybe useful too

but imo this will not help thats just too much,
i started one big well seeded torrent ~40peers 500-700kb/s download= 80% cpuload, like to hear more mldonkey-experience on the wl700 here :) greetz

edit: setting share_scan_intervall=0 try this too

monkey8
29-01-2008, 10:41
*NEVER MIND THIS. Bear with me, i have hangovers and have only slept for like 5 hours :-P*
Your problem is that you have both the client_port and tracker_port set to the same value. The tracker_port defines what port MLDonkey will use if you want to run your own tracker, where the client_port is the port being used to download torrents. Just reset tracker_port to its default value (6881) and only change client_port.

have you tried to open the file starting with the sudo command? (Eg. "sudo nano bittorrent.ini")? Or change the permissions (sudo chmod bittorrent.ini 777)?


Thank you Henrikh!! this resolved my issue. I was in pain trying to get that fix and I only had 2 hrs of sleep that night.

Now, I have second problem. I have wl700ge behind my Linksys WRT54G (192.168.3.1). wl700ge is getting a static IP addr. of 192.168.3.100. Meaning, I have wl700ge treated as a client behind my WRT54G. before I mess up the ports 2 days ago, I was able to HTTP access MLdonkey by typing in 192.168.3.100:4080. The first time I had an error that asked me to add my PC's ip address (192.168.3.109) into mldonkey's 'allowed_ips'. I did, and it worked.

Now after i fixed the port issue, I can't access it anymore. i have even tried the 'nvram set kc_ssh_wan_access=Yes' still no go. I wonder what I did wrong? note, I can access WL700gE web Manager by just typing in 192.168.3.100 tho.. umm..

So, simply, hope the above arn't too complicated. I wish to access mldonkey's webui from outside... it was possible before, but now can't. Any suggestions?

thanks in advance.. and kfurge, keep up the great work! I appreciate what you offer to the community!

kfurge
30-01-2008, 00:41
The first time I had an error that asked me to add my PC's ip address (192.168.3.109) into mldonkey's 'allowed_ips'. I did, and it worked.


Interesting. You shouldn't have had to do this since the entire internal subnet 192.168.3.x is configured for full access by the startup script.



So, simply, hope the above arn't too complicated. I wish to access mldonkey's webui from outside... it was possible before, but now can't. Any suggestions?


What do you mean by outside? So far everything you mentioned has been "inside". I.e. on the LAN interface 192.168.3.x. Is this what you can no longer access?

Please log into the router via telnet or ssh and post the mldonkey startup output in /tmp/mldonkey.out.

- K.C.

ice-cool
30-01-2008, 04:50
Something must have happened when the file got copied... The 42000 GID is indicative of an Asus made user. Maybe you didn't copy it as root? The firmware image has the UID:GID for all files set to 0:0.

Fixing is easy with chgrp, though other sudo related files are probably also broken.

- K.C.

I have a problem same Neil


Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory


Sorry this is a dumb question and Im very newbie.
I don't know how to chgrp. ?
Could you give me more detail fro fix this problem ?

monkey8
30-01-2008, 08:29
Interesting. You shouldn't have had to do this since the entire internal subnet 192.168.3.x is configured for full access by the startup script.



What do you mean by outside? So far everything you mentioned has been "inside". I.e. on the LAN interface 192.168.3.x. Is this what you can no longer access?

Please log into the router via telnet or ssh and post the mldonkey startup output in /tmp/mldonkey.out.

- K.C.

Thanks for the prompt reply, kfurge.

mldonkey startup output in /tmp/mldonkey.out:

2008/01/29 19:05:44 [cO] Starting MLDonkey 2.9.2 ...
2008/01/29 19:05:44 [cO] Language EN, locale ASCII, ulimit for open files 1024
2008/01/29 19:05:44 [cO] MLDonkey is working in /shares/MYVOLUME1/MYSHARE1/.mldonkey
2008/01/29 19:05:44 [Gettext] Loading language resource mlnet_strings.EN_ASCII
2008/01/29 19:05:44 [cO] loaded language resource file
2008/01/29 19:05:44 [DNS] Resolving [WL700gE] ...
2008/01/29 19:05:45 [DNS] Resolving [www.mldonkey.org] ...
2008/01/29 19:05:45 [cO] Logging in /shares/MYVOLUME1/MYSHARE1/.mldonkey/mlnet.log
2008/01/29 19:05:49 [dMain] Core started


Here is my current connection:


Linksys (WAN IP= Public addr., LAN IP = 192.168.3.1)
|
|
|
+----- wl700ge (WAN IP= 192.168.3.100, LAN IP 192.168.1.1)
| |
| |
| |
| +------ System two (LAN IP = 192.168.1.100)
.
.
.

|
+----- System One (LAN IP = 192.168.3.109)



as you can see from the above diagram, from System two, I have no problem accessing mldonkey's http webui. However, I'm not able to from System One, which I was able to before. Any ideas?

thx.

dalanik
31-01-2008, 11:24
What about connecting to the Mldonkey web interface (or via sancho) from the outside (WAN)? Is that possible?

kfurge
01-02-2008, 00:43
as you can see from the above diagram, from System two, I have no problem accessing mldonkey's http webui. However, I'm not able to from System One, which I was able to before. Any ideas?


If the firewall is enabled, you will have to punch a hole through it for the mldonkey http port. Otherwise nobody on the 192.168.3.x network will be able to attach. Maybe you initially didn't have the firewall enabled? If it's on, maybe you should disable it?

Regarding your network configuration... It seems a little strange... Is there a reason why you have it this way? Why not make the wl700g an AP and keep everything on the same network?

- K.C.

kfurge
01-02-2008, 00:44
What about connecting to the Mldonkey web interface (or via sancho) from the outside (WAN)? Is that possible?

I could pretty easily make this configurable like wan SSH access.

- K.C.

kfurge
01-02-2008, 00:48
tion and Im very newbie.
I don't know how to chgrp. ?
Could you give me more detail fro fix this problem ?

I'm unclear what your problem(s) are... Regarding chgrp, there are plenty of on-line linux manpages. Google "chgrp manpage".

Regarding your wget problem, I think your path is messed up. You must have /opt/bin and /opt/sbin before /bin and /sbin. The wget on the router must not be good enough.

- K.C.

hweom
01-02-2008, 04:43
i started one big well seeded torrent ~40peers 500-700kb/s download= 80% cpuload, like to hear more mldonkey-experience on the wl700 here :) greetz

edit: setting share_scan_intervall=0 try this too

I set share_scan_interval = 0 and also ED2K-max_sources_per_file = 100.
MLDonkey keeps occupying 85-99% of CPU, but it doesn't seem to affect whole system performance. Web surfing and file access are pretty fast. eDonkey downloading is also OK - about 1Gb per day.

monkey8
03-02-2008, 01:45
If the firewall is enabled, you will have to punch a hole through it for the mldonkey http port. Otherwise nobody on the 102.168.3.x network will be able to attach. Maybe you initially didn't have the firewall enabled? If it's on, maybe you should disable it?

Regarding your network configuration... It seems a little strange... Is there a reason why you have it this way? Why not make the wl700g an AP and keep everything on the same network?

- K.C.

haha. Kfurge, I feel stupid. it's really the firewall...

I will be using wl700ge as the main AP as soon as I have it setup and persuade my brother to get rid of the WRT54g.

one question about mldonkey's download speed limit.. I use it primary for BT. I notice in all my downloads speed will never go pass the 20k/s mark.

i've tried the change the max_hard_download_rate to any values over 20, but it wouldn't let me. however, my max_hard_download_rate_2 = 150.

any ideas on this as well? thanks in advance!

kfurge
03-02-2008, 03:39
one question about mldonkey's download speed limit.. I use it primary for BT. I notice in all my downloads speed will never go pass the 20k/s mark.


I suspect it's related to your network topology again. Other BT peers can't connecto to your wl700g through the linksys router. Because of this your download speed will be throttled back. You will need to configure your linksys router to forward your BT port to the wl700g.

- K.C.

dalanik
04-02-2008, 15:52
I could pretty easily make this configurable like wan SSH access.

- K.C.

That would be cool! Thanx!

D.

dalanik
04-02-2008, 21:15
I just flashed again with 2nd release of Kfurge firmware... and it worked similary to the 1st time... it started uploading the image, then screen went blank, and nothing happened... internet was functional the whole time. then I pressed on/off button, but it just went offline (ready off), and when I pressed again - i saw ready blinking 3 times!!! which means that it even didn't require power-cycle to apply new firmware!?? Weird, but it works :-)

Hytekk
05-02-2008, 07:09
Hi !

I thank you Kfurge (and everyone else who is contributing) for the effort your are doing to the ASUS. I just downloaded and installed your latest 1.0.7.8-firmware. Everything seems to be working nicely, except that telneted into the router and trying to issue the command 'ipkg update' gives me this error:

"
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory"

So i figured there were some error with the wget and tried running the command 'ipkg install wget' and got this message:

"Package wget (1.10.2-4) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.
WARNING: Unable to remove temporary directory: : No such file or directory"

So it seems to be latest wget already installed with your firmware, but what about the error I receive trying to issue the command 'ipkg update" ? What does this mean "WARNING: Unable to remove temporary directory: : No such file or directory" - where is this temp directory ?

Thanks,
Hytekk

mumsoft
05-02-2008, 09:40
Hi !
"WARNING: Unable to remove temporary directory: : No such file or directory" - where is this temp directory ?

Thanks,
Hytekk

I have this also when I do this as non-root user.
So, do this before:
sudo bash -l
and try again.

Marc

Hytekk
05-02-2008, 11:41
Thanks for your reply mumsoft !

I have tried that and when i read your answer i even resetted by asus to the default settings. After that i logged in as admin with the pw admin and i still get the same error:

[admin@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory
[admin@WL700gE /]$
[admin@WL700gE /]$ sudo bash -l

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
[admin@WL700gE /]$
[admin@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory
[admin@WL700gE /]$
[admin@WL700gE /]$
[admin@WL700gE /]$
[admin@WL700gE /]$ ls -al

What am i doing wrong here?

-Hytekk

mumsoft
05-02-2008, 15:35
[admin@WL700gE /]$ sudo bash -l

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
[admin@WL700gE /]$

What am i doing wrong here?

-Hytekk

My guess: KC Furge has used root as user, not admin. I think that you use password based access, that is, have no other users than admin, which you also use for the web interface.
So maybe this helps: change to UBSA. That will create the user root for you.
Then, after logging in as admin, you should be able to use sudo bash -l and see:
Password: ....
[root@WL700gE /]$

This will probably do it.

Marc

Hytekk
05-02-2008, 17:28
Hi again and thanks for your quick response ! :)

I did what u told me to and activated userbased passwords, created a user called hytekk with a password, then telneted into the router and logged on as user hytekk. And as u can see i then issued the following commands - but still i get the same error. (The directory BACKUP is a directory i created just to play around with chown/chmod-settings, figuring that that might cause the problem.

[hytekk@WL700gE BACKUP]$ whoami
hytekk
[hytekk@WL700gE BACKUP]$
[hytekk@WL700gE BACKUP]$ sudo bash -l

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
[root@WL700gE BACKUP]$
[root@WL700gE BACKUP]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory
[root@WL700gE BACKUP]$
[root@WL700gE BACKUP]$ pwd
/shares/MYVOLUME1/BACKUP


Any more clues?

Thanks in advance,
Hytekk

kfurge
05-02-2008, 18:27
Any more clues?


I think you have something very fundamentally broken. I tested package update and add, as root, in both UBSA and PBSA modes. Shouldn't matter either way as root is always present in /etc/passwd regardless of the mode.

Did you complete all of the steps referenced here:

http://wl700g.homelinux.net/drupal/?q=node/187

If so then please post the outputs of "mount" and "echo $PATH".

- K.C.

mumsoft
05-02-2008, 20:54
Any more clues?

Thanks in advance,
Hytekk

Well, I'm never out of ideas, no matter how bad they turn out eventually.
I just tested ipkg update as root, but I have now the original /opt from the firmware, that is not writable. Guess what I got...

[root@Sneeuwwitje /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory

But I really think this is too simple...
Or is it???

Marc

dalanik
06-02-2008, 14:39
I just tested ipkg update as root, but I have now the original /opt from the firmware, that is not writable. Guess what I got...


I'm getting the same... I had 1.0.4.6 and upgraded to kfurge Rel1 and the Rel2 of 1.0.7.8, so it's not like I had custom 1.0.4.6 previously...

i just found Midnight Commander File Manager as optware and wanted to try to install it... but ipkg update and ipkg upgrade return errors as Hytekk wrote...

D.

dalanik
06-02-2008, 18:29
Success! The mistake was that I tried ipkg update without copying opt directory!

now i have mc.... :-) COOL!

http://wl700ge.lanik.org/mc.jpg

LeperKing
06-02-2008, 18:55
Looks good, you should do a tutorial on that.

dalanik
06-02-2008, 19:21
Looks good, you should do a tutorial on that.

It's actually pretty simple, as written in kfurge's tutorial.

* Logon to the router via PuTTY as admin, then type exactly as here (replace [PASSWORD] with your password:

sudo bash -l
[PASSWORD]

(cd /; tar cf - opt) | (cd /shares/MYVOLUME1; tar xf -)

mount -o bind /shares/MYVOLUME1/opt /opt

ipkg update

ipkg upgrade

ipkg install mc

* finally, run the program with

mc

or

mc -c

in case it doesn't run in color

yeller
07-02-2008, 22:52
I could pretty easily make this configurable like wan SSH access.

- K.C.

I'd definitely use this if enabled.

BTW, thanks for the new package. Installed without problems.

yeller
07-02-2008, 23:41
Does anyone know where I can find a decent MLDonkey user guide for this version?

I'm trying to change the default port (BT-client_port) from 6882 to something else, but the changes won't take affect (press enter, reboot router). I am also applying Kfurge's commands:
4# Type "nvram set kc_bt_port=XXXXX"
5# Type "nvram commit"

Am I missing something?

yeller
08-02-2008, 02:32
Kfurge, should I be able to externally telnet to the router if I enable these settings? (From your setup guide).

To allow ssh access from the WAN (external) interface
1. Telnet or ssh to the router
2. Gain root access
3. Type "nvram set kc_ssh_wan_access=Yes"
4. Type "nvram commit"
5. Restart the router

I tried the commands above multiple times and keep getting:
Connecting To <WAN IP address>...Could not open connection to the host, on port 23: Connect failed

kfurge
08-02-2008, 02:44
Kfurge, should I be able to externally telnet to the router if I enable these settings? (From your setup guide).


No. You can only access the router via SSH (port 22), not telnet (port 23). Telnet is open on the LAN interface only.

- K.C.

yeller
08-02-2008, 02:51
No. You can only access the router via SSH (port 22), not telnet (port 23). Telnet is open on the LAN interface only.

- K.C.

I'm using Putty now. Thanks for the clarification.

exbliss
10-02-2008, 19:54
It's actually pretty simple, as written in kfurge's tutorial.

Whats wrong? why i cant get this right?



[admin@WL700gE /]$ sudo bash -l

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
[root@WL700gE /]$ (cd /; tar cf - opt) | (cd /shares/MYVOLUME1; tar xf -)
[root@WL700gE /]$ mount -o bind /shares/MYVOLUME1/opt /opt
[root@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
[root@WL700gE /]$ ipkg upgrade
Upgrading sudo on /opt/ from 1.6.9.11-1 to 1.6.9.12-1...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/sudo_1.6.9.12-1_mipsel.ipk
Configuration file '/opt/etc/sudoers'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D) [default=N] ?D
Upgrading uclibc-opt on /opt/ from 0.9.28-12 to 0.9.28-13...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
Upgrading wget on /opt/ from 1.10.2-4 to 1.11-1...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/wget_1.11-1_mipsel.ipk
Configuring sudo
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Configuring wget
Successfully terminated.
[root@WL700gE /]$ ipkg install mc
Installing mc (4.6.1-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mc_4.6.1-3_mipsel.ipk
package slang suggests installing pcre
package slang suggests installing libpng
Installing glib (2.9.6-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/glib_2.9.6-1_mipsel.ipk
Installing slang (2.1.2-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/slang_2.1.2-1_mipsel.ipk
Installing e2fsprogs (1.40.3-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/e2fsprogs_1.40.3-2_mipsel.ipk
Configuring glib
Configuring slang
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-dR58hZ http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/e2fsprogs_1.40.3-2_mipsel.ipk'
Failed to download e2fsprogs. Perhaps you need to run 'ipkg update'?
[root@WL700gE /]$
[root@WL700gE /]$ ipkg upgrade
Nothing to be done
Successfully terminated.
[root@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
[root@WL700gE /]$ ipkg install mc
Installing mc (4.6.1-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mc_4.6.1-3_mipsel.ipk
Installing e2fsprogs (1.40.3-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/e2fsprogs_1.40.3-2_mipsel.ipk
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-kilScV http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/e2fsprogs_1.40.3-2_mipsel.ipk'
Failed to download e2fsprogs. Perhaps you need to run 'ipkg update'?
[root@WL700gE /]$ mc
bash: mc: command not found
[root@WL700gE /]$ df -g
df: illegal option -- g
BusyBox v1.9.0 (2007-12-27 10:43:06 UTC) multi-call binary

Usage: df [-hmk] [FILESYSTEM...]

Print filesystem usage statistics

Options:
-h Human readable (e.g. 1K 243M 2G)
-m 1024*1024 blocks
-k 1024 blocks

[root@WL700gE /]$ df -h
Filesystem Size Used Available Use% Mounted on
rootfs 67.1M 67.1M 0 100% /
/dev/root 1.3M 1.3M 0 100% /mnt
/dev/ide/host2/bus0/target0/lun0/part2
67.1M 67.1M 0 100% /
/dev/se/2 152.8G 12.2G 140.6G 8% /shares/MYVOLUME1
/dev/se/2 152.8G 12.2G 140.6G 8% /opt
[root@WL700gE /]$

dalanik
11-02-2008, 09:15
Hm, I forgot about the prompt where it asks you whether to overwrite or use existing config. I wasn't sure what to do, so I just kept the old file.


==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D) [default=N] ?D

I really am not a Linux expert, but the fault seems to be in the "ipkg install mc" command, it terminates with error, the rest seems fine:


[root@WL700gE /]$ ipkg install mc
Installing mc (4.6.1-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/mc_4.6.1-3_mipsel.ipk
package slang suggests installing pcre
package slang suggests installing libpng
Installing glib (2.9.6-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/glib_2.9.6-1_mipsel.ipk
Installing slang (2.1.2-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/slang_2.1.2-1_mipsel.ipk
Installing e2fsprogs (1.40.3-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/e2fsprogs_1.40.3-2_mipsel.ipk
Configuring glib
Configuring slang
An error ocurred, return value: 22.

Did you try to install it one more time?

D.

eznet
18-02-2008, 23:36
I've also installed 1.0.7.8 after making a mistake in my old rc.local with the 1.0.4.6 kfurge firmware.

Thanks Kfurge for that last change, it saved my day.

Now having got everything running for a couple of weeks now, I've played with MLdonkey and found it's performance less than satisfactory. I've now settled on Transmission which works very well.

I have only one problem at this stage and that is that ever since upgrading to 1.0.7.8, my USB connected Canon MP780 printer is printing extremely slowly. For example, the test page from WinXP takes about 10 minutes to print. If I try to print anything with any images on it, it's much worse. I note that top reports that most of the time there is at most 2MB of free memory.

I also note that upnp seems to have a much higher "time" than anything else, and seems to be using more CPU than anything else. I have no other upnp devices on the LAN.

A picture of the router running top shows this "higher time":

2523

Any suggestions? How can I disable upnp so that it isn't running; I want to experiment on what might be slowing the box down.

Thanks

eznet.

Extreme
25-02-2008, 23:40
Hi at all,

I just installed this great firmware and while finetuning it I made a non reproducable mistake :(
After rebooting I tried to login via telnet and I got:
login: cannot run /opt/bin/bash: No such file or directory

SSH login wont work also.

I installed the software again with the Asus Firmware Restoration Tool 'cause I hoped everything would be resetted but this also did not help.

Who can help me with this ?

Regards,

Extreme

kfurge
26-02-2008, 02:14
I just installed this great firmware and while finetuning it I made a non reproducable mistake :(

Make sure to flash the latest image from here:

http://www.wl500g.info/files/asus/custom/kfurge/WL700gE_kc_1078_02.nas

Press and hold the copy button when the ready light blinks three times until it stops blinking. This will bypass any of your customizations and should allow the router to boot.

- K.C.

emailpr
28-02-2008, 16:18
KFURGE.. I have never been able to add a user thru the web interface using any of your custom firmware.. is it a problem on my router ??

I use the web interface and it allows me to change the setting to user based access.. but then when I click on add user.. it allows me to enter username and password etc.. but when I click on apply.. it always fails and a error box pops up.. Somehow this problem goes away when I use the Asus Firmware..(both 4.6 and 7.8)..

Why could this be happening??

Extreme
28-02-2008, 17:39
Hi kfurge,

thx for your hint -I did not manage to do it this way but found another:
after installing the original firmware all looks fine again.
Now - of course - I'll install yours again :)

Best regards and keep the good work up,

Extreme

eznet
28-02-2008, 23:26
Hi again,

I posted recently regarding issues with very slow printing. Given the lack of response I'm guessing that others aren't having the same problems, so I've started looking some more on my own.

My latest step has been to install the ASUS 1.0.7.8 firmware, thus losing all of the niceties of the KFurge (02) customisations.

Whilst I haven't tested the printing yet, the first thing I've noticed is that the overall performance of the box has improved dramatically. Browsing the internet is far more responsive. I ran the top command (not the nice one that kfurge provided unfortunately), and noted that the available memory was about 3.5MB. top didn't report the process names, which was a pain, so I don't know how much CPU upnp is using.

Will continue looking, though any suggestions are welcome. If printing works OK tonight, I'll put the KFurge version back in without any additional packages to see what happens then.

eznet

mumsoft
29-02-2008, 08:01
KFURGE.. I have never been able to add a user thru the web interface using any of your custom firmware.. is it a problem on my router ??

I use the web interface and it allows me to change the setting to user based access.. but then when I click on add user.. it allows me to enter username and password etc.. but when I click on apply.. it always fails and a error box pops up.. Somehow this problem goes away when I use the Asus Firmware..(both 4.6 and 7.8)..

Why could this be happening??

Maybe you should copy your /opt to /shares/MYVOLUME1/opt, as described here:
http://wl700g.homelinux.net/drupal/?q=node/187

See if that helps.
I have made and deleted a user yesterday without a problem. It also lets me specify to which shares the new user has access.

Marc

mumsoft
29-02-2008, 14:57
Hi again,

I posted recently regarding issues with very slow printing. Given the lack of response I'm guessing that others aren't having the same problems, so I've started looking some more on my own.

My latest step has been to install the ASUS 1.0.7.8 firmware, thus losing all of the niceties of the KFurge (02) customisations.

Whilst I haven't tested the printing yet, the first thing I've noticed is that the overall performance of the box has improved dramatically. Browsing the internet is far more responsive. I ran the top command (not the nice one that kfurge provided unfortunately), and noted that the available memory was about 3.5MB. top didn't report the process names, which was a pain, so I don't know how much CPU upnp is using.

Will continue looking, though any suggestions are welcome. If printing works OK tonight, I'll put the KFurge version back in without any additional packages to see what happens then.

eznet

Did you have a look here?
http://wl700g.homelinux.net/drupal/?q=node/197

I don't use a printer with the asus, but my the overall performance with the custom firmware is far better than in the 1.0.4.6 times.
Also I don't have UPNP running. Don't need it.

Marc

kfurge
01-03-2008, 00:00
KFURGE.. I have never been able to add a user thru the web interface using any of your custom firmware.. is it a problem on my router ??

Works OK on my router.

- K.C.

kfurge
01-03-2008, 00:06
Whilst I haven't tested the printing yet, the first thing I've noticed is that the overall performance of the box has improved dramatically. Browsing the internet is far more responsive.

What happens when you stop upnpd?

- K.C.

emailpr
02-03-2008, 04:53
Thanks Marc.. I'll test your solution..

No thanks to Kfurge.

emailpr
02-03-2008, 04:59
i don't think that is the problem Marc.. I had covered that step when I followed the instructions on that website when I upgraded from 1.0.4.8 to 1.0.7.8..
Like I said.. I've had that problem even when I had the custom 1.0.4.6

mumsoft
02-03-2008, 13:21
i don't think that is the problem Marc.. I had covered that step when I followed the instructions on that website when I upgraded from 1.0.4.8 to 1.0.7.8..
Like I said.. I've had that problem even when I had the custom 1.0.4.6

It's weird. But you do have a work-around: install the original Asus firmware, create shares & users like you wish, install the custom firmware. Then you have both, although you won't be able to create another user.
What exactly is the error message? If I create a user, it tells me something like: user successfully created!.
Also, if you create a superfluous testuser with the original firmware, are you able to delete it with the custom firmware?
Do you have similar passwd files as I have:

[marc@Sneeuwwitje home]$ ls -all /etc/passwd
lrwxrwxrwx 1 root root 11 Dec 31 2001 /etc/passwd -> /tmp/passwd
[marc@Sneeuwwitje home]$ ls -all /tmp/passwd
lrwxrwxrwx 1 root root 30 Mar 2 13:10 /tmp/passwd -> /shares/MYVOLUME1/__pdc/passwd

If I create a user, the /shares/MYVOLUME1/__pdc/passwd file is altered, and that is reflected in /tmp/passwd and /etc/passwd that are only links.

Happy debugging :o
Marc

emailpr
02-03-2008, 20:03
hey thanks buddy!.. I think that worked.. I installed the factory firmware.. created the users.. and then I over-wrote it with the custom firmware..and then i was able to manipulate the users.. like add and delete..

Thanks a bunch for your help!!.. regards..

emailpr
02-03-2008, 20:04
now that I have a username with full access.. when I log in from terminal services.. I can only log in as root.. and not with the username and password that I created... Is that normal???

mumsoft
02-03-2008, 20:38
hey thanks buddy!.. I think that worked.. I installed the factory firmware.. created the users.. and then I over-wrote it with the custom firmware..and then i was able to manipulate the users.. like add and delete..

Thanks a bunch for your help!!.. regards..

Ha, that's very nice to hear. I was just guessing for you, only if I guess for myself, it never helps.
I have still my problem with NFS, and nobody has reacted so far. Buh. Still waiting for some other Linux user that wants to try NFS...

Now, your problem is over, but we don't know what the culprit was...
Anyway, enjoy

Marc

mumsoft
02-03-2008, 20:50
now that I have a username with full access.. when I log in from terminal services.. I can only log in as root.. and not with the username and password that I created... Is that normal???

No. But (again) what is the message? Did you create a home directory for that user? Is that reflected in /etc/passwd? What happens, if you do, after logging in as root:
sudo -u marc bash
with marc replaced with your user name?
In my passwd I have:
marc:-passwordgarbage-:35000:42000:marc:/opt/home/marc:/opt/bin/bash
and I have created /opt/home/marc.

See, questions, questions.

happy debugging
Marc

eznet
03-03-2008, 01:13
Did you have a look here?
http://wl700g.homelinux.net/drupal/?q=node/197

I don't use a printer with the asus, but my the overall performance with the custom firmware is far better than in the 1.0.4.6 times.
Also I don't have UPNP running. Don't need it.

Marc

No, I hadn't seen the response there. I have been watching it but obviously not actively enough.

Since my last post I tested the printing, and it was still very slow. I also finally opened my eyes long enough to notice the UPNP switch in the configuration, so that has been killed and can no longer be blamed.

I'm now back to running the 1.0.7.8 (custom), and have no idea beyond the suggestion to install CUPS, which last time I looked, seemed quite involved in it's setup.

Thanks though.

eznet
06-03-2008, 22:54
Ok, so I haven't fixed the original problem. I still don't know why the default print deamon is performing so badly with 1.0.7.8, but I can report that after an hours work with the latest version of CUPS (thanks for the suggestion KFurge), I now have it running, and printing at speeds that are more than satisfactory.

The only thing I haven't worked out yet with CUPS is how to access the web interface from the local LAN without first having to establish an SSL connection via PUTTY and tunnelling in.

Printing works a treat. When I get a chance in the next week, I'll write up the steps I took and add them to another thread on this forum that has a great deal of discussion about getting CUPS running.

Thanks for your help.

fredibau
09-03-2008, 17:44
Are there som funktion to make back/restore of my config settings in
you'r new custom firmware ?

I need it.

Asus firmware don't have the option on the webinterface.

Maybe you have som tip via telnet to do that.

:)
/fredibau

jjgg
09-03-2008, 19:45
Hi Kfurge.
How can we customize this file. Several packages need this (imap, saned, ...)?
Thanks in advance.
Rgds,
jjgg

mumsoft
09-03-2008, 21:45
Are there som funktion to make back/restore of my config settings in
you'r new custom firmware ?

I need it.

Asus firmware don't have the option on the webinterface.

Maybe you have som tip via telnet to do that.

:)
/fredibau

Hi,

As Asus did not provide such function, I don't think that KFurge will be able to do that. I know however that the other firmwares as open wrt (kamikaze etc) do have such functionality.
Meanwhile, looking around in /tmp with telnet, I noticed a file 'settings' that I copied to my home directory, and it seems to contain every setting I can see in the web interface. However, this file disappears also irregularly.
I don't think it will serve as a restore possibility, but you can find your settings in it. The /tmp directory contains many more files with settings. For instance, nas.lan.conf has your WPA-password.

regards,
Marc

kfurge
10-03-2008, 02:03
Hi Kfurge.
How can we customize this file. Several packages need this (imap, saned, ...)?
Thanks in advance.
Rgds,
jjgg

Use "mount -o bind" to mount another /etc over the top of the existing one. I put making /etc/services a symlink on my todo list for a future release.

- K.C.

\

kfurge
10-03-2008, 02:07
The only thing I haven't worked out yet with CUPS is how to access the web interface from the local LAN without first having to establish an SSL connection via PUTTY and tunnelling in.


Glad CUPS is working for you. I have it working on my router as well. Not sure why you can't connect to it, though. I have no problems connecting to mine (192.168.1.1:631) from the LAN.

- K.C.

kfurge
10-03-2008, 02:10
I have still my problem with NFS, and nobody has reacted so far. Buh. Still waiting for some other Linux user that wants to try NFS...


I use NFS to connect my Linux box to the router all the time. What's not working for you?

- K.C.

kfurge
10-03-2008, 02:10
T
No thanks to Kfurge.

No problem.

- K.C.

mumsoft
10-03-2008, 08:19
I use NFS to connect my Linux box to the router all the time. What's not working for you?

- K.C.

NFS works now. please see http://wl500g.info/showthread.php?t=13326

regards,
Marc

darbid
10-03-2008, 12:01
Thank you Kfurge for the work put into your version and the great tutorials on installing it. As I am an experience idiot with Linux I have followed your tutorials and all is good.

One problem though is that i cannot write things to the internal drive when using windows explorer and the network devices windows finds. It says I do not have the right.

I worked out the "cp" command and attached an USB drive to the router and copied files that way, without needing sudo.

So why can I not copy them the old (new) way from a computer and windows networks.

kfurge
11-03-2008, 01:09
So why can I not copy them the old (new) way from a computer and windows networks.
The directory permissions are probably not right. If you are not too concerned with security, go right above the directory that's being shared and type:

chmod -R 777 ./YOUR_DIRECTORY_NAME

This will set wide-open permissions on the primary directory, files, and subdirectories and set all files are readable and writable by anyone.

- K.C.

darbid
11-03-2008, 05:51
Yes my linix command crash course has led me to the chmod command. And I have done exactly what you have said only worse: I did it all the way along.

chmod -R ugo=rwx /shares

but still no luck.

OOPPPPS you need to reboot and then the above worked. Ok if anyone would like to give me a little hint about which directory I need to give permissions to and which I can reverse to what it was like before?

fredibau
11-03-2008, 11:17
Hi,

As Asus did not provide such function, I don't think that KFurge will be able to do that. I know however that the other firmwares as open wrt (kamikaze etc) do have such functionality.
Meanwhile, looking around in /tmp with telnet, I noticed a file 'settings' that I copied to my home directory, and it seems to contain every setting I can see in the web interface. However, this file disappears also irregularly.
I don't think it will serve as a restore possibility, but you can find your settings in it. The /tmp directory contains many more files with settings. For instance, nas.lan.conf has your WPA-password.

regards,
Marc

How to do that (looking around in /tmp with telnet)
i can log in to telnet but nothing else.

Please guide me.

mumsoft
11-03-2008, 21:47
How to do that (looking around in /tmp with telnet)
i can log in to telnet but nothing else.

Please guide me.

Hmm, this is not the right place for such things I'm afraid. Maybe you could ask DARBID what he did to do the linux crash course?
Try Google with Linux newbie or Linux commands or so.
I found this for instance:
http://linux-newbie.sunsite.dk/html/lnag.html#6.Linux%20Shortcuts%20and%20Commands|out line

You really can benefit from some basic understanding.
Start with:
ls (= dir)
ls -all
man ls
cd
pwd


Regards,
Marc

fredibau
12-03-2008, 10:08
Hmm, this is not the right place for such things I'm afraid. Maybe you could ask DARBID what he did to do the linux crash course?
Try Google with Linux newbie or Linux commands or so.
I found this for instance:
http://linux-newbie.sunsite.dk/html/lnag.html#6.Linux%20Shortcuts%20and%20Commands|out line

You really can benefit from some basic understanding.
Start with:
ls (= dir)
ls -all
man ls
cd
pwd


Regards,
Marc

Thanks this is what I need to start up
I thing it's look like UNIX.

I have work with UNIX many years back
So maybe this I my luck

Lanich
13-03-2008, 17:55
Hello. My provider gives two protocols type: PPPoE(Internet) and Static IP (Local Resource). What should i do to use both of them together?

Thanks

mumsoft
13-03-2008, 21:23
Yes my linix command crash course has led me to the chmod command. And I have done exactly what you have said only worse: I did it all the way along.

chmod -R ugo=rwx /shares

but still no luck.

OOPPPPS you need to reboot and then the above worked. Ok if anyone would like to give me a little hint about which directory I need to give permissions to and which I can reverse to what it was like before?

Brrrr. Ok, the hint. /shares/MYVOLUME1/MYSHARE1/<your choice>
Because you took /shares you have changed the rights for all there is. Apart from starting all over I don't think it's easy to revert your changes.
But maybe someone pops up with a script to do so.

Regards
Marc

mumsoft
15-03-2008, 16:11
Dear KFurge,

Can you tell why the Asus takes so long to reach the point where the ready light blinks? It takes a mere 3 minutes. Is it busy to check the filesystem, or what?
Also, is it possible (in the next relaese) to get rid of the first telnet deamon? It is unsafe, and it confuses many people when 'you' start the safer version. This counts more because it takes so long to boot.
And why is the ready light on, long before it executes my rc.local? What does ready mean here?

Ok, questions you might not know answers for, but I'll appreciate it if you have some. :)

Another question. When I log in as myself (admin), I have KCSHELL as variable, because I made a .profile in /opt/home/marc. I also did this for root, that has /opt/home/root as home dir. Now with sudo bash -l I have KCSHELL as root. But, you guess, after rebooting the home-dir of root is changed to /, no .profile is executed, and hence I don't have KCSHELL after sudo bash -l.
I found that /opt/etc/init.kc/fix_passwd.sh is to blame...

Regards
Marc

Fullback
30-03-2008, 07:46
I don't know why it wont let me login anymore
when i try to login to root using sudo bash -l
i get
Password:
admin is not in the sudoers file. This incident will be reported.
[admin@WL700gE /]$
??? any reason why this could be happing?

I checked my sudoers file and it seems fine

[admin@WL700gE /]$ vi opt/etc/sudoers

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
_______
I have no clue how one day i can't just login anymore? But if i login as "root" and type my web interface password everything works fine. login as: root
root@76.206.254.162's password:
[root@WL700gE /]$

___
I just can't switch from admin@WL700gE to root. ? any thoughts on this would be cool.

mumsoft
30-03-2008, 13:26
I don't know why it wont let me login anymore
when i try to login to root using sudo bash -l
i get
Password:
admin is not in the sudoers file. This incident will be reported.
[admin@WL700gE /]$
??? any reason why this could be happing?

I checked my sudoers file and it seems fine

[admin@WL700gE /]$ vi opt/etc/sudoers

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
_______
I have no clue how one day i can't just login anymore? But if i login as "root" and type my web interface password everything works fine. login as: root
root@76.206.254.162's password:
[root@WL700gE /]$

___
I just can't switch from admin@WL700gE to root. ? any thoughts on this would be cool.

I have this:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# prevent environment variables from influencing programs in an
# unexpected or harmful way (CVE-2005-2959, CVE-2005-4158,
# CVE-2006-0151)
Defaults always_set_home
Defaults env_reset

# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly
# installed system. When configuring sudo, delete the two
# following lines:
Defaults targetpw # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now

Not an expert here. But I think you miss the ALL-part (and some defaults).
If you log in as admin (you'd better change this, make it you first name or so, and CHANGE the default password), admin is not listed in the sudoers file, so it can not do this.
Maybe I changed my sudoers file way back:
ls -l /opt/etc/sudoers
-r--r----- 1 root root 1180 Mar 4 2007 /opt/etc/sudoers

Thinking this over, it might be a good idea to replace ALL ALL=(ALL) ALL with something like marc ALL=(ALL) ALL. But I must stress that I'm not an expert. I always use su :eek: in Suse as a (nasty) habit.

Regards
Marc

Rick
31-03-2008, 20:53
I have a problem with installing Twonkymediaserver.

I have a Wl700ge Met Kfurge 1.0.7.8 Firmware.
Every time i want to start twonky i get the messages "premission denied"
Also it is not possible for me to delete a directory/file using browse shares.

What am i doing wrong?
How do i get full controle over the Wl700ge ?

Here is a exaple of my telnet session.

[admin@WL700gE /]$ ls
apps foreign_shares proc usr
bin lib sbin var
dev mnt shares www
etc opt tmp
[admin@WL700gE /]$
[admin@WL700gE /]$ cd shares
[admin@WL700gE shares]$
[admin@WL700gE shares]$ cd MYVOLUME1
[admin@WL700gE MYVOLUME1]$
[admin@WL700gE MYVOLUME1]$ cd MYSHARE1
[admin@WL700gE MYSHARE1]$
[admin@WL700gE MYSHARE1]$ cd Twonkyvision
[admin@WL700gE Twonkyvision]$
[admin@WL700gE Twonkyvision]$ ./twonkymediaserver
-bash: ./twonkymediaserver: Permission denied
[admin@WL700gE Twonkyvision]$
[admin@WL700gE Twonkyvision]$ chmod 755 twonkymediaserver
chmod: twonkymediaserver: Operation not permitted
[admin@WL700gE Twonkyvision]$
[admin@WL700gE Twonkyvision]$

greetings.

Rick

mumsoft
31-03-2008, 21:23
I have a problem with installing Twonkymediaserver.

I have a Wl700ge Met Kfurge 1.0.7.8 Firmware.
Every time i want to start twonky i get the messages "premission denied"
Also it is not possible for me to delete a directory/file using browse shares.

What am i doing wrong?
How do i get full controle over the Wl700ge ?

Here is a exaple of my telnet session.

[admin@WL700gE Twonkyvision]$ ./twonkymediaserver
-bash: ./twonkymediaserver: Permission denied
[admin@WL700gE Twonkyvision]$
[admin@WL700gE Twonkyvision]$ chmod 755 twonkymediaserver
chmod: twonkymediaserver: Operation not permitted

greetings.

Rick

First, admin is not root. You should login as root, or sudo bash -l to get root-rights
Second, why did you put twonky in the standard share directory? I have installed mine in /opt/share/TwonkyMedia, so that it is not reachable with smb. That's more save. If I recall, I just unzipped twonkymedia-mss-4.4.4.zip, and in my rc.local I have:

#Start Twonkymedia, needs original library_path
/opt/share/TwonkyMedia/twonkymedia &

export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
export LD_LIBRARY_PATH=/opt/lib:/apps/lib:/apps/usr/gift-nasoc/lib
export KCSHELL=/opt/bin/bash

Regard,
Marc

Rick
01-04-2008, 21:55
I managed to get Twonky working.

but now i want to delete the Directory.
where is placed Twonky, that is
shares/MYVOLUME1/MYSHARE1/Twonkyvision

But i dont have premission to do so by "Browse share" or bij normal acces trough windows. it says Error: Permission denied.
How can i Delete directorys, filles in shares/MYVOLUME1/MYSHARE1/ ??

Greetings Rick

mumsoft
02-04-2008, 13:09
I managed to get Twonky working.

but now i want to delete the Directory.
where is placed Twonky, that is
shares/MYVOLUME1/MYSHARE1/Twonkyvision

But i dont have premission to do so by "Browse share" or bij normal acces trough windows. it says Error: Permission denied.
How can i Delete directorys, filles in shares/MYVOLUME1/MYSHARE1/ ??

Greetings Rick

If you mean that you try to do this via SMB sharing, then it has to deal with SMB security of the Asus, of which I don't know anything.:p
Anyway, with SMB I can delete stuff in the standard directories (music, photo etc), but not in others.:confused:
But if you telnet to your asus, login as root or become root (sudo bash -l), it will make all things possible. Remove with
rm -R /shares/MYVOLUME1/MYSHARE1/Twonkyvision

I assume you have KFurge custom 1.0.7.8 firmware running.:D


Regards,
Marc

Rick
02-04-2008, 20:04
I manged to delete the directory the way u said...
by using "rm -R" command.
thnx.
and on the asus its for mee also possible to delete filles in the photos, music, video dir.... but when i am in MYSHARE1 not possible only with, telnet. ?

Gizmo1007
03-04-2008, 13:52
I don't know why it wont let me login anymore
when i try to login to root using sudo bash -l
i get
Password:
admin is not in the sudoers file. This incident will be reported.
[admin@WL700gE /]$
??? any reason why this could be happing?

I checked my sudoers file and it seems fine

[admin@WL700gE /]$ vi opt/etc/sudoers

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL
Admin ALL=(ALL) PASSWD: ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
_______
I have no clue how one day i can't just login anymore? But if i login as "root" and type my web interface password everything works fine. login as: root
root@76.206.254.162's password:
[root@WL700gE /]$

___
I just can't switch from admin@WL700gE to root. ? any thoughts on this would be cool.



Fullback,

All you need to do is add the information in red to your sudoers file and it will work. login as root and then change the file.

Rgs

Gizmo1007
03-04-2008, 16:12
I seem to be having a recurring problem with the passwd file on the new firmware.

I cannot seem to get the opt/home/username to work with pbsa access?

My question is it possible to have the system running on password based access and to be able to use dropbear for logging in through putty?

If i use pbsa the system overwrites the passwd file and I cannot log in.
I have noted from previous threads that there is no __pdc file either which looks odd.

I have been able to set up system as either psba or usba but I wonder is it possible to have a bit of both??

Hi, I figured it out, seems to be with the firmware, had it downloaded for a while reflashed a new one and all is well

Rick
03-04-2008, 22:20
I made a mistake last night, and now i am not able to loging using telnet

(none) login: admin

Password:
Login incorrect
(none) login: admin

Password:
Login incorrect
(none) login:

this is what happens when i use putty.....
hoe do i recover from this problem , i tried to install the fimware again , with no luck......
also tried to flash to 2.0.0.7 firmware and back again, but no luck either..

is there anyway to login and maybe change/delete the password list/file ?

mumsoft
04-04-2008, 21:27
I seem to be having a recurring problem with the passwd file on the new firmware.

I cannot seem to get the opt/home/username to work with pbsa access?

My question is it possible to have the system running on password based access and to be able to use dropbear for logging in through putty?

If i use pbsa the system overwrites the passwd file and I cannot log in.
I have noted from previous threads that there is no __pdc file either which looks odd.

I have been able to set up system as either psba or usba but I wonder is it possible to have a bit of both??

Hi, I figured it out, seems to be with the firmware, had it downloaded for a while reflashed a new one and all is well

Hi, did you read this post:
http://wl500g.info/showpost.php?p=88249&postcount=142
so you might have to edit /opt/etc/init.kc/fix_passwd.sh

Marc

mumsoft
04-04-2008, 21:30
I made a mistake last night, and now i am not able to loging using telnet

(none) login: admin

Password:
Login incorrect
(none) login: admin

Password:
Login incorrect
(none) login:

this is what happens when i use putty.....
hoe do i recover from this problem , i tried to install the fimware again , with no luck......
also tried to flash to 2.0.0.7 firmware and back again, but no luck either..

is there anyway to login and maybe change/delete the password list/file ?

What mistake?
The (none) part should be the name of your asus, default WL700ge or so. But it is only set after a long while after start (> 3mins)

If I were you, I should try to switch from PBSA to UBSA or vice versa, maybe that helps.

Regard,
Marc

Rick
04-04-2008, 23:51
Thx for replying so quickly but unfortunatly it did not help....................
I have read some where that u can press the copy button to select a diffrent start up script but i did not get lucky to do this.......

But when i instal firmware 2.0.0.7 i am able to telnet to the router.
but when i go back to kfurge 1.0.7.8 i still have the same problem.

any other good ideas ?

Groeten :confused::mad::eek::)

mumsoft
05-04-2008, 14:03
Thx for replying so quickly but unfortunatly it did not help....................
I have read some where that u can press the copy button to select a diffrent start up script but i did not get lucky to do this.......

But when i instal firmware 2.0.0.7 i am able to telnet to the router.
but when i go back to kfurge 1.0.7.8 i still have the same problem.

any other good ideas ?

Groeten :confused::mad::eek::)

Ok other good ideas?
With Kfurge 1.0.7.8 (the latest) you have to wait for about 3 minutes after booting the Asus before the ready lights starts to blink. It will shine all the time before that moment. When it blinks, press the copy button and hold it until the ready light stops blinking.
Then the default rc.local will be executed, your /shares/MYVOLUME1/opt will not be placed over /opt, and well, this should lead to a state that telnet is possible.
Second idea: if you can telnet with firmware 2.0.0.7 (this is an extremely dangerous firmware, and if I were you, I would remove the WAN-cable before installing 2.0.0.7), you should be able to do something about /shares/MYVOLUME1/opt/etc/rc.local. Maybe rename it or so (mv rc.local rc.vocal)

Good luck
en de groeten terug
Marc :)

Rick
05-04-2008, 16:26
i am conntected to the router...
i want to go to shares/MYVOLUME1/opt/etc/rc.local
but there is no data in this directory....... is that strange ?

mumsoft
05-04-2008, 20:58
i am conntected to the router...
i want to go to shares/MYVOLUME1/opt/etc/rc.local
but there is no data in this directory....... is that strange ?

No, that is, shares/MYVOLUME1/opt/etc/rc.local is no directory, but a file :o. To get there, type:

cd /shares/MYVOLUME1/opt/etc
cat rc.local
Cat is similar to type in DOS
then
mv rc.local rc.vocal or something you like better to rename this stuff :rolleyes:.

Good luck,
Marc

Rick
06-04-2008, 15:39
Yesterday i installed WinSCP, made a new connection withe the "SCP" protocol and was able to move, copy filles much easier...
so now i have twonky in the opt/share/twonkymedia directory
also found out that when a failure occured, for example i screwd up my rc.local and i wanted to login using putty i could not loging any more under the user admin.

(none) login: admin
Password:
Login incorrect

but with the user root i was able to loging in and changed back the rc.local
to original

(none) login: root

now the only thing left to do is to start twonky, automatic.
i have read some threads and changed rc.local
but with no luck.

when is start twonky manually.
i get this :

WL700gE login: root

Password:
[root@WL700gE /]$ cd opt/share/twonkymedia
[root@WL700gE twonkymedia]$
[root@WL700gE twonkymedia]$ ./twonkymedia
./twonkymedia: /opt/lib/libpthread.so.0: no version information available (required by ./twonkymedia)
Segmentation fault
[root@WL700gE twonkymedia]$
[root@WL700gE twonkymedia]$


but now when i first type in this line -> export LD_LIBRARY_PATH=/lib:/opt/lib
i am able to start the server.
with "ps"commando i can see what programmas are running and twonky is one of them.

[root@WL700gE twonkymedia]$ export LD_LIBRARY_PATH=/lib:/opt/lib
[root@WL700gE twonkymedia]$
[root@WL700gE twonkymedia]$ ./twonkymedia
[root@WL700gE twonkymedia]$
[root@WL700gE twonkymedia]$ TwonkyMedia Version 4.4.4
ps
PID Uid VSZ Stat Command
1 root 9116 S init
2 root SW< [keventd]
3 root SW [events/0]
4 root SWN [ksoftirqd_CPU0]
5 root SW [kswapd]
6 root SW [bdflush]
7 root SW [kupdated]
8 root SW [mtdblockd]
9 root SW [khubd]
14 root SW< [mdrecoveryd]
74 root SW< [ksed]
75 root SW [ksechanged]
77 root SW [gpio_out_pulse]
78 root SW [button_notify_u]
106 root SW< [raid1d]
111 root SW< [raid1d]
114 root SW [kreiserfsd]
173 root 3600 S syslogd -R 255.255.255.255
175 root 3552 S klogd
177 root 11020 S httpd 80 y
179 root 11020 S httpd 8080 share_browsing
185 root 4880 S upnp -D -L br0 -W eth0
195 root 1880 S udhcpd /tmp/udhcpd_lan.conf
199 root 2188 S dnsmasq -i br0 -r /tmp/resolv.conf
209 root 8520 S /usr/local/samba/sbin/smbd
219 root 1856 S udhcpc -i eth0 -p /var/run/udhcpc.pid -s /tmp/udhcpc
224 root 6792 S /usr/local/samba/sbin/nmbd
228 root 5072 S vsftpd /etc/vsftpd.conf
244 root 8520 S /usr/local/samba/sbin/smbd
259 root 5824 S waveservermain
261 root 5824 S rcamdmain
262 root 4808 S infosvr br0
263 root 5832 S watchdog
275 root 5824 S usbcopymain
490 root 3172 S thttpd -d /shares/MYVOLUME1/MYSHARE1/web -c ** -p 808
492 root 6748 S dms /shares/DMSRoot WL700gE 00:1B:FC:22:43:FA
500 root 6748 S dms /shares/DMSRoot WL700gE 00:1B:FC:22:43:FA
504 root 6748 S dms /shares/DMSRoot WL700gE 00:1B:FC:22:43:FA
506 root 6748 S dms /shares/DMSRoot WL700gE 00:1B:FC:22:43:FA
515 root 3468 S ./dmathined /shares/MYVOLUME1/MYSHARE1 2
518 root 3076 S mt-daapd -c /tmp/mt-daapd.conf -s WL700gE
519 root 8044 S mt-daapd -c /tmp/mt-daapd.conf -s WL700gE
521 root 8044 S mt-daapd -c /tmp/mt-daapd.conf -s WL700gE
522 root 8044 S mt-daapd -c /tmp/mt-daapd.conf -s WL700gE
525 root 5732 S giftd --home-dir=/shares/MYVOLUME1/MYSHARE1/Download
534 root 8044 S mt-daapd -c /tmp/mt-daapd.conf -s WL700gE
543 guest 9128 S < /usr/local/samba/sbin/smbd
575 root 2164 S utelnetd -d -i br0
582 root 1364 S /opt/sbin/dropbear
612 root 1444 S /opt/sbin/dropbear
613 root 2024 S -bash
625 root 2132 S -bash
628 root 1876 S ./twonkymedia
629 root 23472 S ./twonkymediaserver
630 root 23472 S ./twonkymediaserver
631 root 23472 S ./twonkymediaserver
632 root 23472 S ./twonkymediaserver
633 root 23472 S ./twonkymediaserver
634 root 23472 S ./twonkymediaserver
635 root 23472 S ./twonkymediaserver
636 root 23472 S ./twonkymediaserver
637 root 23472 S ./twonkymediaserver
638 root 23472 S ./twonkymediaserver
640 root 23472 R ./twonkymediaserver
648 root 23472 S ./twonkymediaserver
649 root 1792 R ps
[root@WL700gE twonkymedia]$
[root@WL700gE twonkymedia]$

so how do i modify te rc.local the correct way i tried, the code what was posted but with no luck.....

Gegroet Rick. :):):)

mumsoft
06-04-2008, 20:38
Hi Rick,

To start Twonky automatically, you must start it before changing libraries in rc.local. So here is the first part of my rc.local


#!/opt/bin/bash

#############
# Get nvram variables
#############
pool=`nvram get apps_pool`
share=`nvram get apps_share`
kc_spin_down_hdd=`nvram get kc_spin_down_hdd`

#############
# Misc defines
#############
internal_hdd=/dev/ide/host2/bus0/target0/lun0/disc

#############
# These items only run once at power up
#############
if [ ! -f /tmp/rc.local.done ]; then

#Start Twonkymedia, werkt met originele library_path
/opt/share/TwonkyMedia/twonkymedia &

export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
export LD_LIBRARY_PATH=/opt/lib:/apps/lib:/apps/usr/gift-nasoc/lib
export KCSHELL=/opt/bin/bash


This works for me, you must adjust the directory for Twonky to your setup, Linux is case sensitive. :cool:

Good luck,
Marc

Rick
08-04-2008, 19:31
oke thx..
i`ll give this a try but for now i will leave it as its is am happy the router is finally working correct , with twonky.
so the next challenge i am facing is installing SABnzb.
Hope everything goes as told on :

http://wl700g.homelinux.net/portal/content/view/44/30/

Greetings. Rick

Rick
10-04-2008, 15:37
I have set my router to WAN Acces.
but to day i saw in my log file :

Apr 10 06:02:05 dropbear[1172]: exit before auth: Disconnect received
Apr 10 06:02:06 dropbear[1173]: login attempt for nonexistent user from 194.169.227.233:41438
Apr 10 06:02:07 dropbear[1173]: exit before auth: Disconnect received
Apr 10 06:02:08 dropbear[1174]: login attempt for nonexistent user from 194.169.227.233:41649

etc. etc etc.

does this means some is trying to login in to my router, at random port numbers ????
because there are several attemps with diffrent port numbers.

greetings Rick

gingishan1
13-04-2008, 09:39
This is what i get. Can someone please tell me what it means?

Apr 13 06:34:20 dropbear[9718]: Child connection from 202.100.82.230:57558
Apr 13 06:34:30 dropbear[9718]: exit before auth: Failed to get remote version
Apr 13 06:40:59 dropbear[9731]: Child connection from 202.100.82.230:60421
Apr 13 06:41:02 dropbear[9732]: Child connection from 202.100.82.230:60514
Apr 13 06:41:05 dropbear[9733]: Child connection from 202.100.82.230:60663
Apr 13 06:41:05 dropbear[9731]: bad password attempt for 'root' from 202.100.82.230:60421
Apr 13 06:41:07 dropbear[9731]: exit before auth (user 'root', 1 fails): Disconnect received
Apr 13 06:41:07 dropbear[9734]: Child connection from 202.100.82.230:60803
Apr 13 06:41:08 dropbear[9735]: Child connection from 202.100.82.230:60837
Apr 13 06:41:11 dropbear[9738]: Child connection from 202.100.82.230:32840
Apr 13 06:41:12 dropbear[9732]: exit before auth: Exited normally
Apr 13 06:41:13 dropbear[9735]: bad password attempt for 'root' from 202.100.82.230:60837
Apr 13 06:41:13 dropbear[9735]: exit before auth (user 'root', 1 fails): Disconnect received
Apr 13 06:41:14 dropbear[9739]: Child connection from 202.100.82.230:33101
Apr 13 06:41:15 dropbear[9734]: bad password attempt for 'root' from 202.100.82.230:60803
Apr 13 06:41:16 dropbear[9733]: exit before auth: Failed to get remote version
Apr 13 06:41:16 dropbear[9734]: exit before auth (user 'root', 1 fails): Disconnect received
Apr 13 06:41:17 dropbear[9740]: Child connection from 202.100.82.230:33370
Apr 13 06:41:17 dropbear[9741]: Child connection from 202.100.82.230:33402
Apr 13 06:41:18 dropbear[9742]: Child connection from 202.100.82.230:33093
Apr 13 06:41:19 dropbear[9739]: bad password attempt for 'root' from 202.100.82.230:33101
Apr 13 06:41:20 dropbear[9739]: exit before auth (user 'root', 1 fails): Disconnect received
Apr 13 06:41:20 dropbear[9743]: Child connection from 202.100.82.230:33708
Apr 13 06:41:22 dropbear[9738]: exit before auth: Failed to get remote version
Apr 13 06:41:22 dropbear[9741]: login attempt for nonexistent user from 202.100.82.230:33402
Apr 13 06:41:23 dropbear[9741]: exit before auth: Disconnect received
Apr 13 06:41:23 dropbear[9744]: Child connection from 202.100.82.230:34076
Apr 13 06:41:25 dropbear[9740]: bad password attempt for 'root' from 202.100.82.230:33370
Apr 13 06:41:26 dropbear[9745]: Child connection from 202.100.82.230:34422
Apr 13 06:41:27 dropbear[9740]: exit before auth (user 'root', 1 fails): Exited normally
Apr 13 06:41:28 dropbear[9746]: Child connection from 202.100.82.230:34183
Apr 13 06:41:29 dropbear[9743]: login attempt for nonexistent user from 202.100.82.230:33708
Apr 13 06:41:30 dropbear[9743]: exit before auth: Exited normally
Apr 13 06:41:32 dropbear[9747]: Child connection from 202.100.82.230:35189
Apr 13 06:41:33 dropbear[9746]: login attempt for nonexistent user from 202.100.82.230:34183
Apr 13 06:41:34 dropbear[9744]: exit before auth: Failed to get remote version
Apr 13 06:41:34 dropbear[9746]: exit before auth: Exited normally
Apr 13 06:41:35 dropbear[9748]: Child connection from 202.100.82.230:35582
Apr 13 06:41:37 dropbear[9745]: exit before auth: Failed to get remote version
Apr 13 06:41:39 dropbear[9749]: Child connection from 202.100.82.230:35970
Apr 13 06:41:39 dropbear[9742]: exit before auth: Failed to get remote version
Apr 13 06:41:42 dropbear[9748]: login attempt for nonexistent user from 202.100.82.230:35582
Apr 13 06:41:43 dropbear[9747]: exit before auth: Failed to get remote version
Apr 13 06:41:43 dropbear[9748]: exit before auth: Disconnect received
Apr 13 06:41:44 dropbear[9749]: login attempt for nonexistent user from 202.100.82.230:35970
Apr 13 06:41:44 dropbear[9752]: Child connection from 202.100.82.230:36634
Apr 13 06:41:45 dropbear[9753]: Child connection from 202.100.82.230:36358
Apr 13 06:41:45 dropbear[9749]: exit before auth: Disconnect received
Apr 13 06:41:45 dropbear[9754]: Child connection from 202.100.82.230:36768
Apr 13 06:41:45 dropbear[9755]: Child connection from 202.100.82.230:36888
Apr 13 06:41:48 dropbear[9756]: Child connection from 202.100.82.230:37160
Apr 13 06:41:49 dropbear[9752]: login attempt for nonexistent user from 202.100.82.230:36634
Apr 13 06:41:50 dropbear[9752]: exit before auth: Disconnect received
Apr 13 06:41:51 dropbear[9758]: Child connection from 202.100.82.230:37511
Apr 13 06:41:51 dropbear[9754]: login attempt for nonexistent user from 202.100.82.230:36768
Apr 13 06:41:52 dropbear[9754]: exit before auth: Disconnect received
Apr 13 06:41:53 dropbear[9759]: Child connection from 202.100.82.230:37805
Apr 13 06:41:53 dropbear[9753]: exit before auth: Exited normally
Apr 13 06:41:54 dropbear[9760]: Child connection from 202.100.82.230:37928
Apr 13 06:41:58 dropbear[9759]: login attempt for nonexistent user from 202.100.82.230:37805
Apr 13 06:41:59 dropbear[9759]: exit before auth: Disconnect received
Apr 13 06:42:00 dropbear[9761]: Child connection from 202.100.82.230:38663
Apr 13 06:42:06 dropbear[9755]: exit before auth: Failed to get remote version
Apr 13 06:42:08 dropbear[9756]: exit before auth: Failed to get remote version
Apr 13 06:42:10 dropbear[9762]: Child connection from 202.100.82.230:39878
Apr 13 06:42:10 dropbear[9763]: Child connection from 202.100.82.230:39485
Apr 13 06:42:11 dropbear[9758]: exit before auth: Failed to get remote version
Apr 13 06:42:13 dropbear[9764]: Child connection from 202.100.82.230:40255
Apr 13 06:42:16 dropbear[9760]: exit before auth: Failed to get remote version
Apr 13 06:42:16 dropbear[9762]: login attempt for nonexistent user from 202.100.82.230:39878
Apr 13 06:42:17 dropbear[9762]: exit before auth: Disconnect received
Apr 13 06:42:17 dropbear[9763]: exit before auth: Exited normally
Apr 13 06:42:19 dropbear[9766]: Child connection from 202.100.82.230:41018
Apr 13 06:42:20 dropbear[9767]: Child connection from 202.100.82.230:40915
Apr 13 06:42:21 dropbear[9761]: exit before auth: Failed to get remote version
Apr 13 06:42:22 dropbear[9768]: Child connection from 202.100.82.230:41428
Apr 13 06:42:28 dropbear[9769]: Child connection from 202.100.82.230:41796
Apr 13 06:42:28 dropbear[9767]: exit before auth: Exited normally
Apr 13 06:42:31 dropbear[9770]: Child connection from 202.100.82.230:42568
Apr 13 06:42:32 dropbear[9768]: exit before auth: Failed to get remote version
Apr 13 06:42:33 dropbear[9764]: exit before auth: Failed to get remote version
Apr 13 06:42:34 dropbear[9771]: Child connection from 202.100.82.230:42962
Apr 13 06:42:37 dropbear[9772]: Child connection from 202.100.82.230:43336
Apr 13 06:42:39 dropbear[9769]: exit before auth: Failed to get remote version
Apr 13 06:42:39 dropbear[9771]: login attempt for nonexistent user from 202.100.82.230:42962
Apr 13 06:42:40 dropbear[9771]: exit before auth: Disconnect received
Apr 13 06:42:40 dropbear[9773]: Child connection from 202.100.82.230:43719
Apr 13 06:42:40 dropbear[9774]: Child connection from 202.100.82.230:43798
Apr 13 06:42:41 dropbear[9770]: exit before auth: Exited normally
Apr 13 06:42:43 dropbear[9775]: Child connection from 202.100.82.230:44109
Apr 13 06:42:44 dropbear[9772]: login attempt for nonexistent user from 202.100.82.230:43336
Apr 13 06:42:45 dropbear[9772]: exit before auth: Disconnect received
Apr 13 06:42:46 dropbear[9776]: Child connection from 202.100.82.230:44434
Apr 13 06:42:49 dropbear[9766]: exit before auth: Failed to get remote version
Apr 13 06:42:49 dropbear[9777]: Child connection from 202.100.82.230:44874
Apr 13 06:42:50 dropbear[9773]: exit before auth: Failed to get remote version
Apr 13 06:42:51 dropbear[9774]: exit before auth: Failed to get remote version
Apr 13 06:42:52 dropbear[9778]: Child connection from 202.100.82.230:45255
Apr 13 06:42:54 dropbear[9775]: exit before auth: Failed to get remote version
Apr 13 06:42:56 dropbear[9779]: Child connection from 202.100.82.230:45637
Apr 13 06:42:57 dropbear[9776]: exit before auth: Failed to get remote version
Apr 13 06:42:59 dropbear[9780]: Child connection from 202.100.82.230:45992
Apr 13 06:43:02 dropbear[9781]: Child connection from 202.100.82.230:46380
Apr 13 06:43:04 dropbear[9778]: exit before auth: Exited normally
Apr 13 06:43:05 dropbear[9783]: Child connection from 202.100.82.230:46757
Apr 13 06:43:10 dropbear[9780]: exit before auth: Exited normally
Apr 13 06:43:14 dropbear[9784]: Child connection from 202.100.82.230:47544
Apr 13 06:43:16 dropbear[9779]: exit before auth: Failed to get remote version
Apr 13 06:43:17 dropbear[9785]: Child connection from 202.100.82.230:48299
Apr 13 06:43:20 dropbear[9777]: exit before auth: Failed to get remote version
Apr 13 06:43:20 dropbear[9786]: Child connection from 202.100.82.230:48653
Apr 13 06:43:22 dropbear[9781]: exit before auth: Failed to get remote version
Apr 13 06:43:23 dropbear[9787]: Child connection from 202.100.82.230:49069
Apr 13 06:43:25 dropbear[9784]: exit before auth: Failed to get remote version
Apr 13 06:43:29 dropbear[9787]: bad password attempt for 'root' from 202.100.82.230:49069
Apr 13 06:43:29 dropbear[9788]: Child connection from 202.100.82.230:49445
Apr 13 06:43:30 dropbear[9787]: exit before auth (user 'root', 1 fails): Disconnect received
Apr 13 06:43:31 dropbear[9786]: exit before auth: Failed to get remote version
Apr 13 06:43:33 dropbear[9789]: Child connection from 202.100.82.230:50240
Apr 13 06:43:34 dropbear[9790]: Child connection from 202.100.82.230:50029
Apr 13 06:43:36 dropbear[9783]: exit before auth: Failed to get remote version
Apr 13 06:43:38 dropbear[9785]: exit before auth: Failed to get remote version
Apr 13 06:43:39 dropbear[9791]: Child connection from 202.100.82.230:50633
Apr 13 06:43:41 dropbear[9790]: exit before auth: Exited normally

Thanks in advance.

mumsoft
13-04-2008, 13:58
Could you do some investigation yourself?

Maybe login with ssh and try a random password for root, what does the log then say? :p
Maybe you could conclude then that someone evil is trying to get in!

Maybe you could edit your loooooooong quote a bit and make it shrtr.

Marc

Gizmo1007
14-04-2008, 17:16
gingishan1

Your being Hacked.
Happens a lot.
Ensure you keep dropbear with password on and look at settings for your VSFTPD sometimes they will try to get in that way as well.
If your additionally worried install fail2ban as an additional measure.

Ford
17-04-2008, 20:46
I want to start Dovecot automatic at boot up.
How can I do that in rc.local.
I tryed this several times, different ways but it won't start.
When I start Dovecot manual it works fine.
Someone there who can help me.

Gr. Ronald

kfurge
18-04-2008, 02:10
I want to start Dovecot automatic at boot up.
How can I do that in rc.local.
I tryed this several times, different ways but it won't start.
When I start Dovecot manual it works fine.
Someone there who can help me?

Two things generally are to blame for startup failures in rc.local:

1) Either your PATH, or some other environment variable, is not properly configured. Make sure all the environment matches the one your have when you login.

2) The busybox shell which executes rc.local is not able to execute the startup script for the program. Add this line to rc.local prior to executing the startup script for your application: "export KCSHELL=/opt/bin/bash". This will use bash instead of the busybox shell for every instance of /bin/sh.

- K.C.

Ford
18-04-2008, 20:29
Thanks KC for your answer.
But it don`t work this way.
Is there maybe an other way to start Dovecot automatic.

Payton
24-04-2008, 09:43
"ipkg update" will not work for me. (WL700gE_kc_1078_02.nas)
I will install the syslog-ng, please help!

THX

LeperKing
24-04-2008, 10:07
"ipkg update" will not work for me. (WL700gE_kc_1078_02.nas)
I will install the syslog-ng, please help!

THX

What's the error message?

LK

Payton
24-04-2008, 10:12
sorry for the missing err msg. i'll post it in the evening when i'm at home :-)

it was something like wget: missing URL
wget Ussage: bla bla

I also tried wget -d -P http://nslu2..../Packages.gz, but the same err. msg.

Here is the error msg:
---
[root@server /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
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.gz'
WARNING: Unable to remove temporary directory: : No such file or directory
---
and here with wget:
---
[root@server /]$ wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz--16:02:35-- http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
=> `Packages.gz'
Resolving ipkg.nslu2-linux.org... 140.211.169.169
Connecting to ipkg.nslu2-linux.org|140.211.169.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 100,368 (98K) [application/x-gzip]
Packages.gz: Permission denied

Cannot write to `Packages.gz' (No such file or directory).

I've tried to post my error msg yesterday. but it didn't work *?*

The error is, that I (root) did not have write permission! "ipkg update" can not write. "ls -la" or "mount" shows me that I have wirte permission. "touch test.txt" did not work - no permission !?!

When I open a file (for ex. etc/hosts) and edit it. That works. I can edit and save it back.

What is that, that the root user does not have write permission.:confused:

mumsoft
25-04-2008, 09:20
What is that, that the root user does not have write permission.:confused:

Probably this:
without copying /opt to /shares/MYVOLUME1/opt you will be left with a read-only, not-writable directory /opt.
Please see also:
http://wl500g.info/showpost.php?p=81432&postcount=94

Regards,
Marc

Payton
25-04-2008, 21:06
Probably this:
without copying /opt to /shares/MYVOLUME1/opt you will be left with a read-only, not-writable directory /opt.
Please see also:
http://wl500g.info/showpost.php?p=81432&postcount=94

Regards,
Marc
Ok, thank you. I'll try it.
Another question: In the original ASUS firmware only the generated user can access the ftp. but in kc's also the admin can log in.
where can I configure that, that only those users which I have "made" can log in to the ftp?

OK, thank you. worked great - but:
now, after i could update and upgrade all the pakages. i can not login via ssh. only telnet. how can i fix this? thanks a lot!

mumsoft
26-04-2008, 08:05
OK, thank you. worked great - but:
now, after i could update and upgrade all the pakages. i can not login via ssh. only telnet. how can i fix this? thanks a lot!

I did what you did. That is, first I logged in with ssh. No problem.
Then I did ipkg update. No problem.
The I did ipkg upgrade. Problem....
I had my Asus left alone quite a while, so apparently also dropbear (that does the ssh shuffle) was upgraded. When ipkg tried to configure it, I got:

Configuring dropbear

mkdir: cannot create directory '/root': Operation not permitted
and I was thrown out!
And like you I could not get in anymore with ssh. After login in with telnet I could not do sudo.
To fix this:
Login with telnet as root
do ipkg upgrade once more. You'll notice that ipkg does it all over. But now it can finish gracefully.

Here ends my lesson. Ugh, that is wrong. Should we have to conclude that upgrading is only safe with telnet?

Regards
Marc

Payton
26-04-2008, 09:56
Configuring dropbear

mkdir: cannot create directory '/root': Operation not permitted

That's the same msg i get.

But when i try again with telnet, ipkg sad that there is no upgrade needed.
The only way that helps me is to remove the opt directory from shares/MY...
reboot and copy the opt again.
if i directly upgrade ipkg from telnet it shows the same err msg again.

when i upgrade ipkg without upgrading dropbear and sudo (keep current version) than its ok. but also it shows the err msg!

vyky
26-04-2008, 10:50
Configuring dropbear

mkdir: cannot create directory '/root': Operation not permitted

That's the same msg i get.

But when i try again with telnet, ipkg sad that there is no upgrade needed.
The only way that helps me is to remove the opt directory from shares/MY...
reboot and copy the opt again.
if i directly upgrade ipkg from telnet it shows the same err msg again.

when i upgrade ipkg without upgrading dropbear and sudo (keep current version) than its ok. but also it shows the err msg!

I had the same experience when I run ipkg upgrade. I have tried to re-set administrator password via web interface and my SSH is back now. Also one has to keep in mind that it takes pretty a while when the router boots up and dropbear is started (something like 3-4min).

Payton
26-04-2008, 11:13
i know that ;)
but in my case it is not a password problem. the ssh port 22 is rejected.
i'm not a pro in linux - only a greenhorn :o
so i do not know a lot about that what ipkg does or what i can do to reconfigure dropbear.

i only want to keep my packages up to date and install and configure syslog-ng. i found a thread for installing and configure syslog-ng. but that didnt work for me.

so i'll keep try'in :D

and thanks a lot for your help!

mumsoft
26-04-2008, 15:21
i only want to keep my packages up to date and install and configure syslog-ng. i found a thread for installing and configure syslog-ng. but that didnt work for me.


Do you mean this thread?
http://wl500g.info/showthread.php?t=10394

I have syslog-ng installed and configured it with this info. (Although I never bothered to get it running, because i don't use the Asus as my primary router)

Rgds
Marc

Payton
26-04-2008, 16:08
Do you mean this thread?
http://wl500g.info/showthread.php?t=10394

I have syslog-ng installed and configured it with this info. (Although I never bothered to get it running, because i don't use the Asus as my primary router)

Rgds
Marc

You're right.
For what ist?
2. edit the postinstall-script - take no effect
3. finish the ipkg installation - take no effect

EDIT: Now it works...