Automount of USB sticks and autorun of a graphical app at startup

59 views
Skip to first unread message

Destroy

unread,
Feb 3, 2020, 3:48:03 AM2/3/20
to BeagleBoard
Hi everybody,

I have two topics to which haven't find a solution.
The first one is the automount of usb sticks, i saw there is many solution to solve this topic (usbmount, udisks2, autofs, fstab ecc..) but what is the best solution on BBB and such as I can implement it.
The second one is start a graphical application immediately after boot.
Now I use a IoT image on my BBB and I start the server X at the boot time with a service.
The problem is when try to run my application in another service, after the server X start, I recieve the error "cannot open display".

Thank to all for the support.

Hugo van den Brand

unread,
Feb 3, 2020, 7:37:14 AM2/3/20
to beagl...@googlegroups.com
Hi, 

Why not separate the two questions in two dedicated mail threads? 

As for question two, I guess you are starting the service from a command line outside of the X environment. 
In that case you want to set the DISPLAY environment variable. 
You could also have the service start as part of the graphical session. 
The exact details depend on your graphical environment (I think you need to know the session manager)

Best wishes,
Hugo


Op ma 3 feb. 2020 09:48 schreef Destroy <dima80...@gmail.com>:
--
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/538b632e-1b8d-45d0-ab7c-217d9ce08614%40googlegroups.com.

Dennis Lee Bieber

unread,
Feb 3, 2020, 11:56:46 AM2/3/20
to Beagleboard
On Mon, 3 Feb 2020 00:48:03 -0800 (PST), in
gmane.comp.hardware.beagleboard.user Destroy
<dima80destroy-Re5J...@public.gmane.org> wrote:


>I have two topics to which haven't find a solution.
>The first one is the automount of usb sticks, i saw there is many solution
>to solve this topic (usbmount, udisks2, autofs, fstab ecc..) but what is
>the best solution on BBB and such as I can implement it.

No help here for this...

>The second one is start a graphical application immediately after boot.
>Now I use a IoT image on my BBB and I start the server X at the boot time
>with a service.
>The problem is when try to run my application in another service, after the
>server X start, I recieve the error "cannot open display".
>
Wouldn't it be easier to start with the LXQT image -- which already
sets up X and a display manager. Granted, the solution may just involve
setting the proper environment variable to define where the "display"
server is located.



--
Dennis L Bieber

Reply all
Reply to author
Forward
0 new messages