View Single Post
Posts: 562 | Thanked: 1,732 times | Joined on Jan 2010 @ NYC
#5
Thanks, you are a craftyguy...

I will see after I restart next, but it worked in xterm by typing....

hostname whatevernamehere

then just hit return. kinda of too easy really unless I did something wrong.

x

Update

I too did the update through the device.

Just changing your hostname in xterm the way I did it previously will only stay until restart.

But here are the instructions I found that seem to work for me so far. No claims other than it work on mine.

Step 1) Open a terminal type the commands found in the following steps.

Step 2) become root.

Step 3) Type the command "cat /etc/hostname" to see the hostname that is currently set.

Step 4) Type the command "gedit /etc/hostname" to open the "/etc/hostname" file in a text editor. You can replace "gedit" with the name of the text editor that you prefer. There should be only one entry in this file. I used leafpad

Step 5) Edit the file to reflect the new hostname. Just type the name you want

Step 6) Save and close the file. I just restarted after this one and it seem to work fine

Step 7) Type the command "/etc/init.d/hostname.sh" to have the operating system read the "/etc/hostname" file.

Step 8) Type the command "sysctl kernel.hostname=HOSTNAME" to change the kernel.hostname variable. Replace the word "HOSTNAME" with the new hostname.

cheers

x

Last edited by xman; 2010-02-02 at 15:07.