Tags:
create new tag
, view all tags

Raspberry Pi Initial Configuration

Initial setup of Raspberry Pi's for testbed. This occurs after a static IP address has been set. The default timezone is GMT. The version of Raspbian loaded onto the Raspberry Pi is the image released on 2012-08-16

# Mount rasp_nfs and rasp_repo
sudo mkdir /mnt/rasp_nfs
sudo mkdir /mnt/rasp_repo
sudo mount 192.168.0.1:/srv/rasp_nfs /mnt/rasp_nfs
sudo mount 192.168.0.1:/srv/rasp_repo /mnt/rasp_repo
# Set the time
sudo cp /mnt/rasp_nfs /etc/ntp.conf
sudo /etc/init.d/ntp restart
# Copy over repo files
sudo cp /mnt/rasp_nfs/sources.list /etc/apt/sources.list
sudo cp /mnt/rasp_nfs/raspi.list /etc/apt/sources.list.d/raspi.list
# Append hosts file to Pi Hosts File
cp /etc/hosts /home/pi/
cat /mnt/rasp_nfs/append_hosts >> /home/pi/hosts
sudo cp /home/pi/hosts /etc/hosts
rm /home/pi/hosts
# Append fstab to Pi fstab File
cp /etc/fstab /home/pi/
cat /mnt/rasp_nfs/append_fstab >> /home/pi/fstab
sudo cp /home/pi/fstab /etc/fstab
rm /home/pi/fstab
# Add Certificate to Pi's authorized_hosts file
mkdir /home/pi/.ssh
cp /mnt/rasp_nfs/id_rsa.pub /home/pi/.ssh/authorized_keys
# Reboot
sudo reboot
# Then Install
sudo mount /mnt/nfs_repo
sudo apt-get update
sudo apt-get install iperf
sudo apt-get install vlc-nox
Topic revision: r4 - 2013-09-10 - DanielWeldon
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback