LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-13-2004, 02:50 AM   #1
garlam
LQ Newbie
 
Registered: Aug 2003
Location: Pavia, Italy
Distribution: Slackware 9.0
Posts: 20

Rep: Reputation: 0
Change hostname


It could be a trivial question .... but I would like to change my hostname.

I tryed with

Code:
hostname new_host_name
as root but when I restart the machine on prompt I still see the old
hostname:

user@old_host_name>
 
Old 10-13-2004, 02:59 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You've to edit the file /etc/HOSTNAME nothing else
 
Old 10-13-2004, 03:19 AM   #3
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
edit /etc/hosts
edit /etc/HOSTNAME
hostname desiredname
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you change your Hostname? JGplt3095 Linux - Newbie 2 09-28-2005 03:02 PM
How do you change your hostname? Thaidog Linux - Newbie 6 07-24-2005 09:52 PM
How to change hostname blackbart Linux - Newbie 2 02-01-2004 03:56 PM
change hostname dincer80 Linux - Networking 3 07-31-2003 02:30 AM
change hostname kafnir Linux - Networking 1 10-21-2002 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration