exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Barebone Basic OS needed

Fri Aug 08, 2014 3:33 pm

I use the Raspbian OS currently. It takes awhile for it to boot up and I don't even use the OS GUI at all. I'm looking for an image that doesn't have a gui and boots fast, without all that prebooting for the OS GUI. It should have a package manager still. Any options available?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5113
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Barebone Basic OS needed

Fri Aug 08, 2014 3:49 pm

The faster to boot and smaller you want your distro, the more knowledge you're required to have to get it going. People with the knowledge don't generally need to ask, so you'll have some learning to do.

You can hijack the boot proccess by modifying inittab and load whatever you want. You can use ArchLinux, which has very little pre-installed, but still takes more than a few seconds to boot. Then there are tools like buildroot, openembedded/yocto and aboriginal linux, which help you create your own distro to suit your needs, but require thaat you know what you're doing. Then there's Linux From Scratch, which is one of the best ways to get to the point where you know what you're doing.

User avatar
DougieLawson
Posts: 33003
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Barebone Basic OS needed

Fri Aug 08, 2014 3:51 pm

Don't forget about raspbian-ua-netinst which gets you a very minimal Raspbian system.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
RaTTuS
Posts: 9923
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Barebone Basic OS needed

Fri Aug 08, 2014 3:52 pm

how fast ?
what do you need ?
boot to cmd line in 30 secs
or faster?
look at build root
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5113
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Barebone Basic OS needed

Fri Aug 08, 2014 3:53 pm

Ah yeah, that's a good one. Another thing people do is extract just what they need from .deb files to build the system they need from the ground up, without having to compile anything. The raspbian-uanetinst is built that way (but actually installs raspbian by bootstrapping).

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Barebone Basic OS needed

Fri Aug 08, 2014 4:16 pm

This is what I use, its my adoption of an old idea - its been around since the dawn of the Pi, run a root bash shell (sudo bash) and point it at this saved in a file somewhere and made executable.

If you're a windows fiend you might want to keep samba in so just comment or remove that bit.

Code: Select all

#!/bin/bash
# Stephen's Raspberry Pi Mimimalist install from standard Raspdian Image
apt-get update
apt-get purge xserver* -y
apt-get purge ^x11 -y
apt-get purge ^libx -y
apt-get purge ^lx -y
apt-get purge samba* -y
apt-get autoremove -y
apt-get upgrade -y
apt-get clean
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Fri Aug 08, 2014 4:51 pm

Yea I don't know much about Linux. I just wanted the gui gone and loading of a few files automatically like the arduino. I will be using my pi for web api and hardware modules.

Heater
Posts: 9337
Joined: Tue Jul 17, 2012 3:02 pm

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:06 pm

By default Raspbian does not start any X Windows or desktop or GUI.

If yours does why not just use raspi-config to turn it off?

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:21 pm

I have it turned off. I was just hoping for a smaller and quicker loading.

plugwash
Forum Moderator
Forum Moderator
Posts: 3246
Joined: Wed Dec 28, 2011 11:45 pm

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:28 pm

Theres a tool called bootchart which will let you analyse what is taking up the time in the boot process. You can then start looking at what things you can live without.

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:50 pm

Ah thanks. Thats helpful.
So there is no recommendations to a current Image?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5113
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:57 pm

Sounds more and more like you're after Arch to me.

User avatar
patrikg
Posts: 168
Joined: Sun Mar 18, 2012 10:19 pm

Re: Barebone Basic OS needed

Fri Aug 08, 2014 5:58 pm

Why not search on internet and found.
Raspbian Wheezy armhf Raspberry Pi minimal image

http://www.linuxsystems.it/raspbian-whe ... mal-image/

Features include:

A minimal Raspbian Wheezy installation (similar to a netinstall)
Hard Float binaries: floating point operations are done in hardware instead of software emulation, that means higher performances
Disabled incremental updates, means apt-get update is much faster
Workaround for a kernel bug which hangs the Raspberry Pi under heavy network/disk loads
3.6.11+ hardfp kernel with latest raspberry pi patches
Latest version of the firmwares
Fits 1GB SD cards
A very tiny 118MB image: even with a 2GB SD there is a lot of free space
ssh starts by default
The clock is automatically updated using ntp
IPv6 support
Just 14MB of ram usage after the boot

User avatar
DougieLawson
Posts: 33003
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Barebone Basic OS needed

Fri Aug 08, 2014 6:05 pm

patrikg wrote: 3.6.11+ hardfp kernel with latest raspberry pi patches
That's a bit pre-historic. There's no way that one is going to run on a B+.

That's the benefit of raspbian-ua-netinst, it's using the current software repositories so less likely to go stale. V1.0.5 has been re-built to support the B+.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Barebone Basic OS needed

Fri Aug 08, 2014 6:23 pm

The script I posted earlier reduces the size of default Raspdian by 65%. It boots on a 256Mb Rev 1 Pi with an 8 GB Sandisk Class 4 in under 30 seconds. 2 minutes to setup and about 20 minutes to run. And its still Raspdian and updated to the latest version so it runs on the B+

The default apt is still there and still works.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Fri Aug 08, 2014 6:34 pm

I did search. I came here and asked because I would rather ask experienced and knowledgeable people instead of figuring out on my own and wasting time. And I get to learn from you guys.


patrikg wrote:Why not search on internet and found.
Raspbian Wheezy armhf Raspberry Pi minimal image

http://www.linuxsystems.it/raspbian-whe ... mal-image/

Features include:

A minimal Raspbian Wheezy installation (similar to a netinstall)
Hard Float binaries: floating point operations are done in hardware instead of software emulation, that means higher performances
Disabled incremental updates, means apt-get update is much faster
Workaround for a kernel bug which hangs the Raspberry Pi under heavy network/disk loads
3.6.11+ hardfp kernel with latest raspberry pi patches
Latest version of the firmwares
Fits 1GB SD cards
A very tiny 118MB image: even with a 2GB SD there is a lot of free space
ssh starts by default
The clock is automatically updated using ntp
IPv6 support
Just 14MB of ram usage after the boot

svrsig
Posts: 134
Joined: Thu Nov 03, 2011 9:45 am
Contact: Website

Re: Barebone Basic OS needed

Sat Aug 09, 2014 10:15 am

The RISC OS Pico image is supplied on a 128Mbyte SD card - cost £5 - and boots into BASIC very quickly. Only 7.8Mbytes are used leaving 120Mbytes free.

Hanzerik
Posts: 8
Joined: Wed Aug 06, 2014 1:10 am

Re: Barebone Basic OS needed

Mon Aug 11, 2014 12:02 am

If using NOOBs Lite, does it act similar to a regular Debian netinstall? All of my Debian systems have been installed via netinstall.

ETA: I'm looking for just a barebones OS to get a LAMP server up and running. Then move my home webserver off an old PII-366 Dell laptop over to the RPi.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5113
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Barebone Basic OS needed

Mon Aug 11, 2014 2:55 am

Hanzerik wrote:If using NOOBs Lite, does it act similar to a regular Debian netinstall? All of my Debian systems have been installed via netinstall.

ETA: I'm looking for just a barebones OS to get a LAMP server up and running. Then move my home webserver off an old PII-366 Dell laptop over to the RPi.
Nope, NOOBS will install a lot of extras. Look up raspbian uanetinst

Hanzerik
Posts: 8
Joined: Wed Aug 06, 2014 1:10 am

Re: Barebone Basic OS needed

Mon Aug 11, 2014 5:04 pm

ShiftPlusOne wrote:
Hanzerik wrote:If using NOOBs Lite, does it act similar to a regular Debian netinstall? All of my Debian systems have been installed via netinstall.

ETA: I'm looking for just a barebones OS to get a LAMP server up and running. Then move my home webserver off an old PII-366 Dell laptop over to the RPi.
Nope, NOOBS will install a lot of extras. Look up raspbian uanetinst
Thanks, will give it a try, looks to be what I'm looking for.

User avatar
solar3000
Posts: 1011
Joined: Sat May 18, 2013 12:14 am

Re: Barebone Basic OS needed

Tue Aug 12, 2014 3:27 pm

my vote goes to arch too.

busybox is tiny. my panasonic IP camera, dlink IP cam, linksys/coisco routers, all run busybox.
http://busybox.net/downloads/binaries/latest/
Antikythera

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Tue Aug 12, 2014 5:23 pm

archlinux ?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5113
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Barebone Basic OS needed

Tue Aug 12, 2014 5:28 pm

exzile wrote:archlinux ?
archlinux
http://archlinuxarm.org/
https://wiki.archlinux.org/index.php/Raspberry_Pi

https://wiki.archlinux.org/index.php/Main_page < Most useful site on the internet when it comes to learning all the linux-related thing.

exzile
Posts: 132
Joined: Sun Jul 20, 2014 5:33 am

Re: Barebone Basic OS needed

Tue Aug 12, 2014 6:47 pm

So conclusion has been made, Archlinux is the best for barebones on the raspberry pi?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Barebone Basic OS needed

Tue Aug 12, 2014 8:46 pm

exzile wrote:So conclusion has been made, Archlinux is the best for barebones on the raspberry pi?

Snarky answer: Right up until you find out that it doesn't have something that you need.

Longer answer: that's always the problem with "Bare Bones" - it will be missing something that you consider absolutely essential.

Personally, the other idea put forth in this thread - that of starting with the basic Raspbian build system (whose name escape me at the moment) and building up from there - seems a lot more appealing to me.

Supposedly, "Raspbian" is "optimized for the Pi, in a way that no other distro is.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Return to “General discussion”

Who is online

Users browsing this forum: jmmec and 32 guests