PDA

Bekijk de volledige versie : cannot set hostname in web interface- samba cannot work



rdk
21-03-2005, 20:41
Hi
I had samba running fine in olegs custom firmware 1.7.5.9CR3

Now I have upgraded to 1.9.2.7-4. I have set hostname in the webinterface but when I ssh into the asus then I newer see the hostname like before admin@wl500g
now I have admin@x1-6-00-0e-a6-b7-e8-1f !!!!

and thus cat /var/log/smb gives me unknown hostname!

what can I do? also cat etc/hosts shows me the hostname set for 127.0.0.1 (localhost) and 192.168.1.1 (wl500g)

echo wl500g > /proc/sys/kernel/hostname

doesn't help either, after flashfs save && flashfs commit its not saved....

Cheers,
Rainer

rdk
22-03-2005, 17:48
Weird, problem solved by echo wl500g > /proc/sys/kernel/hostname
and then appying and saving settings in the webinterface!!

dont know if this is of any help for somebody...

Cheers,
Rainer

gbrancovici
26-03-2005, 00:00
It just did! ;-)

sup
11-06-2005, 21:19
Hi, before I uppgraded to the 1.9.2.7-5a firmware, I tried to add this line

wl500g > /proc/sys/kernel/hostname
to my post-boot sript, but it did not work (host name did not assigned) (the command worked when I used it manually) - any idea why (I am a very fresh newbie to scipting stuff)
the script looked like this:

#!/bin/sh
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
echo wl500g > /proc/sys/kernel/hostname
- I used this link: http://wiki.wl500g.info/index.php/how%20to%20enable%20post%20processing%20in%201.9.2 .7-CR4%20firmware to make it up.

Oleg
12-06-2005, 07:56
This is no longer required with -5a.

sup
12-06-2005, 10:47
yes, I know, I am running 5a, I was just curious why it did not work;-).