{"id":292,"date":"2023-01-07T19:57:59","date_gmt":"2023-01-07T18:57:59","guid":{"rendered":"https:\/\/nouspiro.space\/?p=292"},"modified":"2023-01-07T19:58:45","modified_gmt":"2023-01-07T18:58:45","slug":"headless-vnc-on-raspberrypi","status":"publish","type":"post","link":"https:\/\/nouspiro.space\/?p=292","title":{"rendered":"Headless VNC on RaspberryPi"},"content":{"rendered":"\n<ol class=\"wp-block-list\">\n<li>Download official image <a rel=\"noreferrer noopener\" href=\"https:\/\/www.raspberrypi.com\/software\/operating-systems\/\" target=\"_blank\">RaspberryPi OS<\/a> 64bit and write to SD card<\/li>\n\n\n\n<li>Do first time setup<\/li>\n\n\n\n<li>Install tigervnc server <code>sudo apt install tigervnc-standalone-server<\/code><\/li>\n\n\n\n<li>Create password with command <\/li>\n\n\n\n<li>Override systemd unit file by running this command <code>sudo systemctl edit vncserver-x11-serviced.service<\/code><\/li>\n\n\n\n<li>Enter this into file that is edited<br><code>[Unit]<\/code><br><code>Description=VNC Server in Service Mode daemon<br>After=network.target<br><br>[Service]<br>Type=forking<br>User=pi<br>WorkingDirectory=\/home\/pi<br>Environment=\"DBUS_SESSION_BUS_ADDRESS=unix:path=\/run\/user\/1000\/bus\"<\/code><br><code>Environment=\"XDG_RUNTIME_DIR=\/run\/user\/1000\"<br>ExecStart=<br>ExecStart=bash -c \"tigervncserver -localhost no\"<br>ExecStop=tigervncserver -kill :1<br>ExecReload=<br><br>[Install]<br>WantedBy=multi-user.target<\/code><\/li>\n\n\n\n<li>If user is different than <strong>pi<\/strong> then change it in previous step accordingly <\/li>\n\n\n\n<li>Reboot<\/li>\n\n\n\n<li>Connect to VNC server on port 5901<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-nezaradene"],"_links":{"self":[{"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nouspiro.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":2,"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/nouspiro.space\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/nouspiro.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nouspiro.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nouspiro.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}