User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

NOOBS - auto start of Raspi-Config

Thu Jun 12, 2014 8:19 am

I`ve been setting up some systems which automatically configure everything on the SDCard, however I`ve now got to the point where "raspi-config" autostarting following an install isn`t needed.

Q1: Where does NOOBS kickstart raspi-config from? I can then stop it running if I need to.

Also, on a related note, the silentinstall option of NOOBS config... Is there a way to get it to silently install more than one OS (specifically I always want to install the "user data" partition but other OSs could be useful too).

Q2: Is it possible to run a silent install with Raspbian and a user data partition at the same time?

Would be great to finally be able to pop my sd-card in and everything is automatically setup each time.
(Obviously the whole will be documented and shared, all this is thanks to Kevin Hill`s NOOBS config)

Thanks
(I`ve tried looking for the answers so sorry if they are mentioned somewhere I've not seen)
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

User avatar
penguintutor
Posts: 376
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: NOOBS - auto start of Raspi-Config

Thu Jun 12, 2014 1:16 pm

For Q1:

There are two places that need to be changed to disable raspi-config

Remove the script from profile.d if it exists

rm -f /etc/profile.d/raspi-config.sh

Remove the entry from /etc/inittab that ends with RPICFG_TO_ENABLE

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: NOOBS - auto start of Raspi-Config

Mon Jun 16, 2014 1:05 pm

penguintutor wrote:For Q1:

There are two places that need to be changed to disable raspi-config

Remove the script from profile.d if it exists

rm -f /etc/profile.d/raspi-config.sh

Remove the entry from /etc/inittab that ends with RPICFG_TO_ENABLE
Many thanks, I'll be sure to try this out!

Tim.
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: NOOBS - auto start of Raspi-Config

Mon Jun 23, 2014 6:13 pm

meltwater wrote:Q2: Is it possible to run a silent install with Raspbian and a user data partition at the same time?
Not at the moment, but feel free to open an issue asking for it https://github.com/raspberrypi/noobs

You may also want to have a look at https://github.com/procount/noobsconfig (unless that's what you're already referring to?)

And there's obviously also https://github.com/raspberrypi/noobs#ho ... os-version

And as long as the SD cards are identical sizes, you can also backup/clone NOOBS SD cards as usual with dd.

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: NOOBS - auto start of Raspi-Config

Tue Jun 24, 2014 4:07 pm

Yep, I think the automatic user partition is worth asking for, it is a good idea to have it so makes sense it can be deployed automatically if wanted.

Yes, using noobsconfig, getting excellent results from it and testing to see how far I can push it. Procount has been very helpful.

I've been using the flavours functionality combined with noobsconfig, makes a very powerful combination. Noobsconfig has the advantage that all the files can be stored on the card and reconfigured without repackaging or dealing with user permissions etc. within windows etc.
By using flavours, it means you have a master card with a range of setups all ready to be deployed, something which is useful for workshops, class rooms, home use or generally.

I'm wondering if the user data partition could be applied through a flavour config perhaps (it is outside noobsconfig's remit), I've not ventured through that route yet. I've not seen if flavours can specify additional partitions or not.


---------
I've gone through the troubles of image backups (have a catalogue of the things now lol), which has led me to the route of being able to regenerate a card which is ready to roll. I'm pretty much there (and in time to pick up an updated NOOBS install to prove its value).
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: NOOBS - auto start of Raspi-Config

Tue Jun 24, 2014 4:45 pm

meltwater wrote:I'm wondering if the user data partition could be applied through a flavour config perhaps (it is outside noobsconfig's remit), I've not ventured through that route yet. I've not seen if flavours can specify additional partitions or not.
Nope, only way to specify extra partitions is by copying their tarball to the same folder as the OS (i.e. you'd need to copy os/data_partition/data.tar.xz to os/Raspbian/data.tar.xz), editing os/Raspbian/partitions.json to add the new data partition, and then optionally editing os/Raspbian/partition_setup.sh to automatically add the new $part3 to /etc/fstab.
At least that's the theory, I haven't tried it myself ;)

The flavours.json can currently only specify the name and description fields - it's then up to the OS to do any relevant customisation based on the values set in /boot/os_config.json at the first bootup.

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: NOOBS - auto start of Raspi-Config

Fri Jan 02, 2015 9:06 am

Hi,

I've been trying to get No-raspi-config to work correctly (http://pihw.wordpress.com/guides/pi-kit ... spiconfig/) and I thought I had working (it worked fine in a remote terminal).

However when running locally (i.e. connected to a HDMI screen) I get the following messages when I run things:
Error Opening Terminal: Unknown

Or:
tput: No value for $TERM and no -T specified


This indicated that TERM is not set in the env, and it is fixed when I set that from the command line or in a startup script:
TERM=xterm

Q: Where is TERM normally set? That way I can ensure that is set in the correct place and I've not replaced anything I shouldn't have.

Thanks in advance.
Tim.
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

Return to “Advanced users”