I want to use the ARM SBC in outdoor environment so I won’t be having keyboard but I’ll be using a supported Touchscreen though. I want to run custom YOLOv3 NPU on that setup and it requires to be in a framebuffer mode/TTY and run 2-3 scripts. I couldn’t type those scripts neither could I press Ctrl+Alt+F1 to access framebuffer as I won’t be having keyboard. So, is there any way I could do this by maybe an icon click on desktop which opens framebuffer and type/run a shell script. Maybe I could create a .desktop file in Ubuntu. Any linux heroes would probably help me with this, I’m open for suggestion so please help me running few scripts in outdoor environment.

[Maybe Useful] I got a way to access framebuffer mode from GUI desktop terminal if someone comes to this post to seek this method. I can make a shell script like this:

echo <PASSWORD> | sudo -S chvt <TTY number> $SHELL

And wrap this shell script inside a “.desktop” file and make it launch-able. So now I can access the framebuffer mode. And I think we can setup an autologin TTY so don’t need keyboard to enter usename and pass. And now, I just need to run a command in that TTY from GUI terminal only. Is their any way I can append the commands I want to run in TTY in that shell script above to run it from GUI only? Please help me out here.

Also, what we can do is:

  1. Make framebuffer mode/TTY default after booting instead of GUI mode with autologin.
  2. Make a startup service to run a shell script there on framebuffer mode only.

Can anyone help me with any of the(maybe new) workarounds?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.