Removing X From a Raspberry Pi For Fun And More HD Space
As I usually run my Pis as headless devices, @MacLemon* gave me the tip to remove everything X to get me a couple of Megs of additional free harddisk space on my Raspberry Pi.
To achive this, just run (at your own risk):
sudo apt-get --yes purge xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf desktop-file-utils
sudo apt-get --yes autoremove
sudo apt-get --yes autoclean
sudo apt-get --yes clean
(you can grab yourself a Club-Mate while this runs)
pi@raspberrypi:~$ df -H Filesystem Size Used Avail Use% Mounted on rootfs 1.9G 1.5G 258M 86% / /dev/root 1.9G 1.5G 258M 86% / devtmpfs 222M 0 222M 0% /dev tmpfs 46M 226k 46M 1% /run tmpfs 5.3M 0 5.3M 0% /run/lock tmpfs 92M 0 92M 0% /run/shm /dev/mmcblk0p1 59M 20M 40M 34% /bootAfter:
pi@raspberrypi ~ $ df -H Filesystem Size Used Avail Use% Mounted on rootfs 1.9G 1.1G 677M 62% / /dev/root 1.9G 1.1G 677M 62% / devtmpfs 222M 0 222M 0% /dev tmpfs 46M 226k 46M 1% /run tmpfs 5.3M 0 5.3M 0% /run/lock tmpfs 92M 0 92M 0% /run/shm /dev/mmcblk0p1 59M 20M 40M 34% /boot
Not bad. :D
YMMV of course. For example, you may want to keep „alsa*” in case you want to make some noise with the Raspberry Pi.
* Original idea and input by Albert.
Tagged as: howto, raspberrypoi, raspbian, tip | Author: Martin Leyrer
[Freitag, 20130301, 21:18 | permanent link | 0 Kommentar(e)
Comments are closed for this story.