{"id":13338,"date":"2019-04-01T20:39:43","date_gmt":"2019-04-01T20:39:43","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13338"},"modified":"2019-04-01T20:39:43","modified_gmt":"2019-04-01T20:39:43","slug":"installing-and-configuring-x2go-server-and-client-on-debian-8","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/installing-and-configuring-x2go-server-and-client-on-debian-8\/","title":{"rendered":"Installing and Configuring X2Go Server and Client on Debian 8"},"content":{"rendered":"<p>Much of the power behind Linux comes from the command line and the ability for a system to be managed easily remotely. However, for most users from the Windows world or novice Linux administrators, there may be a preference to have access to the graphical user interface for remote management functionality.<\/p>\n<p>Other users may simply have a desktop at home that may need to have graphical applications managed remotely as well. Which ever situation may be the case, there are some inherent security risks such as the remote traffic not being encrypted thus allowing malicious users to sniff the remote desktop session.<\/p>\n<div id=\"attachment_14439\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-X2Go-Server-and-Client-in-Linux.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14439\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-X2Go-Server-and-Client-in-Linux-620x297.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-X2Go-Server-and-Client-in-Linux-620x297.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/Install-X2Go-Server-and-Client-in-Linux.png 720w\" alt=\"Install X2Go Server and Client in Linux\" width=\"620\" height=\"297\" aria-describedby=\"caption-attachment-14439\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14439\" class=\"wp-caption-text\">Install X2Go Server and Client in Debian<\/p>\n<\/div>\n<p>To solve this common issue with remote desktop systems,\u00a0<strong>X2Go<\/strong>\u00a0tunnels the remote desktop session through secure shell (<a href=\"https:\/\/www.tecmint.com\/5-best-practices-to-secure-and-protect-ssh-server\/\" target=\"_blank\" rel=\"noopener\">SSH<\/a>). While only one of many of the benefits of\u00a0<strong>X2Go<\/strong>, it is a very important one!<\/p>\n<h4>Features of X2Go<\/h4>\n<ol>\n<li>Graphical remote desktop control.<\/li>\n<li>Tunneled through SSH.<\/li>\n<li>Sound support.<\/li>\n<li>File and printer sharing from client to server.<\/li>\n<li>Ability to access a single application rather than a whole desktop session.<\/li>\n<\/ol>\n<h4>Environment Setup<\/h4>\n<ol>\n<li>This guide assumes a working\u00a0<a href=\"https:\/\/www.tecmint.com\/debian-8-installation-and-upgrade-debian-wheezy-to-jessie\/\" target=\"_blank\" rel=\"noopener\">Debian 8 (Jessie)<\/a>\u00a0setup with LXDE (other desktop environments are support however; please see\u00a0<a href=\"http:\/\/wiki.x2go.org\/doku.php\/doc:de-compat\" target=\"_blank\" rel=\"nofollow noopener\">this link<\/a>).<\/li>\n<li>Another Linux client to install the X2Go client software (This guide uses\u00a0<strong>Linux Mint 17.1<\/strong>\u00a0with the Cinnamon desktop environment).<\/li>\n<li>Working network connection with openssh-server already installed and working.<\/li>\n<li>Root access<\/li>\n<\/ol>\n<h3>Installation of X2Go Server and Client on Debian 8<\/h3>\n<p>This part of the process will require setting up the\u00a0<strong>X2Go server<\/strong>\u00a0as well as an\u00a0<strong>X2Go client<\/strong>\u00a0in order to have a remote desktop connection. The guide will start first with the server setup and then proceed to the client setup.<\/p>\n<h4>X2Go Server Installation<\/h4>\n<p>The server in this tutorial will be the\u00a0<strong>Debian 8<\/strong>\u00a0system running\u00a0<strong>LXDE<\/strong>. The start of the installation process, is to install the\u00a0<strong>X2Go Debian<\/strong>\u00a0repository and obtain the GPG keys. The first step is to obtain the keys which can be easily accomplished the\u00a0<strong>apt<\/strong>.<\/p>\n<pre># apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E\r\n<\/pre>\n<p>Once the keys have been obtained, a repository file needs to be created for apt to look for the X2Go packages at a specific repository location. This can all be accomplished with one simple command that creates the needed\u00a0<strong>apt<\/strong>\u00a0list file and puts the appropriate entry into that file.<\/p>\n<pre># echo \"deb http:\/\/packages.x2go.org\/debian jessie main\" &gt;&gt; \/etc\/apt\/sources.list.d\/x2go.list\r\n# apt-get update\r\n<\/pre>\n<p>The above commands will instruct\u00a0<strong>apt<\/strong>\u00a0to search this newly provided repository for packages and more specifically the\u00a0<strong>X2Go<\/strong>\u00a0packages. At this point, the system is ready to have the X2Go server installed using the apt meta-packager.<\/p>\n<pre># apt-get install x2goserver\r\n<\/pre>\n<p>At this point the\u00a0<strong>X2Go server<\/strong>\u00a0should be installed and started. It is always a good idea to confirm that installed servers are running though.<\/p>\n<pre># ps aux | grep x2go\r\n<\/pre>\n<div id=\"attachment_14433\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Process.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14433\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Process-620x288.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Process-620x288.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Process.jpg 798w\" alt=\"Confirm X2Go Server Installed and Running\" width=\"620\" height=\"288\" aria-describedby=\"caption-attachment-14433\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14433\" class=\"wp-caption-text\">Confirm X2Go Server Installed and Running<\/p>\n<\/div>\n<p>In the event that the system doesn\u2019t automatically start X2Go, run the following command to attempt to start the service.<\/p>\n<pre># service x2goserver start\r\n<\/pre>\n<p>At this point the basic server configuration should be done and the system should be waiting for connections from the\u00a0<strong>X2Go client<\/strong>\u00a0system.<\/p>\n<h4>X2Go Client Installation<\/h4>\n<p>The client installation is easier than the server installation. Most distributions already have the client in their provided repositories and this package can easily be installed with the apt meta-packager.<\/p>\n<p><strong>NOTE<\/strong>: Remember that this is done on a computer that is going to connect to the server setup in the previous paragraphs.<\/p>\n<pre># apt-get install x2goclient\r\n<\/pre>\n<p>Assuming that\u00a0<strong>apt<\/strong>\u00a0doesn\u2019t return any issues, the X2Go client should be ready to go. Navigate to the\u00a0<strong>X2Go<\/strong>executable via the client\u2019s distribution\u2019s file explorer or launch the utility from the command line with the following command.<\/p>\n<pre># x2goclient\r\n<\/pre>\n<div id=\"attachment_14434\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2GoClient.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14434\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2GoClient-620x301.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2GoClient-620x301.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2GoClient-1024x497.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2GoClient.jpg 1224w\" alt=\"X2Go Client Session\" width=\"620\" height=\"301\" aria-describedby=\"caption-attachment-14434\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14434\" class=\"wp-caption-text\">X2Go Client Session<\/p>\n<\/div>\n<p>The above windows are the initial windows once the X2Go client is launched. Let\u2019s connect to the\u00a0<strong>Debian Server<\/strong>now!<\/p>\n<p>In the\u00a0<code>server<\/code>\u00a0field in the window on the right, enter the Debian system\u2019s ip address. The next box needs to have the user name of someone who can SSH into the Debian system.<\/p>\n<p>The next thing to change is the\u00a0<code>Session Type<\/code>\u00a0at the bottom. Since the Debian server is using LXDE, it is a good idea to select LXDE from the drop down.<\/p>\n<p>Again, not all desktop environments are supported at the moment, please reference the link at the top of this guide to see what desktop environments are supported or if any work-arounds are needed.<\/p>\n<p>Once the above information have been input, click the \u201c<strong>Ok<\/strong>\u201d button at the bottom of the window to finish setting up the session profile. The next step is to click and activate the newly created session. To do this simply click on the session just created on the right in the\u00a0<strong>X2Go Client<\/strong>\u00a0window.<\/p>\n<div id=\"attachment_14435\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14435\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session-620x373.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session-620x373.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session-1024x617.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session.png 1355w\" alt=\"Connect Remote Debian Desktop\" width=\"620\" height=\"373\" aria-describedby=\"caption-attachment-14435\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14435\" class=\"wp-caption-text\">Connect Remote Debian Desktop<\/p>\n<\/div>\n<p>Once this session is selected, it will prompt for the user on the remote machine\u2019s credentials. Again these credentials will be the user on the Debian server\u2019s credentials!<\/p>\n<div id=\"attachment_14436\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session-login.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14436\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Session-login.png\" alt=\"Remote Linux Desktop Login\" width=\"471\" height=\"243\" aria-describedby=\"caption-attachment-14436\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14436\" class=\"wp-caption-text\">Remote Debian Desktop Login<\/p>\n<\/div>\n<p>Once the correct password is provided the system will then display the remote system\u2019s graphical display in a scalable window on the client system!<\/p>\n<div id=\"attachment_14437\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Connection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14437\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Connection-576x450.png\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Connection-576x450.png 576w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/07\/X2Go-Connection.png 802w\" alt=\"Linux Remote Desktop Access\" width=\"576\" height=\"450\" aria-describedby=\"caption-attachment-14437\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14437\" class=\"wp-caption-text\">Debian Remote Desktop Access<\/p>\n<\/div>\n<p>Hopefully at this point, your\u00a0<strong>X2Go<\/strong>\u00a0system is working like the above systems and you are enjoying a secure remote desktop connection to a Debian server!<\/p>\n<p>Best of luck with this new (and more secure) remote desktop solution for a Debian Linux system! Please feel free to share any comments or questions below and we\u2019d be happy to assist.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/setup-remote-desktop-using-x2go-server-and-client-in-debian\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Much of the power behind Linux comes from the command line and the ability for a system to be managed easily remotely. However, for most users from the Windows world or novice Linux administrators, there may be a preference to have access to the graphical user interface for remote management functionality. Other users may simply &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/installing-and-configuring-x2go-server-and-client-on-debian-8\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing and Configuring X2Go Server and Client on Debian 8&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13338","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13338"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13338\/revisions"}],"predecessor-version":[{"id":13339,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13338\/revisions\/13339"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}