Running python GUI script through ssh from remote computer or on startup

174 views
Skip to first unread message

Mayunk Kulkarni

unread,
May 28, 2016, 10:04:30 AM5/28/16
to BeagleBoard
I have been trying to run a python GUI program on the beaglebone black through SSH. It is connected to the BBVIEW and the GUI runs if I diirectly open the command window in beaglebone using a keyboard and mouse connected to the beaglebone. I have tried to add "python GUI.py" in uEnv.txt for startup but it still doesn't seem to startup on reboot. When i try to run it on ssh with BBVIEW connected but not connected to the keyboard or mouse it gives an xDISPLAY error. I am new to this forum so any feedback on the the post is welcome :)

evilwulfie

unread,
May 28, 2016, 10:09:36 AM5/28/16
to beagl...@googlegroups.com
you seem new to linux as well

you cannot start your python program in the uEnv.txt file as when your trying to run it there the X system is not running.
When your trying to run it via SSH are you sure that the X system is up and running ?

read this. some ways to check if X is running before you start your program
http://stackoverflow.com/questions/637005/x-server-running




On 5/28/2016 7:04 AM, Mayunk Kulkarni wrote:
I have been trying to run a python GUI program on the beaglebone black through SSH. It is connected to the BBVIEW and the GUI runs if I diirectly open the command window in beaglebone using a keyboard and mouse connected to the beaglebone. I have tried to add "python GUI.py" in uEnv.txt for startup but it still doesn't seem to startup on reboot. When i try to run it on ssh with BBVIEW connected but not connected to the keyboard or mouse it gives an xDISPLAY error. I am new to this forum so any feedback on the the post is welcome :)
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/baed96e9-638d-41e2-8569-bd6aa63595b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mike

unread,
May 28, 2016, 11:02:46 AM5/28/16
to beagl...@googlegroups.com
On 05/28/2016 10:09 AM, evilwulfie wrote:
you seem new to linux as well

you cannot start your python program in the uEnv.txt file as when your trying to run it there the X system is not running.
When your trying to run it via SSH are you sure that the X system is up and running ?

read this. some ways to check if X is running before you start your program
http://stackoverflow.com/questions/637005/x-server-running


ssh -X hostname

Mike

On 5/28/2016 7:04 AM, Mayunk Kulkarni wrote:
I have been trying to run a python GUI program on the beaglebone black through SSH. It is connected to the BBVIEW and the GUI runs if I diirectly open the command window in beaglebone using a keyboard and mouse connected to the beaglebone. I have tried to add "python GUI.py" in uEnv.txt for startup but it still doesn't seem to startup on reboot. When i try to run it on ssh with BBVIEW connected but not connected to the keyboard or mouse it gives an xDISPLAY error. I am new to this forum so any feedback on the the post is welcome :)
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/baed96e9-638d-41e2-8569-bd6aa63595b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages