It's certainly a stupid question, but maybe…
On GNU/Linux, is there a way to display an image on a machine without X server installed (I mean something better than libcaca).
Or if not possible, temporary launching an X server with a simple image viewer which stop when closing this viewer 🤔
@adele I know of fbv (arch package: https://archlinux.org/packages/community/x86_64/fbv/ ) ... maybe there are others...
@adele ... also, maybe this can be of interest to you: w3m is a text-mode browser that can also display images on the console framebuffer... elinks too, if I remember correctly... mplayer can play movies on the console framebuffer...
@adele search for "sixel" which is a way to display pictures in a terminal (even xterm supports it, it's not really new)
@adele After a while I thought about some mobile ssh terminal app and x11 forwarded to a mobile screen. As a secondary device for images handling. I must test it.
@adele Yeah, you can display images on the framebuffer without X running. Some instructions here:
You can even play videos with mpv.
You can start an X application as sole client of a Xorg server.
$ echo "eog > ~/.xinitrc"
eog being the gnome image viewer, can be anything else (eg imv).
your .xinitrc could contains these two lines:
When you stop the application, it will leave X and log you out.
easiest. cause I am not sure you could start just a wayland client without a compositor.
the other option by using the framebuffer with app like fbi but never tested.
@adele Something like chafa produces better output than libcaca. Like Solene mentioned sixel graphics is the best but there aren't a lot of options for using them without X. I have gotten sixel graphics working on the terminal without X using YAFT which supports sixel. http://uobikiemukot.github.io/yaft/
FIM works well too and outputs images to the framebuffer. I have links to chafa, FIM and libsixel on my terminal programs page.
@frrobert the goal is to have no desktop environment, that's why I search tools for graphical tasks which don't need X.
Instance de Mastodon, réseau social de micro-blogging libre et décentralisé hébregée par l'association Tetaneutral.net.