Newbie questions

Post here if you are a new Porteus member and you're looking for some help.
liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#1 by liavna » 22 Sep 2022, 10:26

Hello all ,
i have Newbie questions :)
i am running live cd of Porteus-CINNAMON-v3.2.2-x86_64
i install some tools and ,add startup script ,
how can i made remaster of this live cd setup ?
i wan to tun it on different pcs and my tools and script will work there
i sow the make_iso but no sure how to use it and every time i try i ended with non bootable iso
very new so if you have step-by-step it will be grate

thanks!

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Newbie questions

Post#2 by Ed_P » 22 Sep 2022, 17:15

Hello liavna. :)

Are you booting a CD or booting an ISO image?

And why are you booting a 5 yr old version of Porteus rather than the new version 5.0? :o
Ed

liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#3 by liavna » 22 Sep 2022, 18:43

Hi , current booting from iso in live mode
i can switch to the new version if this help to get this done

need to boot live cd > and auto run script and then shutdown the machine

thanks!

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Newbie questions

Post#4 by Ed_P » 22 Sep 2022, 21:34

Ok.

1. Boot the ISO.
2. In Porteus create your script in the /home/guest folder.
3. Make the script executable with a terminal command: chmod +x /home/guest/name-of-ur-script
4. Test the script to make sure it works as you want.
5. Then as root edit the /etc/rc.d/rc.local file to include: sh /home/guest/name_of-ur-script
6. Now we invoke the Porteus way of doing things. In a terminal you run: save-changes /tmp/name-of-ur-changes.xzm
7. Copy the .xzm file you created to a folder near the ISO file.
8. When you boot the ISO add this to your Porteus menu: from=$iso extramod=path-to-folder-with-the-.xzm

If the ISO ever gets installed to a USB drive the .xzm gets copied to the /porteus/modules folder.

BTW You will find 3.2.2 won't run on newer machines.
Ed

liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#5 by liavna » 23 Sep 2022, 10:07

hi , thanks!
can you please explain bit more how to do step 8 ?
which do i need to edit in order to make this permanent ,(so no typing required inn the boot menu ,also is there an option to edit to menu so only one option remain ?)
many many thanks!

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Newbie questions

Post#6 by Ed_P » 23 Sep 2022, 15:23

liavna wrote:
23 Sep 2022, 10:07
which do i need to edit in order to make this permanent
Without knowing how you're booting the ISO I can't. Personally I use Grub2Win to boot the ISO and a menu I use is this:

Code: Select all

set timeout=30

# Set the default variable to the submenu entry you prefer
set default=1

     set linux_folder=/porteus5.0
#     set iso="/ISOs/Porteus-CINNAMON-v5.0rc1-86_64.iso"
#     set iso="/ISOs/Porteus-CINNAMON-v5.0rc2-86_64.iso"
#     set iso="/ISOs/Porteus-CINNAMON-v5.0rc3-x86_64.iso"
#     set iso="/porteus5.0/rc3ISOModules/Porteus-CINNAMON-v5.0rc3-x86_64-20220617-5.18.5.iso"
     set iso="/ISOs/Porteus-CINNAMON-v5.0-x86_64-220723.iso"

menuentry " Porteus 5.0 ISO - changes="  --class slackware   --class icon-porteus  {

     set bootparms="volume=33 reboot=cold extramod=$linux_folder/Modules changes=EXIT:$linux_folder/changes/50save.dat noload=kde;jinn;lxqt;xfce;lxde;mate;open;mychanges;menu1" # ;changes"

     search -f $iso --set=root
     loopback loop $iso
     linux (loop)/boot/syslinux/vmlinuz      from=$iso $bootparms
#     linux $linux_folder/BootModules/vmlinuz from=$iso $bootparms
     initrd (loop)/boot/syslinux/initrd.xz
#     initrd $linux_folder/initrd/initrd.xz
     }  

menuentry " Porteus 5.0 ISO - AF'"  --class slackware   --class icon-porteus  {

     set bootparms="volume=33 reboot=cold extramod=$linux_folder/Modules noload=kde;jinn;lxqt;xfce;lxde;mate;open;menu2" # ;mychanges"

     search -f $iso --set=root
     loopback loop $iso
     linux (loop)/boot/syslinux/vmlinuz from=$iso $bootparms
#     linux $linux_folder/BootModules/vmlinuz from=$iso $bootparms
     initrd (loop)/boot/syslinux/initrd.xz
#     initrd $linux_folder/initrd/initrd.xz  
     }
The "extramod=" parm is in the bootparms which gets used on the "linux (loop)/boot/syslinux/vmlinuz" line.

When booting Porteus installed on a USB drive I modify the "/boot/syslinux/porteus.cfg file's menu like this:

Code: Select all

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=EXIT:UUID:8486-DDC5/changes/porteussave.dat extramod=UUID:8486-DDC5/Modules
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT

The "extramod=" cheatcode is on the "APPEND" line.
Ed

liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#7 by liavna » 23 Sep 2022, 15:44

thank you so mush for the help!

i will boot only from ISO file - live mode cd rom
can i edit the isolinux.cfg from external system. ? i have try to change some info there but got error:

Image

the isolinux.cfg looks like this :

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus from=$iso extramod=/raid/raid.xzm
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT

the xzm file is inside the same ISO as the BOOT,EFI etc in a folder name RAID ,and the file name is raid.xzm


many many thanks

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Newbie questions

Post#8 by Ed_P » 23 Sep 2022, 16:07

liavna wrote:
23 Sep 2022, 15:44
the isolinux.cfg looks like this :
My 3.2.2 ISO's isolinux.cfg file looks like this:

Code: Select all

INCLUDE porteus.cfg
I'm not sure the isolinux.cfg and porteus.cfg files support variables. I've never tried the $iso variable in mine.

Please post the menu you are using to boot the ISO.
Ed

liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#9 by liavna » 23 Sep 2022, 16:15

this ?


PROMPT 0
TIMEOUT 10
UI vesamenu.c32
DEFAULT GRAPHICAL
MENU BACKGROUND porteus.png
MENU TITLE porteus-test

MENU WIDTH 30
MENU MARGIN 2
MENU ROWS 10
MENU HELPMSGROW 17
MENU TIMEOUTROW 28
MENU TABMSGROW 15
MENU CMDLINEROW 22
MENU HSHIFT 4
MENU VSHIFT 5

menu color screen 37;40 #00000000 #00000000 none
menu color border 30;44 #00000000 #00000000 none
menu color title 1;36;44 #ffF6FF00 #30003f07 none
menu color unsel 37;44 #ffffffff #00000000 none
menu color hotkey 1;37;44 #ff8037b7 #00000000 none
menu color sel 7;37;40 #ff111B78 #003f7fbf none
menu color hotsel 1;7;37;40 #ffaf67f7 #003f7fbf none
menu color scrollbar 30;44 #00000000 #00000000 none

menu color tabmsg 31;40 #ffB6F538 #00000000 none
menu color cmdmark 1;36;40 #ffff0000 #00000000 none
menu color cmdline 37;40 #ffffffff #ff000000 none
menu color pwdborder 30;47 #ffff0000 #00000000 std
menu color pwdheader 31;47 #ffff0000 #00000000 std
menu color pwdentry 30;47 #ffff0000 #00000000 std
menu color timeout_msg 37;40 #ff809aef #00000000 none
menu color timeout 1;37;40 #ffb72f9f #00000000 none
menu color help 37;40 #ffD5F538 #00000000 none
menu color msg07 37;40 #90ffffff #00000000 std


LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus from=$iso extramod=/raid/raid.xzm
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT

LABEL fresh
MENU LABEL Always Fresh
KERNEL vmlinuz
APPEND initrd=initrd.xz nomagic base_only norootcopy
TEXT HELP
Normally Porteus saves all changes
to the /porteus/changes/ directory
on the boot media (if writable)
and restores them next boot.
Use this option to start a fresh
system, changes are not read from
or written to any device
ENDTEXT

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz copy2ram
TEXT HELP
Run Porteus the same as above,
but first copy all data to RAM
to get a huge speed increase
(needs >768MB)
ENDTEXT

LABEL text
MENU LABEL Text mode
KERNEL vmlinuz
APPEND initrd=initrd.xz 3
TEXT HELP
Run Porteus in text mode and
start the command prompt only
ENDTEXT

LABEL pxe-boot
MENU LABEL Porteus as PXE server
KERNEL vmlinuz
APPEND initrd=initrd.xz pxe
TEXT HELP
Run Porteus as usual, but also
initialize a PXE server.
This will allow you to boot Porteus
on other computers over a network
ENDTEXT

MENU SEPARATOR

LABEL plop
MENU LABEL PLoP BootManager
KERNEL plpbt
TEXT HELP
Run the plop boot manager.
This utility provides handy
boot-USB options for machines
with vintage/defective BIOS
ENDTEXT

LABEL hd
MENU LABEL Boot from the first hd
COM32 chain.c32
APPEND hd0 1
TEXT HELP
Don't start Porteus at all, but
rather run any operating system
installed on the first partition
of the hard drive
ENDTEXT

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Newbie questions

Post#10 by Ed_P » 23 Sep 2022, 17:24

No. Where you specify the name of the ISO you're booting.
Ed

liavna
White ninja
White ninja
Posts: 6
Joined: 22 Sep 2022, 10:20
Distribution: ubuntu

Newbie questions

Post#11 by liavna » 23 Sep 2022, 17:31

ohh, i only change this file ..

Post Reply