Slackware This Forum is for the discussion of Slackware Linux.
|
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.
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.
|
 |
|
06-22-2006, 09:40 PM
|
#1
|
Member
Registered: Dec 2005
Distribution: Gentoo
Posts: 77
Rep:
|
How will I change computer name after install?
I would like to chang the default computer name (dartstar) to some other name. Is that possible? I opted to use the default during setup but I want to change it now.
|
|
|
06-22-2006, 09:42 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Just run 'netconfig' again as root.
There are other ways, but I find this the simplest.
|
|
|
06-22-2006, 09:50 PM
|
#3
|
Member
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228
Rep:
|
Or, to take twice as long but have the fancy green menu for the first part:
Quote:
su
password
pkgtool
Setup->netconfig
|
|
|
|
06-22-2006, 10:06 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:
|
wouldnt the 'hostname' command or the /etc/hostname file work to do this?
|
|
|
06-22-2006, 10:09 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
So many things are dependent on it, it's a bit easier to run 'netconfig', and make sure everthing is updated.
|
|
|
06-23-2006, 06:10 AM
|
#6
|
Member
Registered: Dec 2005
Distribution: Gentoo
Posts: 77
Original Poster
Rep:
|
Ok then. I'll try netconfig first. I was expecting to edit some text file configurations like what I did in my fstab.
It is good that there is such command associated with my problem. Thanks.
|
|
|
06-23-2006, 06:24 AM
|
#7
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
I think the file /etc/HOSTNAME stores the hostname.
|
|
|
06-23-2006, 11:06 AM
|
#8
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479
Rep:
|
edit /etc/HOSTNAME and edit /etc/hosts and then reboot
|
|
|
06-23-2006, 08:31 PM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Why should a newbie edit two system critical files, with a chance of messing them up (As I have done before) when a simple command will do it for you?
Plus, it will insure the network is setup correctly.
From my take on the OP's original problem, it seems that he skipped the original netconfig. (I could be wrong, but better safe than sorry). If so, then he would be chasing his tail trying to get everything setup. This way: One command, and done.
|
|
|
06-23-2006, 09:37 PM
|
#10
|
Member
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196
Rep:
|
you want to both edit the /etc/HOSTNAME file and run the hostname command `hostname newhost`. Running the hostname command will change what any program using the gethostname(2) function while I believe /etc/HOSTNAME is for NIS (could be wrong about it being for the NIS system, but it is another system). After you change those two you'll probably want to edit /etc/hosts and fix the host names in there too. Once all that is done, just reboot (i bet theres something you could just restart, however I'm really not sure what it is, agetty probably).
cwwilson721: the reason for giving someone more complex answers rather than just run some random script that does it for you is to teach people how to actually do it on more than just one distribution that happens to have that random script [[note: you've gotta change something else in RH to change the hostname]]. Afterall most people who use slackware are using it to learn because they want to know how linux works, not just one distro.
|
|
|
06-23-2006, 09:50 PM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
That is a valid point.
However, this user is a newbie to Slackware, not RHX, or anything else. Lets get the easy basics down first, with a usable system, then give the more 'in depth' options.
Drowning a newbie in alot of linux-speak can, and does, cause people to just give up.
In this case, simplicity may be best. Complexity can cause harm. I was just trying the easiest route to begin with, then get more in depth on what other possibilities are out there.
Also, I'm not even sure the OP is even paying any attention....
But thanks for the explanation. I just hope you also see why I went this route...
|
|
|
06-25-2006, 11:53 AM
|
#12
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479
Rep:
|
It's funny that some people here think /etc/HOSTNAME and /etc/hosts is a critical system file. lol
|
|
|
06-25-2006, 12:00 PM
|
#13
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Not critical, unless you really want to get online. But they are important
|
|
|
06-25-2006, 01:10 PM
|
#14
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479
Rep:
|
I rimmed out my info in those 2 files and I still get online
|
|
|
06-25-2006, 01:20 PM
|
#15
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
More along the lines of if you need names on an internel LAN, and for some firewalling, etc.
|
|
|
All times are GMT -5. The time now is 06:21 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
|
|