This is the first in a line of tutorials I am working on for less experienced linux users to effectively use their VPS. I've been tinkering with a little script that some of you might find helpful, it's designed to install LXDE and NoMachine on a fresh VPS installation. All it requires is that you have sudo installed (defualt on ubuntu). Just tell it which architecture you're using when you run it (x86/x64) so it fetches the appropriate packages and it will fetch and install everything else you need to boot into nomachine. It's my first bash script so there may be some unforseen kinks but that's why I'm posting it :p
This script is designed to run on low resource VPS's so it installs minimal packages, but you may add any addition features you need (web browser, etc..).
Let me know what you think.
Code:
#! /bin/bash
# script to fetch and install nomachine, LXDE for x64/x86 debian/ubuntu
# nunim ~ sonicboxes.com
echo
echo Please select your operating system arcitecture
echo
read -p "Is the system x86? (y/n)?"
[ "$REPLY" == "y" ] && x86="yes"
[ "$REPLY" == "n" ] && x86="no"
echo
echo Updating Current Packages
echo
yes | sudo apt-get update
echo
echo Installing XORG/LXDE
echo
yes | sudo apt-get install --no-install-recommends lxde xorg
echo
echo Creating Installation Directory
mkdir nomachine_install
cd nomachine_install
echo
echo Fetching NoMachine
echo
if [ $x86 = no ]; then
wget http://64.34.161.181/download/3.5.0/Linux/nxclient_3.5.0-7_amd64.deb
wget http://64.34.161.181/download/3.5.0/Linux/nxnode_3.5.0-7_amd64.deb
wget http://64.34.161.181/download/3.5.0/Linux/FE/nxserver_3.5.0-9_amd64.deb
echo
echo Installing Nomachine
echo
sudo dpkg -i nxclient_3.5.0-7_amd64.deb
sudo dpkg -i nxnode_3.5.0-7_amd64.deb
sudo dpkg -i nxserver_3.5.0-9_amd64.deb
else
wget http://64.34.161.181/download/3.5.0/Linux/nxclient_3.5.0-7_i386.deb
wget http://64.34.161.181/download/3.5.0/Linux/nxnode_3.5.0-7_i386.deb
wget http://64.34.161.181/download/3.5.0/Linux/FE/nxserver_3.5.0-9_i386.deb
echo
echo Installing Nomachine
echo
sudo dpkg -i nxclient_3.5.0-7_i386.deb
sudo dpkg -i nxnode_3.5.0-7_i386.deb
sudo dpkg -i nxserver_3.5.0-9_i386.deb
fi
echo
echo Cleaning Up
echo
cd ..
rm -r nomachine_install
echo
echo Installation Complete
echo
echo Install Script by SonicBoxes.com
echo
Copy the code from the codebox and save it as a bash script (xxx.sh), then chmod the script to make it executable ( chmod 655 xxx.sh ), run ( ./xxx.sh ) and enjoy!
When you login with nomachine, configure the client to run "startlxde" and nomachine will load right into the lxde screen.
http://img585.imageshack.us/img585/4074/sshot2h.png