LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changing Computer Name (https://www.linuxquestions.org/questions/slackware-14/changing-computer-name-19258/)

Lorddraco98 04-23-2002 07:27 PM

Changing Computer Name
 
Just a quick question. When Linux orgianlly setup, it had my computer name as Darkstar. So when i get to login promt it would say: Darkstar Login.
Or user@darkstar
so. When Slackware installed in network config I typed in my website name as host and domain names and now that login shows websitename login:
and user@websitename
how do I change the name back to Darkstar because I like that name so much hehe :D

Aussie 04-23-2002 07:29 PM

With hostname, do "man hostname" to see the options and switches.

Lorddraco98 04-23-2002 07:34 PM

and from there I will be able to change it back to the default(Darkstar)?(sorry, can't get on my linux rig till tomorrow. parents place too many restrictions hehe)

finegan 04-23-2002 08:26 PM

I put that on the other thread, but you can edit the one line file /etc/HOSTNAME.

The command hostname, only changes that until reboot.

Cheers,

Finegan

Lorddraco98 04-23-2002 08:58 PM

Quote:

Originally posted by finegan
I put that on the other thread, but you can edit the one line file /etc/HOSTNAME.

The command hostname, only changes that until reboot.

Cheers,

Finegan

I'm sorry dude. But I'm a complete Linux newbie. Could you, if you don't mind, list out exactly what commands and such I use to edit that file and then how to edit it? If it's too much of a pain then dont worry about it and I'll just figure out by experimenting hehe. THanks again!!

finegan 04-23-2002 09:05 PM

No problem,

pico /etc/HOSTNAME

(manuever around pico just like an old-school word processor, change the name to... darkstar.example.net (which was the default).

ctrl+o (to save)
ctrl+x (to exit)

Cheers,

Finegan

Lorddraco98 04-24-2002 06:02 AM

what do ya know, it worked. You rock man :D


All times are GMT -5. The time now is 05:35 PM.