Skip to content

Instantly share code, notes, and snippets.

@boseji
Forked from samatjain/Slim-Raspbian.sh
Last active April 16, 2017 11:11
Show Gist options
  • Select an option

  • Save boseji/5203bd24df02f5a5e9252b3a9d9f0068 to your computer and use it in GitHub Desktop.

Select an option

Save boseji/5203bd24df02f5a5e9252b3a9d9f0068 to your computer and use it in GitHub Desktop.

Revisions

  1. boseji revised this gist Apr 16, 2017. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    #Backup the Network Config
    # Backup the Network Config
    cp /etc/network/interfaces /etc/network/interfaces.bak
    cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak

    @@ -59,7 +59,12 @@ echo apt-get -y autoremove
    # Remove all packages marked rc (thanks @symm)
    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge

    #Restore
    # Clean up from Apt Side
    apt-get autoremove
    apt-get autoclean
    apt-get clean

    # Restore files
    cp /etc/network/interfaces.bak /etc/network/interfaces
    cp /etc/wpa_supplicant/wpa_supplicant.conf.bak /etc/wpa_supplicant/wpa_supplicant.conf
    rm /etc/network/interfaces.bak
  2. boseji revised this gist Apr 16, 2017. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #!/bin/bash

    #Backup the Network Config
    cp /etc/network/interfaces /etc/network/interfaces.bak
    cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak

    # GUI-related packages
    pkgs="
    xserver-xorg-video-fbdev
    @@ -53,4 +57,10 @@ done
    echo apt-get -y autoremove

    # Remove all packages marked rc (thanks @symm)
    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge

    #Restore
    cp /etc/network/interfaces.bak /etc/network/interfaces
    cp /etc/wpa_supplicant/wpa_supplicant.conf.bak /etc/wpa_supplicant/wpa_supplicant.conf
    rm /etc/network/interfaces.bak
    rm /etc/wpa_supplicant/wpa_supplicant.conf.bak
  3. @samatjain samatjain revised this gist Jan 7, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    # GUI-related packages
    pkgs="
    xserver-xorg-video-fbdev
  4. @samatjain samatjain revised this gist Nov 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ minecraft-pi python-minecraftpi
    wolfram-engine
    "
    # Because of of https://github.com/RPi-Distro/raspberrypi-ui-mods/issues/2 (thanks @robertely)
    apt-get -y remove raspberrypi-ui-mods
    echo apt-get -y remove raspberrypi-ui-mods

    # Remove packages
    for i in $pkgs; do
  5. @samatjain samatjain revised this gist Aug 19, 2015. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -25,9 +25,10 @@ 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
    raspberrypi-ui-mods
    timidity
    smartsim penguinspuzzle
    pistore
    @@ -38,11 +39,16 @@ oracle-java8-jdk
    minecraft-pi python-minecraftpi
    wolfram-engine
    "
    # Because of of https://github.com/RPi-Distro/raspberrypi-ui-mods/issues/2 (thanks @robertely)
    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
    echo apt-get -y autoremove

    # Remove all packages marked rc (thanks @symm)
    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
  6. @samatjain samatjain created this gist Feb 6, 2015.
    48 changes: 48 additions & 0 deletions Slim-Raspbian.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    # GUI-related packages
    pkgs="
    xserver-xorg-video-fbdev
    xserver-xorg xinit
    gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base
    gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa
    gstreamer1.0-libav
    epiphany-browser
    lxde lxtask menu-xdg gksu
    xserver-xorg-video-fbturbo
    xpdf gtk2-engines alsa-utils
    netsurf-gtk zenity
    desktop-base lxpolkit
    weston
    omxplayer
    raspberrypi-artwork
    lightdm gnome-themes-standard-data gnome-icon-theme
    qt50-snapshot qt50-quick-particle-examples
    "

    # Edu-related packages
    pkgs="$pkgs
    idle python3-pygame python-pygame python-tk
    idle3 python3-tk
    python3-rpi.gpio
    python-serial python3-serial
    python-picamera python3-picamera
    debian-reference-en dillo x2x
    scratch nuscratch
    raspberrypi-ui-mods
    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
    "

    # 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