Skip to content

Instantly share code, notes, and snippets.

@sworteu
Forked from samatjain/Slim-Raspbian.sh
Last active April 3, 2017 10:00
Show Gist options
  • Select an option

  • Save sworteu/8477616076bb5892faa461f2bdef7c49 to your computer and use it in GitHub Desktop.

Select an option

Save sworteu/8477616076bb5892faa461f2bdef7c49 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Edu-related packages
pkgs="
idle python3-pygame python-pygame python-tk
idle3 python3-tk
python3-rpi.gpio
python-serial python3-serial
python-picamera python3-picamera
python3-pygame python-pygame python-tk
python3-tk
debian-reference-en dillo x2x
scratch nuscratch
timidity
smartsim penguinspuzzle
pistore
sonic-pi
python3-numpy
python3-pifacecommon python3-pifacedigitalio python3-pifacedigital-scratch-handler python-pifacecommon python-pifacedigitalio
oracle-java8-jdk
minecraft-pi python-minecraftpi
wolfram-engine
libreoffice*
bluej
claws-mail
claws-mail-i18n
Greenfoot
nodered
geany
"
# raspbian-jessie-pixel-rm-edu.sh doesn't remove gui parts
# Because of of https://github.com/RPi-Distro/raspberrypi-ui-mods/issues/2 (thanks @robertely)
# echo apt-get -y remove raspberrypi-ui-mods
# Remove packages
for i in $pkgs; do
echo apt-get -y remove --purge $i
done
# Remove automatically installed dependency packages
echo apt-get -y autoremove
# Remove all packages marked rc (thanks @symm)
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
@sworteu
Copy link
Author

sworteu commented Apr 3, 2017

Made it so that it's easy to remove all desktop software. Only the browser and some parts remain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment