LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 03-08-2005, 10:16 AM   #1
walmart
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
What this error message means?


What this msg means?
Is there a possible way to remotely access to OSx?
I could ssh into the terminal. But when I try to do a startx, i get this message.


[root@localhost misc]# startx


Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.



Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): Server error.
[root@localhost misc]#
 
Old 03-08-2005, 10:25 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

means that your user - root ?? - has already a xsession running - active: under :0
like it is suggested, if this is not true, remove the file under /tmp and give it a second try.

regards

slackie1000
 
Old 03-08-2005, 10:51 AM   #3
walmart
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi there,
Thanks for a quick replying.
hmm could it be local user already login?

I access the box remotely using ssh to the terminal.

Could I remotely access to OSx ? How do I do it?
 
Old 03-09-2005, 01:12 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

i didn't mean a local user. i meant the current user.
but i see that you have also the message with the "connection refused".
you could try to give a
Code:
xhost +
before the "startx" call.

regards

slackie1000
 
Old 03-09-2005, 11:52 AM   #5
walmart
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Could you explain more into it? I am new into linux.

THanks
 
Old 03-10-2005, 03:07 AM   #6
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Quote:
Originally posted by walmart
Could you explain more into it? I am new into linux.

THanks

hi there,

from xhost manual
Code:
DESCRIPTION
       The xhost program is used to add and delete host names or user names to
       the list allowed to make connections to the X server.  In the  case  of
       hosts,  this  provides  a rudimentary form of privacy control and secu-
       rity.  It is only sufficient for a workstation (single  user)  environ-
       ment,  although  it  does  limit  the worst abuses.  Environments which
       require more sophisticated measures  should  implement  the  user-based
       mechanism  or use the hooks in the protocol for passing other authenti-
       cation data to the server.
i think this has something to do with this error that you got
Code:
Xlib: connection to ":0.0" refused by server
so you run a "xhost +" allowing you to use the X server.
the message that you are already loggen is weird.
you should check the file under /tmp and remove it if you feel confortable.
a "ps" can give you the processes and clear this issue with the session that is already running.
this is what i know. if it is not clear, i hope some guru can join us.

regards

slackie1000
 
Old 03-11-2005, 01:32 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Also if sshd of mac OSX is configured to forward X
/etc/sshd_config--> X11Forwarding yes

You can access your box with: ssh -X <your host>
(to access a Linux box, ssh -Y works better)
 
Old 03-14-2005, 08:13 AM   #8
walmart
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by keefaz
Also if sshd of mac OSX is configured to forward X
/etc/sshd_config--> X11Forwarding yes

You can access your box with: ssh -X <your host>
(to access a Linux box, ssh -Y works better)

I am sorry what you mean by ssh -x and -y means?
I am using putty ssh to access the box/ Thansk
 
Old 03-16-2005, 01:28 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
You could use XWin32 to get it work but I would rather use vnc server in OSX and an vnc client in windows
 
  


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
Ideas about what this kernel error means? harken Linux - Software 10 03-12-2005 02:44 PM
More and more crashes. PLEASE tell me what this error means! jeffreybluml Linux - Newbie 16 05-28-2004 03:19 PM
not sure what this error message means. Cass944 Linux - Software 1 05-11-2004 05:43 PM
Anyone know what this 'error' means? BxBoy Linux - General 2 02-21-2004 03:31 PM
Error in my log file. Don't know what it means subzero80 Linux - Software 2 03-10-2003 07:24 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

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

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