Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im trying to change my computer name - fedora 4 gave it a default name of root@laptop-ceo. I found a tread that tells me to change the /etc/sysconfig/network file - well I have tried to figure out how to edit with no success... any advise?
Umm. i tried that and it gave me this... (man Im such a noob)
[root@laptop-ceo /]# cd /
[root@laptop-ceo /]#
[root@laptop-ceo /]# cd /etc/host,/etcHOSTNAME=IPDreams
bash: cd: /etc/host,/etcHOSTNAME=IPDreams: No such file or directory
[root@laptop-ceo /]# cd etc/host
bash: cd: etc/host: No such file or directory
[root@laptop-ceo /]# pwd
/
[root@laptop-ceo /]# cd etc/hostname
bash: cd: etc/hostname: No such file or directory
[root@laptop-ceo /]#
[root@laptop-ceo /]# /etc/host,/HOSTNAME=IPDreams
bash: /etc/host,/HOSTNAME=IPDreams: No such file or directory
[root@laptop-ceo /]# pwd
/
[root@laptop-ceo /]# cd /etc
[root@laptop-ceo etc]# host
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
[-R number] hostname [server]
-a is equivalent to -v -t *
-c specifies query class for non-IN data
-C compares SOA records on authoritative nameservers
-d is equivalent to -v
-l lists all hosts in a domain, using AXFR
-i IP6.INT reverse lookups
-N changes the number of dots allowed before root lookup is done
-r disables recursive processing
-R specifies number of retries for UDP packets
-t specifies the query type
-T enables TCP/IP mode
-v enables verbose output
-w specifies to wait forever for a reply
-W specifies how long to wait for a reply
-4 use IPv4 query transport only
-6 use IPv6 query transport only
[root@laptop-ceo etc]#
[root@laptop-ceo etc]# hosts
bash: hosts: command not found
[root@laptop-ceo etc]#
[root@laptop-ceo etc]# /etc/hostname IPDreams
well I have tried to figure out how to edit with no success... any advise?
I assume you mean what program to use
?
you can try
Code:
nano /etc/sysconfig/network
OR
Code:
pico /etc/sysconfig/network
either one should be on your system. Both are run from the command line
just open a terminal.
i use nano and pico usually, vi i'm learning, another "obscure" editor
Last edited by byte.chaser; 07-28-2005 at 04:49 PM.
Originally posted by IPDreams well i changed it in the file.. but when in the CLI it still shows up as the old hostname.. also thanks for connecting some dots for me!!
na I have nano.. it looks like this now that I have edited it and saved it..
see below I change the hostname to IPDreams.. let me try a re-boot
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 root.IPDreams IPDreams
[ Read 3 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Txt ^T To Spell
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.