Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Location
    Florida
    Posts
    195

    NoMachine & LXDE Installer for Ubuntu/Debian

    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
    Last edited by Nunim; 05-07-2012 at 06:11 PM.

  2. #2
    Thanks for sharing this script. Tried to install NX on Debian manually and failed many times, will try out this script on my dev box.

Similar Threads

  1. CentOS or Ubuntu or Debian
    By Host4Geeks in forum Hosting Software and Control Panels
    Replies: 26
    Last Post: 08-24-2010, 04:50 AM
  2. mysql-server problem on ubuntu & debian 64 bit Xen VPS
    By bekanosky in forum VPS Hosting
    Replies: 10
    Last Post: 06-30-2010, 09:28 AM
  3. What to get on VPS Debian or Ubuntu?
    By mystycs in forum VPS Hosting
    Replies: 7
    Last Post: 01-29-2010, 11:13 AM
  4. Ubuntu server or Debian
    By markjohnl in forum Dedicated Server
    Replies: 9
    Last Post: 07-09-2008, 11:23 PM
  5. Which one: ubuntu 6.06 LTS or Debian 4.0?
    By Elliot01 in forum Dedicated Server
    Replies: 17
    Last Post: 07-04-2007, 08:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •