{"id":76,"date":"2024-07-21T00:51:43","date_gmt":"2024-07-21T00:51:43","guid":{"rendered":"http:\/\/blog.ltzs.us\/?p=76"},"modified":"2024-07-22T14:09:37","modified_gmt":"2024-07-22T14:09:37","slug":"vnc-access-to-debian-lxqt","status":"publish","type":"post","link":"http:\/\/blog.ltzs.us\/?p=76","title":{"rendered":"VNC access to Debian LXQT"},"content":{"rendered":"\n<p>Debian LXQT desktop environment (DE) doesn&#8217;t come with a pre-installed VNC server. I usually want to log into an existing Xsession, and X11VNC is the easiest VNC server I&#8217;ve found to do that. Others like TigerVNC or TightVNC were harder to configure to connect to existing X sessions.<\/p>\n\n\n\n<p>So I did <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">sudo apt install x11vnc net-tools<\/mark> and then made a VNC password using <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">x11vnc -storepasswd<\/mark>. This created an encrypted VNC password file in \/home\/user\/.vnc\/passwd<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">pi@debian:\/etc$ x11vnc -storepasswd #by leaving out a filepath, it defaults to the .vnc folder\nEnter VNC password: #type password in here\nVerify password:    #re-type password\nWrite password to \/home\/pi\/.vnc\/passwd?  [y]\/n y\nPassword written to: \/home\/pi\/.vnc\/passwd<\/code><\/pre>\n\n\n\n<p>Then created a service file in \/etc\/systemd\/system named x11vnc.service and filled it with the following:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">[Unit]\nDescription=Start x11vnc\nAfter=multi-user.target\n\n[Service]\nType=simple\nUser=pi\nexport DISPLAY=:0\nExecStartPre=\/bin\/sleep 3\nExecStart=\/usr\/bin\/x11vnc -display :0 -auth \/home\/pi\/.Xauthority -forever -loop -noxdamage -repeat -rfbauth \/etc\/x11vnc.passwd -rfbport 5900 -shared\n\n[Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>reload the systemd service files with sudo systemctl daemon-reload then <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">sudo systemctl start x11vnc<\/mark> and <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">sudo systemctl enable x11vnc<\/mark>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian LXQT desktop environment (DE) doesn&#8217;t come with a pre-installed VNC server. I usually want to log into an existing Xsession, and X11VNC is the easiest VNC server I&#8217;ve found to do that. Others like TigerVNC or TightVNC were harder to configure to connect to existing X sessions. So I did sudo apt install x11vnc&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":3,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":85,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/85"}],"wp:attachment":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}