LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-02-2005, 04:56 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
Change computer name?


What is the command to display the computer name(not user name)?

is it: uname

Also how can I change the name of the computer through a command line?

Thanks.
 
Old 04-02-2005, 05:57 AM   #2
nwhite
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 10.0, 2.6.9 Custom Kernel
Posts: 23

Rep: Reputation: 15
uname is just for giving various information about the computer, type "man uname" for more information.

The computer's name is stored (at least in Slackware - as far as I know this is standard) in /etc/HOSTNAME as a plaintext file.
Just open it with any text editor and change it to what you want.

You'll probably need to restart the computer (or re-run some network config scripts - I don't know which ones, so restarting will be easier) for the change to take effect.
 
Old 04-02-2005, 09:10 AM   #3
varunvarde2007
LQ Newbie
 
Registered: Mar 2005
Location: Ahmedabad
Distribution: Red Hat Version 9
Posts: 7

Rep: Reputation: 0
Hi,
For this... in Red Hat Linux 9 you just have to edit a file by giving the following command and just change the hostname with the name you want and to remove starting error of Login Anyway and Try Again screen in the Graphical Mode just edit the second file

1. to change the host name

vi /etc/sysconfig/network

2. to remove the error while starting

vi /etc/hosts

change the current name with the name which you gave in vi /etc/sysconfig/network

and you are done so enjoy still if you have any problem just tell me

Regards,

Varun Varde
varunvarde2007@yahoo.com
www.pcube.no-ip.com
 
  


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
Change computer name l23x4 Linux - Networking 8 07-17-2005 11:47 AM
how to change the name of the computer greghua Linux - Software 2 05-24-2005 09:35 PM
change computer imagineaxion Mandriva 6 11-17-2004 08:33 AM
How do I change the computer name ?? jadermf Linux - Software 4 03-18-2004 06:35 PM
How to change computer name? tied2 *BSD 3 09-14-2003 05:43 AM


All times are GMT -5. The time now is 09:48 PM.

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