{"id":2604,"date":"2024-02-01T19:29:27","date_gmt":"2024-02-01T13:59:27","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=2604"},"modified":"2025-04-10T11:34:21","modified_gmt":"2025-04-10T06:04:21","slug":"install-gui-ubuntu-vps","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/install-gui-ubuntu-vps\/","title":{"rendered":"How to Install GUI on Ubuntu VPS &#8211; Step-by-Step Guide"},"content":{"rendered":"\n<p>Looking to install a GUI on your Ubuntu VPS? This guide provides a comprehensive step-by-step approach to easily set up a graphical interface on your Ubuntu Virtual Private Server.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/CoverImage-1.gif\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1080\" height=\"566\" data-id=\"2606\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/CoverImage-1.gif\" alt=\"Install GUI on Ubuntu\" class=\"wp-image-2606\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"requirements\">Requirements<\/h4>\n\n\n<p>For a lightweight desktop environment, it is advisable to have at least 1GB of RAM and ensure that there is sufficient disk space for the GUI components to occupy in it. A minimum of 10GB of free disk space is recommended for installing these components. Furthermore, you must have sudo privileges or access to the root account in order to install packages and make necessary system-level changes.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"securely-connecting-to-your-ubuntu-vps\">Securely Connecting to Your Ubuntu VPS<\/h4>\n\n\n<p>Use an SSH client like <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a> for Windows or the terminal in macOS and Linux.<\/p>\n\n\n\n<p>For Linux\/mac:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh username@your_vps_ip<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"update-and-upgrade-your-vps\">Update and Upgrade Your VPS<\/h4>\n\n\n<p>Ensure the server&#8217;s package list and installed packages are up-to-date.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<br>sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-a-desktop-environment\">Installing a Desktop Environment<\/h4>\n\n\n<p>In this tutorial, we will guide you through the installation of the <a href=\"https:\/\/www.xfce.org\/\" target=\"_blank\" rel=\"noopener\">XFCE<\/a> desktop environment, a superior choice for empowering your VPS with a responsive graphical user interface. XFCE stands out as an exceptional option, catering to users who value unparalleled performance, optimal resource efficiency, and a rich spectrum of customization options&#8230; There are also other options for providing GUI for the VPS such as <a href=\"https:\/\/www.gnome.org\/\" target=\"_blank\" rel=\"noopener\">GNOME<\/a>, <a href=\"https:\/\/github.com\/linuxmint\/cinnamon\" target=\"_blank\" rel=\"noopener\">Cinnamon<\/a>, <a href=\"https:\/\/www.lxde.org\/\" target=\"_blank\" rel=\"noopener\">LXDE<\/a>, <a href=\"https:\/\/kde.org\/plasma-desktop\/\" target=\"_blank\" rel=\"noopener\">KDE Plasma<\/a>, <a href=\"https:\/\/mate-desktop.org\/\" target=\"_blank\" rel=\"noopener\">MATE<\/a>, etc. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> sudo apt install xfce4 -y<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-a-vnc-server\">Installing a VNC Server<\/h4>\n\n\n<p>Install and configure a VNC server to access the GUI remotely. We are using VNC Server called <a href=\"https:\/\/www.tightvnc.com\/download.php\" target=\"_blank\" rel=\"noopener\">TightVNCServer<\/a> which is a popular choice for its simplicity and effectiveness. To install it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install tightvncserver -y<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"configuring-the-vnc-server\">Configuring the VNC Server<\/h4>\n\n\n<p>Initialize the VNC Server and set passwords. To do it execute &#8220;vncserver&#8221; command in the terminal and followed by entering a password for the VNC.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vncserver<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-145415.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"555\" height=\"297\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-145415.png\" alt=\"configuring vncserver\" class=\"wp-image-2608\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-145415.png 555w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-145415-300x161.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-ast-global-color-5-background-color has-background\">Note: When you initially run the <code>vncserver<\/code> and set up a password, you might encounter a prompt asking if you want to establish a &#8216;view-only&#8217; password. It&#8217;s essential to respond with &#8216;No&#8217; or &#8216;n&#8217; because rejecting this option is necessary to enable mouse movement, keyboard input, and other interactive actions through VNC. If you want only to allow others to observe the VPS desktop via VNC without giving them control, answer <code>y<\/code> (yes) and then set a view-only password.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>After initializing the vncserver, stop the VNC session for editing the configuration file. To stop it, execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vncserver -kill :1<\/code><\/pre>\n\n\n\n<p>Then edit the <code>xstartup<\/code> file. The file is located in <code>~\/.vnc\/xstartup<\/code>. Open it with a text editor like nano or vim.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano ~\/.vnc\/xstartup<\/code><\/pre>\n\n\n\n<p>Modify the file, and replace the content with the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-ast-global-color-4-background-color has-background has-small-font-size\" style=\"padding-top:0;padding-bottom:0\">!\/bin\/bash<br>xrdb $HOME\/.Xresources<br>startxfce4 &amp;<\/pre>\n\n\n\n<p>Use CTRL+O, Enter to save and CTRL+X to exit nano.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/VNC-conf.gif\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"876\" height=\"696\" data-id=\"2614\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/VNC-conf.gif\" alt=\"xstartup configuration file\" class=\"wp-image-2614\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Then make the script executable:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x ~\/.vnc\/xstartup<\/code><\/pre>\n\n\n\n<p>Start again the VNC server to begin using the GUI. This is by executing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vncserver<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-150423.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"169\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-150423.png\" alt=\"vncserver\" class=\"wp-image-2617\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-150423.png 576w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-01-150423-300x88.png 300w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/a><\/figure>\n\n\n\n<p>We&#8217;ve completed the server-side configuration for the GUI and VNC. Now, let&#8217;s shift our focus to the client side!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"connect-via-a-vnc-client\">Connect via a VNC Client<\/h4>\n\n\n<p>Use a VNC client from your local machine to connect to the VPS&#8217;s GUI. For Windows systems, TightVNC provides its own VNC client called TightVNC Viewer, which is compatible with TightVNCServer. Download and install TightVNC Viewer from the official website: <a href=\"https:\/\/www.tightvnc.com\/download.php\" target=\"_blank\" rel=\"noopener\">TightVNC Viewer<\/a><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/vncviewer.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1916\" height=\"954\" data-id=\"2620\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/vncviewer.gif\" alt=\"Download and install TightVNC Viewer\" class=\"wp-image-2620\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>For Linux, consider VNC viewers such as <a href=\"https:\/\/remmina.org\/\" target=\"_blank\" rel=\"noopener\">Remmina<\/a> or <a href=\"https:\/\/www.linuxfromscratch.org\/blfs\/view\/12.1\/gnome\/vinagre.html\" target=\"_blank\" rel=\"noopener\">Vinagre<\/a>, and for Mac systems use <a href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/\" target=\"_blank\" rel=\"noopener\">RealVNC<\/a> or <a href=\"https:\/\/sourceforge.net\/projects\/cotvnc\/\" target=\"_blank\" rel=\"noopener\">Chicken VNC<\/a>.<\/p>\n\n\n\n<p>After successfully installing the VNC viewer, you can connect to your VPS GUI using the VNC software by entering the IP address of your VPS followed by &#8216;:1&#8217; in the Remote Host Address Field in your VNC software. For instance, if your VPS IP is 66.85.173.7, you would enter &#8216;66.85.173.7:1&#8217; as the Remote Host IP in your VNC Viewer software. Ensure to replace the placeholder IP address with the actual IP address of your VPS. Then enter the password you gave for VNC in the next field when installing vncserver on the VPS before.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/TightVNC-Viewer.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1624\" height=\"892\" data-id=\"2621\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/TightVNC-Viewer.gif\" alt=\"How to connect to VNC via TightVNC Viewer\" class=\"wp-image-2621\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Connecting to the VPS via VNC viewer will land us on the GUI of your VPS if everything is configured correctly as mentioned in this step-by-step tutorial. Enjoy the new enriched user experience and efficient management of your VPS by setting up this. \ud83d\ude0a\ud83d\ude80<\/p>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-ab666448 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Unleash the Power of KVM VPS<\/h3><p class=\"uagb-cta__desc\">Experience lightning-fast performance and complete control with our cutting-edge KVM Virtual Private Servers. Built for speed and reliability.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/kvm-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Choose Your Plan<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install GUI on Ubuntu VPS with our easy guide. Perfect for enhancing your Ubuntu server&#8217;s functionality and user experience.<\/p>\n","protected":false},"author":7,"featured_media":8556,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide.jpg",1536,1024,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide-768x512.jpg",768,512,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide.jpg",1536,1024,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-Install-GUI-on-Ubuntu-VPS-Step-by-Step-Guide.jpg",1536,1024,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn how to install GUI on Ubuntu VPS with our easy guide. Perfect for enhancing your Ubuntu server's functionality and user experience.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=2604"}],"version-history":[{"count":24,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2604\/revisions"}],"predecessor-version":[{"id":7820,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2604\/revisions\/7820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8556"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=2604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=2604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=2604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}