{"id":4517,"date":"2021-09-20T19:44:02","date_gmt":"2021-09-20T16:44:02","guid":{"rendered":"http:\/\/surgery.moscow\/smos\/?p=4517"},"modified":"2021-09-20T21:32:49","modified_gmt":"2021-09-20T18:32:49","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-xrdp-%d0%b2-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/surgery.moscow\/smos\/2021\/09\/20\/%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-xrdp-%d0%b2-ubuntu-linux\/","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 xrdp \u0432 Ubuntu Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1 <strong>sudo apt install xrdp<\/strong><br><br>\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0434\u043f\u0438\u0441\u044c ssl_gen_key_xrdp1 ok &#8212; \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0430\u044f , \u0447\u0442\u043e ssl \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<strong> sudo adduser xrdp ssl-cert<\/strong><br><\/li><li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u043c\u043e\u043d\u0430 <strong>sudo systemct enable xrdp<\/strong><br><\/li><li>\u043f\u0435\u0440\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <strong>sudo systemctl restart xrdp<\/strong><br><\/li><li>\u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0443 3389 \u0438\u0437 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 192.168.2.0\/24:  <strong>sudo ufw allow from 192.168.48.0\/24 to any port 3389<\/strong><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0440\u0442\u0443 \u0432\u0441\u0435\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c <strong>sudo ufw allow 3389<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\"><li>\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430 \u043d\u0435\u0442 &#8212; \u0442\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c<strong> \/etc\/xrdp\/startwm.sh<\/strong><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>unset DBUS_SESSION_BUS_ADDRESS<br>unset XDG_RUNTIME_DIR<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u043f\u0435\u0440\u0435\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<strong> test \u2013x \/etc\/X11\/Xsession &amp;&amp; exec \/etc\/X11\/Xsessi<\/strong>on<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0438 \u0432\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0418\u043d\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo apt-get install xserver-xorg-core\nsudo apt-get -y install xserver-xorg-input-all<\/strong><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1 sudo apt install xrdp \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0434\u043f\u0438\u0441\u044c ssl_gen_key_xrdp1 ok &#8212; \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0430\u044f , \u0447\u0442\u043e ssl \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,22],"tags":[],"class_list":["post-4517","post","type-post","status-publish","format-standard","hentry","category-internet","category-technology"],"_links":{"self":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/4517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/comments?post=4517"}],"version-history":[{"count":4,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/4517\/revisions"}],"predecessor-version":[{"id":4521,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/4517\/revisions\/4521"}],"wp:attachment":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/media?parent=4517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/categories?post=4517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/tags?post=4517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}