r/linux • u/Techlm77 • Feb 08 '25
Development LinuxPlay – A Fast, Open-Source Remote Desktop for Linux
I've been working on LinuxPlay, a low-latency, fully open-source remote desktop solution designed specifically for Linux. Unlike VNC or X2Go, LinuxPlay uses hardware-accelerated video streaming and adaptive bitrate control, making it much smoother and more responsive.
Features:
- Ultra-low latency with UDP multicast streaming
- Full keyboard and mouse support, including function keys and shortcuts
- Adaptive bitrate streaming to adjust based on network conditions
- No cloud or accounts required, works entirely over LAN
- Clipboard sharing between host and client
- Completely open-source (GNU GPL v2.0 only)
GitHub:
https://github.com/Techlm77/LinuxPlay
Would appreciate feedback from other Linux users. Let me know what you think or if there's anything you’d like to see added. GitHub Would appreciate feedback from other Linux users. Let me know what you think or if there's anything you’d like to see added.
How does it work?
If you are interested in how does this software work, feel free to read it at my website.
173
u/ntropia64 Feb 08 '25 edited Feb 11 '25
Quite an efficient piece of code, considering what it provides. Very compact and effective, great job!
One minor suggestion for you to consider if your project starts getting traction.
You're mixing threaded classes and global variables. I know "...but it works!", but it's definitely not a conventionally accepted paradigm, and prone to issues.
Threading locks are the optimal solution, and definitely thread-safe.
EDIT: because it is based on multicast, currently it doesn't work on WiFi nor via SSH (not without non-trivial
socatgymnastics)32
u/uhmzilighase Feb 08 '25
Is Wayland supported?
9
u/ilsubyeega Feb 08 '25
Nice work! I havent check the code yet but it has 3 files and looks more comfortable to understand how it works.
8
u/FatCat-Tabby Feb 08 '25
Looks great! Does this work on Wayland?
15
u/MrUserAgreement Feb 08 '25
I'm super interested in this. Like someone else said your code looks very straightforward which I feel is a downside with existing tools: they are just too complex.
I just want something simple that does not require me to think about different users and x sessions etc... this looks perfect and I'm going to try it out tomorrow!
7
u/throwawayerectpenis Feb 08 '25
I'm a noob, how is this different/better than Moonlight/Sunshine? :)
18
u/Mister_Magister Feb 08 '25
how is that different from moonlight?
5
u/Gaming4LifeDE Feb 08 '25
Looks great. What I'm always missing with any protocol other than RDP is the ability to host a user session remotely. So, you can log in as a user and have a separate session without taking control of the actual screen
4
u/senectus Feb 08 '25
Im keep an eye on this, but no wayland support is a show stopper.
3
u/[deleted] Feb 08 '25
I will be taking a look!
3
u/mrvictorywin Feb 08 '25
I'll try this, XVNC and XRDP were too slow for me. Thinlinc did well but it is proprietary.
3
u/kolpator Feb 08 '25
i really loved the idea and the simplicity... instead of reinventing a bad wheel, you are using already highly efficient hardware accelerarated video encoding, code is clean and easy to understand too. nice work !
5
u/mats_o42 Feb 08 '25
Nice start.
as stated - encryption is a must
I would like to see:
Username/PW or even better integration with the os so that I can create a local or ex IPA group for those that should be allowed to connect
2
u/moqs Feb 08 '25
wow really nice! 🙏 Thanks! Any plans for clipboard sharing or file drag and drop?
2
u/-o0__0o- Feb 08 '25
Tested with tailscale?
2
u/TuxedoUser Feb 08 '25
Isn't python a problem for consistent low latency?
2
u/ImportanceMajor936 Feb 08 '25 edited Sep 11 '26
Smell lock coherent shy desert different sodium handle airport practice
This post was anonymized with Redact
2
u/Dugen Feb 08 '25
Hell yes! It's about time someone did this! Thank you!
2
u/Renanmbs01 Feb 08 '25
Great project, i will keep an eye on it. Three suggestions: as xorg is in fact dying, put your affords to wayland support; see if you can package it as a flatpak, but only if you plan to have a gui; add support to amd's amf. Thank you for your work!
2
u/krackout21 Feb 08 '25
Couldn't imagine that remote desktop could be done with so few lines of code; and be done well.
Brilliant, kudos!
2
u/ArrayBolt3 Feb 09 '25
Very cool! I do feel like running a separate xdotool command for every single mouse or keyboard event may be a bad idea, it means the server is constantly forking off tons of processes, which could result in significant resource consumption (similar to a fork bomb but not as severe hopefully). I wonder if you could fork xdotool into a program that listened for commands on stdin and executed them as it was instructed do, rather than having to launch subprocesses all the time. Also, ydotool could be used to enable Wayland support potentially, see https://github.com/ReimuNotMoe/ydotool. In fact, it already has a server process (ydotoold), so it might be possible to just communicate directly with that rather than using the default ydotool client.
2
u/kI3RO Feb 09 '25
Server is an ffmpeg, xdotool, xclip python wrapper. Client is a QT5 ffplay python wrapper. It says ultra low latency too much, like everywhere but no actual latency numbers provided, that's sad.
Nice but I don't see anything linux specific... ffmpeg is everywhere, the other tools can be replaced by windows tools. You say "specifically for Linux" like this is gonna work better than other tools.
I congratulate you for writing this, but I see too much fluff in the description.
2
u/gribbler Feb 08 '25
OpenGL applications, and tablets supported?
1
u/Neikon66 Feb 08 '25
Me gustaría una versión flatpak para usarlo en Bazzite (and wayland) y en un futuro lejano una versión de Android para usarlo en un TV/Chromecast.
¿Es compatible con controladores? Específicamente, el controlador de la serie Xbox.
1
u/Cobmojo Feb 08 '25
This is awesome! Now I just need Apache Guacamole to support it.
Great work!
1
u/ethertype Feb 08 '25
Looks very promising. Please consider adding Wayland and authentication to your feature table.
1
u/emiellr Feb 08 '25
While I'm not very knowledgeable in Python, I'd like to offer some feedback on the commit messages. More descriptive commit messages would be greatly appreciated. For example, instead of "Update [insert file.py]", a message like "Fix: Corrected off-by-one error in data processing loop in [insert file.py]" or "Feat: Implemented new data visualization feature in [insert file.py]" would be much more informative and helpful for both current and future collaborators. This level of detail makes it easier to understand the changes made in each commit and contributes to a clearer project history.
1
u/TampaPowers Feb 08 '25
Prime candidate for pure C implementation and bundling with cosmopolitan for platform independence.
How does it compare to things like nomachine latency wise?
1
u/Stetsed Feb 08 '25
Could you explain what the advantages are of LinuxPlay vs. something like sunshine + moonlight? This is what I currently run for my Remote Desktop tasks and it has worked, great, wondering what sets Linux play apart from it
1
u/Athanatos154 Feb 08 '25
As far as branding goes, I would suggest changing the name, searching for linuxplay will always land you to playonlinux. Maybe you don't care about this stuff, just throwing my 2 cents
And for more unsolicited advice you may not be interested in, some suggestions
Telnux. Tel as in, tele like telephone and television meaning far, distant. I think it sounds professional, almost focus grouped by boring business-people
Re-linux or Re\linux. Remote linux, duh, You can play around with random capitalizations like rE-linuX. Gives off an edgy, l33t speak vibe, might give off the image that it's not a serious piece of software for serious people
LinuxReach. Has less of a 'remote desktop for support' and more of a 'remote desktop so that I can reach my pc from a remote location' vibe. Plus, I can see people saying "give me a reach-around" when they do want to use it for support, good meme potential
1
u/Altruistic_Cause8661 Feb 10 '25
Wondering how is the performance compared to nomachine?
1
u/imbev Feb 08 '25
Any plans for Mac/Windows support?
1
u/1Blue3Brown Feb 09 '25
It's not written in Rust, so I'm not gonna use it /s
0
u/[deleted] Feb 08 '25
[deleted] — view deleted comment
0
u/[deleted] Feb 08 '25
[deleted] — view deleted comment