Slim down Raspbian?


15 posts
by darrylb » Sat Jan 05, 2013 5:31 pm
Has anyone tried to slim down Raspbian? I am ultimately looking to minimize Raspbian to simply be X+OpenBox+IceWeasel+OpenJDK. That's it.

Any direction or thoughts in how I could do this, would be appreciated.

Thanks.
Posts: 12
Joined: Wed Jan 02, 2013 6:29 pm
by SirLagz » Sun Jan 06, 2013 2:40 pm
I have a 'stripped' version of Raspbian available called Raspbian Server Edition
I've stripped out as much as I could while retaining functionality for a server, but you could use that as a starting point and just install X / Openbox / Iceweasel / OpenJDK ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by surefyre » Sun Jan 06, 2013 3:07 pm
I'm currently stripping down Raspbian to reduce the Pi-Point (Wifi Access Point project) SD card image size - it's a slow old process :o/

Would be nice to have a totally bare Raspbian with apt and SSHD so you add add what you want to it. I'll be posting this stripped image shortly at www.pi-point.co.uk in case it's any use for you to build what you need on top of.
Posts: 4
Joined: Sun Dec 23, 2012 7:53 pm
by SirLagz » Sun Jan 06, 2013 4:08 pm
surefyre wrote:I'm currently stripping down Raspbian to reduce the Pi-Point (Wifi Access Point project) SD card image size - it's a slow old process :o/

Would be nice to have a totally bare Raspbian with apt and SSHD so you add add what you want to it. I'll be posting this stripped image shortly at http://www.pi-point.co.uk in case it's any use for you to build what you need on top of.


I tried starting from scratch with debootstrap but found it was easier to just strip down Raspbian.
If you would like to use the package list of what I've stripped out of Raspbian, feel free :)
There's still a lot that can be stripped out of Raspbian Server Edition but I wanted to keep it fairly functional as standard. I might make a further stripped version soon though.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by milhouse » Sun Jan 06, 2013 4:24 pm
surefyre wrote:I'll be posting this stripped image shortly at http://www.pi-point.co.uk in case it's any use for you to build what you need on top of.


Rather than post a stripped image, wouldn't it be easier to post a script that converts the standard Raspbian into a "stripped" image, and then installs whatever binaries (hopefully from standard repositories) are required to turn the stripped OS into an access point, or web server or whatever?
Posts: 555
Joined: Mon Jan 16, 2012 12:59 pm
by darrylb » Mon Jan 07, 2013 2:44 am
SirLagz: Is there any possibility in me getting a copy of that image you built? or instructions on how I can go about building it similarly?

Thanks!
Posts: 12
Joined: Wed Jan 02, 2013 6:29 pm
by SirLagz » Mon Jan 07, 2013 3:23 pm
darrylb wrote:SirLagz: Is there any possibility in me getting a copy of that image you built? or instructions on how I can go about building it similarly?

Thanks!


Right here --> http://sirlagz.net/2012/12/31/raspbian- ... rsion-2-2/
There's a link to a script there which is pretty much what I used to build RSE.
It's just a list of packages that my script then strips out of RSE.

Edit -
Also, just found this while digging through the forums
http://blog.kmp.or.at/2012/05/build-you ... -pi-image/
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by darrylb » Mon Jan 07, 2013 3:54 pm
Out of curiosity, have you benchmarked resource utilization before and after removal of those packages?

If not, I most likely will be... :)
Posts: 12
Joined: Wed Jan 02, 2013 6:29 pm
by SirLagz » Mon Jan 07, 2013 3:58 pm
No I didn't.
I never thought to haha, if you do it, would be great to see the results !
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by hayesey » Mon Jan 07, 2013 4:04 pm
what's wrong with just using the raspbian installer on the raspbian website to build your own stripped down image? This is what I've done, it just has ssh running and nothing else (aside from the base OS of course).

That's way easier than installing the full raspbian official image and then trying to remove all the extra packages you don't need.
User avatar
Posts: 76
Joined: Mon Nov 28, 2011 12:46 pm
Location: Manchester, England
by SirLagz » Mon Jan 07, 2013 4:11 pm
hayesey wrote:what's wrong with just using the raspbian installer on the raspbian website to build your own stripped down image? This is what I've done, it just has ssh running and nothing else (aside from the base OS of course).

That's way easier than installing the full raspbian official image and then trying to remove all the extra packages you don't need.


Time.
It's a lot faster to write an image and then strip the packages than downloading individual packages and installing them via the installer, at least for me anyway.
I did the installer once, and that one time was enough for me haha
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by poing » Mon Jan 07, 2013 4:42 pm
Forgive my ignorance, but what is the benefit of a 'slimmed down' Raspbian except for SD card space of which I have plenty?
Posts: 1097
Joined: Thu Mar 08, 2012 3:32 pm
by hayesey » Mon Jan 07, 2013 5:12 pm
SirLagz wrote:Time.
It's a lot faster to write an image and then strip the packages than downloading individual packages and installing them via the installer, at least for me anyway.
I did the installer once, and that one time was enough for me haha


so is there a list of everything that is installed to the raspbian normal image above a base Debian install?

The main reason for doing this other than saving SD card space (although that should be enough of a reason on it's own), is security. It's not safe to have services and applications installed that you don't know about and don't need. You could argue that it doesn't matter on a computer you are just using to play about with but my argument would be that getting into bad habits is never a good idea.
User avatar
Posts: 76
Joined: Mon Nov 28, 2011 12:46 pm
Location: Manchester, England
by SirLagz » Tue Jan 08, 2013 2:15 pm
poing wrote:Forgive my ignorance, but what is the benefit of a 'slimmed down' Raspbian except for SD card space of which I have plenty?


Not everyone has huge SD cards.
I'm working off a 2gig SD card for one of my installations, and the default raspbian install pretty much fills that SD card up.

hayesey wrote:so is there a list of everything that is installed to the raspbian normal image above a base Debian install?


Not that I know of, though it wouldn't be too hard to get the list. If you want, I can get you the list ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by mihol » Wed Jan 16, 2013 7:34 pm
another approach might be to use the new TinyCore (TC) distribution for RaspberryPi.
It seems under active deveolpment according to their forum and many posts in thread http://forum.tinycorelinux.net/index.php/topic,14130.30.html

Regards Mike
Posts: 13
Joined: Wed May 09, 2012 6:55 pm
Location: Germany