{"id":32,"date":"2008-01-19T13:10:00","date_gmt":"2008-01-19T13:10:00","guid":{"rendered":"http:\/\/www.mohanjith.net\/wordpress\/?p=32"},"modified":"2008-01-19T13:10:00","modified_gmt":"2008-01-19T13:10:00","slug":"using-gnome-remotely-via-ssh","status":"publish","type":"post","link":"https:\/\/mohanjith.net\/blog\/2008\/01\/using-gnome-remotely-via-ssh.html","title":{"rendered":"Using GNOME remotely via SSH"},"content":{"rendered":"<p>Have you ever wished that you had a GUI on a remote Linux server without using VNC? Actually you can use GNOME or any other GDM on a remote server via SSH, yep I&#8217;m not joking.<\/p>\n<p>You need to have SSH and X11 running on both the client and the server. In addition on the server GNOME should be installed and SSH daemon should be running.<\/p>\n<p>Step 1 &#8211; Turn on X11 forwarding on the server:<\/p>\n<p>Add the following if it doesn&#8217;t exist or just change no to yes in <code>\/etc\/ssh\/ssh_config<\/code> and save it.<\/p>\n<pre>ForwardAgent yes<br \/>ForwardX11 yes<br \/>ForwardX11Trusted yes<\/pre>\n<p>Add the following if it doesn&#8217;t exist or just change to yes in <code>\/etc\/ssh\/sshd_config<\/code> and save it.<\/p>\n<pre>X11Forwarding yes<\/pre>\n<p>Step 2 &#8211; Connect to the remote server viw SSH with X11 forwarding<\/p>\n<p>In order to enable X11 forwarding when you connect to a remote server via SSH you need to provide the commandline option <code>-X<\/code>. See the example bellow.<\/p>\n<pre> $ ssh -X username@server<\/pre>\n<p>Step 3 &#8211; Start GNOME Session<\/p>\n<p>You need to start the GNOME session for the GUI to show. By default GNOME session is not started for remote connections. It might take a while for any change to appear, you should notice GNOME startup sequence appearing in the client and couple of messages in your terminal.<\/p>\n<p>However I do not recommend running X11 or GNOME on a production server, but this should be handy if you want to connect to your home computer from office for example.<\/p>\n<div id=\"fb-like\" style=\"\"><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https:\/\/mohanjith.net\/blog\/2008\/01\/using-gnome-remotely-via-ssh.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:300px; height:30px\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Have you ever wished that you had a GUI on a remote Linux server without using VNC? Actually you can use GNOME or any other GDM on a remote server via SSH, yep I&#8217;m not joking. You need to have SSH and X11 running on both the client and the server. In addition on the &#8230; <a title=\"Using GNOME remotely via SSH\" class=\"read-more\" href=\"https:\/\/mohanjith.net\/blog\/2008\/01\/using-gnome-remotely-via-ssh.html\" aria-label=\"More on Using GNOME remotely via SSH\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[19,26,84],"tags":[331,338,396],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-gnome","category-linux","category-ssh","tag-gnome","tag-linux","tag-ssh"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lUHm-w","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}