Latest LQ Deal: Linux Power User Bundle
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 11-23-2011, 08:15 PM   #1
Registered: Mar 2005
Distribution: Debian
Posts: 80

Rep: Reputation: 15
How do I start a GUI program from another location?

So, I have the GUI running on my laptop, but I would like to use something like SSH to start a program on my laptop. I don't know how to do this.

I have done things previous to this like using SSH to make the computer in the other room make annoying beeping noises, but not this.
Old 11-23-2011, 08:42 PM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
First thing you need is the SSH server in the computer that you want to connect to.
Then you use the client to connect to that server.

Old 11-23-2011, 08:44 PM   #3
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
ssh -X ipoffothercomputer

you may need to be root or use sudo

then you have to use the command line start to bring up the gui. Example
you want into computer to open its firefox,

ssh -X
answer questions (password etc)
firefox &

Last edited by inoculos; 11-23-2011 at 08:51 PM.
Old 11-23-2011, 08:51 PM   #4
Registered: Nov 2003
Location: Chicago western suburbs
Distribution: Linux Mint
Posts: 75

Rep: Reputation: 15
If you run a graphical command from the command line, you will need to specify the display.

I can get GTK apps to run with this:

gedit --display :0.0
Old 11-23-2011, 09:19 PM   #5
Registered: Jan 2011
Location: Shanghai,China
Distribution: fedora
Posts: 73
Blog Entries: 1

Rep: Reputation: 2
Try the TigerVNC.It may be useful.


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
Start 'Add/Remove' program GUI from command line j_70 Linux - Software 1 02-08-2008 03:59 PM
Start up script location aking469 Linux - Laptop and Netbook 1 05-22-2006 01:31 PM
Program Icon Location? bendeco13 Linux - General 3 04-21-2006 01:05 AM
How to start my GUI program by a daemon? oldh Linux - Software 3 08-05-2005 03:04 PM
start gui based program after user login shahidawan Linux - General 9 07-27-2005 09:46 PM > Forums > Linux Forums > Linux - Newbie

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