Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-08-2009, 10:03 AM   #1
Registered: Apr 2009
Distribution: Linux version 2.6.25-14.fc9.i686 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) )
Posts: 30

Rep: Reputation: 15
Newbie needs assistance with startx or GUI

I am trying to become familiar w/the GUI - generally I ssh into my server and do what I need to do from the command line, but I would like to use the GUI from my remote windows machine. When I launch my ssh sessions I attempt to startx but it gives me an error and tells me to remove .X0-lock
when I do this this is what happens:

[naloi@nagios tmp]$ su
[root@nagios tmp]# rm .X0-lock
rm: remove regular file `.X0-lock'? y
[root@nagios tmp]# exit
[naloi@nagios tmp]$ startx
hostname: Host name lookup failure
xauth: creating new authority file /home/naloi/.serverauth.22499

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: Interrupted system call (errno 4): unable to connect to X server
xinit: No such process (errno 3): Server error.
Couldnt get a file descriptor referring to the console
[naloi@nagios tmp]$

Also I understand that there is a program like VNC that I can use - loaded that onto my windows machine last night but it didn't make sense to me...if I launch the VNC view on my windows machine do I also need to have a VNC Server running on my Linux Server? Both the linux server and my windows machine are on the same subnet, but I don't want to have to walk down the hall to the Linux server to sit in front of that machine to use the GUI (I can Remote Terminal to windows server from my desk top - and am hoping to accomplish the same thing to get to Linux Server GUI.

thanks for any help you can provide
Old 04-08-2009, 10:52 AM   #2
LQ Newbie
Registered: Apr 2009
Location: Poland
Distribution: Slackware 12.1
Posts: 20

Rep: Reputation: 0

You can't turn on X because SSH is text console.

Yes, you should run VNC server on linux.
Try UltraVNC.


Last edited by flopypl; 04-08-2009 at 10:54 AM.
Old 04-08-2009, 11:01 AM   #3
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899

You need to use
startx -- :1
Since X is already running on display 0

You need to allow remote access on the client though

Yes you can use X true ssh

Last edited by repo; 04-08-2009 at 11:49 AM.
Old 04-08-2009, 02:37 PM   #4
Registered: Sep 2003
Posts: 104

Rep: Reputation: 20
I use tightvnc as a vnc server on my linux machine, which basically creates a secondary display on my X server. But if you're trying to see what someone else is seeing you'll need to look into the Xvnc module, that binds an already running X display with a vnc session. If you use tightvnc, it's as easy as running vncpasswd (to set the password), and then run vncserver, for customizations, you just edit $HOME/.vnc/xstartup, which is basically the same thing as .xinitrc


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
Hello folks - another newbie to linux in need of some assistance. MargJT Member Intro 4 02-23-2008 07:43 PM
Require assistance for a REAL guide to GUI customisation mwlimburg Linux - Desktop 0 11-29-2007 06:01 PM
No-nothing Newbie Needs Linux Scripting Assistance Alekscat Programming 6 05-06-2004 12:20 PM
newbie installation assistance jasonmantey Linux - Newbie 0 02-27-2004 07:34 PM
Total Newbie needs Assistance 4gentorange Linux - Newbie 2 02-14-2002 03:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 PM.

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