﻿{"id":775,"date":"2020-12-20T15:53:11","date_gmt":"2020-12-20T07:53:11","guid":{"rendered":"https:\/\/byy3.com\/?p=775"},"modified":"2021-01-09T10:13:31","modified_gmt":"2021-01-09T02:13:31","slug":"linux%e9%87%8d%e5%90%af%e5%90%8e%e8%bd%af%e4%bb%b6%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8linux%e8%bd%af%e4%bb%b6%e6%b8%85%e9%99%a4%e9%87%8d%e8%a3%85","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=775","title":{"rendered":"linux\u91cd\u542f\u540e\u8f6f\u4ef6\u65e0\u6cd5\u542f\u52a8linux\u8f6f\u4ef6\u6e05\u9664\u91cd\u88c5xrdp\u91cd\u88c5"},"content":{"rendered":"<pre><code>sudo systemctl restart xrdp.service\r\nJob for xrdp.service failed because the control process exited with error code.\r\nSee \"systemctl status xrdp.service\" and \"journalctl -xe\" for details.\r\n\r\nsudo systemctl status xrdp.service\r\n\u25cf xrdp.service - xrdp daemon\r\nLoaded: loaded (\/lib\/systemd\/system\/xrdp.service; enabled; vendor preset: enabled)\r\nActive: failed (Result: exit-code) since Thu 2017-11-30 17:59:31 CET; 2min 55s ago\r\n Docs: man:xrdp(8)\r\n man:xrdp.ini(5)\r\nProcess: 455 ExecStart=\/usr\/sbin\/xrdp $XRDP_OPTIONS (code=exited, status=1\/FAILURE)\r\nProcess: 440 ExecStartPre=\/bin\/sh \/usr\/share\/xrdp\/socksetup (code=exited, status=0\/SUCCESS)\r\n\r\nNov 30 17:59:30 raspberrypi systemd[1]: Starting xrdp daemon...\r\nNov 30 17:59:31 raspberrypi systemd[1]: xrdp.service: Control process exited, code=exited status=1\r\nNov 30 17:59:31 raspberrypi systemd[1]: Failed to start xrdp daemon.\r\nNov 30 17:59:31 raspberrypi systemd[1]: xrdp.service: Unit entered failed state.\r\nNov 30 17:59:31 raspberrypi systemd[1]: xrdp.service: Failed with result 'exit-code'.\r\n<\/code><\/pre>\n<p>When I re-install it, it is working, until the next reboot. option 1:\u00a0<code>sudo apt-get purge xrdp &amp;&amp; sudo apt-get install xrdp<\/code>\u00a0option 2:\u00a0<code>sudo apt-get purge xrdp &amp;&amp; sudo dpkg -i .\/xrdp_0.9.4-1_armhf.deb<\/code><\/p>\n<p>I tried option 2, because I read that there is a problem with xrdp 0.9.1-9, so I downloaded a newer version.<\/p>\n<p>The xrdp-config is unmodified, also it is working fine until reboot. That means I am able to connect to the Pi with no problems. Same with my modified config.<\/p>\n<p>Right now i use this workaround after reboot, but i want to know what exactly causes the error:<\/p>\n<pre><code>apt-get purge xrdp --yes &amp;&amp; dpkg -i \/home\/pi\/Documents\/xrdp_0.9.4-1_armhf.deb\r\n\r\n<\/code><\/pre>\n<p>Disable automatic start at boot time (<code>systemctl disable xrdp<\/code>)<\/p>\n<pre><code><\/code><\/pre>\n<pre><code>touch \/var\/log\/xrdp.log\r\n\r\nchown xrdp:adm \/var\/log\/xrdp.log\r\n\r\nchmod 640 \/var\/log\/xrdp.log\r\n\r\nsystemctl start xrdp\r\n\r\nsystemctl status xrdp<\/code><\/pre>\n<pre><code>\r\n\r\n<\/code><\/pre>\n<p>\u6700\u540e\u6dfb\u52a0\u81ea\u542f\u52a8.\u542f\u52a8XRDP\u670d\u52a1\u5e76\u52a0\u5165\u81ea\u542f\u52a8<\/p>\n<p><code class=\"hljs sql\">systemctl <span class=\"hljs-keyword\">start xrdp<\/span><\/code><\/p>\n<p><code class=\"hljs sql\"><span class=\"hljs-keyword\"><br \/>\nsystemctl enable xrdp<\/span><\/code><\/p>\n<p>\u641e\u5b9a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-776\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2020\/12\/2020122007530685.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"1545\" height=\"1023\" title=\"linux\u91cd\u542f\u540e\u8f6f\u4ef6\u65e0\u6cd5\u542f\u52a8linux\u8f6f\u4ef6\u6e05\u9664\u91cd\u88c5xrdp\u91cd\u88c5\u63d2\u56fe\" alt=\"linux\u91cd\u542f\u540e\u8f6f\u4ef6\u65e0\u6cd5\u542f\u52a8linux\u8f6f\u4ef6\u6e05\u9664\u91cd\u88c5xrdp\u91cd\u88c5\u63d2\u56fe\" \/><\/p>\n<p><code class=\"hljs sql\"><\/code><code><\/code><\/p>\n<pre><code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sudo systemctl restart xrdp.service Job for xrdp.servic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[258,26,257,259,353,254,255,256],"class_list":["post-775","post","type-post","status-publish","format-standard","hentry","category-linux","tag-258","tag-linux","tag-linux-xrdp","tag-linux3389","tag-xrdp"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=775"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/775\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}