943,865 Members | Top Members by Rank

Ad:
Nov 16th, 2006
0

localhost.localdomain

Expand Post »
Is there a way to change localhost.localdomain? I mean seems kinda stupid not to be able to. If there is, then how?
Similar Threads
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
Nov 18th, 2006
0

Re: localhost.localdomain

Are you talking about your hostname?
localhost is the default entry for the loopback address.

if you are talking about this:
Quote ...
[linux@localhost.localdomain linux]$
You can change this using the 'hostname' command:
hostname new.hostname.here

Then change your network config file to specify your new hostname.

In Redhat this is typically located in:
/etc/sysconfig/network
Last edited by blud; Nov 18th, 2006 at 6:53 pm.
Moderator
Staff Writer
Reputation Points: 154
Solved Threads: 18
Linux Reject
blud is offline Offline
570 posts
since Apr 2004
Nov 21st, 2006
0

Re: localhost.localdomain

This worked. My terminal now says:
[alex@new alex]$ []

I know I can replace "new" with whatever I want.

Now, for the network file. I can't modify this in gedit and save it. It is readonly. Is there a way to change this?
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
Nov 21st, 2006
0

Re: localhost.localdomain

Click to Expand / Collapse  Quote originally posted by linux ...
Now, for the network file. I can't modify this in gedit and save it. It is readonly. Is there a way to change this?
The only reason it's readonly is because it's in the /etc branch of your filetree, which requires admin privaleges to do anything in there. In fact, almost anywhere other than your home folder on a *nix filesystem requires root privalges. So, you'll need to open Gedit like this on a command line:
su
[enter password; it won't be visible onscreen]
gedit /etc/sysconfig/network
Now do your editing and try to save. It should work.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 24th, 2006
0

Re: localhost.localdomain

yes, some systems dont have SU by the way (namely ubuntu) so use sudo and enter YOUR USER password in that case
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,517 posts
since Apr 2005
Nov 24th, 2006
0

Re: localhost.localdomain

Click to Expand / Collapse  Quote originally posted by jbennet ...
yes, some systems dont have SU by the way (namely ubuntu) so use sudo and enter YOUR USER password in that case
Actually, I'm pretty sure that Ubuntu does have su. It's standard with almost all Linux distros. The problem however, is that although Ubuntu does have su, it's rendered almost useless as the root account is disabled by default.

You can still use it by entering sudo su at the command prompt, and additionally using passwd to change the root password, enabling the root account. </useless tidbit of information>
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 26th, 2006
0

Re: localhost.localdomain

I believe it does have 'su' however by default doesn't put anyone in the proper group to use it, therefor, makes it almost unusable. (without detailed linux knowledge)
Moderator
Staff Writer
Reputation Points: 154
Solved Threads: 18
Linux Reject
blud is offline Offline
570 posts
since Apr 2004
Nov 26th, 2006
0

Re: localhost.localdomain

i think you need to be in wheel group
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,517 posts
since Apr 2005
Nov 26th, 2006
0

Re: localhost.localdomain

speaking of ubuntu has anyone got it installed on a thinkpad?
Ive filed kernel bugs since hoary and no solution
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,517 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: InstallShield
Next Thread in IT Professionals' Lounge Forum Timeline: The end of all life





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC