kingoslo
Posts: 20
Joined: Sun Nov 18, 2012 11:21 pm

Ssh: start graphical app on RPi which doesnt close with ssh.

Wed Aug 07, 2013 7:47 pm

Hello there,

I want to launch a graphical application from SSH, a pdf slideshow, on the TV driven by the RPi. I also want it to stay open on the RPi screen after I close the ssh session on the remote ubuntu computer which launched it via SSH.

I tried downloading screen.

It goes like this, seen from the ubuntu terminal:

Code: Select all

 $ sudo ssh pi@10.0.0.33
pi@raspberrypi ~ $ screen okular /home/pi/beamer.pdf --presentation
[screen is terminating]
pi@raspberrypi ~ $ 

The application does not execute on the RPi, and nothing happens.

Thank you for your time.

Kind regards,
Marius

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Ssh: start graphical app on RPi which doesnt close with

Wed Aug 07, 2013 9:13 pm

Try using nohup instead.

Code: Select all

nohup appname&
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

kingoslo
Posts: 20
Joined: Sun Nov 18, 2012 11:21 pm

Re: Ssh: start graphical app on RPi which doesnt close with

Wed Aug 07, 2013 9:45 pm

That worked. Thanks!! :mrgreen:

How do I shut down the application remotely when I log in x number of hours later?

Thank you for your time.

Kind regards,
Marius

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Ssh: start graphical app on RPi which doesnt close with

Thu Aug 08, 2013 2:48 am

kingoslo wrote:That worked. Thanks!! :mrgreen:

How do I shut down the application remotely when I log in x number of hours later?

Thank you for your time.

Kind regards,
Marius

Code: Select all

kill `pidof app`
or

Code: Select all

killall appname
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Return to “Beginners”