{"id":5507,"date":"2019-08-08T12:00:50","date_gmt":"2019-08-08T10:00:50","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=5507"},"modified":"2021-12-22T11:01:54","modified_gmt":"2021-12-22T10:01:54","slug":"installation-of-a-graphical-user-interface-for-linux","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/installation-of-a-graphical-user-interface-for-linux\/","title":{"rendered":"Installation of a graphical user interface for Linux"},"content":{"rendered":"\n<p>All Linux-Server operating systems are installed by default without a graphical user interface (GUI). A GUI on a dedicated server can only be accessed if a KVM is connected.<br>This tutorial will guide you through an easy installation process of the two most common GUIs for Ubuntu, Debian and CentOS.<br>Please note that you will always have to create an additional user for your GUI login, since a login as root is not possible.<br>In order to access your GUI, you need to use your VPS VNC connection, or access your dedicated server via KVM. <strong>KVM access has to be ordered additionally for our dedicated servers, it is not included by default.<\/strong><\/p>\n\n\n\n<p><strong>Also please be informed that VNC is NOT an encrypted connection method. We recommend to use xRDP if you plan on using your sevrer exclusively with a GUI.<\/strong><\/p>\n\n\n\n<p>If you\u2019re not sure about your admin rights, always enter the command sudo -i at the beginning of every session:<\/p>\n\n\n\n<p><code>sudo -i<\/code><\/p>\n\n\n\n<p>This command will grant you the rights of a power user, so you don\u2019t have to write the command sudo at the beginning of every command line.<\/p>\n\n\n\n<p class=\"has-text-align-left has-medium-font-size\"><strong>Ubuntu 16.04 \/ 18.04<\/strong><\/p>\n\n\n\n<p>Please connect to your server as root via SSH.<br>Create a new user for your GUI login and set a password:<\/p>\n\n\n\n<p><code>useradd -m NewUserName &amp;&amp; passwd NewUserName<br><br><\/code><\/p>\n\n\n\n<p>Now you can install the Ubuntu-Dekstop GUI with the following command (the server will fetch updates, install the GUI, and reboot automatically):<\/p>\n\n\n\n<p><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; apt install ubuntu-desktop -y &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>Alternatively, the following command installs the Kubuntu-Desktop (the server will fetch updates, install the GUI, and reboot automatically):<\/p>\n\n\n\n<p><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; apt install kubuntu-desktop -y &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>You can connect to your VPS via VNC and login to your new GUI, or via KVM if you have a dedicated server.<\/p>\n\n\n\n<p class=\"has-text-align-left has-medium-font-size\"><strong>Ubuntu 18.10 and later versions<\/strong><\/p>\n\n\n\n<p>Please connect to your server as root via SSH.<br>Create a new user for your GUI login and set a password:<\/p>\n\n\n\n<p><code>useradd -m NewUserName &amp;&amp; passwd NewUserName<br><br><\/code><\/p>\n\n\n\n<p>You can choose from a variety of GUIs, which will automatically be installed with the &#8220;tasksel&#8221; tool:<\/p>\n\n\n\n<p><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; tasksel<br><br><\/code><\/p>\n\n\n\n<p>Some GUIs might require the &#8220;lightdm&#8221; display manager, instead of the &#8220;gdm3&#8221; manager that comes preinstalled with Ubuntu. If your desktop does not load properly, please install lightdm:<\/p>\n\n\n\n<p><code>apt install lightdm<\/code><\/p>\n\n\n\n<p>Choose a desktop of your liking and confirm, please do not install multiple desktop environments at the same time. Reboot your server to make your GUI accessible via your VPS VNC access or KVM in case of a dedicated server.<\/p>\n\n\n\n<p class=\"has-text-align-left has-medium-font-size\"><strong>CentOS 6<\/strong><\/p>\n\n\n\n<p>Please connect to your server as root via SSH.<br>Create a new user for your GUI login and set a password:<\/p>\n\n\n\n<p><code>useradd -m NewUserName &amp;&amp; passwd NewUserName<br><br><\/code><\/p>\n\n\n\n<p>Now you will need to edit your &#8220;\/etc\/inittab&#8221; to boot to runlevel 5 so that you will be able to use the GUI after (re)boot:<\/p>\n\n\n\n<p><code>nano \/etc\/inittab<br><br><\/code><\/p>\n\n\n\n<p>Please change the following line:<\/p>\n\n\n\n<p><code>id:3:initdefault:  -&gt;  id:5:initdefault:<br><br><\/code><\/p>\n\n\n\n<p>Save your changes and close the editor by pressing <strong>strg+o, enter, strg+x<\/strong>. <\/p>\n\n\n\n<p>The following command will update your server and install the GNOME GUI and required software (the server will be rebooted automatically):<\/p>\n\n\n\n<p><code>yum update -y &amp;&amp; yum -y groupinstall \"Desktop\" \"X Window System\" \"Fonts\" &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>Now you can access your GUI via your VPS VNC access or KVM in case of a dedicated server.<\/p>\n\n\n\n<p>In order to install the KDE GUI, please use the following command. Your server will also be updated and rebooted:<\/p>\n\n\n\n<p><code>yum update -y &amp;&amp; yum -y groupinstall \"KDE desktop\" \"X Window System\" \"Fonts\" &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>Now you can access your GUI via your VPS VNC access or KVM in case of a dedicated server.<\/p>\n\n\n\n<p class=\"has-text-align-left has-medium-font-size\"><strong>CentOS 7<\/strong><\/p>\n\n\n\n<p>Please connect to your server as root via SSH.<br>Create a new user for your GUI login and set a password:<\/p>\n\n\n\n<p><code>useradd -m NewUserName &amp;&amp; passwd NewUserName<br><br><\/code><\/p>\n\n\n\n<p>Now you can install the KDE GUI with the following command (the server will fetch updates, install the GUI, and reboot automatically):<\/p>\n\n\n\n<p><code>yum update -y &amp;&amp; yum -y groupinstall \"KDE Plasma Workspaces\" &amp;&amp; ln -sf \/lib\/systemd\/system\/runlevel5.target \/etc\/systemd\/system\/default.target &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>As alternative the following command for an installation of the GNOME GUI (the server will update and reboot automatically):<\/p>\n\n\n\n<p><code>yum update -y &amp;&amp; yum -y groupinstall \"GNOME Desktop\" \"Graphical Administration Tools\" &amp;&amp; ln -sf \/lib\/systemd\/system\/runlevel5.target \/etc\/systemd\/system\/default.target &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>You can connect to your VPS via VNC or KVM in case of a dedicated server and login to your new GUI.<\/p>\n\n\n\n<p class=\"has-text-align-left has-medium-font-size\"><strong>Debian 8 and later versions<\/strong><\/p>\n\n\n\n<p>Please connect to your server as root via SSH.<br>Create a new user for your GUI login and set a password:<\/p>\n\n\n\n<p><code>useradd -m NewUserName &amp;&amp; passwd NewUserName<br><br><\/code><\/p>\n\n\n\n<p>Now you can install the GNOME GUI with the following command (the server will fetch updates, install the GUI, and reboot automatically):<\/p>\n\n\n\n<p><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; apt install gnome -y &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>As an alternative the following command for an installation of the KDE GUI (the server will update and reboot automatically):<\/p>\n\n\n\n<p><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; apt install kde-standard -y &amp;&amp; init 6<br><br><\/code><\/p>\n\n\n\n<p>Now you can connect to your VPS via VNC or KVM in case of a dedicated server and login to your new GUI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Linux-Server operating systems are installed by default without a graphical user interface (GUI). A GUI on a dedicated server can only be accessed if a KVM is connected.This tutorial will guide you through an easy installation process of the two most common GUIs for Ubuntu, Debian and CentOS.Please note that you will always have [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"default","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":[18],"tags":[123,181,246,398,510,852],"ppma_author":[1497],"class_list":["post-5507","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-centos","tag-contabo","tag-debian","tag-gui","tag-linux","tag-ubuntu"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Philipp","author_link":"https:\/\/contabo.com\/blog\/author\/philipp\/"},"uagb_comment_info":0,"uagb_excerpt":"All Linux-Server operating systems are installed by default without a graphical user interface (GUI). A GUI on a dedicated server can only be accessed if a KVM is connected.This tutorial will guide you through an easy installation process of the two most common GUIs for Ubuntu, Debian and CentOS.Please note that you will always have&hellip;","authors":[{"term_id":1497,"user_id":19,"is_guest":0,"slug":"philipp","display_name":"Philipp","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/01f728f9df51b69e518e9e4812905f84fcf3758571bbd7ea0b2e0722d96333d1?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/5507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=5507"}],"version-history":[{"count":1,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/5507\/revisions"}],"predecessor-version":[{"id":24791,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/5507\/revisions\/24791"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=5507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=5507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=5507"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=5507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}