Skip to content

Latest commit

 

History

History
276 lines (215 loc) · 6.22 KB

RaspbianPixelLite.md

File metadata and controls

276 lines (215 loc) · 6.22 KB

Rasberry Pi - Raspbian Lite with PIXEL


Base Build Procedure

Source ISO

First Running

Configure Keyboard

  • Edit /etc/default/keyboard
XKBLAYOUT="us"

raspi-config

  • Localisation Options
    • Change Locale
      • Unset en_GB
      • Set en_US.UTF-8 UTF-8
    • Change Timezone
  • Interfacing Options
    • Enable ssh
  • Advanced Options
    • Expand Filesystem

Wireless

Edit /etc/network/interfaces

allow-hotplug wlan0
iface wlan0 inet dhcp

## static ip address example
#iface eth0 inet static
#address 192.168.1.142
#netmask 255.255.255.0
#gateway 192.168.1.1
#broadcast 192.168.1.255
#network 192.168.1.0
#dns-nameservers 192.168.1.249

# WiFi
wpa-ssid ******
wpa-psk ******
Edit /etc/resolv.conf
# example settings
domain w3pmu.com
search w3pmu.com
nameserver 192.168.0.56

Get IP Address and Updates

ip address
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ca-certificates

Disable Console Blanking

sudo nano /etc/kbd/config
BLANK_TIME=0
BLANK_DPMS=off
POWERDOWN_TIME=0

Initial Software

NTP

Network Time Protocol NTP is used to synchronize the computer's time clock with reference time server.

# Install NTP
sudo apt-get install ntp ntpdate -y
# Optionally modify the time servers and other ntp options
sudo nano /etc/ntp.conf
# Apply configuration changes
sudo dpkg-reconfigure ntp
# Check
sudo ntpd --version
sudo ntpq -p
sudo service ntp status

Optional Utility Software

sudo apt-get install htop

Pre-cleaning

Pre-cleaning is optional. It should be done before we build and install any software without the aptitude package manager.

# remove previous python versions
sudo apt-get purge python

Git

# Install Git prerequisites
sudo apt-get install build-essential gettext libssl-dev libcurl4-openssl-dev libexpat1-dev tk-dev asciidoc xz-utils -y
# sudo apt-get install docbook2x unzip -y

# Change to Home folder
cd ~
# Get git
wget https://www.kernel.org/pub/software/scm/git/git-2.13.3.tar.gz 
tar -xzvf git-2.13.3.tar.gz
cd git-2.13.3
# Make Git and Install 
make prefix=/usr/local all 
# make prefix=/usr/local all doc info
sudo make prefix=/usr/local install all 
# sudo make prefix=/usr/local install all install-doc install-html install-info
# Test Git
git -–version

Configure git for Serving Repositories

Server
# For gogs 'git' user:
# sudo adduser --disabled-login --gecos 'Gogs' git
# For simple 'git' user:
sudo adduser --disabled-login git
sudo -u git -H mkdir /home/git/.ssh
sudo -u git -H vi /home/git/.ssh/authorized_keys
# Server sied Git Repository Initialization
# sudo git init /opt/git/MyRepoExample.git --share --bare
Clients
# SSH Clients need to do this:
ssh-keygen
# Append the contents from ~/.ssh/id_rsa.pub to the server's authorized_keys file.

Python

# remove previous python versions
sudo apt-get purge python
# Python 2
cd ~/
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz
tar -xvf Python-2.7.13.tar.xz
cd Python-2.7.13
./configure
make
sudo make install
python2 --version
# Python 3
cd ~/
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz 
tar -xvf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure
make
sudo make install
python3 --version
# now check to see the default python version
sudo reboot
python --version

X11 and PIXEL Installation

GUI installation instructions are derived from the procedure described in: GUIDE Raspbian Lite with LXDE/XFCE/MATE/Openbox GUI

X11 XServer

sudo apt-get install xserver-xorg
sudo apt-get install xinit x11-xserver-utils xorg
## Raspbian: if physical mouse and keyboard no longer working apt-get install xserver-xorg-input-evdev
sudo reboot

PIXEL

# Raspbian PIXEL instead of LXDE
sudo apt-get install raspberrypi-ui-mods
sudo reboot

LightDM

Optionally configure autologin for simplified remote control.

sudo nano /etc/lightdm/lightdm.conf
  autologin-user=theusername
  autologin-user-timeout=0
sudo dpkg-reconfigure lightdm

Remote Control Software

sudo apt-get install x11vnc

Utility Software

sudo apt-get install lxterminal leafpad clipit -y
sudo apt-get install freerdp-x11

Jul 28, 2017 updated by //AJ