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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
s.senft
Ronin
Ronin
Posts: 3
Joined: 23 Jan 2017, 14:43
Distribution: Porteus Desktop Xfce
Location: Germany

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

Post#1 by s.senft » 23 Jan 2017, 15:37

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
Last edited by s.senft on 25 Jan 2017, 12:45, edited 1 time in total.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1433
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Can I build my own customized Porteus-LiveCD

Post#2 by Blaze » 23 Jan 2017, 16:00

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
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 891
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Can I build my own customized Porteus-LiveCD

Post#3 by ncmprhnsbl » 23 Jan 2017, 23:52

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..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

s.senft
Ronin
Ronin
Posts: 3
Joined: 23 Jan 2017, 14:43
Distribution: Porteus Desktop Xfce
Location: Germany

Re: Can I build my own customized Porteus-LiveCD

Post#4 by s.senft » 24 Jan 2017, 07:51

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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 891
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Can I build my own customized Porteus-LiveCD

Post#5 by ncmprhnsbl » 24 Jan 2017, 09:44

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/)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

s.senft
Ronin
Ronin
Posts: 3
Joined: 23 Jan 2017, 14:43
Distribution: Porteus Desktop Xfce
Location: Germany

Re: Can I build my own customized Porteus-LiveCD

Post#6 by s.senft » 25 Jan 2017, 08:07

Thanks a lot,

that helped me, so I could finish the customization.

Where's the 'solved'-Button?

Greets
Stefan

Bogomips
Full of knowledge
Full of knowledge
Posts: 2562
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Can I build my own customized Porteus-LiveCD

Post#7 by Bogomips » 25 Jan 2017, 11:42

Just edit Subject of first Post to be preceded by [Solved]. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Evan
Warlord
Warlord
Posts: 519
Joined: 11 Apr 2016, 09:00
Distribution: Anything Cinnamon
Location: London

Re: Can I build my own customized Porteus-LiveCD

Post#8 by Evan » 04 Mar 2017, 13:58

ncmprhnsbl wrote: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..
I never knew this , Porteus is a gift that keeps on giving.

Post Reply