RSS Forums RSS

localhost.localdomain

Please support our IT Professionals' Lounge advertiser: Programming Forums
Reply
Posts: 908
Reputation: linux is an unknown quantity at this point 
Solved Threads: 24
linux's Avatar
linux linux is offline Offline
Posting Shark

localhost.localdomain

  #1  
Nov 16th, 2006
Is there a way to change localhost.localdomain? I mean seems kinda stupid not to be able to. If there is, then how?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
AddThis Social Bookmark Button
Reply With Quote  
Posts: 425
Reputation: blud will become famous soon enough blud will become famous soon enough 
Solved Threads: 10
Moderator
Staff Writer
blud blud is offline Offline
Linux Reject

Re: localhost.localdomain

  #2  
Nov 18th, 2006
Are you talking about your hostname?
localhost is the default entry for the loopback address.

if you are talking about this:
[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 5:53 pm.
--
<Something clever here>
RHCDS/MCP/DCSP
Reply With Quote  
Posts: 908
Reputation: linux is an unknown quantity at this point 
Solved Threads: 24
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: localhost.localdomain

  #3  
Nov 21st, 2006
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?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote  
Posts: 4,810
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 324
Moderator
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: localhost.localdomain

  #4  
Nov 21st, 2006
Originally Posted by linux View Post
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.
Come join the official DaniWeb IRC community chat
Reply With Quote  
Posts: 15,219
Reputation: jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light 
Solved Threads: 455
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: localhost.localdomain

  #5  
Nov 24th, 2006
yes, some systems dont have SU by the way (namely ubuntu) so use sudo and enter YOUR USER password in that case
Master of puppets Im pulling your strings - blinded by me, you cant see a thing. Master! Master!

If i am helpful, please give me reputation points.
Reply With Quote  
Posts: 4,810
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 324
Moderator
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: localhost.localdomain

  #6  
Nov 24th, 2006
Originally Posted by jbennet View Post
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>
Come join the official DaniWeb IRC community chat
Reply With Quote  
Posts: 425
Reputation: blud will become famous soon enough blud will become famous soon enough 
Solved Threads: 10
Moderator
Staff Writer
blud blud is offline Offline
Linux Reject

Re: localhost.localdomain

  #7  
Nov 26th, 2006
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)
--
<Something clever here>
RHCDS/MCP/DCSP
Reply With Quote  
Posts: 15,219
Reputation: jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light 
Solved Threads: 455
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: localhost.localdomain

  #8  
Nov 26th, 2006
i think you need to be in wheel group
Master of puppets Im pulling your strings - blinded by me, you cant see a thing. Master! Master!

If i am helpful, please give me reputation points.
Reply With Quote  
Posts: 15,219
Reputation: jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light 
Solved Threads: 455
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: localhost.localdomain

  #9  
Nov 26th, 2006
speaking of ubuntu has anyone got it installed on a thinkpad?
Ive filed kernel bugs since hoary and no solution
Master of puppets Im pulling your strings - blinded by me, you cant see a thing. Master! Master!

If i am helpful, please give me reputation points.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 9501 | Replies: 8 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:00 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC