Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post tutorials, HOWTO's and other useful resources here.
User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#16 by francois » 27 Oct 2022, 04:44

I will see tomorrow or in the following days, I first need to get them all.

porteus.sgn file, where does it resides within the porteus.iso structure?
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#17 by francois » 27 Oct 2022, 04:50

Have a look at what fanthom did in the old days, porteus pclinus hybrid:
Porteus video section
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#18 by Rava » 27 Oct 2022, 06:49

francois wrote:
27 Oct 2022, 04:44
porteus.sgn file, where does it resides within the porteus.iso structure?
No longer we do have a porteus.sgn file, nowadays it's a .cfg

In Port 5.0 x86-64 it sits here

Code: Select all

porteus.iso/porteus/porteus-v5.0-x86_64.cfg
Porteus-XFCE-v5.0-x86_64.iso Mounted via mloop:

Code: Select all

root@porteus:/# ls -o /mnt/loop/porteus/porteus-v5.0-x86_64.cfg 
-rw-r--r-- 1 root 681 2019-11-17 03:32 /mnt/loop/porteus/porteus-v5.0-x86_64.cfg
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#19 by francois » 27 Oct 2022, 12:01

.sgn file was to provide a rapid access to the the exact system one would like to mount, if my memory is right. Why it became obsolete, I do not understand.

porteus.cfg is another thing. It has to do with syslinux and presentation of the system at bootup. And tome provides the syslinux instructions in his first post.

As added above, the filesystem.squashfs for ubuntu is huge 2.1 Gig file. I will not provide it. And there is some rights on this material. I think it is preferable that people get these files on their own if they want to build their own ubuntu-porteus-hybrid.

I am not a syslinux user but rather a grub2. I have to figure out the syntax of one or the other to get the ubuntu-porteus-hybrid to boot.

How do you see things?
Prendre son temps, profiter de celui qui passe.

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

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#20 by Ed_P » 27 Oct 2022, 15:52

francois wrote:
27 Oct 2022, 12:01
the filesystem.squashfs for ubuntu is huge 2.1 Gig file
:shock: Why would anyone want this? :unknown:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#21 by Rava » 27 Oct 2022, 19:28

francois wrote:
27 Oct 2022, 12:01
As added above, the filesystem.squashfs for ubuntu is huge 2.1 Gig file. I will not provide it. And there is some rights on this material. I think it is preferable that people get these files on their own if they want to build their own ubuntu-porteus-hybrid.
I had no idea that
1) filesystem.squashfs for ubuntu is a 2.1 GB file
and
2) there are some rights on this material

So I agree with you, sharing that 2.1 GB file especially when it's not free to do so (as in beer AND freedom) is indeed out of the question.
francois wrote:
27 Oct 2022, 12:01
I am not a syslinux user but rather a grub2. I have to figure out the syntax of one or the other to get the ubuntu-porteus-hybrid to boot.

