This is a little script I’ve been tinkering with for a bit now, it installs LXDE + NoMachine for remote desktop access. It’s a minimalist script based around low ram usage (perfect for LEBs!), it just installs a bare desktop, a web browser(iceweasel) and a means to access it, any other programs i.e. VPN, torrent client, etc.. must be installed by the user.
Update 1/05/15: An Android/iOS client is now available for NoMachine, please see the links below for the APK/iOS store link. I’ll be adding a configuration guide for the Android client shortly.
Update 3/24/14: Fixed an issue with package and client URLs not resolving, also fixed a bug in the libcairo section of the script. Please continue to report your feedback.
chmod 755 autolxde.sh
At the end of the script you will be asked if you want to create a user,
You cannot login to NoMachine as root
If you already have a non-root user, you don’t have to add another.
Add a new user? (y/n)
If you have already created a user enter n, if you have not created a user and only have the root then you should enter y and create a user at this time. You will be prompted you the username and desired password.
You will also need to install the NoMachine client on your local machine in order to remotely access the desktop.
Windows Client – Linux Client – All other OS – Android – iOS (iPad Only)
After installing the client you need to point it at your NX/LXDE server installation. Start by running the NX Connection Wizard.
Type what you’d like to name the session, then enter you servers ip address or hostname.
Select the desired resolution or select Custom to enter a resolution manually.
Select New Virtual Desktop
If everything worked correctly up till this point, you should now be staring at your new Remote LXDE Desktop.
18 thoughts to “LXDE + NoMachine Low Memory Auto-Install Script”
I have an error here.
It says that: “Server configuration error. Cannot login. Please contact your system Administrator.”
I’ve done everything stated in the guide. I’m using Port 22.
Try apt-get install xauth, if that doesn’t work ensure that NoMachine can access the /home/user/.nx folder.
Hi.. I have some dumb question 🙁
Please explain more about the low ram usage, what is the minimum vps spec suggestion to run this smoothly? what the best linux distro for this? Thank You
Well, first of all this script will only work on Ubuntu/Debian. Either distro will work just fine, the main difference being that Ubuntu typically has newer packages but I personally prefer Debian.
Minimum spec can vary, I’ve had this script running successfully on a 128MB VPS, however what you’re using it for will determine your specs. If you plan to browse a lot of content heavy websites, you will use quite a bit of ram, I would recommend 512MB with 256MB being the minimum.
The .deb download links referred by the script and the client download links on this page are broken (404). Is it possible to restore them? at least temporarily. Thanks.
Thanks for your comment, I’ve got that sorted out and everything should be working properly. I reconfigured my website’s setup away from VestaCP and forgot to configure the subdomain that contained the NoMachine files.
Please keep the feedback coming.
Script runs fine. Thank you. You may want to check the links on this page for client downloads.
All the client download links are working fine from what I can tell.
Hi, how to fix this error?
I’m using Debian 7 64bit, I’ve installed xauth also..
If you’re getting the error, Cannot Run starlxde then either LXDE didn’t install properly or that your path is wrong. What happens if you try to run startlxde from SSH as root, do you receive the same message?
This doesn’t work for me at all. 🙁
(lxsession:2660): Gtk-WARNING **: cannot open display:
Did you start with a fresh installation?
I’ll need more information, i.e. OS etc..
Wow thanks @nunim, it works like a charm!
512 MB RAM
Initial error “Server configuration error.”
apt-get install xauth
Awesome work, thanks for creating it and hosting the files!
Is there a java nx client? Something that could be accessed without having to install the client?
The nomachine nx web companion seems to do this, but I can’t get through all of the “sales speak” to figure out what exactly it does, or whether it works with nomachine 3.x
I’m getting “the nx service is not available or the nx access was disabled on host”.
Fresh Deain 7×64 out of the box.
Seems like you need to add Authentication Key integration. The guide is not complete!
Are you using the NX4 client?
Changing the key requires changing it server and client side as NoMachine ships their own key by default.
Thanks for your great work.
Do you have any idea on file transfer using NoMachine?
Besides, OpenNX doesn’t work on Yosemite. I have to use NoMachine 4 client to connect.
For file transfer you can just use SFTP. Thanks for the heads-up regarding Yosemite and OpenNX.