Results 1 to 6 of 6

Thread: cannot set hostname in web interface- samba cannot work

  1. #1

    cannot set hostname in web interface- samba cannot work

    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
    Last edited by rdk; 21-03-2005 at 21:01.

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

  3. #3
    It just did! ;-)

  4. #4
    Join Date
    Jan 2005
    Location
    Kysice,Czech Republic
    Posts
    46

    how to make a sript for it

    Hi, before I uppgraded to the 1.9.2.7-5a firmware, I tried to add this line
    Code:
     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:
    Code:
    #!/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/ho...CR4%20firmware to make it up.

  5. #5
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    This is no longer required with -5a.

  6. #6
    Join Date
    Jan 2005
    Location
    Kysice,Czech Republic
    Posts
    46
    yes, I know, I am running 5a, I was just curious why it did not work;-).

Similar Threads

  1. Samba and large files still doesn't work
    By KimTherkelsen in forum WL-500g Q&A
    Replies: 6
    Last Post: 06-08-2005, 09:04
  2. change hostname or device name
    By Digibuur in forum WL-300g Q&A
    Replies: 0
    Last Post: 03-08-2005, 13:22
  3. HTTP Virtual Server by header hostname
    By fabiosantos in forum WL-500g Custom Development
    Replies: 9
    Last Post: 28-02-2005, 11:33
  4. How does the Web Interface Work ?
    By WlanMan in forum WL-500g Q&A
    Replies: 5
    Last Post: 11-11-2004, 22:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •