localhost.localdomain
Please support our IT Professionals' Lounge advertiser: Programming Forums
![]() |
Are you talking about your hostname?
localhost is the default entry for the loopback address.
if you are talking about this:
You can change this using the 'hostname' command:
Then change your network config file to specify your new hostname.
In Redhat this is typically located in:
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
<Something clever here>

RHCDS/MCP/DCSP
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?
[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 M115 ● 1.49 GB DDR-2 RAM ● 1.6 GHz Centrino Duo ● 80GB HDD ● Windows XP Media Center Edition
•
•
•
•
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?
su [enter password; it won't be visible onscreen] gedit /etc/sysconfig/network
Come join the official DaniWeb IRC community chat
•
•
•
•
yes, some systems dont have SU by the way (namely ubuntu) so use sudo and enter YOUR USER password in that case
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
![]() |
Similar Threads
Other Threads in the IT Professionals' Lounge Forum
- Sending email from a shell script (Shell Scripting)
- how to setup squid server (*nix Software)
- Cr4nberry: How to Configure Samba on RedHat Linux (*nix Software)
- Errors with smtp-vilter, ClamAv, and SpamAssassin on Fedora Core 2 (*nix Software)
- How to test PHP code in offline in Linux + Apache 2 (PHP)
- Complete failure at connecting RH9 to XP via eth0 (*nix Software)
- sendmail config (*nix Software)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: InstallShield
- Next Thread: Can I ghost a HDD without removing it
•
•
•
•
Views: 9501 | Replies: 8 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode