Site Tools


tech:rpi_setup

Misc Raspberry Pi Setup

These are various tasks I have set-up on Raspberry Pi's.

Initial Setup

sudo raspi-config
  • Change locale
  • Change timesone
  • Change keyboard
  • Disable serial port terminal
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install python-dev python-setuptools python-pip minicom i2c-tools python-smbus git

sudo easy_install --upgrade pytz
sudo pip install apscheduler

Configure minicom:

sudo minicom -s

Change hostname

sudo nano /etc/hostname

Change to raspberrypi desired hostname

sudo nano /etc/hosts

Change raspberrypi (on line 127.0.1.1) to desired hostname

Static IP (Rasbian Wheezy)

sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
	address 10.0.0.##
	network 10.0.0.0
	netmask 255.255.255.0
	gateway 10.0.0.1
       	wpa-ssid "network"
       	wpa-psk "password"

Release current DHCP leases

sudo rm /var/lib/dhcp/*

Reboot

sudo reboot

Static IP (Rasbian Jessie)

sudo nano /etc/network/interfaces

Add this to bottom of file:

interface eth0
static ip_address=10.0.0.###
static routers=10.0.0.1
static domain_name_servers=10.0.0.1

Reboot

sudo reboot

Setup Adafruit 5" HDMI

HDMI 5" 800x480 Display Backpack - With Touchscreen

sudo nano /boot/config.txt
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (here we are forcing 800x480!)
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
 
max_usb_current=1
tech/rpi_setup.txt · Last modified: 2016-03-06 14:52 by daniel