Skip to content

Instantly share code, notes, and snippets.

@danifr
Created March 22, 2020 14:10
Show Gist options
  • Select an option

  • Save danifr/acc3aabae965be1878362847a9be7144 to your computer and use it in GitHub Desktop.

Select an option

Save danifr/acc3aabae965be1878362847a9be7144 to your computer and use it in GitHub Desktop.

Revisions

  1. danifr created this gist Mar 22, 2020.
    24 changes: 24 additions & 0 deletions config.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # Disables non core units, disables swap, creates new user, updates system

    systemctl disable bluetooth.service
    systemctl disable rpi-display-backlight.service
    systemctl disable rpi-eeprom-update.service
    systemctl disable wpa_supplicant.service
    systemctl disable avahi-daemon.socket
    systemctl disable avahi-daemon.service
    systemctl disable dbus-org.freedesktop.Avahi.service
    systemctl disable dbus-org.freedesktop.timesync1.service
    systemctl disable keyboard-setup.service
    systemctl disable hciuart.service
    systemctl disable nfs-client.target
    systemctl disable remote-fs.target
    systemctl disable apt-daily-upgrade.timer
    systemctl disable apt-daily.timer
    systemctl disable raspberrypi-net-mods.service
    dphys-swapfile swapoff
    dphys-swapfile uninstall
    sudo useradd -m -d /home/$NEWUSER $NEWUSER
    usermod -G sudo $NEWUSER
    apt update
    apt upgrade
    reboot