How do you see things?
I used to be a grub user when my SM-Witless-7 was still alive (it's now dead for many many moons and I not seem to miss it even a tiny bit. SCNR SM-Witless-Company by the name of "SM" :D ) I used grub4dos since that was the only solution back then when I got that notebook and needed to put a real OS on it (as in: either a Linux or a FreeBSD) aside from that pre-installed colourful waste of time, money and soul called "SM-Witless-Whatever-Version-Number-They-All-Suck" but now since fate / coincidence / pure luck got rid of SM-Witless-7 for me Rava is only using syslinux or more precise: porteus.cfg :)

Added in 4 minutes 49 seconds:
Ed_P wrote:
27 Oct 2022, 15:52
:shock: Why would anyone want this? :unknown:
Feel free to teach us noobs (as in Rava and francois) to get Ubuntu based Porteus up and running without that filesystem.squashfs.
Please do, we would like to be able to do it without that 2.1GB - at least I do and I am sure francois would also prefer when we can get ubun2porteus running without that 2.1 GB thingy.
Cheers!
Yours Rava

ottone
White ninja
White ninja
Posts: 9
Joined: 13 Jun 2019, 06:44
Distribution: slackex

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#22 by ottone » 28 Oct 2022, 13:37

This initrd.xz is not the best because it doesn´t shutdown cleanly if systemd is used .
Best and simple way : Download Slax 11.4.0 iso from slax.org.
Make a folder named slax . can be on usb or hd.
Download any Debian iso you want to use . Copy xx.filesystem.squashfs which is in that iso into the created folder slax. Rename xxx.filesystem.squashfs to 01-filesystem.sb I boot my Porteus system from usb, so i made a folder slax on my stick . Copy initrfs.img + vmlinuz form downloaded slax iso into it . In my porteus /boot/syslinux/porteus.cfg I wrote:
Label slax
KERNEL /slax/vmlinuz
APPEND vga=769 initrd=/slax/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 apparmor=0 slax.flags=perch
ENDTEXT .
Et voila you have persistence , the system is so stable that once I updated debian buster to sid - runs stable .
otto

ottone
White ninja
White ninja
Posts: 9
Joined: 13 Jun 2019, 06:44
Distribution: slackex

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#23 by ottone » 28 Oct 2022, 13:47

Forgot to say : before using, you have to make a folder changes in slax . Then folder usr in it. In folder usr a new folder lib . In lib a new folder modules .
In this comes the kernel from slax iso , you have either extract iso to get or run slax and copy modules . It must look like /usr/lib/modules/5.10.92 in changes folder.
So you can use slax kernel .
otto

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#24 by Rava » 28 Oct 2022, 20:01

ottone wrote:
28 Oct 2022, 13:37
This initrd.xz is not the best because it doesn´t shutdown cleanly if systemd is used .
Which initrd are you addressing here?
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#25 by francois » 28 Oct 2022, 20:21

@ottone:
This provides a slax-ubuntu hybrid and not a porteus-ubuntu hybrid.

In the first post tome provides a solution to shutdown cleanly. isn´t?
Prendre son temps, profiter de celui qui passe.

ottone
White ninja
White ninja
Posts: 9
Joined: 13 Jun 2019, 06:44
Distribution: slackex

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#26 by ottone » 29 Oct 2022, 09:26

@Rava : initrd.xz from slax15 iso is best if stable persistence is wanted . It creates a folder changes where everything is stored. Slax is the father of porteus, both
use aufs . Now Porteus is more sophisticated because more persons are involved . But you can rename sb modules from slax to xzm and they will work in porteus and
vice versa. The magic is that even alienbobs liveslak sxz modules can be renamed to xzm or sb and will also work. Testing tomes solution , at shutdown the system
claims umount yyy, but also cannot umount xxx because system is busy . This is the case if systemd is used.
otto

bour59
Samurai
Samurai
Posts: 182
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#27 by bour59 » 29 Oct 2022, 15:16

be carefull using slax15
Tomas F 2022-08-20 10:35
Slax 15.0.0 freezes at 6 and 8core AMD. It stops at "Triggering udev:"

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#28 by Rava » 29 Oct 2022, 20:57

ottone wrote:
29 Oct 2022, 09:26
Now Porteus is more sophisticated because more persons are involved . But you can rename sb modules from slax to xzm and they will work in porteus and
vice versa. The magic is that even alienbobs liveslak sxz modules can be renamed to xzm or sb and will also work.
That is some interesting info. Thanks for that.

Where does one find alienbobs liveslak sxz modules? - I found these via DDG:
https://docs.slackware.com/slackware:liveslak
https://git.slackware.nl/liveslak/

Added in 4 minutes 35 seconds:
And just as heads up, I downloaded the newest liveslak-1.6.0.1.tar.xz via wget https://git.slackware.nl/liveslak/snaps ... 0.1.tar.xz and looked inside.

This is its makemod script:

Code: Select all

#!/bin/sh
# Create squashfs module from a directory or a Slackware package.
# Module can then be added to liveslak/addons directory.

# By default, overwrite destination module file without asking if it pre-exists.
INTERACTIVE=NO

function help() {
  cat <<EOH

-- Usage:
   $(basename $0) [-i] <packagename|directory> modulename.sxz
-- Option parameters:
   h :    This help.
   i :    Interactive mode will not overwrite destination file by default.
-- Description:
   The first parameter is either the full path to a Slackware package,
   or else a directory.
   If a packagename is supplied as first parameter, it will be installed
   into a temporary directory using Slackware's "installpkg".
   The content of the temporary directory will be squashed into a module
   by the "squashfs" program.
   If a directoryname is supplied, its content will be squashed into
   a module by the "squashfs" program.
   The second parameter is the full pathname of the output module
   which will be created.

EOH
}

# Option parsing:
while getopts "hi" Option
do
  case $Option in
    h ) help; exit
        ;;
    i ) INTERACTIVE="YES"
        ;;
    * ) help; exit
        ;;   # DEFAULT
  esac
