How to setup Raspbian Jessie Lite on Raspberry Pi 3 to run Python 3 applications

The Raspbian operating system is the Raspberry Pi Foundation's official supported operating system. As of this writing, Raspbian comes in two flavours - one with a graphical user interface for us to build a low cost desktop computer and the other without the graphical user interface.

If you intend to use your Raspberry Pi 3 with sensors and build a web interface for you to manage those sensors, Raspbian Jessie Lite is one operating system which you may want to install on your Raspberry Pi 3.

And with the versatility of Python 3, setting up Raspbian Jessie Lite on Raspberry Pi 3 to run Python 3 applications will be one of the first task that you will perform before you embark on your next sensor based project with the Raspberry Pi 3.

This post documents the steps that I took to setup Raspbian Jessie Lite on Raspberry Pi 3 to run Python 3 applications.

Hardware that I used for my Raspbian Jessie Lite build

The server hardware consisted of the following parts:

If you have a spare micro USB charger that came along with your typical Android phone, you can use it to power your Raspberry Pi 3 instead of buying the CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger (UL Listed).

Prerequisite hardware to install operating system onto the microSD

Raspberry Pi 3 board will load an operating system 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 SD card reader, you have to get one.

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 Kingston Digital 32 GB microSDHC Class 10 UHS-1 Memory Card 30MB/s with Adapter (SDC10/32GB) instead.

Downloading Raspbian Jessie Lite for your Raspberry Pi 3

Once I had gotten the hardware in place, I proceeded to download a copy of Raspbian Jessie Lite. The latest Raspbian operating system is available at https://www.raspberrypi.org/downloads/raspbian/. As of this writing, the one that I downloaded was "RASPBIAN JESSIE LITE":

2017-07-13 Raspbian download page

I clicked on the Download ZIP button and saved the file onto my file system.

Installing Raspbian Jessie Lite onto microSD card

Once I got the .zip file in my computer, I extracted the .img file from the .zip file. The .img file is the operating system image that I used for installing Raspbian Jessie Lite onto my microSD card.

I then used Etcher on my MacBook to install the operating system image onto my microSD card.

If you are using a windows machine, you can use Win32DiskImager to install the operating system for your Raspberry Pi 3.

If you are using a Linux desktop, you should be able to Etcher to install the operating system for your Raspberry Pi 3.

Assembling the hardware

Once Etcher had installed Raspbian Jessie Lite onto my microSD card, I removed my microSD card from my SD card reader and inserted it to the SD card slot on the Raspberry Pi 3 board. I then proceeded to assemble the Raspberry Pi 3 board to the Official Raspberry Pi case.

Booting into Raspbian Jessie Lite

With the assembly of Raspberry Pi 3 board and Official Raspberry Pi case, I then connected one end of the RJ45 cable to the RJ45 port on my Raspberry Pi 3 board and the other end of the cable to one of the switch port on my home router.

To facilitate the configuration of Raspbian Jessie Lite, I connected my trusty mouse, keyboard, monitor to the USB and HDMI ports of my Raspberry Pi 3 board.

I also plugged in my micro USB cable and supplied power to my Raspberry Pi 3 board.

Keying the Raspbian Jessie Lite default username and password to login for the first time

On first boot, Raspbian Jessie Lite will resized the filesystem to take up the entire storage space of my microSD. When the login prompt appeared, I entered the default login credentials; with the username as pi and password as raspberry.

Changing the default password

Unlike the Ubuntu Classic Server 16.04 that I had setup on my Raspberry Pi 3, this version of Raspbian Jessie Lite did not trigger the routine to change the default password. As such, the next thing that I did was to change the default password for the pi user.

To change the default password, I ran the following command:

passwd

In the prompts that followed, I first typed in raspberry as the current password and then my new password twice. After I had given my inputs, the passwd command printed the message passwd: password updated successfully to notify that the password change was successful.

Enabling SSH server in Raspbian Jessie Lite

When I deploy my Raspberry Pi 3 to monitor the sensors at a location away from my work desk, I will want the convenience of getting into Raspbian Jessie Lite to perform configurations from my MacBook. With the SSH protocol, I will be able to access my Raspberry Pi remotely. However, by default, the SSH server in this version of Raspbian Jessie Lite was not enabled.

To enable the SSH server in Raspbian Jessie Lite, I ran the following command to start the Raspberry Pi software configuration tool:

sudo raspi-config

I then stepped through the following screens to enable the SSH server in my Raspbian Jessie Lite:

raspi-config Raspbian Jessie Lite with Interfacing options selected

raspi-config Raspbian Jessie lite with Interfacing Options SSH selected

raspi-config Raspbian Jessie Lite with enable SSH dialog Yes selected

raspi-config Raspbian Jessie Lite informational message after SSH server was enabled

Configuring the locale settings

Some applications require locale settings to be properly configured. As such, I went ahead to configure the locale settings too.

I first used the Raspberry Pi Software Configuration Tool to generate the "en_US.UTF-8" locale and set it as the default locale for the system environment:

raspi-config Raspbian Jessie Lite with Localisation Options selected

raspi-config Raspbian Jessie Lite with Localisation Options -> Change Locale selected

raspi-config Raspbian Jessie Lite screen for generating en_us-UTF-8 locale

raspi-config Raspbian Jessie Lite settings en_us-UTF-8 as default locale for system environment

After doing so, I then opened up /etc/default/locale with nano:

sudo nano /etc/default/locale

And updated the contents to look like the following:

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANGUAGE=en_US.UTF-8

This will ensure that the locale setting persist through system reboots.

Changing timezone

The default timezone for my Raspbian Jessie Lite installation was 'Etc/UTC'. Since my Raspberry Pi 3 resides in Singapore, I will want it to reflect the Singapore timing.

To change the timezone on my Raspbian Jessie Lite, I went through the following steps:

raspi-config Raspbian Jessie Lite with Localisation Options selected

raspi-config Raspbian Jessie Lite with Localisation Options -> Change Timezone selected

raspi-config Raspbian Jessie Lite Configuring tzdata with Asia chosen as geographical region

raspi-config Raspbian Jessie Lite configuring tzdata with Singapore chosen as city

Listing the default packages that came along with my Raspbian Jessie Lite installation

The next thing that I did was to check the list of packages that came along with the Raspbian Jessie Lite installation. To do so, I typed the following command:

apt list --installed

Which gave me the following list:

Listing... Done
acl/oldstable,now 2.2.52-2 armhf [installed]
adduser/oldstable,now 3.113+nmu3 all [installed]
alsa-utils/oldstable,now 1.0.28-1 armhf [installed,automatic]
apt/oldstable,now 1.0.9.8.4 armhf [installed]
apt-listchanges/oldstable,now 2.85.13+nmu1 all [installed]
apt-transport-https/oldstable,now 1.0.9.8.4 armhf [installed]
apt-utils/oldstable,now 1.0.9.8.4 armhf [installed]
aptitude/oldstable,now 0.6.11-1 armhf [installed]
aptitude-common/oldstable,now 0.6.11-1 all [installed]
avahi-daemon/oldstable,now 0.6.31-5 armhf [installed]
base-files/oldstable,now 8+rpi1 armhf [installed]
base-passwd/oldstable,now 3.5.37 armhf [installed]
bash/oldstable,now 4.3-11+deb8u1 armhf [installed]
bash-completion/oldstable,now 1:2.1-4 all [installed]
bind9-host/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
binutils/oldstable,now 2.25-5+deb8u1 armhf [installed,automatic]
bluez/stable,now 5.23-2+rpi2 armhf [installed,automatic]
bluez-firmware/stable,now 1.2-3+rpi1 all [installed,automatic]
bsdmainutils/oldstable,now 9.0.6 armhf [installed]
bsdutils/oldstable,now 1:2.25.2-6 armhf [installed]
build-essential/oldstable,now 11.7 armhf [installed]
bzip2/oldstable,now 1.0.6-7 armhf [installed,automatic]
ca-certificates/oldstable,now 20141019+deb8u3 all [installed]
cifs-utils/oldstable,now 2:6.4-1 armhf [installed]
console-setup/oldstable,now 1.123 all [installed]
console-setup-linux/oldstable,now 1.123 all [installed,automatic]
coreutils/oldstable,now 8.23-4 armhf [installed]
cpio/oldstable,now 2.11+dfsg-4.1+deb8u1 armhf [installed]
cpp/oldstable,now 4:4.9.2-2 armhf [installed,automatic]
cpp-4.9/oldstable,now 4.9.2-10 armhf [installed,automatic]
crda/oldstable,now 3.13-1 armhf [installed]
cron/oldstable,now 3.0pl1-127+deb8u1 armhf [installed]
curl/oldstable,now 7.38.0-4+deb8u5 armhf [installed]
dash/oldstable,now 0.5.7-4 armhf [installed]
dbus/oldstable,now 1.8.22-0+deb8u1 armhf [installed,automatic]
dc/oldstable,now 1.06.95-9 armhf [installed,automatic]
debconf/oldstable,now 1.5.56 all [installed]
debconf-i18n/oldstable,now 1.5.56 all [installed]
debconf-utils/oldstable,now 1.5.56 all [installed]
debianutils/oldstable,now 4.4 armhf [installed]
device-tree-compiler/stable,now 1.4.1-1+rpi1 armhf [installed,automatic]
dhcpcd5/stable,now 6.7.1-1+rpi5 armhf [installed]
diffutils/oldstable,now 1:3.3-1 armhf [installed]
dmidecode/oldstable,now 2.12-3 armhf [installed]
dmsetup/oldstable,now 2:1.02.90-2.2+deb8u1 armhf [installed]
dosfstools/oldstable,now 3.0.27-1 armhf [installed]
dphys-swapfile/oldstable,now 20100506-1 all [installed]
dpkg/oldstable,now 1.17.27 armhf [installed]
dpkg-dev/oldstable,now 1.17.27 all [installed,automatic]
e2fslibs/stable,now 1.43.3-1~bpo8+1 armhf [installed]
e2fsprogs/stable,now 1.43.3-1~bpo8+1 armhf [installed]
ed/oldstable,now 1.10-2 armhf [installed]
fake-hwclock/oldstable,now 0.9 all [installed]
fakeroot/oldstable,now 1.20.2-1 armhf [installed,automatic]
fbset/oldstable,now 2.1-28 armhf [installed]
file/oldstable,now 1:5.22+15-2+deb8u3 armhf [installed,automatic]
findutils/oldstable,now 4.4.2-9 armhf [installed]
firmware-atheros/stable,now 0.43+rpi5 all [installed]
firmware-brcm80211/stable,now 0.43+rpi5 all [installed]
firmware-libertas/stable,now 0.43+rpi5 all [installed]
firmware-ralink/stable,now 0.43+rpi5 all [installed]
firmware-realtek/stable,now 0.43+rpi5 all [installed]
g++/oldstable,now 4:4.9.2-2 armhf [installed,automatic]
g++-4.9/oldstable,now 4.9.2-10 armhf [installed,automatic]
gcc/oldstable,now 4:4.9.2-2 armhf [installed,automatic]
gcc-4.6-base/oldstable,now 4.6.4-5+rpi1 armhf [installed]
gcc-4.7-base/oldstable,now 4.7.3-11+rpi1 armhf [installed]
gcc-4.8-base/oldstable,now 4.8.4-1 armhf [installed]
gcc-4.9/oldstable,now 4.9.2-10 armhf [installed,automatic]
gcc-4.9-base/oldstable,now 4.9.2-10 armhf [installed]
gdb/stable,now 7.7.1+dfsg-5+rpi1 armhf [installed]
gdbserver/stable,now 7.7.1+dfsg-5+rpi1 armhf [installed,automatic]
geoip-database/oldstable,now 20150317-1 all [installed,automatic]
gettext-base/oldstable,now 0.19.3-2 armhf [installed,automatic]
gnupg/oldstable,now 1.4.18-7+deb8u3 armhf [installed]
gpgv/oldstable,now 1.4.18-7+deb8u3 armhf [installed]
grep/oldstable,now 2.20-4.1 armhf [installed]
groff-base/oldstable,now 1.22.2-8 armhf [installed]
gzip/oldstable,now 1.6-4 armhf [installed]
hardlink/oldstable,now 0.3.0 armhf [installed]
hostname/oldstable,now 3.15 armhf [installed]
ifupdown/oldstable,now 0.7.53.1 armhf [installed]
info/oldstable,now 5.2.0.dfsg.1-6 armhf [installed]
init/oldstable,now 1.22 armhf [installed]
init-system-helpers/oldstable,now 1.22 all [installed]
initramfs-tools/oldstable,now 0.120+deb8u3 all [installed]
initscripts/oldstable,now 2.88dsf-59 armhf [installed]
insserv/oldstable,now 1.14.0-5 armhf [installed]
install-info/oldstable,now 5.2.0.dfsg.1-6 armhf [installed]
iproute2/oldstable,now 3.16.0-2 armhf [installed]
iptables/oldstable,now 1.4.21-2 armhf [installed]
iputils-ping/oldstable,now 3:20121221-5 armhf [installed]
isc-dhcp-client/oldstable,now 4.3.1-6+deb8u2 armhf [installed]
isc-dhcp-common/oldstable,now 4.3.1-6+deb8u2 armhf [installed]
iso-codes/oldstable,now 3.57-1 all [installed,automatic]
iw/oldstable,now 3.17-1 armhf [installed,automatic]
kbd/oldstable,now 1.15.5-2 armhf [installed,automatic]
keyboard-configuration/oldstable,now 1.123 all [installed]
klibc-utils/oldstable,now 2.0.4-2+rpi1 armhf [installed]
kmod/oldstable,now 18-3 armhf [installed]
less/oldstable,now 458-3 armhf [installed]
libacl1/oldstable,now 2.2.52-2 armhf [installed]
libalgorithm-c3-perl/oldstable,now 0.09-1 all [installed,automatic]
libalgorithm-diff-perl/oldstable,now 1.19.02-3 all [installed,automatic]
libalgorithm-diff-xs-perl/oldstable,now 0.04-3+b1 armhf [installed,automatic]
libalgorithm-merge-perl/oldstable,now 0.08-2 all [installed,automatic]
libapt-inst1.5/oldstable,now 1.0.9.8.4 armhf [installed]
libapt-pkg4.12/oldstable,now 1.0.9.8.4 armhf [installed]
libarchive-extract-perl/oldstable,now 0.72-1 all [installed,automatic]
libasan1/oldstable,now 4.9.2-10 armhf [installed,automatic]
libasound2/stable,now 1.0.28-1+rpi3 armhf [installed,automatic]
libasound2-data/stable,now 1.0.28-1+rpi3 all [installed,automatic]
libasprintf0c2/oldstable,now 0.19.3-2 armhf [installed,automatic]
libatomic1/oldstable,now 4.9.2-10 armhf [installed,automatic]
libattr1/oldstable,now 1:2.4.47-2 armhf [installed]
libaudit-common/oldstable,now 1:2.4-1 all [installed]
libaudit1/oldstable,now 1:2.4-1 armhf [installed]
libavahi-common-data/oldstable,now 0.6.31-5 armhf [installed,automatic]
libavahi-common3/oldstable,now 0.6.31-5 armhf [installed,automatic]
libavahi-core7/oldstable,now 0.6.31-5 armhf [installed,automatic]
libbind9-90/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
libblkid1/oldstable,now 2.25.2-6 armhf [installed]
libboost-iostreams1.49.0/oldstable,now 1.49.0-4+b2 armhf [installed]
libboost-iostreams1.50.0/oldstable,now 1.50.0-1+b2 armhf [installed]
libboost-iostreams1.53.0/oldstable,now 1.53.0-6+b2 armhf [installed]
libboost-iostreams1.54.0/oldstable,now 1.54.0-5 armhf [installed]
libboost-iostreams1.55.0/oldstable,now 1.55.0+dfsg-3 armhf [installed]
libbsd0/oldstable,now 0.7.0-2 armhf [installed]
libbz2-1.0/oldstable,now 1.0.6-7 armhf [installed]
libc-bin/oldstable,now 2.19-18+deb8u10 armhf [installed]
libc-dev-bin/oldstable,now 2.19-18+deb8u10 armhf [installed,automatic]
libc6/oldstable,now 2.19-18+deb8u10 armhf [installed]
libc6-dbg/oldstable,now 2.19-18+deb8u10 armhf [installed,automatic]
libc6-dev/oldstable,now 2.19-18+deb8u10 armhf [installed,automatic]
libcap-ng0/oldstable,now 0.7.4-2 armhf [installed,automatic]
libcap2/oldstable,now 1:2.24-8 armhf [installed]
libcap2-bin/oldstable,now 1:2.24-8 armhf [installed]
libcgi-fast-perl/oldstable,now 1:2.04-1 all [installed,automatic]
libcgi-pm-perl/oldstable,now 4.09-1 all [installed,automatic]
libclass-c3-perl/oldstable,now 0.26-1 all [installed,automatic]
libclass-c3-xs-perl/oldstable,now 0.13-2+b1 armhf [installed,automatic]
libcloog-isl4/oldstable,now 0.18.2-1 armhf [installed,automatic]
libcomerr2/stable,now 1.43.3-1~bpo8+1 armhf [installed]
libcpan-meta-perl/oldstable,now 2.142690-1 all [installed,automatic]
libcryptsetup4/oldstable,now 2:1.6.6-5 armhf [installed]
libcurl3/oldstable,now 7.38.0-4+deb8u5 armhf [installed,automatic]
libcurl3-gnutls/oldstable,now 7.38.0-4+deb8u5 armhf [installed,automatic]
libcwidget3/oldstable,now 0.5.17-2 armhf [installed]
libdaemon0/oldstable,now 0.14-6 armhf [installed,automatic]
libdata-optlist-perl/oldstable,now 0.109-1 all [installed,automatic]
libdata-section-perl/oldstable,now 0.200006-1 all [installed,automatic]
libdb5.3/oldstable,now 5.3.28-9 armhf [installed]
libdbus-1-3/oldstable,now 1.8.22-0+deb8u1 armhf [installed]
libdebconfclient0/oldstable,now 0.192 armhf [installed]
libdevmapper1.02.1/oldstable,now 2:1.02.90-2.2+deb8u1 armhf [installed]
libdns-export100/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed]
libdns100/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
libdpkg-perl/oldstable,now 1.17.27 all [installed,automatic]
libdrm2/stable,now 2.4.71-1+rpi1 armhf [installed]
libedit2/oldstable,now 3.1-20140620-2 armhf [installed,automatic]
libestr0/oldstable,now 0.1.9-1.1 armhf [installed]
libevent-2.0-5/oldstable,now 2.0.21-stable-2+deb8u1 armhf [installed,automatic]
libexpat1/oldstable,now 2.1.0-6+deb8u4 armhf [installed,automatic]
libfakeroot/oldstable,now 1.20.2-1 armhf [installed,automatic]
libfcgi-perl/oldstable,now 0.77-1+deb8u1 armhf [installed,automatic]
libffi6/oldstable,now 3.1-2+deb8u1 armhf [installed]
libfile-fcntllock-perl/oldstable,now 0.22-1+b1 armhf [installed,automatic]
libfreetype6/stable,now 2.6-2rpi1rpi1g armhf [installed,automatic]
libfreetype6-dev/stable,now 2.6-2rpi1rpi1g armhf [installed]
libgcc-4.9-dev/oldstable,now 4.9.2-10 armhf [installed,automatic]
libgcc1/oldstable,now 1:4.9.2-10 armhf [installed]
libgcrypt20/oldstable,now 1.6.3-2+deb8u3 armhf [installed]
libgdbm3/oldstable,now 1.8.3-13.1 armhf [installed]
libgeoip1/oldstable,now 1.6.2-4 armhf [installed,automatic]
libglib2.0-0/oldstable,now 2.42.1-1 armhf [installed,automatic]
libglib2.0-data/oldstable,now 2.42.1-1 all [installed,automatic]
libgmp10/oldstable,now 2:6.0.0+dfsg-6+rpi1 armhf [installed]
libgnutls-deb0-28/oldstable,now 3.3.8-6+deb8u6 armhf [installed]
libgnutls-openssl27/oldstable,now 3.3.8-6+deb8u6 armhf [installed]
libgomp1/oldstable,now 4.9.2-10 armhf [installed,automatic]
libgpg-error0/oldstable,now 1.17-3 armhf [installed]
libgssapi-krb5-2/oldstable,now 1.12.1+dfsg-19+deb8u2 armhf [installed,automatic]
libhogweed2/oldstable,now 2.7.1-5+deb8u2 armhf [installed]
libicu52/oldstable,now 52.1-8+deb8u5 armhf [installed]
libident/oldstable,now 0.22-3 armhf [installed]
libidn11/oldstable,now 1.29-1+deb8u2 armhf [installed]
libirs-export91/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed]
libisc-export95/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed]
libisc95/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
libisccc90/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
libisccfg-export90/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed]
libisccfg90/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
libisl10/oldstable,now 0.12.2-2 armhf [installed,automatic]
libiw30/oldstable,now 30~pre9-8 armhf [installed,automatic]
libjim0.75/oldstable,now 0.75-1 armhf [installed,automatic]
libjpeg62-turbo/oldstable,now 1:1.3.1-12 armhf [installed,automatic]
libjson-c2/oldstable,now 0.11-4 armhf [installed]
libk5crypto3/oldstable,now 1.12.1+dfsg-19+deb8u2 armhf [installed,automatic]
libkeyutils1/oldstable,now 1.5.9-5 armhf [installed,automatic]
libklibc/oldstable,now 2.0.4-2+rpi1 armhf [installed]
libkmod2/oldstable,now 18-3 armhf [installed]
libkrb5-3/oldstable,now 1.12.1+dfsg-19+deb8u2 armhf [installed,automatic]
libkrb5support0/oldstable,now 1.12.1+dfsg-19+deb8u2 armhf [installed,automatic]
libldap-2.4-2/oldstable,now 2.4.40+dfsg-1+deb8u2 armhf [installed,automatic]
liblocale-gettext-perl/oldstable,now 1.05-8+b1 armhf [installed]
liblog-message-perl/oldstable,now 0.8-1 all [installed,automatic]
liblog-message-simple-perl/oldstable,now 0.10-2 all [installed,automatic]
liblogging-stdlog0/oldstable,now 1.0.4-1 armhf [installed]
liblognorm1/oldstable,now 1.0.1-3 armhf [installed]
libluajit-5.1-common/oldstable,now 2.0.3+dfsg-3 all [installed,automatic]
liblwres90/oldstable,now 1:9.9.5.dfsg-9+deb8u11 armhf [installed,automatic]
liblzma5/oldstable,now 5.1.1alpha+20120614-2 armhf [installed]
libmagic1/oldstable,now 1:5.22+15-2+deb8u3 armhf [installed,automatic]
libmodule-build-perl/oldstable,now 0.421000-2+deb8u1 all [installed,automatic]
libmodule-pluggable-perl/oldstable,now 5.1-1 all [installed,automatic]
libmodule-signature-perl/oldstable,now 0.73-1+deb8u2 all [installed,automatic]
libmount1/oldstable,now 2.25.2-6 armhf [installed]
libmpc3/oldstable,now 1.0.2-1 armhf [installed,automatic]
libmpfr4/oldstable,now 3.1.2-2 armhf [installed,automatic]
libmro-compat-perl/oldstable,now 0.12-1 all [installed,automatic]
libncurses5/oldstable,now 5.9+20140913-1 armhf [installed]
libncursesw5/oldstable,now 5.9+20140913-1 armhf [installed]
libnettle4/oldstable,now 2.7.1-5+deb8u2 armhf [installed]
libnewt0.52/oldstable,now 0.52.17-1 armhf [installed]
libnfnetlink0/oldstable,now 1.0.1-3 armhf [installed]
libnfsidmap2/oldstable,now 0.25-5 armhf [installed,automatic]
libnih-dbus1/oldstable,now 1.0.3-4.3 armhf [installed]
libnih1/oldstable,now 1.0.3-4.3 armhf [installed]
libnl-3-200/oldstable,now 3.2.24-2 armhf [installed,automatic]
libnl-genl-3-200/oldstable,now 3.2.24-2 armhf [installed,automatic]
libnss-mdns/oldstable,now 0.10-6 armhf [installed,automatic]
libopts25/oldstable,now 1:5.18.4-3 armhf [installed,automatic]
libp11-kit0/oldstable,now 0.20.7-1 armhf [installed]
libpackage-constants-perl/oldstable,now 0.04-1 all [installed,automatic]
libpam-chksshpwd/stable,now 1.1.8-3.1+deb8u2+rpi3 armhf [installed]
libpam-modules/stable,now 1.1.8-3.1+deb8u2+rpi3 armhf [installed]
libpam-modules-bin/stable,now 1.1.8-3.1+deb8u2+rpi3 armhf [installed]
libpam-runtime/stable,now 1.1.8-3.1+deb8u2+rpi3 all [installed]
libpam0g/stable,now 1.1.8-3.1+deb8u2+rpi3 armhf [installed]
libparams-util-perl/oldstable,now 1.07-2+b1 armhf [installed,automatic]
libparted2/oldstable,now 3.2-7 armhf [installed,automatic]
libpcre3/oldstable,now 2:8.35-3.3+deb8u4 armhf [installed]
libpcsclite1/oldstable,now 1.8.13-1+deb8u1 armhf [installed,automatic]
libpipeline1/oldstable,now 1.4.0-1 armhf [installed]
libplymouth4/stable,now 0.9.2-3+rpi1 armhf [installed,automatic]
libpng12-0/oldstable,now 1.2.50-2+deb8u3 armhf [installed]
libpng12-dev/oldstable,now 1.2.50-2+deb8u3 armhf [installed,automatic]
libpod-latex-perl/oldstable,now 0.61-1 all [installed,automatic]
libpod-readme-perl/oldstable,now 0.11-1 all [installed,automatic]
libpopt0/oldstable,now 1.16-10 armhf [installed]
libprocps3/oldstable,now 2:3.3.9-9 armhf [installed]
libpsl0/oldstable,now 0.5.1-1 armhf [installed]
libpython-stdlib/oldstable,now 2.7.9-1 armhf [installed,automatic]
libpython2.7/oldstable,now 2.7.9-2+deb8u1 armhf [installed,automatic]
libpython2.7-minimal/oldstable,now 2.7.9-2+deb8u1 armhf [installed,automatic]
libpython2.7-stdlib/oldstable,now 2.7.9-2+deb8u1 armhf [installed,automatic]
libraspberrypi-bin/stable,now 1.20170703-1 armhf [installed]
libraspberrypi-dev/stable,now 1.20170703-1 armhf [installed]
libraspberrypi-doc/stable,now 1.20170703-1 armhf [installed]
libraspberrypi0/stable,now 1.20170703-1 armhf [installed]
libreadline6/oldstable,now 6.3-8 armhf [installed]
libregexp-common-perl/oldstable,now 2013031301-1 all [installed,automatic]
librtmp1/oldstable,now 2.4+20150115.gita107cef-1+deb8u1 armhf [installed,automatic]
libsamplerate0/oldstable,now 0.1.8-8 armhf [installed,automatic]
libsasl2-2/oldstable,now 2.1.26.dfsg1-13+deb8u1 armhf [installed,automatic]
libsasl2-modules/oldstable,now 2.1.26.dfsg1-13+deb8u1 armhf [installed,automatic]
libsasl2-modules-db/oldstable,now 2.1.26.dfsg1-13+deb8u1 armhf [installed,automatic]
libselinux1/oldstable,now 2.3-2 armhf [installed]
libsemanage-common/oldstable,now 2.3-1 all [installed]
libsemanage1/oldstable,now 2.3-1 armhf [installed]
libsepol1/oldstable,now 2.3-2 armhf [installed]
libsigc++-1.2-5c2/oldstable,now 1.2.7-2+b1 armhf [installed]
libsigc++-2.0-0c2a/oldstable,now 2.4.0-1 armhf [installed]
libslang2/oldstable,now 2.3.0-2 armhf [installed]
libsmartcols1/oldstable,now 2.25.2-6 armhf [installed]
libsoftware-license-perl/oldstable,now 0.103010-3 all [installed,automatic]
libsqlite3-0/oldstable,now 3.8.7.1-1+deb8u2 armhf [installed]
libss2/stable,now 1.43.3-1~bpo8+1 armhf [installed]
libssh2-1/oldstable,now 1.4.3-4.1+deb8u1 armhf [installed,automatic]
libssl1.0.0/oldstable,now 1.0.1t-1+deb8u6 armhf [installed]
libstdc++-4.9-dev/oldstable,now 4.9.2-10 armhf [installed,automatic]
libstdc++6/oldstable,now 4.9.2-10 armhf [installed]
libsub-exporter-perl/oldstable,now 0.986-1 all [installed,automatic]
libsub-install-perl/oldstable,now 0.928-1 all [installed,automatic]
libsysfs2/oldstable,now 2.1.0+repack-4 armhf [installed]
libsystemd0/oldstable,now 215-17+deb8u7 armhf [installed]
libtalloc2/oldstable,now 2.1.2-0+deb8u1 armhf [installed,automatic]
libtasn1-6/oldstable,now 4.2-3+deb8u3 armhf [installed]
libterm-ui-perl/oldstable,now 0.42-1 all [installed,automatic]
libtext-charwidth-perl/oldstable,now 0.04-7+b4 armhf [installed]
libtext-iconv-perl/oldstable,now 1.7-5+b5 armhf [installed]
libtext-soundex-perl/oldstable,now 3.4-1+b2 armhf [installed,automatic]
libtext-template-perl/oldstable,now 1.46-1 all [installed,automatic]
libtext-wrapi18n-perl/oldstable,now 0.06-7 all [installed]
libtimedate-perl/oldstable,now 2.3000-2 all [installed,automatic]
libtinfo5/oldstable,now 5.9+20140913-1 armhf [installed]
libtirpc1/oldstable,now 0.2.5-1+deb8u1 armhf [installed,automatic]
libubsan0/oldstable,now 4.9.2-10 armhf [installed,automatic]
libudev0/oldstable,now 175-7.2 armhf [installed]
libudev1/oldstable,now 215-17+deb8u7 armhf [installed]
libusb-0.1-4/oldstable,now 2:0.1.12-25 armhf [installed]
libusb-1.0-0/oldstable,now 2:1.0.19-1 armhf [installed,automatic]
libustr-1.0-1/oldstable,now 1.0.4-3 armhf [installed]
libuuid1/oldstable,now 2.25.2-6 armhf [installed]
libv4l-0/oldstable,now 1.6.0-2 armhf [installed,automatic]
libv4l2rds0/oldstable,now 1.6.0-2 armhf [installed,automatic]
libv4lconvert0/oldstable,now 1.6.0-2 armhf [installed,automatic]
libwbclient0/oldstable,now 2:4.2.14+dfsg-0+deb8u6 armhf [installed,automatic]
libwrap0/oldstable,now 7.6.q-25 armhf [installed,automatic]
libx11-6/oldstable,now 2:1.6.2-3 armhf [installed,automatic]
libx11-data/oldstable,now 2:1.6.2-3 all [installed,automatic]
libxapian22/oldstable,now 1.2.19-1+deb8u1 armhf [installed]
libxau6/oldstable,now 1:1.0.8-1 armhf [installed,automatic]
libxcb1/oldstable,now 1.10-3 armhf [installed,automatic]
libxdmcp6/oldstable,now 1:1.1.1-1 armhf [installed,automatic]
libxext6/oldstable,now 2:1.3.3-1 armhf [installed,automatic]
libxml2/oldstable,now 2.9.1+dfsg1-5+deb8u4 armhf [installed,automatic]
libxmuu1/oldstable,now 2:1.1.2-1 armhf [installed,automatic]
libxtables10/oldstable,now 1.4.21-2 armhf [installed]
linux-libc-dev/oldstable,now 3.16.7-ckt11-1+deb8u4+rpi1 armhf [installed,automatic]
locales/oldstable,now 2.19-18+deb8u10 all [installed]
login/oldstable,now 1:4.2-3+deb8u4 armhf [installed]
logrotate/oldstable,now 3.8.7-1 armhf [installed]
lsb-base/oldstable,now 4.1+Debian13+rpi1+nmu1 all [installed]
lsb-release/oldstable,now 4.1+Debian13+rpi1+nmu1 all [installed,automatic]
lua5.1/oldstable,now 5.1.5-7.1 armhf [installed]
luajit/oldstable,now 2.0.3+dfsg-3 armhf [installed]
make/oldstable,now 4.0-8.1 armhf [installed,automatic]
makedev/oldstable,now 2.3.1-93 all [installed]
man-db/stable,now 2.7.5-1~bpo8+1 armhf [installed]
manpages/oldstable,now 3.74-1 all [installed]
manpages-dev/oldstable,now 3.74-1 all [installed]
mawk/oldstable,now 1.3.3-17 armhf [installed]
mime-support/oldstable,now 3.58 all [installed,automatic]
module-init-tools/oldstable,now 18-3 all [installed]
mount/oldstable,now 2.25.2-6 armhf [installed]
mountall/oldstable,now 2.54 armhf [installed]
multiarch-support/oldstable,now 2.19-18+deb8u10 armhf [installed]
nano/oldstable,now 2.2.6-3 armhf [installed]
ncdu/oldstable,now 1.10-1 armhf [installed]
ncurses-base/oldstable,now 5.9+20140913-1 all [installed]
ncurses-bin/oldstable,now 5.9+20140913-1 armhf [installed]
ncurses-term/oldstable,now 5.9+20140913-1 all [installed,automatic]
net-tools/oldstable,now 1.60-26 armhf [installed]
netbase/oldstable,now 5.3 all [installed]
netcat-openbsd/oldstable,now 1.105-7 armhf [installed]
netcat-traditional/oldstable,now 1.10-41 armhf [installed]
nfs-common/oldstable,now 1:1.2.8-9 armhf [installed]
ntp/oldstable,now 1:4.2.6.p5+dfsg-7+deb8u2 armhf [installed]
openresolv/oldstable,now 3.5.2-1 all [installed,automatic]
openssh-client/oldstable,now 1:6.7p1-5+deb8u3 armhf [installed,automatic]
openssh-server/oldstable,now 1:6.7p1-5+deb8u3 armhf [installed,automatic]
openssh-sftp-server/oldstable,now 1:6.7p1-5+deb8u3 armhf [installed,automatic]
openssl/oldstable,now 1.0.1t-1+deb8u6 armhf [installed,automatic]
parted/oldstable,now 3.2-7 armhf [installed]
passwd/oldstable,now 1:4.2-3+deb8u4 armhf [installed]
patch/oldstable,now 2.7.5-1 armhf [installed,automatic]
perl/oldstable,now 5.20.2-3+deb8u7 armhf [installed,automatic]
perl-base/oldstable,now 5.20.2-3+deb8u7 armhf [installed]
perl-modules/oldstable,now 5.20.2-3+deb8u7 all [installed,automatic]
pi-bluetooth/stable,now 0.1.3 armhf [installed]
pkg-config/oldstable,now 0.28-1 armhf [installed]
plymouth/stable,now 0.9.2-3+rpi1 armhf [installed]
procps/oldstable,now 2:3.3.9-9 armhf [installed]
psmisc/oldstable,now 22.21-2 armhf [installed]
python/oldstable,now 2.7.9-1 armhf [installed]
python-apt/oldstable,now 0.9.3.12 armhf [installed,automatic]
python-apt-common/oldstable,now 0.9.3.12 all [installed,automatic]
python-minimal/oldstable,now 2.7.9-1 armhf [installed,automatic]
python-rpi.gpio/stable,now 0.6.3~jessie-1 armhf [installed]
python-support/oldstable,now 1.0.15 all [installed,automatic]
python2.7/oldstable,now 2.7.9-2+deb8u1 armhf [installed,automatic]
python2.7-minimal/oldstable,now 2.7.9-2+deb8u1 armhf [installed,automatic]
raspberrypi-bootloader/stable,now 1.20170703-1 armhf [installed]
raspberrypi-kernel/stable,now 1.20170703-1 armhf [installed,automatic]
raspberrypi-net-mods/stable,now 1.2.5 all [installed]
raspberrypi-sys-mods/stable,now 20170519 armhf [installed]
raspbian-archive-keyring/oldstable,now 20120528.2 all [installed]
raspi-config/stable,now 20170705 all [installed]
raspi-copies-and-fills/stable,now 0.5-1 armhf [installed]
readline-common/oldstable,now 6.3-8 all [installed]
rename/oldstable,now 0.20-3 all [installed,automatic]
rpcbind/oldstable,now 0.2.1-6+deb8u2 armhf [installed,automatic]
rpi-update/stable,now 20140705 all [installed]
rsyslog/oldstable,now 8.4.2-1+deb8u2 armhf [installed]
samba-common/oldstable,now 2:4.2.14+dfsg-0+deb8u6 all [installed,automatic]
sed/oldstable,now 4.2.2-4+deb8u1 armhf [installed]
sensible-utils/oldstable,now 0.0.9 all [installed]
sgml-base/oldstable,now 1.26+nmu4 all [installed,automatic]
shared-mime-info/oldstable,now 1.3-1 armhf [installed,automatic]
ssh/oldstable,now 1:6.7p1-5+deb8u3 all [installed]
startpar/oldstable,now 0.59-3 armhf [installed]
strace/oldstable,now 4.9-2 armhf [installed]
sudo/oldstable,now 1.8.10p3-1+deb8u4 armhf [installed]
systemd/oldstable,now 215-17+deb8u7 armhf [installed]
systemd-sysv/oldstable,now 215-17+deb8u7 armhf [installed]
sysv-rc/oldstable,now 2.88dsf-59 all [installed]
sysvinit-utils/oldstable,now 2.88dsf-59 armhf [installed]
tar/oldstable,now 1.27.1-2+deb8u1 armhf [installed]
tasksel/oldstable,now 3.31+deb8u1 all [installed]
tasksel-data/oldstable,now 3.31+deb8u1 all [installed]
tcpd/oldstable,now 7.6.q-25 armhf [installed,automatic]
traceroute/oldstable,now 1:2.0.20-2 armhf [installed]
triggerhappy/oldstable,now 0.3.4-2 armhf [installed,automatic]
tzdata/oldstable,now 2017b-0+deb8u1 all [installed]
ucf/oldstable,now 3.0030 all [installed,automatic]
udev/oldstable,now 215-17+deb8u7 armhf [installed]
unzip/oldstable,now 6.0-16+deb8u3 armhf [installed]
usb-modeswitch/oldstable,now 2.2.0+repack0-2 armhf [installed]
usb-modeswitch-data/oldstable,now 20150115-1 all [installed,automatic]
usbutils/oldstable,now 1:007-2 armhf [installed]
util-linux/oldstable,now 2.25.2-6 armhf [installed]
v4l-utils/oldstable,now 1.6.0-2 armhf [installed]
vim-common/oldstable,now 2:7.4.488-7+deb8u3 armhf [installed]
vim-tiny/oldstable,now 2:7.4.488-7+deb8u3 armhf [installed]
wget/oldstable,now 1.16-1+deb8u2 armhf [installed]
whiptail/oldstable,now 0.52.17-1 armhf [installed]
wireless-regdb/oldstable,now 2016.06.10-1~deb8u1 all [installed,automatic]
wireless-tools/oldstable,now 30~pre9-8 armhf [installed]
wpasupplicant/oldstable,now 2.3-1+deb8u4 armhf [installed]
xauth/oldstable,now 1:1.0.9-1 armhf [installed,automatic]
xdg-user-dirs/oldstable,now 0.15-2 armhf [installed,automatic]
xkb-data/oldstable,now 2.12-1 all [installed,automatic]
xml-core/oldstable,now 0.13+nmu2 all [installed,automatic]
xz-utils/oldstable,now 5.1.1alpha+20120614-2 armhf [installed]
zlib1g/oldstable,now 1:1.2.8.dfsg-2 armhf [installed]
zlib1g-dev/oldstable,now 1:1.2.8.dfsg-2 armhf [installed,automatic]

