User Tools

Site Tools


public:notes_on_setting_up_raspberry_pi_2

Notes on setting up Raspberry Pi 2

This post describes the stuff I did to my Raspberry Pi 2, which is the current acting home server. These configuration steps are probably useful for everyone.

  1. Download and flash the Raspbian-lite image.
  2. Remove the following packages: dhcpcd5 dphys-swapfile raspi-config triggerhappy bluez*
    • dhcpd5 interferes with /etc/network/interfaces - it makes configuring the network more complicated.
    • dphys-swapfile configure a swap file in the root partition - I have no idea why anyone wants that.
    • triggerhappy not entirely sure what it does, probably useless - I have never used it.
    • raspi-config messes with your CPU frequency governor at boot, of course you want to use the performance governor.
    • bluez* are the Bluetooth related things. I don't use Bluetooth.
  3. Wipe the unnecessary stuff in /etc/rc.local, so your IP address doesn't come up in the boot screen - I found it weird.
  4. Install 'default-mta', of course you want to receive all the system emails.
  5. Install sysfsutils
    • Add the following in /etc/sysfs.conf, these ensures that your CPU always runs at the fastest speed. You should be using zswap anyway.
    • devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
      devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
      devices/system/cpu/cpu2/cpufreq/scaling_governor = performance
      devices/system/cpu/cpu3/cpufreq/scaling_governor = performance
      module/zswap/parameters/enabled = 1
public/notes_on_setting_up_raspberry_pi_2.txt · Last modified: 2018/03/31 00:38 by 127.0.0.1