FedoraThis forum is for the discussion of the Fedora Project.
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.
The file you need to change is /etc/sysconfig/network
Also, add the new name to the 127.0.0.1 line in /etc/hosts. Don't remove the localhost parts, otherwise X will fail - just add the new name to the line.
The file you need to change is /etc/sysconfig/network
Also, add the new name to the 127.0.0.1 line in /etc/hosts. Don't remove the localhost parts, otherwise X will fail - just add the new name to the line.
Dave
Hello there
would u mind type an example of each syntax? moreover, i would like to ask about vi command
I am suffering from this command? i dont know how to use it to edit the /etc/hosts file
k iam using BackTrack4 r2 and i am trying to run apache Tomcat webserver, however, each time i am running the apache (using /apache7/bin/startup.sh) and i type ps to view the runnung processes i do see the java is running however, when i click on the web browser the process got killed immidiately!!?
FYI: i am using virtual box that is runnuing the backtrack on and my main OS is windows7
Here we go
vi /etc/sysconfig/network
Press i to change INSERT MODE
Change
HOSTNAME=localhost.localdomain
ESC (switch mode)
:wq (write and quit)
reboot machine to activate
so in this line:-
HOSTNAME=localhost.localdomain
where i am suppose to type the ip address? in my case i want other computers to login to my webserver by typing the ip address of my machine
This is where you can give your machine hostname. If you want to set IP address, you need to edit /etc/sysconfig/network-scripts/ifcfg-ethx
eth0 or eth1 or eth2
Edit file /etc/sysconfig/network using text editor e.g vi /etc/sysconfig/network
» Look for HOSTNAME= xxxxxx
» Change the xxxx to the name
you wish to set for your computer.
HOSTNAME= test.com)
» Save the file and restart the
xinetd service . (ex : type service
xinetd restart in your shell)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.