TechLoverHD

Adaptable Knowledge of Technology

  • Android
  • Apps
  • Games
  • Devices
    • Phones
    • Tablets
    • Gadgets
    • Smart & HD TV
  • OS
    • Ubuntu
    • Windows
  • Tutorials
  • News
You are here: Home / Tutorials / How to install LXDE + VNC GUI on Ubuntu/Debian Server

How to install LXDE + VNC GUI on Ubuntu/Debian Server

14th May 2015 by TLHD

In this tutorial I’ll share how I installed very minimalistic LXDE and Tightvncserver to use graphical desktop in one of my VPS running Ubuntu 14.04. LXDE is a very lightweight graphical user interface (GUI) for Ubuntu or Debian based operating systems. VNC server manages the back-end and lets you connect to your VPS remotely with any VNC client and lets you use your server with GUI. These software requires minimum system requirements and will run on almost all low-end VPS.

LXDE Desktop running on Ubuntu VPS

Install & Access Graphical Desktop on Ubuntu/Debian VPS

Note: It is better not to run these commands as root user. Add a new user and give them sudo permission. Install and run these from the user account, more secured.

Check and do system update with the two following commands

sudo apt-get update
sudo apt-get upgrade

Installing the required packages.

sudo apt-get install nano xorg lxde-core tightvncserver

We can start our tightvncserver with the following command.

vncserver

This will ask you for a password. When it asks if you want read only access, type ‘n‘ and press Enter. The server will start at your_ip_or_domain:1. Don’t try to access it yet. First kill the vncserver using the following command.

vncserver -kill :1

Then we need to change the config file.

nano ~/.vnc/xstartup

Add the following two lines at the end of the file.

lxterminal &
 /usr/bin/lxsession -s LXDE &

After the edit the config file will look like this:

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
lxterminal &
/usr/bin/lxsession -s LXDE &

Save and close the file by pressing ctrl + x, then y and press Enter. Restart your vncserver with the following command:

vncserver

Now use any VNC-client software in your computer, phone or tablet to connect to your Linux VPS. You can use your domain name or ip ending with :1 and the password your entered earlier. And, the here you go. GUI enabled on your Ubuntu / Debian server or VPS.

Extras you might want to install:

If you want a GUI file editor, browser and an FTP client, type the following in your terminal and use them in your Ubuntu/Debian/Linux GUI environment.

sudo apt-get install leafpad firefox filezilla

This is just to start with. You can install more apps if you need them. Though servers are best to manage in Command Line Interface (CLI), but GUI cam make an amateur Linux user’s life easy.

Filed Under: Tutorials, Ubuntu Tagged With: Install, LXDE, tightvncserver, Ubuntu 14.04, VNC, vncserver, VPS

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 192 other subscribers.

Follow TechLoverHD

Categories

  • Apps (101)
  • Cryptocurrency (11)
  • Devices (190)
    • Gadgets (34)
    • Smart & HD TV (13)
    • Smartphones (123)
    • Tablets (28)
  • Games (1)
  • News (76)
  • OS (73)
    • Android (54)
    • Firefox OS (2)
    • Ubuntu (8)
    • Windows (9)
  • Photography (7)
  • Tutorials (61)

Recent Posts

  • How to Send Komodo or Any Smart Chain Funds from Your Address Without Rescanning the Wallet?
  • UK Granted Huawei A Limited Role In 5G Network
  • Use Komodo’s DEXP2P Tech for Live Streaming [How-to]
  • AtomicDEX Mobile Decentralised Exchange is Out for Public Beta Testing
  • How to Check Your VerusCoin Mining Balance, Hash Power & Estimated Average Time to Mine a Block
  • Claim BTG and Convert to BCH in a Quick & Easy to Follow Guide
  • How to Claim Komodo (KMD) Reward from Ledger Nano S?
  • Lenovo ZUK Z2 – Lot of PHONE for the MONEY
  • Difference Between Samsung Galaxy A5 and Galaxy A3 2017 Model
  • Alcatel Plus 10 2in1 4G Convertible Budget Friendly Windows 10 Tablet

© Copyright 2013-020 TechLoverHD · All Rights Reserved - About Us | Contact Us | Privacy Policy | Terms of Service | DMCA Policy