LinuxQuestions.org
Register a domain and help support LQ
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 05-25-2009, 06:30 AM   #1
tickling
LQ Newbie
 
Registered: May 2009
Posts: 2

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


Hello

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 ? ....

Thanks
 
Old 05-25-2009, 06:41 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Asking too much here ? ....
Nope

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
Code:
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

Code:
vncviewer servername:2
or
Code:
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:

vnc4-common
vnc4server
xvnc4viewer
 
Old 05-25-2009, 08:16 AM   #3
tickling
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
 
  


Reply

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


All times are GMT -5. The time now is 12:31 PM.

Main Menu
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