Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
that computer runs fine, it is a samba and webserver and i have no problems with it.
my second FC3 computer i tried setting to server.xcubed, but evertime i change the hostname, ive tried changing it through the GUI, through /etc/HOSTNAME (but i dont know if thats even used in FC3), and through /etc/sysconfig/network and everytime i change it i can no longer run anything, like the terminal wont start, cant get to any websites, i end up booting to RL3 and changing /etc/hosts back to
127.0.0.1 localhost.localdomain localhost
just to get the computer to work right again.
ive made the changes to look like:
127.0.0.1 localhost.localdomain localhost
192.168.1.10 server.xcubed server
which is just like the one on the first computer. except i have the problem with the computer not responding. im using static IP on this computer also. i want to use this computer as a SAMBA server, and i actually am able to, but when i view it from windows it is called localhost (which is why im trying to change that in the first place)
Ive read most of the threads that have anything to do with hostnames, and all ive gotten from them is how to change the hostname, which ive tried, but without success.
heres another bit of info that might help. if i have the terminal running when when i change the hostname.domainname i get an error when i try to do anything from the terminal, like open emacs. here is the error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.
just to get the computer to work right again.
ive made the changes to look like:
127.0.0.1 localhost.localdomain localhost
192.168.1.10 server.xcubed webserver
Is this a typo, should'nt it read
127.0.0.1 localhost.localdomain localhost
192.168.1.10 server.xcubed server
Where "xcubed" is your domain name and "server" is your machine name
Also you need to add "server" to /etc/sysconfig/network
HOSTNAME=server
This is from my Redhat 9 days so may be way off mark
if u use X, your hostname must be resolved to an ip. and that ip must be assinged to your computer. so 127.0.0.1 is the best option, because loopback is always same. X and other some of network services connect to your computer solving the hostname. also make sure firewall rules don't block network traffic on loopback. it may cause like this troubles too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.