[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.

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

Postby s.senft » 23 Jan 2017, 16: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, 13:45, edited 1 time in total.
s.senft
Ronin
Ronin
 
Posts: 3
Joined: 23 Jan 2017, 15:43
Location: Germany
Distribution: Porteus Desktop Xfce

Re: Can I build my own customized Porteus-LiveCD

Postby Blaze » 23 Jan 2017, 17: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.11.2-porteus #1 SMP PREEMPT Sat May 20 19:06:02 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
Blaze
Warlord
Warlord
 
Posts: 1169
Joined: 28 Dec 2010, 12:31
Location: ☭ Russian Federation, Lipetsk region, Dankov
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64

Re: Can I build my own customized Porteus-LiveCD

Postby ncmprhnsbl » 24 Jan 2017, 00: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
User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
 
Posts: 685
Joined: 20 Mar 2012, 04:42
Location: australia
Distribution: 3.2.2-64bit xfce/openbox

Re: Can I build my own customized Porteus-LiveCD

Postby s.senft » 24 Jan 2017, 08: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-restore-linux-system-previous-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
s.senft
Ronin
Ronin
 
Posts: 3
Joined: 23 Jan 2017, 15:43
Location: Germany
Distribution: Porteus Desktop Xfce

Re: Can I build my own customized Porteus-LiveCD

Postby ncmprhnsbl » 24 Jan 2017, 10: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
User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
 
Posts: 685
Joined: 20 Mar 2012, 04:42
Location: australia
Distribution: 3.2.2-64bit xfce/openbox

Re: Can I build my own customized Porteus-LiveCD

Postby s.senft » 25 Jan 2017, 09:07

Thanks a lot,

that helped me, so I could finish the customization.

Where's the 'solved'-Button?

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

Re: Can I build my own customized Porteus-LiveCD

Postby Bogomips » 25 Jan 2017, 12: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2291
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Can I build my own customized Porteus-LiveCD

Postby Evan » 04 Mar 2017, 14: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.
Evan
Shogun
Shogun
 
Posts: 409
Joined: 11 Apr 2016, 10:00
Location: London
Distribution: Anything Cinnamon


Return to Newbie questions



Who is online

Users browsing this forum: yandex.ru and 2 guests