DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   IT Professionals' Lounge (http://www.daniweb.com/forums/forum5.html)
-   -   localhost.localdomain (http://www.daniweb.com/forums/thread61834.html)

linux Nov 16th, 2006 5:11 pm
localhost.localdomain
 
Is there a way to change localhost.localdomain? I mean seems kinda stupid not to be able to. If there is, then how?

blud Nov 18th, 2006 6:53 pm
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

linux Nov 21st, 2006 9:02 pm
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?

John A Nov 21st, 2006 9:12 pm
Re: localhost.localdomain
 
Quote:

Originally Posted by linux (Post 278987)
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.

jbennet Nov 24th, 2006 4:12 am
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

John A Nov 24th, 2006 8:07 pm
Re: localhost.localdomain
 
Quote:

Originally Posted by jbennet (Post 279882)
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>

blud Nov 26th, 2006 12:59 pm
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)

jbennet Nov 26th, 2006 2:40 pm
Re: localhost.localdomain
 
i think you need to be in wheel group

jbennet Nov 26th, 2006 3:21 pm
Re: localhost.localdomain
 
speaking of ubuntu has anyone got it installed on a thinkpad?
Ive filed kernel bugs since hoary and no solution


All times are GMT -4. The time now is 12:16 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC