fergusondavid6
Posts: 58
Joined: Sun Apr 21, 2013 3:36 pm

How does NOOBS flavours work?

Tue Feb 24, 2015 7:42 pm

Hi,

I would like to create my own custom flavour of Raspbian using NOOBS, but I am unable to work out how to do it, and there seems to be very limited documentation on it. I basically want to execute a .sh file after installation.

Can someone please explain how I can do this?

Thanks

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

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 7:45 pm

Read the code and docs at http://github.com/raspberrypi/noobs
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

DirkS
Posts: 10013
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 7:49 pm

https://github.com/raspberrypi/noobs#ho ... os-version explains how you can put your own version in Noobs

fergusondavid6
Posts: 58
Joined: Sun Apr 21, 2013 3:36 pm

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 7:56 pm

Sorry, I should have been clearer.

I know how to create my own custom os to use in NOOBS, but I am unsure how to create a flavor (like the boot to scratch option).

Thanks

DirkS
Posts: 10013
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 7:58 pm

fergusondavid6 wrote:Sorry, I should have been clearer.

I know how to create my own custom os to use in NOOBS, but I am unsure how to create a flavor (like the boot to scratch option).

Thanks
Install it, make your changes, make an image, write it to Noobs as described on the docs?

fergusondavid6
Posts: 58
Joined: Sun Apr 21, 2013 3:36 pm

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 8:02 pm

No, I mean a custom flavor - like how there is standard Raspbian, and also Rasobian boot to Scratch, but there is only one operation system in the os folder. I take it to mean that there must be a way of customising the raspbian os after it has been installed, but am unsure on how to do this for myself.

Really the only mention of flavours in the docs is how to automatically install:
If the OS you want to automatically install has multiple flavours available, edit the flavours.json file so that it only contains the flavour entry that you want to install.
How do I create my own flavour that runs a scrips (say setup.sh) when the install has completed?

Thanks, and sorry for the confusion.

DirkS
Posts: 10013
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 8:06 pm

The method I describe does exactly what you want.
Take an installed Raspbian (whatever the source) with the settings exactly as you want them.
Add that image to Noobs. (or replace the existing Raspbian 'flavour')
Done.

fergusondavid6
Posts: 58
Joined: Sun Apr 21, 2013 3:36 pm

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 8:08 pm

I realise that, but I am simply curious to know how flavours work. (And know how I can have a single image but multiple customization options in NOOBS).

DirkS
Posts: 10013
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How does NOOBS flavours work?

Tue Feb 24, 2015 8:16 pm

fergusondavid6 wrote:I realise that, but I am simply curious to know how flavours work. (And know how I can have a single image but multiple customization options in NOOBS).
So what you want is not a customised Raspbian, but a customisable Raspian and you want to control options from Noobs?
For that you will have to modify Noobs itself (source is available).

You could also write a script. See the source of raspi-config (it's just a normal shell script) for an example of how to do that.

User avatar
procount
Posts: 1834
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: How does NOOBS flavours work?

Wed Feb 25, 2015 7:00 am

Have a look at https://github.com/procount/noobsconfig where I use flavours extensively to customise an os installation. Should be just what you want. Or look at http://pihardware.com/pi-kitchen which takes noobsconfig to another level.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Return to “Advanced users”