Fedora This forum is for the discussion of the Fedora Project.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
12-11-2007, 01:22 AM
#1
Member
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 204
Thanked: 0
changing hostname
[
Log in to
get rid of this advertisement]
I changed my hostname. in /etc/sysconfig/network I have this line:
NETWORKING=yes
HOSTNAME=blag
GATEWAY=192.168.0.1
and this is from my /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 blag localhost.localdomain localhost
is that fine ?
12-11-2007, 01:23 AM
#2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.5.5, Windows 2003 Server/Vista/XP/2000/NT/98, Ubuntux64, CentOS4.7/5.2
Posts: 2,980
Thanked: 0
That is fine. You may want to reboot and check that the hostname takes effect. To take effect now, you can just type in the command line
12-11-2007, 01:45 AM
#3
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,877
Thanked: 232
Also check if you have an /etc/HOSTNAME file. You may need to edit that as well if your system uses it.
12-11-2007, 02:02 AM
#4
Member
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 204
Thanked: 0
Original Poster
Quote:
Originally Posted by
jschiwal
Also check if you have an /etc/HOSTNAME file. You may need to edit that as well if your system uses it.
No.. but I do have a
/bin/hostname binary file.
12-11-2007, 02:21 AM
#5
Member
Registered: Aug 2006
Posts: 260
Thanked: 3
Quote:
Originally Posted by
arnuld
No.. but I do have a /bin/hostname binary file.
Thats an executable.
Check for /etc/hostname (all lower-case) (as root)
12-12-2007, 01:20 AM
#6
Member
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 204
Thanked: 0
Original Poster
Quote:
Originally Posted by
deadeyes
Thats an executable.
Check for /etc/hostname (all lower-case) (as root)
nothing like that:
[root@blag arnuld]$ ls /etc/ | grep hostname
[root@blag arnuld]$ ls /etc/ | grep host
ghostscript
host.conf
hosts
hosts~
hosts.allow
hosts.deny
[root@blag arnuld]$
12-12-2007, 05:34 PM
#7
Member
Registered: Aug 2006
Posts: 260
Thanked: 3
Quote:
Originally Posted by
arnuld
nothing like that:
[root@blag arnuld]$ ls /etc/ | grep hostname
[root@blag arnuld]$ ls /etc/ | grep host
ghostscript
host.conf
hosts
hosts~
hosts.allow
hosts.deny
[root@blag arnuld]$
Create the file and put the hostname in it.
You are using ArchLinux right?
12-13-2007, 05:43 AM
#8
Member
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 204
Thanked: 0
Original Poster
Quote:
Originally Posted by
deadeyes
Create the file and put the hostname in it.
You are using ArchLinux right?
I have Arch but this specific question is not about Arch. I am dual-booting it with other OS, just look at my BASH prompt to know the name ;-)
file, in CAPS like
/etc/HOSTNAME or simply
/etc/hostname
12-13-2007, 06:28 AM
#9
Member
Registered: Aug 2006
Posts: 260
Thanked: 3
Quote:
Originally Posted by
arnuld
I have Arch but this specific question is not about Arch. I am dual-booting it with other OS, just look at my BASH prompt to know the name ;-)
file, in CAPS like /etc/HOSTNAME or simply /etc/hostname
lowercase (all files in /etc are lowercase)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 01:48 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News
LQ Podcast
LQ Radio