18

I like Raspbian for simplicity. It runs, but still I don't like the following:

  • It comes with a GUI -- I want to install my own window manager (if I want)
  • It comes with programs like Mathematica, Wolfram, Sonic Pi, etc.

I don't want these, especially when my microSD size is precious.

Is there another distribution that offers the same functionality (especially in terms of drivers), but doesn't include such visual tools? I'm just happy with a command-line access.

Also, I would be interested how to uninstall these packages. I have Raspberry PI 2 Model B.

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
Ionică Bizău
  • 723
  • 3
  • 13
  • 33

8 Answers8

17

You could start with deleting the X packages:

sudo apt-get -y remove cups*
sudo apt-get -y remove gnome*
sudo apt-get -y remove x11-common*
sudo apt-get -y autoremove

I use the above for our 4 GB cards, and for us it works fine. It frees up (811 + 13.7 + 201 + 317 MB =) 1.343 GB. However, be careful as for your exact needs; it might as well delete too many packages. Try deleting fewer packages at once and check every time whether your applications still run or not.

IMHO, it's a good start however.

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
EDP
  • 1,691
  • 1
  • 14
  • 24
7

You could build your own image of Raspbian.

or, maybe simpler, install it stock and then remove the tools you don't need.

To disable the GUI (I did this to free up compute power on my B+ model)

sudo raspi-config

Start X-server after boot? --> disable

sudo apt-get purge wolfram-engine
Havnar
  • 1,617
  • 2
  • 16
  • 34
7

Arch Linux is pretty minimal out of the box. I tried Arch for the first time on a Raspberry Pi after using Debian-based systems for years and and I'm very happy with it. Here are instructions for a RPi and instructions for a RPi 2. After following these instructions the base install is about 550MB.

Wiring in to a network works out of the box and getting on wifi is pretty easy using netctl.

There are differences to consider like its package manager, pacman, and its init system, systemd, but well worth the learning curve.

I'm not sure what drivers you're specifically after but I haven't had much trouble getting software to run. For example, accessing GPIO via Python is a package install away.

Hope this helps.

berto
  • 1,251
  • 1
  • 9
  • 12
4

How about using a minibian ? It is a stripped down version of raspbian.

I've used it before. Image size is about 450 MiB and it very well fits in a 2 Gigs SD card. You can always install extra utilities as you need.

Here is the link.

Hope it helps.

dhruvvyas90
  • 2,883
  • 3
  • 21
  • 33
3

It depends on what version of Raspberry Pi you have. If you have Raspberry Pi 2 then you could have a look at Windows 10 (core or IoT, I forgot its nickname). It comes only with a core functionality, no desktop manager (so I suppose you have some sort of DOS-looking console system). I think that from official repository Snappy Ubuntu is the smallest.

Piotr Kamoda
  • 391
  • 2
  • 8
1

You can try this solution Raspbian Server Edition. This link is a bit old, but you will find even a script to create your own Raspbian derivative at your needs.

TuxmAL
  • 21
  • 3
1

I needed to do the same thing a few month ago, so in addition to all the great answers, here are some of the guides I used tips from.

I've used Disk Usage Analyzer first, removed some of the files but then followed these guide for more specific files I was unsure about removing(without messing the OS up too much)

Disk Usage Analyzer

  1. Raspberry Pi – Clean & Purge unused locales and orphans
  2. How do I remove Java in Debian ?
  3. RPi Tuning: boost your RPi!
George Profenza
  • 651
  • 5
  • 10
  • 25
1

Checkout the official nightly headless images

DATE-raspbian-wheezy-1-noX.zip [...] does not have any X11/GUI packages or customizations installed

After flashing, I installed rpi-update using apt-get and that's it.