done
shift $(($OPTIND - 1))
# End of option parsing.
#  $1 now references the first non option item supplied on the command line
# ---------------------------------------------------------------------------

# Input check:
if [ "x$1" = "x" ]; then
   help
   exit 1
elif [ "x$2" = "x" ]; then
   help
   exit 1
elif [ -f "$2" -a "$INTERACTIVE" = "YES" ]; then
  read -p "-- Destination file '$2' already exists. Overwrite Y/N (y): " ANSWER
  if [ "x$ANSWER" = "xN" -o "x$ANSWER" = "xn" ]; then
    echo "-- Aborting now."
    exit
  fi
fi

MODEXT=$(echo "$2" |rev |cut -d'.' -f1 |rev)
case $MODEXT in
  sxz) COMPR=${COMPR:-"xz"} ;;
  sgz) COMPR=${COMPR:-"gzip"} ;;
  szs) COMPR=${COMPR:-"zstd"} ;;
  xzm) COMPR=${COMPR:-"xz"} ;;  # Porteus module extension and compressor
    *) echo "-- Unsupported module extension '$MODEXT'" ; exit 1 ;;
esac 

if [ -d "$1" ]; then
  echo "Creating .${MODEXT} module from directory using '$COMPR' compression."
  TMPDIR=$(mktemp -t -d makesxz.XXXXXX)
  PKGDIR="$1"
else
  echo "Creating .${MODEXT} module from package using '$COMPR' compression."
  TMPDIR=$(mktemp -t -d makesxz.XXXXXX)
  PKGDIR="$TMPDIR"
  if [ ! -d $PKGDIR ]; then
    echo "-- Failed to create temporary directory for extraction!"
    exit 1
  fi
  # Extract the package:
  /sbin/installpkg -root $PKGDIR "$1"
  if [ $? -ne 0 ]; then
    echo "-- Error installing package!"
    exit 1
  fi
fi

mksquashfs "${PKGDIR}" "$2" -noappend -comp ${COMPR} -b 256K $3 $4 $5 $6 $7 $8 $9
if [ $? -ne 0 ]; then
  echo "-- Error creating squashfs compressed module"
  exit 1
fi

# If we extracted a package, clean up now:
[ ! -z "$TMPDIR" ] && rm -rf $TMPDIR

Added in 1 minute 32 seconds:

Code: Select all

  xzm) COMPR=${COMPR:-"xz"} ;;  # Porteus module extension and compressor
:D
Cheers!
Yours Rava

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#29 by roro » 31 Oct 2022, 08:57

Hi ottone,
I would like to try it

ottone wrote
"It must look like /usr/lib/modules/5.10.92 in changes folder"
what is 5.10.92
Is this the slax kernel?

How can I find the kernel here:

Code: Select all

guest@porteus:~/Downloads$ 7z e slax-64bit-11.4.0.iso 
guest@porteus:~/Downloads$ ls -a
./               ../            01-core.sb              01-firmware.sb
02-xorg.sb       03-desktop.sb  04-apps.sb              Boot/
Boot-NoEmul.img  EFI/           boot/                   bootinst.bat
bootinst.sh      bootlogo.png   bootx64.efi             changes/
extlinux.x32     extlinux.x64   help.txt                initrfs.img
isolinux.bin     isolinux.boot  ldlinux.c32             ldlinux.e64
libcom32.c32     libutil.c32    mbr.bin                 menu.c32
modules/         pxelinux.0     readme.txt              runadmin.vbs
samedisk.vbs     slax/          slax-64bit-11.4.0.iso*  syslinux.cfg
syslinux.com     syslinux.efi   syslinux.exe            vesamenu.c32
vmlinuz          zblack.png

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Quick Ubuntu based Porteus (x64) - UPortabilizer ;)

Post#30 by ncmprhnsbl » 31 Oct 2022, 09:27

roro wrote:
31 Oct 2022, 08:57
How can I find the kernel here:
vmlinuz is the kernel and just guessing, 01-firmware.sb might be the equivalent of our 000-kernel.xzm ...depends if slax allows for kernel upgrades..
in porteus, rename 01-firmware.sb to 01-firmware.xzm and use: lsxzm 01-firmware.xzm to see what's in it ..or mount it or extract it..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply