LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2007, 05:45 PM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
(Re)Start an application on X via SSH?


Thanks for reading.

My KDE Kicker sometimes crashes when I am trying to download files via its KPF (KDE Public File Server, a kicker applet). I can log into the computer remotely via SSH, but when I try to restart the Kicker, the console complains about not knowing which display to start Kicker on, and then quits (as I don't have X forwarded over my SSH connection, there is no display involved there)

The home computer is running KDE 3.5.6 and my user (me) is always logged in, even when not physically present. When I SSH into the box it is as the same user. How do I restart this application as me but on the home account/login, display 0:0 ??

Thanks!
 
Old 04-18-2007, 06:41 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might try the Qt --display option. From "kicker --help-qt"
Code:
Qt options:
  --display <displayname>   Use the X-server display 'displayname'
Since this is your account, and you have ssh setup, you might want to use scp or sftp to transfer the files. Then you wouldn't need to be logged in with KDE running on the remote server. Also, if you use "ssh -X hostname command", the program will display locally, even one that starts out in the system tray. It will appear in your local system tray.

Last edited by jschiwal; 04-18-2007 at 06:48 PM.
 
Old 04-19-2007, 08:53 AM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
Quote:
Then you wouldn't need to be logged in with KDE running on the remote server.
True, but its more of my home desktop machine than a server; I just want quick ways to access some files via a web browser for my girlfriend and for myself. I keep it logged in for general use about the house.

Thank you for the help, jschiwal!
 
Old 04-21-2007, 12:43 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I tested this out. I logged into vt/2 and started a program in kde using a "--display :0.0" argument.

Using scp or sftp requires no setup if you already have ssh configured. Keep them in mind if you want to access areas remotely that you don't have KPF configured to share.
 
  


Reply



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
Running remote application through SSH tuananhbirm Linux - General 1 11-15-2005 02:42 AM
How to start an application when the fedora start ivonne Fedora 0 11-16-2004 12:16 PM
How to start an application when the fedora start ivonne Fedora 9 11-12-2004 01:40 PM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
Application over an SSH connection Awatto Linux - Newbie 14 11-11-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 AM.

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
Open Source Consulting | Domain Registration