Share your knowledge at the LQ Wiki.
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 05-25-2009, 05:30 AM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Question Remote control an X application - just occasionally


newbie here, so far this linux world seems too good to be true - until now... please help

I have an ubuntu server that I want to control from remote, from ubuntu desktop or XP.

Occasionally I need to run an application on that server that has a X-based GUI. I managed to launch it via

ssh -X

using X11 forwarding. The app is running on the server, and its UI shows on the desktop.

However if I turn off/restart the remote machine, the app terminates. As it takes a long time, I would like to be able to:

= launch it from remote when needed, giving its GUI some parameters:
= leave it running even if the remote machine disconnected:
= reconnect again and have a look at its GUI, perhaps from another computer/operating system

Asking too much here ? ....

Old 05-25-2009, 05:41 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,116

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Asking too much here ? ....

You need to start a vncserver on your ubuntu machine.

On my server I put this line in /etc/rc.local just before the final exit 0
su - tred -c " cd /home/tred && vncserver :1 -geometry 1024x768 -depth 24"
This is run as root at boot time. It starts a vncserver on display :2 as my username (tred)

It runs all the time.

I can connect to it from my lan with

vncviewer servername:2
vncviewer IP.OF.MY.SERVER:2
When I close that vncviewer window the server is left running, and I can reconnect at any time, with my remote desktop exactly as I left it. It's very useful.

vncviewer is also available for the windows platform.

On my 'buntu box, I have the following installed:

Old 05-25-2009, 07:16 AM   #3
LQ Newbie
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks much ! Exactly what I was hoping for ... this linux world is a giant candy store for free


forwarding, remote

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
what is the best way using remote control to control rhel server? hocheetiong Linux - Newbie 1 11-02-2007 03:10 AM
VLC control via remote control? MasterC Linux - Software 1 09-03-2006 07:59 PM
Screen streaming and remote control application J_K9 General 0 03-19-2006 03:24 PM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 08:47 AM
ATI remote wonder (remote control) and X dop Linux - Software 2 07-24-2005 06:29 AM > Forums > Linux Forums > Linux - Newbie

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