{"id":1082,"date":"2011-09-07T23:24:47","date_gmt":"2011-09-07T21:24:47","guid":{"rendered":"http:\/\/sickel.net\/blogg\/?p=1082"},"modified":"2012-07-05T21:29:33","modified_gmt":"2012-07-05T19:29:33","slug":"howto-set-up-remote-kde-login-on-debian","status":"publish","type":"post","link":"http:\/\/sickel.net\/blogg\/?p=1082","title":{"rendered":"Howto set up remote kde login on debian"},"content":{"rendered":"<p>Some proofreading may be needed, but the ideas should be clear &#8211; I hope.<\/p>\n<p>Using kde 4.6.5<\/p>\n<p>When starting to set up X systems, it is easy to confuse the notion of &#8216;client&#8217; and &#8216;server&#8217;. Usually we think of the machine we are directly working at as the client and the remote one as the server &#8211; which makes sense in most cases &#8211; the server is the machine which has the resources that are needed, eg a data base, a web server, or some disks. In the case of an X-system, the server is the machine with the screen and input devices, i.e. the machine on which we are working, whereas the client is a machine that runs a program that is accessing these resources. So the local machine is the server, the remote is the client&#8230; I&#8217;ll (try to) use the words local and remote to distinguish between the two parties.<\/p>\n<p>Alternatives<br \/>\nIn many ways remote X-login is considered an old fashioned tecnology. There are two other thecnologies that are more used now.<\/p>\n<p>Running X over ssh<br \/>\nWhen logged into the local machine running in an x-application, open an ssh-session to the remote machine,<\/p>\n<p>ssh -Y <username @remote><\/p>\n<p>Then an application that is run under ssh on the remote machine will display a window on the local one.<br \/>\nThis is considered more secure than the traditional x-login, but then it is neccesary to first log in on the local, then start (possibly automatically) an application there to log in to the remote machine. OK for me, not OK for the rest of the family that do want to have things as simple as possible.<\/p>\n<p>rdp &#8211; the remote desktop protocol<br \/>\nRun an rdp-server on the remote  machine, connect with an rdp-client from the local machine. The rdp-protocol is even supported in windows, with a rdp-client as a standard (although often pretty unknown) application. I do not know anything about the security implications of rdp.<br \/>\nOn linux there are a plenty of rdp-clients to choose from, from rdesktop to krdc, a kde-program. I have tried a number of those and have always run into two problems: I have not managed to have them to use my norwegian keyboard, and the colors always looks wrong, eg in a standard kde-setup, all the text in the start-menu disappears. If I manage to resolve those issues and I can make an auto-login on the local machine starting a rdp-client &#8211; that may be the best solution.<\/p>\n<p>Setting up remote x-login<br \/>\nAs none of the other setups gives the simple &#8220;single log on &#8221; that I want, I have to use remote x-logon, over the xmdcp protocol. It is said to be quite unsafe, but I am only using it on my cabel based home network.<\/p>\n<p>On the remote machine:<br \/>\nEdit \/etc\/kde4\/kdm\/kdmrc<br \/>\nUnder the [Xdmcp]-header set Enable=TRUE<br \/>\nrestart kdm an the remote is ready for connections<\/p>\n<p>On the local machine<br \/>\nEdit \/etc\/kde4\/kdm\/kdmrc<\/p>\n<p>under # Greeter config for local displays<br \/>\n[X-:*-Greeter]<br \/>\nedit:<br \/>\nLoginMode=DefaultRemote<br \/>\nand set<br \/>\nChooserHosts=*,<nameofremote><\/p>\n<p>Restart kdm on the local machine, and you should be met with a list allowing you to select a remote machine to log into, after that, you get the normal kdm-login screen.<\/p>\n<p>It is possible to make the remote machine(s) broadcast their willingness to allow a remote x-login, then it is not neccesary to list their names in ChooserHosts, so far I have not set up that.<\/p>\n<p>What&#8217;s next<br \/>\nMaybe look into broadcasting rather than static lists of hosts as I have plans to set up a few old machines as traditional x-terminals.<br \/>\nDefiniately look into how to get sound on the local machine. My idea is to use the phonon server over the net, and I think <a href=\"http:\/\/www.slenders.be\/jonathan\/forwarding-audio-and-video\">this site<\/a> may be able to explain me how&#8230;<\/p>\n<p><\/nameofremote><\/username><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some proofreading may be needed, but the ideas should be clear &#8211; I hope. Using kde 4.6.5 When starting to set up X systems, it is easy to confuse the notion of &#8216;client&#8217; and &#8216;server&#8217;. Usually we think of the &hellip; <a href=\"http:\/\/sickel.net\/blogg\/?p=1082\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":""},"categories":[1,25],"tags":[],"class_list":["post-1082","post","type-post","status-publish","format-standard","hentry","category-div","category-linux"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnVtD-hs","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1082"}],"version-history":[{"count":5,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1082\/revisions"}],"predecessor-version":[{"id":1302,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1082\/revisions\/1302"}],"wp:attachment":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1082"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}