this post was submitted on 09 Feb 2025
19 points (85.2% liked)

Linux

50408 readers
736 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi,

I'm using the LITE version of Raspberry PI OS. ( so without desktop environment and other stuff, but unfortunately not systemd free... )

When I use this raspberry locally I don't need a desktop, but remotely I might...

I've found an interesting link:
https://www.xmodulo.com/remote-control-raspberry-pi.html
   see Method Three: X11 Forwarding for Desktop over SSH

I see that xinit is not installed by default with LITE ( and it make sense ) so do you think if I install it, and follow the rest of instruction it will work ?

If I understand well the mechanism I do not need to install a desktop environment on the server ( the rpi ) but only on the client right ?

Or do you know a better way do achieve this ?

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 2 weeks ago (2 children)

Ssh x11 forwarding has been a popular system for decades. (Id love to know if wayland options exist yet)

But as other have suggested you need x11 on both systems. It is very inbuilt into the way x11 was originally designed. (From back when we had huge shared servers and dumbish xterm workstations. This means it was designed to do much of the work on the server end with the display being the lower cost less able system.

It will work on a pie. But not with the lite os system as designed.

[–] [email protected] 6 points 2 weeks ago (1 children)

Absolutely! Give Waypipe a shot. Example: waypipe ssh desktop.local thunderbird

[–] [email protected] 3 points 2 weeks ago

Cheers ill look into it.

[–] [email protected] 8 points 2 weeks ago* (last edited 2 weeks ago)

X11 can be easily forwarded over ssh. You do need to have at least the application you want to forward installed on RPI, possibly X11 as well. You also need a X11 server on the other side.

[–] [email protected] 5 points 2 weeks ago (1 children)

What exactly is it your trying to use the raspberry pi for? A better solution might just be a web UI if you just need to adjust a few things/check on it every now and then remotely. You can just use your browser to go to its IP and have a UI there.

[–] [email protected] 3 points 2 weeks ago

Seconding this. The last time I use raspberry pi it was the first version and it could barely do x windows; trying to push everything to remote x and through ssh might make it unusable, but it will still technically work.

In your shoes: I would use something like cockpit and it comes with most distos by default. It uses your local browser to administer your rpi and can also give you a shell or virtual terminal.

If you insist on forwarding x over ssh, then be sure to enable compression. (I didn't see it in the article that you linked).

[–] [email protected] 5 points 2 weeks ago

Without an installed desktop environment on your Pi, you will not be able to use GUI apps, not even remotely. You would have to install it on the Pi first.

[–] [email protected] 4 points 2 weeks ago (1 children)
[–] [email protected] 1 points 1 week ago

freerdp xrdp if on X11

[–] [email protected] 3 points 2 weeks ago (1 children)

For any kind of remote GUI access you definitely need a desktop environment on the pi...

[–] [email protected] 7 points 2 weeks ago

You can launch single applications with X forwarding, and X can launch applications without a desktop.
Depending on needs, a web interface may be better. Like Cockpit or something more application-specific.

[–] [email protected] 2 points 2 weeks ago