Page 1 of 1

[Solved] Can I build my own customized Porteus-LiveCD

Posted: 23 Jan 2017, 15:37
by s.senft
Hi,

I need a very simple LiveSystem (that can't be altered by any user) for pupils to write text in exams for example with the program 'mousepad'.

I installed Porteus Desktop 32bit i586 on a Laptop an customized it. I uninstalled a lot of programs, changed localisation etc.
Now I would like to save this customized installation to a LiveCD or even better make a "LiveHarddisk" that can't be altered by any user.

Is it possible to create such a customized LiveMedia?

Thx
Stefan

Re: Can I build my own customized Porteus-LiveCD

Posted: 23 Jan 2017, 16:00
by Blaze
Yep, in terminal run these commands

Code: Select all

su
toor
save-changes /mnt/path-to/09-name-of-module-with-changes.xzm
cp /mnt/path-to/09-name-of-module-with-changes.xzm /mnt/path-to/porteus/base
and use 'Always Fresh mode' at boot up of Porteus.

Cheers

Re: Can I build my own customized Porteus-LiveCD

Posted: 23 Jan 2017, 23:52
by ncmprhnsbl
not sure Blaze addresses your question exactly:
s.senft wrote: save this customized installation to a LiveCD
have a look in the /porteus directory of your installation, there you will see a script called make_iso.sh that makes an iso image of the current directory..
then it's just a matter of burning the resulting image to disk..
alternatively, there is, in the multimedia directory, isomaster , if you want a nice gui...
tho in this case it might be best to open a fresh porteus iso and do your customisations to it..

Re: Can I build my own customized Porteus-LiveCD

Posted: 24 Jan 2017, 07:51
by s.senft
Hi Blaze,
Blaze wrote: save-changes /mnt/path-to/09-name-of-module-with-changes.xzm
cp /mnt/path-to/09-name-of-module-with-changes.xzm /mnt/path-to/porteus/base
That helped a bit.

1. Programms
But I have to get rid of a lot of Programms, that are not allowed to use in an exam. So I uninstalled the slackare-Package using USM in my Porteus-Installation. But when I create a bootable USB with Proteus Intaller, all programms are back in again. I guess, that 'save-changes' doesn't save all the changes I made. Is there a way to customize the installed programms?
Or an alternative may also be to backup the whole manually customized installation (as with 'Systemback' or ' Remastersys' for Ubuntu).
https://www.unixmen.com/systemback-rest ... ous-state/

2. Language.
Language was also not german, as I configured before. But I guess, I can fix that by copying 'de-xfce4_locales.xzm' to '/mnt/path-to/porteus/base'

Hi ncmprhnsbl,
Thanks, I already succesfully tried 'make_ios.sh'. It works to make an iso.
Customisation is the point, where I'm stuck.

Thx

Re: Can I build my own customized Porteus-LiveCD

Posted: 24 Jan 2017, 09:44
by ncmprhnsbl
s.senft wrote:Is there a way to customize the installed programms?
the way i do it, is to extract the the relevent base module(s) and use removepkg/installpkg
eg.

Code: Select all

xzm2dir 003-xfce4.xzm xfce-remaster
ROOT=/path/to/xfce-remaster removepkg foo foo2 foo3
to add packages: (from the directory where the packages are)

Code: Select all

ROOT=/path/to/xfce-remaster installpkg *.t?z
before recompressing, you can tweak configs and such..
then

Code: Select all

dir2xzm xfce-remaster 003-custom.xzm
to find which module contains the package you want to remove check /var/log/packages of each module(extracted or in live system:/mnt/live/memory/images/)

Re: Can I build my own customized Porteus-LiveCD

Posted: 25 Jan 2017, 08:07
by s.senft
Thanks a lot,

that helped me, so I could finish the customization.

Where's the 'solved'-Button?

Greets
Stefan

Re: Can I build my own customized Porteus-LiveCD

Posted: 25 Jan 2017, 11:42
by Bogomips
Just edit Subject of first Post to be preceded by [Solved]. :)