Thank you very much, I keep on learning. My application now runs fine
manually from XTerminal. Now I want to run the application on boot. I
figured out a systemd service is problably the way to go. I managed to
define that (ac.service) and run it on boot up. I wrote:
[Unit]
After = grafical.target
[Service]
Type = idle
ExecStart = /home/debian/eme {*etc to run Python script and make log file}*
[Install]
WantedBy=multi-user.target
This sort of works but the application does not start: the log file gives
the famous $DISPLAY error. I try to start my application last, so after the
X server has been started. Maybe the "WantedBy" statement is wrong?
Thanks a lot in advance, best regards,
Harke
On 13 August 2017 at 22:42, Przemek Klosowski <[email protected]>
wrote:
>
>
> On Sat, Aug 12, 2017 at 6:13 AM, Harke Smits <[email protected]> wrote:
>
>> I have a stand alone Beagleboard system, keyboard/mouse connected via
>> usb dongle. The system starts up normally, in grafics mode, I can invoke
>> internet, no problem, LAN connected. Going to XTerm I get the linux prompt,
>> still in grafics mode. A simple TKInter test program works.
>>
>
> OK, this is normal
>
> Going to linux (XTRL/ALT/F1) I can invoke startx that brings me back were
>> I came from: the grafics environment (LXDE).
>>
>
> Now, this is not needed---you already have X running, and you should run
> all your GUI programs from the Xterm like your TKInter test above. There's
> no need to 'go to linux' again. Perhaps you are mislead by the fact that
> after you run a graphical program from the shell prompt in XTerm you don't
> get the prompt back---but that's easily fixed by running the command in the
> background by adding the ampersand to the end of the command:
> tesst &
>
> When you go to the text console and do startx again, you have dueling X
> servers, and I am not sure what is the expected result of that. Don't do
> that---use the original X by either running in background with &, or
> creating a new xterm, or arranging for your app icon to be visible so that
> you can run it by doubleclicking the icon.
>
> Starting the TKInter test program from the Linux prompt gives me the
>> famous error message in the title. In Xterminal "echo $DISPLAY" renders :1,
>> in plain linux: a blank line. Starting my application in XTerm gives a
>> fully blank screen.
>>
>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/beagleboard/s5Qhhc75e1c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/CAC%3D1GgH_1i-X_bGVYUE9vEv2uBO%
> 3DMZ3dzV08wU2ix%3D36c8_s0A%40mail.gmail.com
> <https://groups.google.com/d/msgid/beagleboard/CAC%3D1GgH_1i-X_bGVYUE9vEv2uBO%3DMZ3dzV08wU2ix%3D36c8_s0A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/CAHmciaaE-7y%2BAVPztLWJVqDLfrtt0YL-fhWQ%3Du0X98SMrzQYNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.