{"id":201,"date":"2005-12-24T17:49:24","date_gmt":"2005-12-24T17:49:24","guid":{"rendered":"http:\/\/www.odrakir.com\/blog\/?p=201"},"modified":"2007-01-02T12:29:59","modified_gmt":"2007-01-02T12:29:59","slug":"ubuntu-and-vnc","status":"publish","type":"post","link":"https:\/\/www.odrakir.com\/blog\/2005\/12\/24\/ubuntu-and-vnc\/","title":{"rendered":"Ubuntu and VNC"},"content":{"rendered":"<p>A few weeks ago I gave [tag]Ubuntu[\/tag] another chance. The update bug was corrected and now I could enjoy my Ubuntu box without losing too much time with bugs. My ULAMP (the U is from Ubuntu) box was now ready to work, the only thing missing was the remote access. I installed [tag]SSH[\/tag] and explored the [tag]Remote Desktop[\/tag] feature that comes with Ubuntu. [tag]VNC[\/tag] based, worked well, fast and functional, but when you logoff there\u00e2\u20ac\u2122s no more Remote Desktop available. I needed VNC available from the login screen, or [tag]GDM[\/tag] in Gnome\/Ubuntu. So here\u00e2\u20ac\u2122s a quick how to:<\/p>\n<p>First, disable Desktop Sharing under System -> Preferences -> Remote Desktop.<\/p>\n<p>Now install x11vnc, you can do this with [tag]apt-get[\/tag] or [tag]Synaptics[\/tag], this package is available in the Community Maintained (Universe) repository. <\/p>\n<p>Now with [tag]x11vnc[\/tag] installed, you will need to create a password file:<\/p>\n<p><code>sudo x11vnc -storepasswd yourpasswordhere \/etc\/x11vnc.pass<\/code><\/p>\n<p>Then configure GDM to run x11vnc when at loading time:<\/p>\n<p><code>sudo gedit  \/etc\/X11\/gdm\/Init\/Default <\/code><\/p>\n<p>and this line to the file:<br \/>\n<code><br \/>\n\/usr\/bin\/x11vnc -rfbauth \/etc\/x11vnc.pass -o \/tmp\/x11vnc.log -forever -bg -rfbport 5900<\/code><\/p>\n<p>(you can change the port and other parameters)<\/p>\n<p>So far so good, but if you restart your pc at this stage you\u00e2\u20ac\u2122ll only be able to login, then the GDM will kill your session. To avoid this we must change another file:<\/p>\n<p><code>sudo gedit  \/etc\/X11\/gdm\/gdm.conf<\/code><\/p>\n<p>now search for this line :<\/p>\n<p><code>#KillInitClients=true<\/code><\/p>\n<p>And change it to this: <\/p>\n<p><code>KillInitClients=false<\/code><\/p>\n<p>Restart you PC and now you have VNC at login time. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few weeks ago I gave [tag]Ubuntu[\/tag] another chance. The update bug was corrected and now I could enjoy my Ubuntu box without losing too much time with bugs. My ULAMP (the U is from Ubuntu) box was now ready to work, the only thing missing was the remote access. I installed [tag]SSH[\/tag] and explored [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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,"font":"","enabled":false},"version":2}},"categories":[3,10],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.odrakir.com\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}