LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-21-2006, 01:52 PM   #1
razzles
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: Disabled
run a GUI without xwindows


I have an automated process that ssh's into a remote box, runs a program that needs a GUI, I gather the output the program creates in a text file and exit the ssh session. This works great using Hummingbird Exceed on my local box and exporting the DISPLAY env variable on the remote box to my local IP address.

I really don't want to have to depend on Hummingbird Exceed or someother workaround like "ssh -X". Is there a way to spoof the $DISPLAY environment variable to make the Linux box think there is a display there so I can run GUI programs. Sounds odd but the GUI program I run actually shows on the screen the status of a telecom board I have installed and then exits automatically. It also creates the output in a text file which is really what I am after.
 
Old 12-21-2006, 01:59 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
What if you set DISPLAY=:0.0? Essentially that's what the console would have. I just did it on one of my servers and ran xterm. The xterm process is still there even though I don't have X running on the console itself so it didn't do anything to the console.

EDIT:
Oops - Wasn't going to the machine I thought I was. The machine in question did have X Windows running on the console.

Last edited by MensaWater; 12-21-2006 at 02:03 PM.
 
Old 12-21-2006, 02:05 PM   #3
razzles
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks. I tried "export DISPLAY=:0.0". When I try to run a GUI application I get:

** Application initialization failed: couln't connect to display ":0.0" **

I think what I need is to spoof the remote machine into thinking there is a display that it can send output to even though there is not one.

Any other suggestions?
 
Old 12-21-2006, 02:30 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
Something we've loaded on our UNIX servers for DBAs is Xvfb. I *think* it may be what you need. Took me a while to remember its name. Site for it is:

http://www.xfree86.org/4.0.1/Xvfb.1.html
 
Old 12-22-2006, 09:34 AM   #5
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,263

Rep: Reputation: 297Reputation: 297Reputation: 297
Hi

I ssh to my fileserver and start mplayer - my fileserver is connected to a television, so I can watch movies.

For this to work, I need to be logged in on the fileserver - same user logged in with ssh and in Gnome, otherwise I get an error message like you get.

Now if someone is using that computer, they'll see the status. Is that a problem?
 
  


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
cannot run Xwindows on Dell 640m pranavchoudhary Linux - Laptop and Netbook 6 09-16-2006 03:44 AM
Getting xwindows to run (sarge) fester225 Debian 3 12-20-2004 09:26 PM
repairing xwindows (lost my gui) itismike Linux - General 4 10-24-2002 01:02 AM
Problem getting Redhat to run Xwindows rech Linux - Distributions 4 09-11-2002 01:28 PM
How to privide xwindows GUI service to all users? cmmankar Linux - Networking 0 04-24-2002 11:28 AM


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