Last active
May 13, 2020 09:44
-
-
Save ayxos/5747399fa5578aa0c0a821fb00899e16 to your computer and use it in GitHub Desktop.
If you use your Rpi as a server via ssh w/o UI, you can get additional space with the following commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/ | |
# Lite version | |
sudo raspi-config | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt install -y python3-pip libffi-dev hplip cups nginx nodejs samba vim htop | |
sudo usermod -a -G lpadmin pi | |
sudo /etc/init.d/nginx start | |
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh | |
sudo gpasswd -a $USER docker | |
sudo usermod -aG docker $USER | |
exit | |
# Install Docker Compose from pip (using Python3) | |
# This might take a while | |
sudo pip3 install docker-compose | |
# Clean Desktop version | |
# set LOCALE | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 | |
dpkg-reconfigure locales | |
# check space | |
sudo ncdu -x /mnt | |
# remove sonic-pi | |
sudo apt-get remove --purge sonic-pi* | |
# remove libreoffice | |
sudo apt-get remove --purge libreoffice* | |
# remove cache | |
sudo rm -rf ~/.cache | |
# remove wolfram | |
sudo apt-get remove --purge wolfram-engine* | |
# clean | |
sudo apt-get clean | |
sudo apt-get autoremove |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment