[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to convert a Debian installation to a Debian Edu installation



Hi Petter,

is there any reason to not include a script like this in some debian-edu
package - as long as it is untested in /usr/share/doc/<pkg>/examples to
enable people trying carefully first?

Kind regards

     Andreas.

On Wed, May 08, 2013 at 12:18:24PM +0200, Petter Reinholdtsen wrote:
> 
> The student in Trondheim working with Marius to test Skolelinux on
> Rasberry Pi, asked me how I would transform a pre-installed Debian based
> machine to a Skolelinux machine.  I wrote this script/recipe, that I
> hope other can find useful.  It is untested so far.
> 
> The only missing parts in this recipe is related to partitioning, and
> that is too late to do anything about when the machine is already
> installed, so I just assume there is enough disk space everywhere. :)
> 
> ========================================================================
> #!/bin/sh
> # Fake a Skolelinux installation by running these commands as root.
> 
> # 0. Install etckeeper, to keep track of changes in /etc/ (optional,
> #    highly recommended)
> apt-get install -y etckeeper
> 
> # 1. Add skolelinux related APT sources.
> cat <<EOF >/etc/apt/sources.list.d/skolelinux
> deb http://ftp.skolelinux.org/skolelinux wheezy-test local
> deb-src http://ftp.skolelinux.org/skolelinux wheezy-test local
> EOF
> 
> # 2. Create /etc/debian-edu/config, for example like this:
> cat <<EOF > /etc/debian-edu/config
> # Any version string will do, just copy the latest one from an existing
> # installation.
> VERSION="7.0.0+edua0"
> # Or any other profile you want to install
> PROFILE="Workstation"
> # Language selectoins
> LANGCODE="nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en"
> LOCALE="nb_NO.UTF-8"
> # Should the test suite run after first boot or not?
> TESTINSTALL="true"
> EOF
> 
> # 3. Install debian-edu-install to load preseeding values and pull in
> #    our configuration..
> apt-get install -y debian-edu-install
> 
> # 4. Run tasksel to install packages according to the profile specified
> #    in the config above
> # FIXME should divert /usr/lib/tasksel/tests/desktop and new-install
> # during the tasksel run to avoid having to manually deselect a few
> # options.
> tasksel --new-install
> 
> # 5. Run cfengine to configure everything that could not be done using
> #    preseeding.
> cfengine-debian-edu -D installation
> 
> # 6. Reboot
> shutdown -r now
> ========================================================================
> 
> Please let me know if it work for you, or if you have improvements?
> 
> -- 
> Happy hacking
> Petter Reinholdtsen
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-edu-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 2flip2tepvz.fsf@diskless.uio.no">http://lists.debian.org/[🔎] 2flip2tepvz.fsf@diskless.uio.no
> 
> 

-- 
http://fam-tille.de


Reply to: