{"id":3121,"date":"2016-04-20T11:41:04","date_gmt":"2016-04-20T03:41:04","guid":{"rendered":"http:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=3121"},"modified":"2016-04-20T11:41:44","modified_gmt":"2016-04-20T03:41:44","slug":"xdmcp-for-centos-7","status":"publish","type":"post","link":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=3121","title":{"rendered":"xdmcp for CentOS 7"},"content":{"rendered":"<p>XDMCP can still run on CentOS 7 , but the display manager should not be Gnome. lightdm is well documented and can replace gnome.<\/p>\n<p>Since XDMCP does not have encryption, so it can only be used within intranet. For a better security, use xrdp for CentOS 7 .<\/p>\n<p>Installation of lightdm , Xfce:<\/p>\n<pre>\r\n# yum install lightdm Xfce\r\n<\/pre>\n<p>Edit \/etc\/lightdm\/lightdm.conf:<\/p>\n<pre>\r\n...\r\n[SeatDefaults]\r\ngreeter-hide-users=true\r\ngreeter-show-manual-login=true\r\nallow-guest=false\r\n...\r\n[XDMCPServer]\r\nenabled=true\r\n...<\/pre>\n<p>There is some bugs in lightdm for CentOS 7, as it fails to read the parameter &#8220;greeter-show-manual-login=true&#8221;. To fix this, you should set classic as theme-name in configuration file &#8220;\/etc\/lightdm\/lightdm-kde-greeter.conf&#8221;<\/p>\n<pre>\r\n...\r\n[greeter]\r\ntheme-name=classic\r\n...\r\n<\/pre>\n<p>Disable Gnome Desktop rather than uninstalling it as it is required by lots of other utilities:<\/p>\n<pre>\r\n# cd \/usr\/share\/xsessions\r\n# mv gnome-classic.desktop gnome-classic.desktop.backup\r\n# mv gnome.desktop gnome.desktop.backup\r\n# mv gnome-custom-session.desktop gnome-custom-session.desktop.backup<\/pre>\n<p>Stop and disable Gnome Display Manager, and change to use lightdm <\/p>\n<pre>\r\n# systemctl stop gdm\r\n# systemctl disable gdm\r\n# systemctl start lightdm\r\n# systemctl enable lightdm\r\n<\/pre>\n<p>Since XDMCP connection use UDP 177, setup firewall to release the port for connection.<\/p>\n<p>Start &#8220;xlaunch&#8221; from Windows 7 Client and test XDMCP connection to linux host:<br \/>\n<a href=\"http:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp1.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp1.jpg\" alt=\"xdmcp1\" width=\"350\"  class=\"alignnone size-full wp-image-3129\" srcset=\"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp1.jpg 501w, https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp1-300x234.jpg 300w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp.jpg\" alt=\"xdmcp\" width=\"1244\" height=\"845\" class=\"alignnone size-full wp-image-3126\" srcset=\"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp.jpg 1244w, https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp-300x204.jpg 300w, https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp-768x522.jpg 768w, https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2016\/04\/xdmcp-1024x696.jpg 1024w\" sizes=\"auto, (max-width: 1244px) 100vw, 1244px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>XDMCP can still run on CentOS 7 , but the display manager should not be Gnome. lightdm is well documented and can replace gnome. Since XDMCP does not have encryption, so it can only&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":3126,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-3121","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3121"}],"version-history":[{"count":7,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3121\/revisions"}],"predecessor-version":[{"id":3132,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3121\/revisions\/3132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/3126"}],"wp:attachment":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}