LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2005, 11:26 AM   #1
nicolaeancuta
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
xset: unable to open display "mycomputer.mynetwork:0.0"


Hi

My error ocure when i try to login in startx
The error is:
------------------------------------------------------------------------------------
_X11TransSocketINETConnect: Can't get address for <oldmycomputer.oldmynetwork>
xset: unable to open display "oldmycomputer.oldmynetwork:0.0"
------------------------------------------------------------------------------------

My linux version is RHEL 3.0

I was trying to set a new IP adress and new host name for my server and in Network Configuration (or something like this) window i made a few steps:
1. i changed the IP address for my ethernet device
2. i removed the host from hosts tab


My question is how can i set hostname with an IP address and an alias from command line?

Thanks in advance

Nicolae Ancuta
 
Old 07-12-2005, 01:13 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The information is written to the file '/etc/hosts'. You should have entries that look like:

127.0.0.1 localhost.localdomain localhost
123.45.67.89 oldmycomputer.oldmynetwork oldmycomputer

Replace "123.45.67.89" with your machine's IP address.

You can use any editor you want to modify the file (like vi).
 
Old 07-13-2005, 01:39 AM   #3
nicolaeancuta
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
xset is unable to open display from within bash script copolii Linux - General 3 10-22-2005 06:26 PM
konsole problem: "Unable to open a suitable terminal device" Mistreated Linux - Software 2 11-15-2004 03:24 PM
unable to open display "24.228.61.72:0.0" while installing oracle remotely cheeku Linux - Newbie 3 08-13-2004 04:08 PM
Zipslack "Warning unable to open an inital console." mike1646 Slackware 12 03-21-2004 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration