Launch X program from SSH

Linux specific questions.
Post Reply
iz5rng
Posts: 1
Joined: Jun 15, 2022 13:52

Launch X program from SSH

Post by iz5rng »

Hello, thank you for let me in this forum.
I installed FB on a headless raspberry. I connect from SSH.
I have raspbian lite installed with minimal Xserver and Openbox.
I can compile my program with no errors from remote ssh but when I try to launch it says "segmentation fault".
If I run a not graphical program it has been executed on ssh console. How can I say "please run this program on X server".
Thank you (sorry for my english I am italian).
Massimo.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Launch X program from SSH

Post by TJF »

Hello, and welcome to the forum!

Therefor the SSH connection has to provide an X server. Start it with option -X (capital X) by executing

ssh -X user@ip

PS:
You don't need OpenBox on the PI, it's sufficient to install the framebuffer.
Post Reply