{"id":12978,"date":"2020-07-07T07:21:15","date_gmt":"2020-07-07T11:21:15","guid":{"rendered":"https:\/\/qxf2.com\/blog\/?p=12978"},"modified":"2020-07-07T07:21:15","modified_gmt":"2020-07-07T11:21:15","slug":"setup-remote-access-raspberry-pi-vnc","status":"publish","type":"post","link":"https:\/\/qxf2.com\/blog\/setup-remote-access-raspberry-pi-vnc\/","title":{"rendered":"Setup Remote Access for Raspberry Pi using VNC"},"content":{"rendered":"<p>In my <a href=\"https:\/\/qxf2.com\/blog\/setup-raspberry-pi-headlessly-without-any-external-mouse-keyboard-and-display\/\">previous blog<\/a>, I have provided the details of how to set up Raspberry Pi in headless mode and how to SSH into the system. But sometimes we need to access desktop as per project requirement. For example, the user may want to see the graph of production done at the XYZ industry. So we need to set up remote access for Raspberry Pi using VNC.<\/p>\n<h3>Steps to setup VNC on Raspberry Pi:<\/h3>\n<ol>\n<li>SSH into Raspberry Pi<\/li>\n<li>Install VNC Server<\/li>\n<li>Install VNC Client<\/li>\n<\/ol>\n<p><strong>Step 1. SSH into Raspberry Pi:<\/strong><br \/>\nPlease refer my <a href=\"https:\/\/qxf2.com\/blog\/setup-raspberry-pi-headlessly-without-any-external-mouse-keyboard-and-display\/\">previous blog<\/a>, to know how to get the IP address of your Raspberry Pi and SSH into Raspberry Pi.<\/p>\n<p><strong>Step 2. Install VNC Server on Raspberry Pi:<\/strong><br \/>\nOnce you are able to SSH into your Raspberry Pi, run following command to install VNC Server.<\/p>\n<pre>sudo apt-get install tightvncserver<\/pre>\n<p>After successful installation of VNC server, start VNC server using the following command:<\/p>\n<pre>tightvncserver<\/pre>\n<p>Above command starts VNC Server and provides the hostname and display number for access, for example, raspberrypi:1. Please take a note of display number, it will be required while connecting to the server from any VNC client.<br \/>\nNote: During the first execution of the above command, the server asks to set the password for accessing it.<\/p>\n<p><strong>Step 3. Install VNC Client on Windows:<\/strong><br \/>\nYou can install any VNC Client on your system. This time, I tried a new terminal tool called <a href=\"https:\/\/mobaxterm.mobatek.net\/\">Mobaxterm<\/a>. It comes up with pre-installed VNC Client. In Mobaxterm terminal, click on &#8220;Session&#8221;, it will open pop up window. Then select VNC session and provide IP_address:desktop_number and click on the &#8220;OK&#8221; button.<\/p>\n<figure id=\"attachment_13118\" aria-describedby=\"caption-attachment-13118\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-13118 size-large\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session-1024x684.png\" alt=\"Mobaxterm VNC Session\" width=\"1024\" height=\"684\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session-1024x684.png 1024w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session-300x200.png 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session-768x513.png 768w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/mobaxterm_vnc_session.png 1114w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-13118\" class=\"wp-caption-text\">Mobaxterm VNC Session<\/figcaption><\/figure>\n<p>Once you click on the &#8220;OK&#8221; button, it will ask for the password. Provide the correct password to get access to your Raspberry Pi device.<\/p>\n<figure id=\"attachment_13119\" aria-describedby=\"caption-attachment-13119\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13119\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001-1024x569.png\" alt=\"Raspberry Pi Desktop Access\" width=\"1024\" height=\"569\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001-1024x569.png 1024w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001-300x167.png 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001-768x427.png 768w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/06\/vnc-connected_001.png 1631w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-13119\" class=\"wp-caption-text\">Raspberry Pi Desktop Access<\/figcaption><\/figure>\n<p>Once you get connected to your Raspberry Pi desktop via VNC, you can connect your device to your WiFi Network, you can modify system configurations, check your project reports if any and many more. Hope this blog is helpful for you.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>In my previous blog, I have provided the details of how to set up Raspberry Pi in headless mode and how to SSH into the system. But sometimes we need to access desktop as per project requirement. For example, the user may want to see the graph of production done at the XYZ industry. So we need to set up [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[224,117,232],"tags":[],"class_list":["post-12978","post","type-post","status-publish","format-standard","hentry","category-hardware-devices","category-hardware-testing","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/comments?post=12978"}],"version-history":[{"count":10,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12978\/revisions"}],"predecessor-version":[{"id":15556,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12978\/revisions\/15556"}],"wp:attachment":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/media?parent=12978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/categories?post=12978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/tags?post=12978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}