{"id":860,"date":"2017-12-01T19:26:07","date_gmt":"2017-12-01T11:26:07","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=860"},"modified":"2018-09-05T11:08:21","modified_gmt":"2018-09-05T03:08:21","slug":"setup-raspbian-stretch-lite-raspberry-pi-zero-w-run-python-3-applications","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/setup-raspbian-stretch-lite-raspberry-pi-zero-w-run-python-3-applications\/","title":{"rendered":"How to setup Raspbian Stretch Lite on Raspberry Pi Zero W to run Python 3 applications"},"content":{"rendered":"<p>With Wi-Fi included, the <a href=\"https:\/\/www.amazon.com\/gp\/product\/B06XD18H6K\/ref=as_li_ss_tl?imprToken=GYKRfLWHo0Jf7WHYYNACSA&slotNum=1&ie=UTF8&linkCode=ll1&tag=clivsperswebs-20&linkId=f22aca63951902b51acec933c2458fc4\" rel=\"noopener\" target=\"_blank\">Raspberry Pi Zero W<\/a> is very useful for implementing embedded projects that require Internet connection. <\/p>\n<p>Apart from <a href=\"https:\/\/www.techcoil.com\/blog\/how-i-setup-a-cctv-camera-with-raspberry-pi-zero-w-and-motioneyeos-image-for-home-surveillance\/\" rel=\"noopener\" target=\"_blank\">using the Raspberry Pi Zero W for CCTV surveillance<\/a>, we can run customized Python 3 applications on a Raspberry Pi Zero W for various use cases.<\/p>\n<p>Pairing the official operating system for <a href=\"https:\/\/www.techcoil.com\/blog\/tag\/raspberry-pi\" rel=\"noopener\" target=\"_blank\">Raspberry Pi<\/a> with Python 3, we will be able to get a versatile computer to do our bidding. <\/p>\n<p>Anticipating the need to setup a version of <a href=\"https:\/\/www.raspbian.org\/\" rel=\"noopener\" target=\"_blank\">Raspbian<\/a> Lite on Raspberry Pi Zero W for future Python 3 projects, I created this post to document the steps of how to do so with Raspbian Stretch Lite.<\/p>\n<h2>Recommended hardware list<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.amazon.com\/gp\/product\/B06XD18H6K\/ref=as_li_tl?ie=UTF8&tag=clivsperswebs-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B06XD18H6K&linkId=dfbc249fe8b4825d9c8d9e6dbb04e2bb\" target=\"_blank\"> Raspberry Pi Zero W (Wireless) & Official Case <\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/gp\/product\/B0166RR85U\/ref=as_li_tl?ie=UTF8&tag=clivsperswebs-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B0166RR85U&linkId=d9bafc959cf145db92885a2a5d247739\" target=\"_blank\">Kingston Digital 32GB microSDHC Class 10 UHS-I 45R Flash Card (SDC10G2\/32GBSP)<\/a><\/li>\n<li><a title=\"Amazon page on Belkin 4-Foot MIXIT Micro USB cable\" href=\"http:\/\/www.amazon.com\/gp\/product\/B00E65OM3Q\/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B00E65OM3Q&linkCode=as2&tag=clivsperswebs-20&linkId=6U5CEOWOEZBQANTR\" target=\"_blank\" data-amzn-asin=\"B00E65OM3Q\">Belkin micro USB cable<\/a> <\/li>\n<li>Unused <a href=\"https:\/\/www.amazon.com\/s\/ref=as_li_ss_tl?url=search-alias=aps&field-keywords=USB+charger&linkCode=ll2&tag=clivsperswebs-20&linkId=3f0cc3128101afcfe7ccdc4d9c856568\" rel=\"noopener\" target=\"_blank\">USB charger<\/a><\/li>\n<\/ul>\n<h2>Required hardware to install Raspbian Stretch Lite onto the microSD<\/h2>\n<p>Raspberry Pi Zero W board will load Raspbian Stretch Lite from a microSD card. Hence, we will need to have a computer with a SD card reader. If your computer does not come with a <a href=\"https:\/\/www.amazon.com\/gp\/product\/B00NNF4I5M?ie=UTF8&camp=1789&creativeASIN=B00NNF4I5M&linkCode=xm2&tag=clivsperswebs-20\" target=\"_blank\">SD card reader<\/a>, you have to get one.<\/p>\n<p>If you have the standard SD card reader on your computer but do not have a SD card adapter, you may want to get the <a title=\"Kingston Digital microSDHC SDC10 32GB\" target=\"_blank\" href=\"https:\/\/www.amazon.com\/gp\/product\/B00519BEQY?ie=UTF8&tag=clivsperswebs-20&camp=1789&linkCode=xm2&creativeASIN=B00519BEQY\">Kingston Digital 32 GB microSDHC Class 10 UHS-1 Memory Card 30MB\/s with Adapter (SDC10\/32GB)<\/a> instead.<\/p>\n<h2>Downloading Raspbian Stretch Lite for Raspberry Pi Zero W<\/h2>\n<p>Once I had the necessary hardware list for my embedded project, I proceeded to download a copy of Raspbian Stretch Lite. As of this writing, the one that was available was dated 7th September 2017:<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/raspbian-stretch-download-page-20170907.gif\" alt=\"Raspbian Stretch download page 20170907\"\/><\/p>\n<p>I clicked on the <a href=\"https:\/\/downloads.raspberrypi.org\/raspbian_lite\/images\/raspbian_lite-2017-09-08\/2017-09-07-raspbian-stretch-lite.zip\"><strong>Download Zip<\/strong><\/a> button for Raspbian Stretch Lite and saved the zip file onto my file system.<\/p>\n<h2>Installing Raspbian Stretch Lite onto the microSD card<\/h2>\n<p>Once my browser had completed the download for the <code>.zip<\/code> file, I extracted the <code>.img<\/code> file from the <code>.zip<\/code> file. The <code>.img<\/code> file was the operating system image that I used for installing Raspbian Stretch Lite onto my microSD card.<\/p>\n<p>I <a href=\"\/blog\/an-easy-way-to-install-raspberry-pi-operating-system-on-a-mac\/\" target=\"_blank\">used Etcher on my MacBook Pro to install the operating system image onto the microSD card<\/a>.<\/p>\n<p>If you are using a windows machine, you can <a href=\"\/blog\/how-to-prepare-the-operating-system-to-run-your-raspberry-pi-with-your-windows-machine\/\" target=\"_blank\">use Win32DiskImager to install the operating system for your Raspberry Pi Zero W<\/a>.<\/p>\n<p>If you are using a Linux desktop, you should be able to Etcher to install the operating system for your Raspberry Pi Zero W.<\/p>\n<h2>Enabling SSH server on Raspbian Stretch Lite first boot<\/h2>\n<p>With an SSH server running on Raspbian Stretch Lite, I do not have to find a spare keyboard, spare monitor, a <a href=\"https:\/\/www.amazon.com\/CableCreation-Mini-HDMI-Converter-Adapter-Resolution\/dp\/B01HQ2H2S2\/ref=as_li_ss_tl?ie=UTF8&qid=1512019368&sr=8-1-spons&keywords=mini-HDMI-to-HDMI+adapter&psc=1&linkCode=ll1&tag=clivsperswebs-20&linkId=55d25ff7b08f0cecca289c6a7c425ab1\" rel=\"noopener\" target=\"_blank\">mini HDMI to HDMI adapter<\/a> and a <a href=\"https:\/\/www.amazon.com\/UGREEN-Adapter-Samsung-Android-Function\/dp\/B00LN3LQKQ\/ref=as_li_ss_tl?s=electronics&ie=UTF8&qid=1512019500&sr=1-4&keywords=OTG+Cable&linkCode=ll1&tag=clivsperswebs-20&linkId=4465cebca9c0e464d7811712a7dabceb\" rel=\"noopener\" target=\"_blank\">OTG cable<\/a> in order to configure Raspbian Stretch Lite after it had booted up for the first time. <\/p>\n<p>To ensure that I had the SSH server running after the first boot, I created an empty file named \"ssh\u201d in the boot partition of the microSD card:<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/raspbian-stretch-lite-20170816-boot-with-ssh-file.gif\" alt=\"Raspbian Stretch Lite 20170816 boot with ssh file\" \/><\/p>\n<h2>Getting Raspberry Pi Zero W connect to your 2.4 GHz Wi-Fi network on first boot<\/h2>\n<p>The SSH server is the first piece to allow remote configuration of the Raspbian Stretch Lite operating system running the Raspberry Pi Zero W. The next piece is to setup the physical network connection to my home network.  <\/p>\n<p>The Wi-Fi chip on Raspberry Pi Zero W connects to a 2.4 GHz Wi-Fi network. To get my Raspberry Pi Zero W to connect to my 2.4 GHz Wi-Fi network, I first created a text file with the following contents:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncountry=SG\r\nctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\r\nupdate_config=1\r\n \r\nnetwork={\r\n        scan_ssid=1\r\n        ssid=&quot;the_2.4-hz-wireless-network&quot;\r\n        psk=&quot;the_2.4-hz-wireless-network_password&quot;\r\n        proto=WPA\r\n        key_mgmt=WPA-PSK \r\n}\r\n<\/pre>\n<p>and placed it into the boot partition of the microSD card:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspbian-stretch-lite-boot-folder-with-wpa_supplicant-and-ssh.gif\" alt=\"Raspbian Stretch Lite boot folder with wpa_supplicant and ssh\"\/><\/p>\n<p>Be sure to replace the country, ssid and psk values to the appropriate values for your 2.4GHz Wi-Fi network.<\/p>\n<p>After I got the <code>wpa_supplicant.conf<\/code> file into the boot partition of the microSD card, I removed it from my computer and inserted it into the microSD card slot on my Raspberry Pi Zero W board.<\/p>\n<h2>Booting up Raspbian Stretch Lite<\/h2>\n<p>After assembling the Raspberry Pi Zero W board to the Raspberry Pi Zero official case, I then proceeded to connect my Belkin micro USB cable to my USB charger and the power port on my Raspberry Pi Zero W board. After switching on the wall socket which my USB charger was plugged into, the Raspberry Pi Zero W board booted up the Raspbian Stretch Lite operating system.<\/p>\n<h2>Getting the IP address of my Raspberry Pi Zero W<\/h2>\n<p>When Raspbian Stretch Lite booted up, it requested an IP address from my router. This IP address was needed for me to SSH into my Raspberry Pi Zero W. To get the IP Address that my router had allocated to my Raspbian Stretch Lite, I went to my router's address allocation table and find an entry with the name <strong>raspberrypi<\/strong>. In my case, the router allocated <strong>192.168.1.106<\/strong> to my Raspbian Stretch Lite.<\/p>\n<h2>Getting into the Raspbian Stretch Lite operating system via SSH from my computer<\/h2>\n<p>The default credentials to log into Raspberry Pi Stretch Lite is as follows:<br \/>\nUsername: <strong>pi<\/strong><br \/>\nPassword: <strong>raspberry<\/strong><\/p>\n<p>With the default credentials and the IP address that my router had given to my Raspbian Stretch Lite, I then used SSH to get into the operating system:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nssh pi@192.168.1.106\r\n<\/pre>\n<p>I entered <strong>raspberry<\/strong> when the Raspbian Stretch Lite prompted for password. With that, my Raspbian Stretch Lite greeted me with the following output:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nLinux raspberrypi 4.9.41+ #1023 Tue Aug 8 15:47:12 BST 2017 armv6l\r\n\r\nThe programs included with the Debian GNU\/Linux system are free software;\r\nthe exact distribution terms for each program are described in the\r\nindividual files in \/usr\/share\/doc\/*\/copyright.\r\n\r\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\r\npermitted by applicable law.\r\n\r\nSSH is enabled and the default password for the 'pi' user has not been changed.\r\nThis is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.\r\n<\/pre>\n<h2>Changing the default password of the pi user<\/h2>\n<p>Since Raspbian Stretch Lite suggested that using the default password for the 'pi' user is a security risk, the next thing that I did was to change the default password. To do so, I entered the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npasswd\r\n<\/pre>\n<p>For the three prompts that followed the command, I entered <strong>raspberry<\/strong> and my favourite password twice.<\/p>\n<h2>Configuring the locale settings on Raspbian Stretch Lite<\/h2>\n<p>The next thing that I did was to configure the locale settings for my Raspbian Stretch Lite. To do so, I first opened up the Raspberry Pi Software Configuration Tool:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo raspi-config\r\n<\/pre>\n<p>I then followed through the following screens to generate the \"en_US.UTF-8\" locale and set it as the default locale for the system environment:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspberry-pi-zero-w-raspi-config-raspbian-stretch-lite-with-localisation-options-selected.gif\" alt=\"Raspberry Pi Zero W raspi-config Raspbian Stretch Lite with localisation options selected\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-with-localisation-options-change-locale-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite with localisation-options change locale selected\"  \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-screen-for-generating-en-us-utf-8-locale.gif\" alt=\"raspi-config Raspbian Stretch Lite screen for generating en-us utf-8 locale\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-setting-en-us-utf-8-as-default-locale-for-system-environment.gif\" alt=\"raspi-config Raspbian Stretch Lite setting en-us utf-8 as default locale for system environment\" \/><\/p>\n<p>After doing so, I opened up \/etc\/default\/locale with nano:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo nano \/etc\/default\/locale\r\n<\/pre>\n<p>And updated the contents to look like the following:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nLANG=en_US.UTF-8\r\nLC_ALL=en_US.UTF-8\r\nLANGUAGE=en_US.UTF-8\r\n<\/pre>\n<p>This would ensure that the locale settings for my Raspbian Stretch Lite persist through system reboots.<\/p>\n<h2>Changing Timezone<\/h2>\n<p>The default timezone of Raspbian Stretch Lite is \"Etc\/UTC\". However, since my Raspberry Pi Zero W will be residing in Singapore, I wanted it to follow Singapore's Timezone.<\/p>\n<p>To change the timezone on my Raspbian Stretch Lite, I used the Raspberry Pi Software Configuration Tool mentioned earlier and went through the following steps:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspberry-pi-zero-w-raspi-config-raspbian-stretch-lite-with-localisation-options-selected.gif\" alt=\"Raspberry Pi Zero W raspi-config Raspbian Stretch Lite with localisation options selected\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspberry-pi-zero-w-raspi-config-raspbian-stretch-lite-with-change-timezone-selected.gif\" alt=\"Raspberry Pi Zero W raspi-config Raspbian Stretch Lite with Change Timezone selected\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspberry-pi-zero-w-raspi-config-raspbian-stretch-lite-with-asia-selected.gif\" alt=\"Raspberry Pi Zero W raspi-config Raspbian Stretch Lite with Asia selected\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspberry-pi-zero-w-raspi-config-raspbian-stretch-lite-with-singapore-selected.gif\" alt=\"Raspberry Pi Zero W raspi-config Raspbian Stretch Lite with Singapore selected\" \/><\/p>\n<h2>Listing the default packages that came along with my Raspbian Stretch Lite installation<\/h2>\n<p>The next thing that I did was to check the list of packages that came along with the Raspbian Stretch Lite installation. To do so, I typed the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt list --installed\r\n<\/pre>\n<p>Which gave me the following list:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nadduser\/stable,now 3.115 all &#x5B;installed]\r\nalsa-utils\/stable,now 1.1.3-1 armhf &#x5B;installed,automatic]\r\napt\/stable,now 1.4.7 armhf &#x5B;installed]\r\napt-listchanges\/stable,now 3.10 all &#x5B;installed]\r\napt-transport-https\/stable,now 1.4.7 armhf &#x5B;installed]\r\napt-utils\/stable,now 1.4.7 armhf &#x5B;installed]\r\naptitude\/stable,now 0.8.7-1 armhf &#x5B;installed]\r\naptitude-common\/stable,now 0.8.7-1 all &#x5B;installed]\r\navahi-daemon\/stable,now 0.6.32-2 armhf &#x5B;installed]\r\nbase-files\/stable,now 9.9+rpi1+deb9u1 armhf &#x5B;installed]\r\nbase-passwd\/stable,now 3.5.43 armhf &#x5B;installed]\r\nbash\/stable,now 4.4-5 armhf &#x5B;installed]\r\nbash-completion\/stable,now 1:2.1-4.3 all &#x5B;installed]\r\nbind9-host\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nbinutils\/stable,now 2.28-5 armhf &#x5B;installed,automatic]\r\nblends-tasks\/stable,now 0.6.96 all &#x5B;installed]\r\nbluez\/testing,now 5.43-2+rpi1 armhf &#x5B;installed,automatic]\r\nbluez-firmware\/testing,now 1.2-3+rpi2 all &#x5B;installed,automatic]\r\nbsdmainutils\/stable,now 9.0.12+nmu1 armhf &#x5B;installed]\r\nbsdutils\/stable,now 1:2.29.2-1 armhf &#x5B;installed]\r\nbuild-essential\/stable,now 12.3 armhf &#x5B;installed]\r\nbzip2\/stable,now 1.0.6-8.1 armhf &#x5B;installed,automatic]\r\nca-certificates\/stable,now 20161130+nmu1 all &#x5B;installed]\r\ncifs-utils\/stable,now 2:6.7-1 armhf &#x5B;installed]\r\nconsole-setup\/stable,now 1.164 all &#x5B;installed]\r\nconsole-setup-linux\/stable,now 1.164 all &#x5B;installed,automatic]\r\ncoreutils\/stable,now 8.26-3 armhf &#x5B;installed]\r\ncpio\/stable,now 2.11+dfsg-6 armhf &#x5B;installed]\r\ncpp\/stable,now 4:6.3.0-4 armhf &#x5B;installed,automatic]\r\ncpp-6\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\ncrda\/stable,now 3.18-1 armhf &#x5B;installed]\r\ncron\/stable,now 3.0pl1-128 armhf &#x5B;installed]\r\ncurl\/stable,now 7.52.1-5 armhf &#x5B;installed]\r\ndash\/stable,now 0.5.8-2.4 armhf &#x5B;installed]\r\ndbus\/stable,now 1.10.18-1 armhf &#x5B;installed,automatic]\r\ndc\/stable,now 1.06.95-9 armhf &#x5B;installed,automatic]\r\ndebconf\/stable,now 1.5.61 all &#x5B;installed]\r\ndebconf-i18n\/stable,now 1.5.61 all &#x5B;installed]\r\ndebconf-utils\/stable,now 1.5.61 all &#x5B;installed]\r\ndebianutils\/stable,now 4.8.1.1 armhf &#x5B;installed]\r\ndevice-tree-compiler\/testing,now 1.4.4-1 armhf &#x5B;installed,automatic]\r\ndh-python\/stable,now 2.20170125 all &#x5B;installed,automatic]\r\ndhcpcd5\/testing,now 1:6.10.1-1+rpi3 armhf &#x5B;installed]\r\ndiffutils\/stable,now 1:3.5-3 armhf &#x5B;installed]\r\ndistro-info-data\/stable,now 0.36 all &#x5B;installed,automatic]\r\ndmidecode\/stable,now 3.0-4 armhf &#x5B;installed]\r\ndmsetup\/stable,now 2:1.02.137-2 armhf &#x5B;installed]\r\ndosfstools\/stable,now 4.1-1 armhf &#x5B;installed]\r\ndphys-swapfile\/stable,now 20100506-3 all &#x5B;installed]\r\ndpkg\/stable,now 1.18.24 armhf &#x5B;installed]\r\ndpkg-dev\/stable,now 1.18.24 all &#x5B;installed,automatic]\r\ne2fslibs\/stable,now 1.43.4-2 armhf &#x5B;installed]\r\ne2fsprogs\/stable,now 1.43.4-2 armhf &#x5B;installed]\r\ned\/stable,now 1.10-2.1 armhf &#x5B;installed]\r\nfake-hwclock\/stable,now 0.11 all &#x5B;installed]\r\nfakeroot\/stable,now 1.21-3.1 armhf &#x5B;installed,automatic]\r\nfbset\/stable,now 2.1-29 armhf &#x5B;installed]\r\nfile\/stable,now 1:5.30-1+deb9u1 armhf &#x5B;installed,automatic]\r\nfindutils\/stable,now 4.6.0+git+20161106-2 armhf &#x5B;installed]\r\nfirmware-atheros\/testing,now 1:20161130-3+rpi2 all &#x5B;installed]\r\nfirmware-brcm80211\/testing,now 1:20161130-3+rpi2 all &#x5B;installed]\r\nfirmware-libertas\/testing,now 1:20161130-3+rpi2 all &#x5B;installed]\r\nfirmware-misc-nonfree\/testing,now 1:20161130-3+rpi2 all &#x5B;installed]\r\nfirmware-realtek\/testing,now 1:20161130-3+rpi2 all &#x5B;installed]\r\ng++\/stable,now 4:6.3.0-4 armhf &#x5B;installed,automatic]\r\ng++-6\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\ngcc\/stable,now 4:6.3.0-4 armhf &#x5B;installed,automatic]\r\ngcc-4.6-base\/stable,now 4.6.4-5+rpi1 armhf &#x5B;installed]\r\ngcc-4.7-base\/stable,now 4.7.3-11+rpi1 armhf &#x5B;installed]\r\ngcc-4.8-base\/stable,now 4.8.5-4 armhf &#x5B;installed]\r\ngcc-4.9-base\/stable,now 4.9.3-14 armhf &#x5B;installed]\r\ngcc-5-base\/stable,now 5.4.1-4 armhf &#x5B;installed]\r\ngcc-6\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\ngcc-6-base\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed]\r\ngdb\/stable,now 7.12-6 armhf &#x5B;installed]\r\ngeoip-database\/stable,now 20170512-1 all &#x5B;installed,automatic]\r\ngettext-base\/stable,now 0.19.8.1-2 armhf &#x5B;installed,automatic]\r\ngnupg\/stable,now 2.1.18-6 armhf &#x5B;installed]\r\ngnupg-agent\/stable,now 2.1.18-6 armhf &#x5B;installed]\r\ngpgv\/stable,now 2.1.18-6 armhf &#x5B;installed]\r\ngrep\/stable,now 2.27-2 armhf &#x5B;installed]\r\ngroff-base\/stable,now 1.22.3-9 armhf &#x5B;installed]\r\ngzip\/stable,now 1.6-5 armhf &#x5B;installed]\r\nhardlink\/stable,now 0.3.0 armhf &#x5B;installed]\r\nhostname\/stable,now 3.18 armhf &#x5B;installed]\r\nhtop\/stable,now 2.0.2-1 armhf &#x5B;installed]\r\nifupdown\/stable,now 0.8.19 armhf &#x5B;installed]\r\ninfo\/stable,now 6.3.0.dfsg.1-1+b1 armhf &#x5B;installed]\r\ninit\/stable,now 1.48 armhf &#x5B;installed]\r\ninit-system-helpers\/stable,now 1.48 all &#x5B;installed]\r\ninitramfs-tools\/stable,now 0.130 all &#x5B;installed]\r\ninitramfs-tools-core\/stable,now 0.130 all &#x5B;installed]\r\ninstall-info\/stable,now 6.3.0.dfsg.1-1+b1 armhf &#x5B;installed]\r\niproute2\/stable,now 4.9.0-1 armhf &#x5B;installed]\r\niptables\/stable,now 1.6.0+snapshot20161117-6 armhf &#x5B;installed]\r\niputils-ping\/stable,now 3:20161105-1 armhf &#x5B;installed]\r\nisc-dhcp-client\/stable,now 4.3.5-3 armhf &#x5B;installed]\r\nisc-dhcp-common\/stable,now 4.3.5-3 armhf &#x5B;installed]\r\niso-codes\/stable,now 3.75-1 all &#x5B;installed,automatic]\r\niw\/stable,now 4.9-0.1 armhf &#x5B;installed,automatic]\r\nkbd\/stable,now 2.0.3-2 armhf &#x5B;installed,automatic]\r\nkeyboard-configuration\/stable,now 1.164 all &#x5B;installed]\r\nkeyutils\/stable,now 1.5.9-9 armhf &#x5B;installed,automatic]\r\nklibc-utils\/stable,now 2.0.4-9+rpi1 armhf &#x5B;installed]\r\nkmod\/stable,now 23-2 armhf &#x5B;installed]\r\nless\/stable,now 481-2.1 armhf &#x5B;installed]\r\nlibacl1\/stable,now 2.2.52-3 armhf &#x5B;installed]\r\nlibalgorithm-diff-perl\/stable,now 1.19.03-1 all &#x5B;installed,automatic]\r\nlibalgorithm-diff-xs-perl\/stable,now 0.04-4+b2 armhf &#x5B;installed,automatic]\r\nlibalgorithm-merge-perl\/stable,now 0.08-3 all &#x5B;installed,automatic]\r\nlibapparmor1\/stable,now 2.11.0-3 armhf &#x5B;installed]\r\nlibapt-inst2.0\/stable,now 1.4.7 armhf &#x5B;installed]\r\nlibapt-pkg5.0\/stable,now 1.4.7 armhf &#x5B;installed]\r\nlibasan3\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibasound2\/testing,now 1.1.3-5+rpi3 armhf &#x5B;installed,automatic]\r\nlibasound2-data\/testing,now 1.1.3-5+rpi3 all &#x5B;installed,automatic]\r\nlibassuan0\/stable,now 2.4.3-2 armhf &#x5B;installed]\r\nlibatomic1\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibattr1\/stable,now 1:2.4.47-2 armhf &#x5B;installed]\r\nlibaudit-common\/stable,now 1:2.6.7-2 all &#x5B;installed]\r\nlibaudit1\/stable,now 1:2.6.7-2 armhf &#x5B;installed]\r\nlibavahi-common-data\/stable,now 0.6.32-2 armhf &#x5B;installed,automatic]\r\nlibavahi-common3\/stable,now 0.6.32-2 armhf &#x5B;installed,automatic]\r\nlibavahi-core7\/stable,now 0.6.32-2 armhf &#x5B;installed,automatic]\r\nlibbabeltrace-ctf1\/stable,now 1.5.1-1 armhf &#x5B;installed,automatic]\r\nlibbabeltrace1\/stable,now 1.5.1-1 armhf &#x5B;installed,automatic]\r\nlibbind9-140\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nlibblkid1\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nlibboost-filesystem1.62.0\/stable,now 1.62.0+dfsg-4 armhf &#x5B;installed]\r\nlibboost-iostreams1.58.0\/stable,now 1.58.0+dfsg-5.1+rpi1+b1 armhf &#x5B;installed]\r\nlibboost-iostreams1.60.0\/stable,now 1.60.0+dfsg-6+b2 armhf &#x5B;installed]\r\nlibboost-iostreams1.62.0\/stable,now 1.62.0+dfsg-4 armhf &#x5B;installed]\r\nlibboost-system1.62.0\/stable,now 1.62.0+dfsg-4 armhf &#x5B;installed]\r\nlibbsd0\/stable,now 0.8.3-1 armhf &#x5B;installed]\r\nlibbz2-1.0\/stable,now 1.0.6-8.1 armhf &#x5B;installed]\r\nlibc-bin\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed]\r\nlibc-dev-bin\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed,automatic]\r\nlibc-l10n\/stable,now 2.24-11+deb9u1 all &#x5B;installed,automatic]\r\nlibc6\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed]\r\nlibc6-dbg\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed,automatic]\r\nlibc6-dev\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed,automatic]\r\nlibcap-ng0\/stable,now 0.7.7-3 armhf &#x5B;installed]\r\nlibcap2\/stable,now 1:2.25-1 armhf &#x5B;installed]\r\nlibcap2-bin\/stable,now 1:2.25-1 armhf &#x5B;installed]\r\nlibcc1-0\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibcomerr2\/stable,now 1.43.4-2 armhf &#x5B;installed]\r\nlibcryptsetup4\/stable,now 2:1.7.3-4 armhf &#x5B;installed]\r\nlibcurl3\/stable,now 7.52.1-5 armhf &#x5B;installed,automatic]\r\nlibcurl3-gnutls\/stable,now 7.52.1-5 armhf &#x5B;installed,automatic]\r\nlibcwidget3v5\/stable,now 0.5.17-4 armhf &#x5B;installed]\r\nlibdaemon0\/stable,now 0.14-6 armhf &#x5B;installed,automatic]\r\nlibdb5.3\/stable,now 5.3.28-12 armhf &#x5B;installed]\r\nlibdbus-1-3\/stable,now 1.10.18-1 armhf &#x5B;installed]\r\nlibdebconfclient0\/stable,now 0.227 armhf &#x5B;installed]\r\nlibdevmapper1.02.1\/stable,now 2:1.02.137-2 armhf &#x5B;installed]\r\nlibdns-export162\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed]\r\nlibdns162\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nlibdpkg-perl\/stable,now 1.18.24 all &#x5B;installed,automatic]\r\nlibdrm2\/stable,now 2.4.74-1 armhf &#x5B;installed]\r\nlibdw1\/stable,now 0.168-1 armhf &#x5B;installed,automatic]\r\nlibedit2\/stable,now 3.1-20160903-3 armhf &#x5B;installed,automatic]\r\nlibelf1\/stable,now 0.168-1 armhf &#x5B;installed]\r\nlibestr0\/stable,now 0.1.10-2 armhf &#x5B;installed]\r\nlibevent-2.0-5\/stable,now 2.0.21-stable-3 armhf &#x5B;installed,automatic]\r\nlibexpat1\/stable,now 2.2.0-2+deb9u1 armhf &#x5B;installed,automatic]\r\nlibfakeroot\/stable,now 1.21-3.1 armhf &#x5B;installed,automatic]\r\nlibfastjson4\/stable,now 0.99.4-1 armhf &#x5B;installed]\r\nlibfdisk1\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nlibffi6\/stable,now 3.2.1-6 armhf &#x5B;installed]\r\nlibfftw3-single3\/stable,now 3.3.5-3 armhf &#x5B;installed,automatic]\r\nlibfile-fcntllock-perl\/stable,now 0.22-3+b2 armhf &#x5B;installed,automatic]\r\nlibfreetype6\/stable,now 2.6.3-3.2 armhf &#x5B;installed,automatic]\r\nlibfreetype6-dev\/stable,now 2.6.3-3.2 armhf &#x5B;installed]\r\nlibgcc-6-dev\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibgcc1\/stable,now 1:6.3.0-18+rpi1 armhf &#x5B;installed]\r\nlibgcrypt20\/stable,now 1.7.6-2+deb9u2 armhf &#x5B;installed]\r\nlibgdbm3\/stable,now 1.8.3-14 armhf &#x5B;installed]\r\nlibgeoip1\/stable,now 1.6.9-4 armhf &#x5B;installed,automatic]\r\nlibglib2.0-0\/stable,now 2.50.3-2 armhf &#x5B;installed,automatic]\r\nlibglib2.0-data\/stable,now 2.50.3-2 all &#x5B;installed,automatic]\r\nlibgmp10\/stable,now 2:6.1.2+dfsg-1 armhf &#x5B;installed]\r\nlibgnutls30\/stable,now 3.5.8-5+deb9u2 armhf &#x5B;installed]\r\nlibgomp1\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibgpg-error0\/stable,now 1.26-2 armhf &#x5B;installed]\r\nlibgssapi-krb5-2\/stable,now 1.15-1 armhf &#x5B;installed,automatic]\r\nlibhogweed4\/stable,now 3.3-1 armhf &#x5B;installed]\r\nlibicu57\/stable,now 57.1-6 armhf &#x5B;installed,automatic]\r\nlibident\/stable,now 0.22-3.1 armhf &#x5B;installed]\r\nlibidn11\/stable,now 1.33-1 armhf &#x5B;installed]\r\nlibidn2-0\/stable,now 0.16-1 armhf &#x5B;installed]\r\nlibip4tc0\/stable,now 1.6.0+snapshot20161117-6 armhf &#x5B;installed]\r\nlibip6tc0\/stable,now 1.6.0+snapshot20161117-6 armhf &#x5B;installed]\r\nlibiptc0\/stable,now 1.6.0+snapshot20161117-6 armhf &#x5B;installed]\r\nlibisc-export160\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed]\r\nlibisc160\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nlibisccc140\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nlibisccfg140\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nlibisl15\/stable,now 0.18-1 armhf &#x5B;installed,automatic]\r\nlibiw30\/stable,now 30~pre9-12 armhf &#x5B;installed,automatic]\r\nlibjim0.76\/stable,now 0.76-2 armhf &#x5B;installed,automatic]\r\nlibjpeg62-turbo\/stable,now 1:1.5.1-2 armhf &#x5B;installed,automatic]\r\nlibk5crypto3\/stable,now 1.15-1 armhf &#x5B;installed,automatic]\r\nlibkeyutils1\/stable,now 1.5.9-9 armhf &#x5B;installed,automatic]\r\nlibklibc\/stable,now 2.0.4-9+rpi1 armhf &#x5B;installed]\r\nlibkmod2\/stable,now 23-2 armhf &#x5B;installed]\r\nlibkrb5-3\/stable,now 1.15-1 armhf &#x5B;installed,automatic]\r\nlibkrb5support0\/stable,now 1.15-1 armhf &#x5B;installed,automatic]\r\nlibksba8\/stable,now 1.3.5-2 armhf &#x5B;installed]\r\nlibldap-2.4-2\/stable,now 2.4.44+dfsg-5 armhf &#x5B;installed,automatic]\r\nlibldap-common\/stable,now 2.4.44+dfsg-5 all &#x5B;installed,automatic]\r\nliblocale-gettext-perl\/stable,now 1.07-3+b1 armhf &#x5B;installed]\r\nliblogging-stdlog0\/stable,now 1.0.5-2 armhf &#x5B;installed]\r\nliblognorm5\/stable,now 2.0.1-1.1 armhf &#x5B;installed]\r\nlibluajit-5.1-common\/stable,now 2.0.4+dfsg-1 all &#x5B;installed,automatic]\r\nliblwres141\/stable,now 1:9.10.3.dfsg.P4-12.3+deb9u2 armhf &#x5B;installed,automatic]\r\nliblz4-1\/stable,now 0.0~r131-2 armhf &#x5B;installed]\r\nliblzma5\/stable,now 5.2.2-1.2 armhf &#x5B;installed]\r\nlibmagic-mgc\/stable,now 1:5.30-1+deb9u1 armhf &#x5B;installed,automatic]\r\nlibmagic1\/stable,now 1:5.30-1+deb9u1 armhf &#x5B;installed,automatic]\r\nlibmnl-dev\/stable,now 1.0.4-2 armhf &#x5B;installed]\r\nlibmnl0\/stable,now 1.0.4-2 armhf &#x5B;installed]\r\nlibmount1\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nlibmpc3\/stable,now 1.0.3-1 armhf &#x5B;installed,automatic]\r\nlibmpdec2\/stable,now 2.4.2-1 armhf &#x5B;installed,automatic]\r\nlibmpfr4\/stable,now 3.1.5-1 armhf &#x5B;installed,automatic]\r\nlibmtp-common\/stable,now 1.1.13-1 all &#x5B;installed,automatic]\r\nlibmtp-runtime\/stable,now 1.1.13-1 armhf &#x5B;installed]\r\nlibmtp9\/stable,now 1.1.13-1 armhf &#x5B;installed,automatic]\r\nlibncurses5\/stable,now 6.0+20161126-1 armhf &#x5B;installed]\r\nlibncursesw5\/stable,now 6.0+20161126-1 armhf &#x5B;installed]\r\nlibnetfilter-conntrack3\/stable,now 1.0.6-2 armhf &#x5B;installed]\r\nlibnettle6\/stable,now 3.3-1 armhf &#x5B;installed]\r\nlibnewt0.52\/stable,now 0.52.19-1 armhf &#x5B;installed]\r\nlibnfnetlink0\/stable,now 1.0.1-3 armhf &#x5B;installed]\r\nlibnfsidmap2\/stable,now 0.25-5.1 armhf &#x5B;installed,automatic]\r\nlibnghttp2-14\/stable,now 1.18.1-1 armhf &#x5B;installed,automatic]\r\nlibnih-dbus1\/stable,now 1.0.3-8 armhf &#x5B;installed]\r\nlibnih1\/stable,now 1.0.3-8 armhf &#x5B;installed]\r\nlibnl-3-200\/stable,now 3.2.27-2 armhf &#x5B;installed,automatic]\r\nlibnl-genl-3-200\/stable,now 3.2.27-2 armhf &#x5B;installed,automatic]\r\nlibnpth0\/stable,now 1.3-1 armhf &#x5B;installed]\r\nlibnss-mdns\/stable,now 0.10-8 armhf &#x5B;installed,automatic]\r\nlibp11-kit0\/stable,now 0.23.3-2 armhf &#x5B;installed]\r\nlibpam-chksshpwd\/testing,now 1.1.8-3.6+rpi1 armhf &#x5B;installed]\r\nlibpam-modules\/testing,now 1.1.8-3.6+rpi1 armhf &#x5B;installed]\r\nlibpam-modules-bin\/testing,now 1.1.8-3.6+rpi1 armhf &#x5B;installed]\r\nlibpam-runtime\/testing,now 1.1.8-3.6+rpi1 all &#x5B;installed]\r\nlibpam-systemd\/stable,now 232-25+deb9u1 armhf &#x5B;installed,automatic]\r\nlibpam0g\/testing,now 1.1.8-3.6+rpi1 armhf &#x5B;installed]\r\nlibparted2\/stable,now 3.2-17 armhf &#x5B;installed,automatic]\r\nlibpcre3\/stable,now 2:8.39-3 armhf &#x5B;installed]\r\nlibpcsclite1\/stable,now 1.8.20-1 armhf &#x5B;installed,automatic]\r\nlibperl5.24\/stable,now 5.24.1-3+deb9u1 armhf &#x5B;installed,automatic]\r\nlibpipeline1\/stable,now 1.4.1-2 armhf &#x5B;installed]\r\nlibplymouth4\/testing,now 0.9.2-4+rpi1 armhf &#x5B;installed]\r\nlibpng-dev\/stable,now 1.6.28-1 armhf &#x5B;installed,automatic]\r\nlibpng-tools\/stable,now 1.6.28-1 armhf &#x5B;installed,automatic]\r\nlibpng16-16\/stable,now 1.6.28-1 armhf &#x5B;installed]\r\nlibpopt0\/stable,now 1.16-10 armhf &#x5B;installed]\r\nlibprocps6\/stable,now 2:3.3.12-3 armhf &#x5B;installed]\r\nlibpsl5\/stable,now 0.17.0-3 armhf &#x5B;installed]\r\nlibpython-stdlib\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\nlibpython2.7-minimal\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\nlibpython2.7-stdlib\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\nlibpython3-stdlib\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\nlibpython3.5\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\nlibpython3.5-minimal\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\nlibpython3.5-stdlib\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\nlibraspberrypi-bin\/testing,now 1.20170811-1 armhf &#x5B;installed]\r\nlibraspberrypi-dev\/testing,now 1.20170811-1 armhf &#x5B;installed]\r\nlibraspberrypi-doc\/testing,now 1.20170811-1 armhf &#x5B;installed]\r\nlibraspberrypi0\/testing,now 1.20170811-1 armhf &#x5B;installed]\r\nlibreadline6\/stable,now 6.3-9 armhf &#x5B;installed]\r\nlibreadline7\/stable,now 7.0-3 armhf &#x5B;installed]\r\nlibrtmp1\/stable,now 2.4+20151223.gitfa8646d.1-1 armhf &#x5B;installed,automatic]\r\nlibsamplerate0\/stable,now 0.1.8-8 armhf &#x5B;installed,automatic]\r\nlibsasl2-2\/stable,now 2.1.27~101-g0780600+dfsg-3 armhf &#x5B;installed,automatic]\r\nlibsasl2-modules\/stable,now 2.1.27~101-g0780600+dfsg-3 armhf &#x5B;installed,automatic]\r\nlibsasl2-modules-db\/stable,now 2.1.27~101-g0780600+dfsg-3 armhf &#x5B;installed,automatic]\r\nlibseccomp2\/stable,now 2.3.1-2.1 armhf &#x5B;installed]\r\nlibselinux1\/stable,now 2.6-3 armhf &#x5B;installed]\r\nlibsemanage-common\/stable,now 2.6-2 all &#x5B;installed]\r\nlibsemanage1\/stable,now 2.6-2 armhf &#x5B;installed]\r\nlibsepol1\/stable,now 2.6-2 armhf &#x5B;installed]\r\nlibsigc++-1.2-5c2\/stable,now 1.2.7-2+b1 armhf &#x5B;installed]\r\nlibsigc++-2.0-0v5\/stable,now 2.10.0-1 armhf &#x5B;installed]\r\nlibslang2\/stable,now 2.3.1-5 armhf &#x5B;installed]\r\nlibsmartcols1\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nlibsqlite3-0\/stable,now 3.16.2-5 armhf &#x5B;installed]\r\nlibss2\/stable,now 1.43.4-2 armhf &#x5B;installed]\r\nlibssh2-1\/stable,now 1.7.0-1 armhf &#x5B;installed,automatic]\r\nlibssl1.0.2\/stable,now 1.0.2l-2 armhf &#x5B;installed]\r\nlibssl1.1\/stable,now 1.1.0f-3 armhf &#x5B;installed]\r\nlibstdc++-6-dev\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibstdc++6\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed]\r\nlibsysfs2\/stable,now 2.1.0+repack-4 armhf &#x5B;installed]\r\nlibsystemd0\/stable,now 232-25+deb9u1 armhf &#x5B;installed]\r\nlibtalloc2\/stable,now 2.1.8-1 armhf &#x5B;installed,automatic]\r\nlibtasn1-6\/stable,now 4.10-1.1 armhf &#x5B;installed]\r\nlibtext-charwidth-perl\/stable,now 0.04-7+b7 armhf &#x5B;installed]\r\nlibtext-iconv-perl\/stable,now 1.7-5+b8 armhf &#x5B;installed]\r\nlibtext-wrapi18n-perl\/stable,now 0.06-7.1 all &#x5B;installed]\r\nlibtinfo5\/stable,now 6.0+20161126-1 armhf &#x5B;installed]\r\nlibtirpc1\/stable,now 0.2.5-1.2 armhf &#x5B;installed,automatic]\r\nlibubsan0\/stable,now 6.3.0-18+rpi1 armhf &#x5B;installed,automatic]\r\nlibudev0\/stable,now 175-7.2 armhf &#x5B;installed]\r\nlibudev1\/stable,now 232-25+deb9u1 armhf &#x5B;installed]\r\nlibunistring0\/stable,now 0.9.6+really0.9.3-0.1 armhf &#x5B;installed]\r\nlibusb-0.1-4\/stable,now 2:0.1.12-30 armhf &#x5B;installed]\r\nlibusb-1.0-0\/stable,now 2:1.0.21-1 armhf &#x5B;installed,automatic]\r\nlibustr-1.0-1\/stable,now 1.0.4-6 armhf &#x5B;installed]\r\nlibuuid1\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nlibv4l-0\/stable,now 1.12.3-1 armhf &#x5B;installed,automatic]\r\nlibv4l2rds0\/stable,now 1.12.3-1 armhf &#x5B;installed,automatic]\r\nlibv4lconvert0\/stable,now 1.12.3-1 armhf &#x5B;installed,automatic]\r\nlibwbclient0\/stable,now 2:4.5.8+dfsg-2+deb9u1 armhf &#x5B;installed,automatic]\r\nlibwrap0\/stable,now 7.6.q-26 armhf &#x5B;installed,automatic]\r\nlibx11-6\/stable,now 2:1.6.4-3 armhf &#x5B;installed,automatic]\r\nlibx11-data\/stable,now 2:1.6.4-3 all &#x5B;installed,automatic]\r\nlibxapian30\/stable,now 1.4.3-2 armhf &#x5B;installed]\r\nlibxau6\/stable,now 1:1.0.8-1 armhf &#x5B;installed,automatic]\r\nlibxcb1\/stable,now 1.12-1 armhf &#x5B;installed,automatic]\r\nlibxdmcp6\/stable,now 1:1.1.2-3 armhf &#x5B;installed,automatic]\r\nlibxext6\/stable,now 2:1.3.3-1 armhf &#x5B;installed,automatic]\r\nlibxml2\/stable,now 2.9.4+dfsg1-2.2+deb9u1 armhf &#x5B;installed,automatic]\r\nlibxmuu1\/stable,now 2:1.1.2-2 armhf &#x5B;installed,automatic]\r\nlibxtables12\/stable,now 1.6.0+snapshot20161117-6 armhf &#x5B;installed]\r\nlinux-base\/stable,now 4.5 all &#x5B;installed]\r\nlinux-libc-dev\/stable,now 3.18.5-1~exp1+rpi19+stretch armhf &#x5B;installed,automatic]\r\nlocales\/stable,now 2.24-11+deb9u1 all &#x5B;installed]\r\nlogin\/stable,now 1:4.4-4.1 armhf &#x5B;installed]\r\nlogrotate\/stable,now 3.11.0-0.1 armhf &#x5B;installed]\r\nlsb-base\/stable,now 9.20161125+rpi1 all &#x5B;installed]\r\nlsb-release\/stable,now 9.20161125+rpi1 all &#x5B;installed,automatic]\r\nlua5.1\/stable,now 5.1.5-8.1 armhf &#x5B;installed]\r\nluajit\/stable,now 2.0.4+dfsg-1 armhf &#x5B;installed]\r\nmake\/stable,now 4.1-9.1 armhf &#x5B;installed,automatic]\r\nmakedev\/stable,now 2.3.1-93 all &#x5B;installed]\r\nman-db\/stable,now 2.7.6.1-2 armhf &#x5B;installed]\r\nmanpages\/stable,now 4.10-2 all &#x5B;installed,automatic]\r\nmanpages-dev\/stable,now 4.10-2 all &#x5B;installed]\r\nmawk\/stable,now 1.3.3-17 armhf &#x5B;installed]\r\nmime-support\/stable,now 3.60 all &#x5B;installed,automatic]\r\nmount\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nmountall\/stable,now 2.54 armhf &#x5B;installed]\r\nmultiarch-support\/stable,now 2.24-11+deb9u1 armhf &#x5B;installed]\r\nnano\/stable,now 2.7.4-1 armhf &#x5B;installed]\r\nncdu\/stable,now 1.12-1 armhf &#x5B;installed]\r\nncurses-base\/stable,now 6.0+20161126-1 all &#x5B;installed]\r\nncurses-bin\/stable,now 6.0+20161126-1 armhf &#x5B;installed]\r\nncurses-term\/stable,now 6.0+20161126-1 all &#x5B;installed,automatic]\r\nnet-tools\/stable,now 1.60+git20161116.90da8a0-1 armhf &#x5B;installed]\r\nnetbase\/stable,now 5.4 all &#x5B;installed]\r\nnetcat-openbsd\/stable,now 1.130-3 armhf &#x5B;installed]\r\nnetcat-traditional\/stable,now 1.10-41 armhf &#x5B;installed]\r\nnfs-common\/stable,now 1:1.3.4-2.1 armhf &#x5B;installed]\r\nopenresolv\/stable,now 3.8.0-1 armhf &#x5B;installed,automatic]\r\nopenssh-client\/stable,now 1:7.4p1-10+deb9u1 armhf &#x5B;installed,automatic]\r\nopenssh-server\/stable,now 1:7.4p1-10+deb9u1 armhf &#x5B;installed,automatic]\r\nopenssh-sftp-server\/stable,now 1:7.4p1-10+deb9u1 armhf &#x5B;installed,automatic]\r\nopenssl\/stable,now 1.1.0f-3 armhf &#x5B;installed,automatic]\r\nparted\/stable,now 3.2-17 armhf &#x5B;installed]\r\npasswd\/stable,now 1:4.4-4.1 armhf &#x5B;installed]\r\npatch\/stable,now 2.7.5-1 armhf &#x5B;installed,automatic]\r\npaxctld\/stable,now 1.2.1-1 armhf &#x5B;installed]\r\nperl\/stable,now 5.24.1-3+deb9u1 armhf &#x5B;installed,automatic]\r\nperl-base\/stable,now 5.24.1-3+deb9u1 armhf &#x5B;installed]\r\nperl-modules-5.24\/stable,now 5.24.1-3+deb9u1 all &#x5B;installed,automatic]\r\npi-bluetooth\/testing,now 0.1.6 armhf &#x5B;installed]\r\npinentry-curses\/stable,now 1.0.0-2 armhf &#x5B;installed]\r\npkg-config\/stable,now 0.29-4 armhf &#x5B;installed]\r\nplymouth\/testing,now 0.9.2-4+rpi1 armhf &#x5B;installed]\r\nprocps\/stable,now 2:3.3.12-3 armhf &#x5B;installed]\r\npsmisc\/stable,now 22.21-2.1 armhf &#x5B;installed]\r\npython\/stable,now 2.7.13-2 armhf &#x5B;installed]\r\npython-apt-common\/stable,now 1.1.0~beta5 all &#x5B;installed,automatic]\r\npython-minimal\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\npython-rpi.gpio\/testing,now 0.6.3~stretch-1 armhf &#x5B;installed]\r\npython2.7\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\npython2.7-minimal\/stable,now 2.7.13-2 armhf &#x5B;installed,automatic]\r\npython3\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\npython3-apt\/stable,now 1.1.0~beta5 armhf &#x5B;installed,automatic]\r\npython3-minimal\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\npython3.5\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\npython3.5-minimal\/stable,now 3.5.3-1 armhf &#x5B;installed,automatic]\r\nraspberrypi-bootloader\/testing,now 1.20170811-1 armhf &#x5B;installed]\r\nraspberrypi-kernel\/testing,now 1.20170811-1 armhf &#x5B;installed,automatic]\r\nraspberrypi-net-mods\/testing,now 1.2.7 all &#x5B;installed]\r\nraspberrypi-sys-mods\/testing,now 20170717 armhf &#x5B;installed]\r\nraspbian-archive-keyring\/stable,now 20120528.2 all &#x5B;installed]\r\nraspi-config\/testing,now 20170811 all &#x5B;installed]\r\nraspi-copies-and-fills\/testing,now 0.5-1 armhf &#x5B;installed]\r\nreadline-common\/stable,now 7.0-3 all &#x5B;installed]\r\nrename\/stable,now 0.20-4 all &#x5B;installed,automatic]\r\nrpcbind\/stable,now 0.2.3-0.6 armhf &#x5B;installed,automatic]\r\nrpi-update\/testing,now 20140705 all &#x5B;installed]\r\nrsync\/stable,now 3.1.2-1 armhf &#x5B;installed]\r\nrsyslog\/stable,now 8.24.0-1 armhf &#x5B;installed]\r\nsamba-common\/stable,now 2:4.5.8+dfsg-2+deb9u1 all &#x5B;installed,automatic]\r\nsed\/stable,now 4.4-1 armhf &#x5B;installed]\r\nsensible-utils\/stable,now 0.0.9 all &#x5B;installed]\r\nsgml-base\/stable,now 1.29 all &#x5B;installed,automatic]\r\nshared-mime-info\/stable,now 1.8-1 armhf &#x5B;installed,automatic]\r\nssh\/stable,now 1:7.4p1-10+deb9u1 all &#x5B;installed]\r\nstrace\/stable,now 4.15-2 armhf &#x5B;installed]\r\nsudo\/stable,now 1.8.19p1-2.1 armhf &#x5B;installed]\r\nsystemd\/stable,now 232-25+deb9u1 armhf &#x5B;installed]\r\nsystemd-sysv\/stable,now 232-25+deb9u1 armhf &#x5B;installed]\r\nsysvinit-utils\/stable,now 2.88dsf-59.9 armhf &#x5B;installed]\r\ntar\/stable,now 1.29b-1.1 armhf &#x5B;installed]\r\ntasksel\/stable,now 3.39 all &#x5B;installed]\r\ntasksel-data\/stable,now 3.39 all &#x5B;installed]\r\ntcpd\/stable,now 7.6.q-26 armhf &#x5B;installed,automatic]\r\ntraceroute\/stable,now 1:2.1.0-2 armhf &#x5B;installed]\r\ntriggerhappy\/stable,now 0.5.0-1 armhf &#x5B;installed,automatic]\r\ntzdata\/stable,now 2017b-1 all &#x5B;installed]\r\nucf\/stable,now 3.0036 all &#x5B;installed,automatic]\r\nudev\/stable,now 232-25+deb9u1 armhf &#x5B;installed]\r\nunzip\/stable,now 6.0-21 armhf &#x5B;installed]\r\nusb-modeswitch\/stable,now 2.5.0+repack0-1 armhf &#x5B;installed]\r\nusb-modeswitch-data\/stable,now 20170120-1 all &#x5B;installed,automatic]\r\nusbutils\/stable,now 1:007-4 armhf &#x5B;installed]\r\nutil-linux\/stable,now 2.29.2-1 armhf &#x5B;installed]\r\nv4l-utils\/stable,now 1.12.3-1 armhf &#x5B;installed]\r\nvim-common\/stable,now 2:8.0.0197-4 all &#x5B;installed]\r\nvim-tiny\/stable,now 2:8.0.0197-4 armhf &#x5B;installed]\r\nwget\/stable,now 1.18-5 armhf &#x5B;installed]\r\nwhiptail\/stable,now 0.52.19-1 armhf &#x5B;installed]\r\nwireless-regdb\/stable,now 2016.06.10-1 all &#x5B;installed,automatic]\r\nwireless-tools\/stable,now 30~pre9-12 armhf &#x5B;installed]\r\nwpasupplicant\/stable,now 2:2.4-1 armhf &#x5B;installed]\r\nxauth\/stable,now 1:1.0.9-1 armhf &#x5B;installed,automatic]\r\nxdg-user-dirs\/stable,now 0.15-2 armhf &#x5B;installed,automatic]\r\nxkb-data\/stable,now 2.19-1 all &#x5B;installed,automatic]\r\nxml-core\/stable,now 0.17 all &#x5B;installed,automatic]\r\nxxd\/stable,now 2:8.0.0197-4 armhf &#x5B;installed]\r\nxz-utils\/stable,now 5.2.2-1.2 armhf &#x5B;installed]\r\nzlib1g\/stable,now 1:1.2.8.dfsg-5 armhf &#x5B;installed]\r\nzlib1g-dev\/stable,now 1:1.2.8.dfsg-5 armhf &#x5B;installed,automatic]\r\n<\/pre>\n<p>From the list, we can see that the Raspbian Stretch Lite operating included Python 3, as such there was no need for me to install Python 3. <\/p>\n<h2>Installing Python 3 package manager (pip3) on Raspbian Stretch Lite<\/h3>\n<p>This version of Raspbian Stretch Lite did not install the Python 3 Package Manager by default. The Python 3 package manager will be useful for me to manage the dependencies for my Python 3 applications that I will run in the future. As such, I proceeded to install the Python 3 Package Manager.<\/p>\n<p>To install the Python 3 Package Manager, I ran the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install python3-pip -y\r\n<\/pre>\n<p>Once the Python 3 package manager was installed successfully, I ran the following command to see the Python 3 Packages that are available in the system:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npip3 list\r\n<\/pre>\n<p>Which gave the following output:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncryptography (1.7.1)\r\nidna (2.2)\r\nkeyring (10.1)\r\nkeyrings.alt (1.3)\r\npip (9.0.1)\r\npyasn1 (0.1.9)\r\npycrypto (2.6.1)\r\npygobject (3.22.0)\r\npython-apt (1.1.0b5)\r\npyxdg (0.25)\r\nSecretStorage (2.3.1)\r\nsetuptools (33.1.1)\r\nsix (1.10.0)\r\nwheel (0.29.0)\r\n<\/pre>\n<h2>Installing Virtualenv on Raspbian Stretch Lite<\/h2>\n<p><a href=\"https:\/\/virtualenv.pypa.io\/en\/stable\/\" rel=\"noopener\" target=\"_blank\">Virtualenv<\/a> is a tool that allows us to create isolated environments in the same machine. This is useful if I have to run multiple applications with conflicting python dependencies on my Raspberry Pi Zero W in the future.<\/p>\n<p>To install Virtualenv, I ran the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install virtualenv -y\r\n<\/pre>\n<h2>Buying your Raspberry Pi Zero W components from Amazon<\/h2>\n<p>If you do not have the Raspberry Pi Zero W components mentioned in this post yet, you may want to purchase them from Amazon. Simply click on the button below to add the Raspberry Pi Zero W components to your cart. You may remove anything that you already have or replace some of the components with other components.<\/p>\n<p><center><\/p>\n<form action=\"https:\/\/www.amazon.com\/gp\/aws\/cart\/add.html\" method=\"GET\" target=\"_blank\"><input name=\"AssociateTag\" type=\"hidden\" value=\"clivsperswebs-20\"><input name=\"SubscriptionId\" type=\"hidden\" value=\"[AKIAIMND5UBCQU2HRSUA]\"><input name=\"ASIN.1\" type=\"hidden\" value=\"B06XD18H6K\"><input name=\"Quantity.1\" type=\"hidden\" value=\"1\"><input name=\"ASIN.2\" type=\"hidden\" value=\"B0166RR85U\"><input name=\"Quantity.2\" type=\"hidden\" value=\"1\"><br \/>\n<input alt=\"Buy from Amazon.com\" name=\"add\" type=\"image\" src=\"https:\/\/images-na.ssl-images-amazon.com\/images\/G\/01\/associates\/remote-buy-box\/buy4.gif\" value=\"Buy from Amazon.com\"><\/form>\n<p><\/center><\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-dS\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-dS&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-dS&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F860&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>With Wi-Fi included, the <a href=\"https:\/\/www.amazon.com\/gp\/product\/B06XD18H6K\/ref=as_li_ss_tl?imprToken=GYKRfLWHo0Jf7WHYYNACSA&#038;slotNum=1&#038;ie=UTF8&#038;linkCode=ll1&#038;tag=clivsperswebs-20&#038;linkId=f22aca63951902b51acec933c2458fc4\" rel=\"noopener\" target=\"_blank\">Raspberry Pi Zero W<\/a> is very useful for implementing embedded projects that require Internet connection. <\/p>\n<p>Apart from <a href=\"https:\/\/www.techcoil.com\/blog\/how-i-setup-a-cctv-camera-with-raspberry-pi-zero-w-and-motioneyeos-image-for-home-surveillance\/\" rel=\"noopener\" target=\"_blank\">using the Raspberry Pi Zero W for CCTV surveillance<\/a>, we can run customized Python 3 applications on a Raspberry Pi Zero W for various use cases.<\/p>\n<p>Pairing the official operating system for Raspberry Pi with Python 3, we will be able to get a versatile computer to do our bidding. <\/p>\n<p>Anticipating the need to setup a version of <a href=\"https:\/\/www.raspbian.org\/\" rel=\"noopener\" target=\"_blank\">Raspbian<\/a> Lite on Raspberry Pi Zero W for future Python 3 projects, I created this post to document the steps of how to do so with Raspbian Stretch Lite.<\/p>\n","protected":false},"author":1,"featured_media":1277,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[226,233,240,409,412,445,423,279,438,454],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Raspberry-Pi-Zero-W-on-keyboard.jpg","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-dS","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/860"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1277"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}