Installing Python 3

This version of Raspbian Jessie Lite installation does not install Python 3 by default. To install Python 3, I ran the following command:

sudo apt-get install python3 -y

Once the installation was completed, I was able to run Python 3 application with the python3 binary.

Installing Python 3 package manager (pip3) on Raspbian Jessie Lite

This version of Raspbian Jessie Lite installation does not install the Python 3 Package Manager by default. To install the Python 3 Package Manager, I ran the following command:

sudo apt-get install python3-pip -y

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:

pip3 list

Which gave the following output:

chardet (2.3.0)
colorama (0.3.2)
html5lib (0.999)
pip (1.5.6)
requests (2.4.3)
setuptools (5.5.1)
six (1.8.0)
urllib3 (1.9.1)
wheel (0.24.0)

Installing Virtualenv on Raspbian Jessie Lite

Virtualenv 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 3 in the future.

To install Virtualenv, I ran the following command:

sudo apt-get install virtualenv -y

Buying the recommended hardware list to setup your own Raspbian Jessie Lite on Raspberry Pi 3

If you do not have the Raspberry Pi 3 hardware mentioned in this post yet, you may want to purchase them from Amazon. Simply click on the button below to add the Raspberry Pi 3 hardware to your cart. You may remove anything that you already have or replace some of the hardware with other hardware.


About Clivant

Clivant a.k.a Chai Heng enjoys composing software and building systems to serve people. He owns techcoil.com and hopes that whatever he had written and built so far had benefited people. All views expressed belongs to him and are not representative of the company that he works/worked for.