B
B
belunix2016-06-10 10:49:55
linux
belunix, 2016-06-10 10:49:55

Is it possible to run a windowed application on Linux without running a screen manager and an X server?

Is it possible to implement the following:
After booting the Raspberry Pi in multi-user console mode (without starting X and display manager)
, you need to launch an application from this console (bash script, python script, or just a binary, it doesn’t matter), which will display the entire The screen is an image of a traffic light, in which the colors will change depending on what data the application receives over the network.
Is it possible to run such a graphical application without starting Xserver ?
Maybe you can see a code example somewhere, ideally a short Howto ?
Drawing an analogy with Windows XP, it seems to me that this is equivalent to launching a windowed application in Windows without starting explorer.exe.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander Karabanov, 2016-06-10
@karabanov

Framebuffer to help you.
welinux.ru/post/1120
welinux.ru/post/1209

I
Igor, 2016-06-10
@DMGarikk

Drawing an analogy with Windows XP, it seems to me that this is equivalent to launching a windowed application in Windows without starting explorer.exe

there is not even a close analogy here.
Xserver is not a user shell, it is a graphics subsystem whose task is to "draw pictures"
Naturally, nothing will work without it, except to draw a traffic light in text mode

R
Roman Mirilaczvili, 2016-06-10
@2ord

You can run it in the context of a virtual framebuffer using xvfb-run :
https://en.wikipedia.org/wiki/Xvfb
Accordingly, by running the application in this way, the rendering will be "virtual" and will not display anywhere.

V
Vladimir Grabko, 2016-06-10
@VGrabko

do not want to start X? Finally write yours.
And in general Xs without an environment eat up 5 meters of oz. (I saw some Linux that with a graph environment ate 16 MB of RAM)

B
belunix, 2016-06-10
@belunix

Apparently without the X server, it will not work in any way.
Here is what at least approximately meets the requirements.
askubuntu.com/questions/310671/start-ubuntu-withou...

M
Mikhail Zolotarev, 2016-06-17
@Godneth

  1. Change colors for events in the bash
  2. Rendering ASCII graphics

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question