Difference between revisions of "Raspberry Pi Setup"

From MuonPi-Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
= Initial Setup =
 
= Initial Setup =
* Requirements: Raspberry Pi version 3 or above (with 40-pin GPIO connector)  
+
# Requirements: Raspberry Pi version 3 or above (with 40-pin GPIO connector)  
* Create a fresh installation of Raspbian Buster e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (with or without desktop)
+
# Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (with or without desktop)
 +
# Enable I2C Interface: In terminal: sudo raspi-config >> Interfacing Options >> I2C>> Enable: Yes >> Reboot optional
 +
# Enable SSH: The SSH protocol is needed if you want to remotely configure your hedless Raspberry Pi. In a terminal: sudo raspi-config >> Interfacing Options >> SSH >> Enable: Yes >> Reboot
 +
# Configure the network connection:
 +
* Per default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).
 +
* If you prefer a fixed IP address in a local network: edit the /etc/dhcpcd.conf. Use the template and uncomment the "Example Static IP Configuration" section with your desired IP address.
 +
* If network access should be established via WiFi, follow these steps:
 +
** Make sure that the wpa_supplicant package is installed:
 +
sudo apt install wpasupplicant
 +
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf
 +
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
 +
 
 +
it should look like this:
 +
<code>
 +
update_config=1
 +
country=DE
 +
 
 +
network={
 +
        ssid="<your network ssid>"
 +
        psk="<your wifi password>"
 +
        key_mgmt=WPA-PSK
 +
}
 +
</code>
  
= Next Steps =
 
  
* Enable I2C Interface: In terminal: sudo raspi-config >> Interfacing Options >> I2C>> Enable: Yes >> Reboot
 
Optinal
 
* Enable SSH: The SSH protocol is needed to remotely communicate with the Raspberry Pi. In a terminal: sudo raspi-config >> Interfacing Options >> SSH >> Enable: Yes >> Reboot
 
* Using a fixed IP address in a local network: edit the /etc/dhcpcd.conf. Use the template and uncomment the "Example Static IP Configuration" section with your desired IP address.
 
  
 
= MuonPi Setup =
 
= MuonPi Setup =

Revision as of 10:51, 17 June 2020

This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.

DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.

Initial Setup

  1. Requirements: Raspberry Pi version 3 or above (with 40-pin GPIO connector)
  2. Create a fresh install of Raspbian Buster operating system e.g. from here on microSD card (with or without desktop)
  3. Enable I2C Interface: In terminal: sudo raspi-config >> Interfacing Options >> I2C>> Enable: Yes >> Reboot optional
  4. Enable SSH: The SSH protocol is needed if you want to remotely configure your hedless Raspberry Pi. In a terminal: sudo raspi-config >> Interfacing Options >> SSH >> Enable: Yes >> Reboot
  5. Configure the network connection:
  • Per default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).
  • If you prefer a fixed IP address in a local network: edit the /etc/dhcpcd.conf. Use the template and uncomment the "Example Static IP Configuration" section with your desired IP address.
  • If network access should be established via WiFi, follow these steps:
    • Make sure that the wpa_supplicant package is installed:
sudo apt install wpasupplicant
    • edit the file /etc/wpa_supplicant/wpa_supplicant.conf
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

it should look like this:

update_config=1
country=DE
network={
       ssid="<your network ssid>"
       psk="<your wifi password>"
       key_mgmt=WPA-PSK
}


MuonPi Setup