LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 01-26-2006, 08:32 PM   #1
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 30
running remote applications on my X server


Hi everyone,

I've been unsuccesfully trying to run X applications from the remote server (my department's) on my office machine. Can someone tell me what I'm doing wrong?

On my machine I allow remote server's access with:

Code:
xhost +departments.server
then I ssh on departments.server and set up display with:

Code:
export DISPLAY="my.machine:0.0"
when I try to run

Code:
xinit
while I am still logged into department.server
I get

Code:
PAM authentication failed, cannot start Xserver.
Perheps you do not have console ownership?

Xlib: connection to ":0.0" refused by server.
Xlib: no protocol specified.

giving up.
xinit: unable to connect to xserver.
xinit: no such process (errno3): Server error.
Can running remote Xapps on my Xserver be somehow disabled by administrators for security reasons? BTW I have root control on my.machine.
Thanks.

Last edited by frankie_DJ; 01-26-2006 at 08:35 PM.
 
Old 01-26-2006, 08:41 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
You need to make sure you have X fowarding allowed, if so try ssh -X <hostname> /usr/bin/X11/xterm
 
Old 01-26-2006, 09:40 PM   #3
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Original Poster
Rep: Reputation: 30
bosewicht thanks for the reply. I tried as you suggested, adding -x when I ssh in the remote host:

Code:
ssh -x -l myusername department.server
Type in the password, set up the DISPLAY variable on department.server as I already explained and then type:
Code:
/usr/X11R6/bin/xinit
I get the same error, plus additional line
Code:
Couldnt get file descriptor refering to the console
DO I have to maybe set up .xinitrc file in my home dir on department.server? I just wanna see it working first, any application will do. I thought xinit would be the simplest command.
Thanks.

EDIT: Forgot to mention, I don't shut down X server for the local machine, just switch virtual consoles.

Last edited by frankie_DJ; 01-26-2006 at 09:44 PM.
 
Old 01-27-2006, 12:14 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Bosewicht didn't say ssh -x, he said try ssh -X. -X enables X forwarding, and -x disables it. That is of course assuming that the sshd.conf file on the server has X forwarding as an option. By default it is usually off.

Peace,
JimBass
 
Old 01-27-2006, 12:41 AM   #5
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Original Poster
Rep: Reputation: 30
sorry, misprint. Yes I tried -X option. And my sshd_config file has X forwarding option set to yes by default. I still can't make it work. I am getting the same output as before.

EDIT: ALso, I don't know if this makes any different, it shouldn't IMHO, but department.server is Fedora 4 machine and my.machine is FreeBSD 6.0.

Last edited by frankie_DJ; 01-27-2006 at 12:43 AM.
 
Old 01-27-2006, 03:07 AM   #6
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
If you use SSH X forwarding, don't set DISPLAY or do xhost, xinit or anything like that.
 
  


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
Remote applications nderitualex Fedora 1 10-28-2005 06:14 AM
running ds9 and IDL on a remote server terrus Linux - General 3 09-15-2005 02:52 PM
running X applications on remote machine when logged in via ssh servnov Linux - General 1 08-15-2005 09:53 PM
need help running remote X applications zero79 Debian 5 06-11-2005 10:55 PM
running GUI applications on remote client bbresc512 Linux - Networking 9 04-25-2004 06:59 PM


All times are GMT -5. The time now is 12:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration