Creating a Custom ISO ?
-
- White ninja
- Posts: 5
- Joined: 26 Jan 2024, 00:44
- Distribution: Debian
Creating a Custom ISO ?
Hey,
I am new to Porteus and have a couple of questions for the following use case:
I would like to use Porteus with the XFCE desktop in RAM-only mode as a non-root user booted from a CD or DVD in UEFI mode with the following customizations:
- changed root and guest passwords
- additional non-root user
- no auto-login on boot -> choose account and type pasword
- latest Firefox and Chrome (or Vivaldi) installed
- Firewall enabled and configured
- A graphical network manager to create and edit VPN connections
So the basic idea is to make the required changes and customizations, create a custom iso with these changes and burn it to a new CD / DVD so that I can boot into the exact same, custom version every time.
I find the documentation a bit hard to navigate.
Could you please guide me how to implement this?
Thank you!
I am new to Porteus and have a couple of questions for the following use case:
I would like to use Porteus with the XFCE desktop in RAM-only mode as a non-root user booted from a CD or DVD in UEFI mode with the following customizations:
- changed root and guest passwords
- additional non-root user
- no auto-login on boot -> choose account and type pasword
- latest Firefox and Chrome (or Vivaldi) installed
- Firewall enabled and configured
- A graphical network manager to create and edit VPN connections
So the basic idea is to make the required changes and customizations, create a custom iso with these changes and burn it to a new CD / DVD so that I can boot into the exact same, custom version every time.
I find the documentation a bit hard to navigate.
Could you please guide me how to implement this?
Thank you!
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Creating a Custom ISO ?
Well, to start with a XFCE desktop I would find a convenient Porteus mirror: http://porteus.org/porteus-mirrors.html and download the XFCE ISO in the /porteus/x86_64/Porteus-v5.01/ folder. Like the one is this mirror: http://mirrors.dotsrc.org/porteus/x86_64/Porteus-v5.01/PotatoHead wrote: ↑26 Jan 2024, 01:11I would like to use Porteus with the XFCE desktop in RAM-only mode as a non-root user booted from a CD or DVD in UEFI mode with the following customizations:
I would then format a medium size USB drive as FAT32 and copy all the folders and files in the ISO to the drive and then run the appropriate Porteus-installer app on the USB drive's /boot folder. This will allow you to boot Porteus on BIOS and EFI machines.
Do note on EFI systems you will need to disable the system's Secure Boot option.
To add a browser to the USB system download one from the mirror's /porteus/x86_64/Porteus-v5.01/modules folder and copy it to the USB's /porteus/modules folder.
To ensure you have the most current system updates download from one of the mirrors' /porteus/x86_64/Porteus-v5.01/updates/core/202321228 folder the 001- and 2 002- files plus the 003-XFCE xzm files and copy them to the USB drive's /porteus/base folder replacing the files there.
At this point you have a bootable non-changable Porteus system and time to take a break, have something to drink and review the cheatcodes.txt file in the USB drive's /boot/docs folder. Do not make an ISO file of the USB drive just yet.
You can not save system changes on a FAT32 drive, Porteus doesn't support it. Some people create a 2nd partition on their Porteus drive and have changes written to it. I've never done that but it is a common approach. The approach I use is to create a Savefile on the USB drive. You do that with the Porteus menu's Administration's Porteus Savefile Manager app. My savefile is 512MB and is 48% full. If you think you will need a bigger one feel free to create a larger one. I don't save movies or music to my Porteus system. Once you create the savefile file, usually referred to as save.date, you need to add a cheatcode to the boot menu to reference the file and it's location, usually the /porteus/changes folder and then reboot to be able to save changes.
It's late for me and at this point I'm going to bed. Things to read in the cheatcodes.txt file should include changes=EXIT and UUID plus the things you want to do with the system.
Added in 10 hours 17 minutes 6 seconds:
'mornin PotatoHead.
So, have you created you save.dat file? If so at this point making a backup of the USB system would be a good idea.
As for these items"
The 1st two you should be able to do. The 3rd one I can't help you with. The next one we've covered and the 2 are included with Porteus.PotatoHead wrote: ↑26 Jan 2024, 01:11following customizations:
- changed root and guest passwords
- additional non-root user
- no auto-login on boot -> choose account and type pasword
- latest Firefox and Chrome (or Vivaldi) installed
- Firewall enabled and configured
- A graphical network manager to create and edit VPN connections
For this I suggest this approach for you. Once you've made your changes and have them saved in the save.dat file reboot and run this script:PotatoHead wrote: ↑26 Jan 2024, 01:11so that I can boot into the exact same, custom version every time.
Code: Select all
#!/bin/sh
Changes=/porteus/changes
Modules=/porteus/modules
Savedat=mychanges.dat
echo "Please wait, copying in progress."
cp $Changes/$Savedat $Modules/$Savedat.xzm
ls $Modules
echo "$Savedat copied"
sleep 8
exit
Code: Select all
chmod +X /home/guest/savedat2xzm.sh
Ed
-
- Black ninja
- Posts: 43
- Joined: 03 Feb 2020, 18:51
- Distribution: Porteus XFCE v5.0rc2 x86_64
- Location: Poland
Creating a Custom ISO ?
Try to comment or delete autologin property in /etc/lxdm/lxdm.conf (by default it looks like here):
Code: Select all
[base]
## uncomment and set autologin username to enable autologin
autologin=guest
It depends what VPN you mean, in case of:PotatoHead wrote: ↑26 Jan 2024, 01:11- A graphical network manager to create and edit VPN connections
* OpenVPN, it is installed by default, you have to add NetworkManager-openvpn package
* Wireguard, it looks like you can add Wireguard connection, but this program itself is not installed, add wireguard-tools package
There are other networkmanager plugins (install one you need + dependencies if required).
-
- White ninja
- Posts: 5
- Joined: 26 Jan 2024, 00:44
- Distribution: Debian
Creating a Custom ISO ?
Thank you so much @Ed_P and @i3slkiller for your detailed responses.
It's really difficult to access this forum. I think the security threshold might be set a bit too restrictive...
Let me try this and I will report back if I encounter any problems.
Just another clarification question:
Is the initial USB pendrive installation mandatory?
Would it be possible to simply burn the default Porteus iso image to a CD, create the required customizations in RAM, create a new iso with all customizations and burn it to a new CD ?
It's really difficult to access this forum. I think the security threshold might be set a bit too restrictive...
Let me try this and I will report back if I encounter any problems.
Just another clarification question:
Is the initial USB pendrive installation mandatory?
Would it be possible to simply burn the default Porteus iso image to a CD, create the required customizations in RAM, create a new iso with all customizations and burn it to a new CD ?
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Creating a Custom ISO ?
Tell me about it. The admins need to work on it.PotatoHead wrote: ↑26 Jan 2024, 23:27It's really difficult to access this forum. I think the security threshold might be set a bit too restrictive...
No, but it is very useful. AT the end I was going to recommend that you use it instead of your CD/DVD goal. Few pcs have CD/DVD readers these days but they all have USB ports. So if you want to use your Porteus system on many machines you will do better with a USB device. USB drives are easier to update then CD/DVD discs and a 32GB drive is only $5 at Walmart here.PotatoHead wrote: ↑26 Jan 2024, 23:27Just another clarification question:
Is the initial USB pendrive installation mandatory?
I've never done it so I don't know. But anything is possible if you set your mind to it.PotatoHead wrote: ↑26 Jan 2024, 23:27Would it be possible to simply burn the default Porteus iso image to a CD, create the required customizations in RAM, create a new iso with all customizations and burn it to a new CD ?
As for the Porteus boot menu, the change I made to mine was to tweak the top menu to save save.dat changes, make a copy of it, post it under the top menu and tweak it to not save changes.
Code: Select all
LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=EXIT:UUID:C23A-6012/changes/50save.dat "
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum allowed
resolution. If booting from a
non-posix (FAT/NTFS) drive,
see the Saving Changes Help
below for how to save changes.
ENDTEXT
LABEL safe
MENU LABEL Graphics mode (Safe)
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND extramod=UUID:C23A-6012/Modules noload=50save.dat
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum allowed
resolution and with NO changes
saved.
ENDTEXT
One last change to make to the Porteus boot menu, /boot/syslinux/porteus.cfg, change line 4's DEFAULT setting to be the name of the new menu.
Code: Select all
DEFAULT safe
Ed
-
- White ninja
- Posts: 5
- Joined: 26 Jan 2024, 00:44
- Distribution: Debian
Creating a Custom ISO ?
Thanks, Ed. It's like winning the lottery trying to access this forum...
You won't believe it but there are regions on this planet where it is incredibly difficult to buy USB pendrives and those sell at crazy prices. So that's why I was looking for a CD / DVD based solution as my PCs all have a respective drive and I have a good supply level. Another advantage I see is that a CD (choosing the right type) won't be rewritable so there are no worries about data changes that might happen on a USB stick.
I am not sure where I read it but there was an image generation script in Porteus. I am struggling a bit with the documentation. Bits and pieces are all over the place... I need to take notes of links.
You won't believe it but there are regions on this planet where it is incredibly difficult to buy USB pendrives and those sell at crazy prices. So that's why I was looking for a CD / DVD based solution as my PCs all have a respective drive and I have a good supply level. Another advantage I see is that a CD (choosing the right type) won't be rewritable so there are no worries about data changes that might happen on a USB stick.
I am not sure where I read it but there was an image generation script in Porteus. I am struggling a bit with the documentation. Bits and pieces are all over the place... I need to take notes of links.
Creating a Custom ISO ?
I have not used cd/dvd anymore since after laptop without cd/dvd player on the market.
Basically you dont need it, you can install porteus frugally or direct from ISO on your internal H-Drive.
Porteus has a feature to activate/deactivate read only mode. Setup porteus & customize what ever you like and save it,
The next just activate Boot stanza to read only mode. Thats it & enjoy.
Basically you dont need it, you can install porteus frugally or direct from ISO on your internal H-Drive.
Porteus has a feature to activate/deactivate read only mode. Setup porteus & customize what ever you like and save it,
The next just activate Boot stanza to read only mode. Thats it & enjoy.
-
- White ninja
- Posts: 5
- Joined: 26 Jan 2024, 00:44
- Distribution: Debian
Creating a Custom ISO ?
This is a RAM-only system, no hard drive connected...
Might the make_iso.sh script be what I am looking for?
http://www.porteus.org/faq.html
Might the make_iso.sh script be what I am looking for?
http://www.porteus.org/faq.html
Code: Select all
How can I customize the Porteus ISO?
Make all of your desired changes to the /boot and /porteus folders to make them look exactly how they should appear on your custom ISO. Then run the script /porteus/make_iso.sh which will create a new ISO with a name and location you provide.
Example of how to run make_iso.sh:
cd /mnt/sdXN/porteus/
./make_iso.sh
where sdXN is the location of your /boot and /porteus folders.
Creating a Custom ISO ?
Sure, using copy2ram boot parameter will run the system from the HD totally in RAM also.This is a RAM-only system
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Creating a Custom ISO ?
Ref: your ISO request:
After you create a folder on your harddrive and extract all the folders and files in the Porteus ISO that you download into it and make all the updates and tweaks we have discussed above try running this script to make a NEW ISO.
In fact, before trying this you should try writing the downloaded Porteus ISO file to your CD and see if it boots.
Found it: Porteus 3.2rc3 bug - sidebar
After you create a folder on your harddrive and extract all the folders and files in the Porteus ISO that you download into it and make all the updates and tweaks we have discussed above try running this script to make a NEW ISO.
Code: Select all
#!/bin/sh
if [ `whoami` != "root" ]; then
echo -e "Enter root's password\033[1;31m"
su -c "sh $0 $1 $2"; exit
fi
echo -e "\033[0m"; echo -en "\033]0;Porteus ISO Update\a"
mkisofs -o NEW.iso -v -l -J -joliet-long -R -D -A Porteus -V Porteus \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/syslinux/isolinux.bin -c boot/syslinux/isolinux.boot URUPDATEDISOFILESFOLDER
ls -hon
Interesting. I wonder what happened to that script.PotatoHead wrote: ↑28 Jan 2024, 11:44Might the make_iso.sh script be what I am looking for?
http://www.porteus.org/faq.html
Code: Select all
root@porteus:/home/guest# make_iso.sh
bash: make_iso.sh: command not found
root@porteus:/home/guest#
Ed
-
- White ninja
- Posts: 5
- Joined: 26 Jan 2024, 00:44
- Distribution: Debian
Creating a Custom ISO ?
Thanks Ed. Let me try your iso generation script.
In the post that you cited, you also mentioned IsoMaster.
Are you referring to the following tool?
https://littlesvr.ca/isomaster/
In the post that you cited, you also mentioned IsoMaster.
Are you referring to the following tool?
https://littlesvr.ca/isomaster/
-
- Full of knowledge
- Posts: 2074
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Creating a Custom ISO ?
@PotatoHead
isomaster + small dependencies modules -- go here:
[Solved] Porteus 5.0 Updater (Post by donald #92179)
and click the link below "EDIT" > extract the zip to get both modules -- should still work
isomaster + small dependencies modules -- go here:
[Solved] Porteus 5.0 Updater (Post by donald #92179)
and click the link below "EDIT" > extract the zip to get both modules -- should still work
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Creating a Custom ISO ?
Is there a config file that needs to be included?
Code: Select all
guest@porteus:~$ isomaster
ISO Master warning: failed to open config file for reading, trying to create
Quitting
guest@porteus:~$
Ed
-
- Full of knowledge
- Posts: 2074
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Creating a Custom ISO ?
@Ed
This file is created at first run of isomaster.
It should be in /home/guest/
What does 'Quitting' mean? - didn't the app run? - it work ok for me (5.01-x86_64-XFCE)
This file is created at first run of isomaster.
It should be in /home/guest/
What does 'Quitting' mean? - didn't the app run? - it work ok for me (5.01-x86_64-XFCE)
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Creating a Custom ISO ?
After activating the two files in the zip, with no Menu entry for ISO Master and no .desktop entry for it in my /home/guest/desktop folder I started isomaster from the terminal window and the "Quitting" came when I closed the ISO Master GUI window. There is no new file in my /home/guest/ folder.
Added in 4 minutes 24 seconds:
I found the config file. It's name is .isomaster and is hidden. When I started ISO Master a second time the error msg didn't appear.
Added in 4 minutes 24 seconds:
I found the config file. It's name is .isomaster and is hidden. When I started ISO Master a second time the error msg didn't appear.
Ed