Is it possible modified an ISO ?

I want modified a live OpenSuse and create a version from for new students in Ruby programming with the addition of some text editor and database editor. not part of any depos. In some case, only binaries exist. (i might need a link like RPM for dummy). The ultimate goal is a USB stick with everything pr-install and pr-configured for a Ruby programmer.

Then this should be your starting point: https://en.opensuse.org/Portal:Kiwi

It do not seem a good solution. The comment give the impression of studio express is something like those thing build with duck tape. LOL Is it possible to added a program with zypper on a live version of Opensuse in a USB stick ?

Hi
It’s pretty good duck tape since it builds that live USB your using :wink:

To answer your question, yes you can install, however no chance to update things like the kernel etc so it can come with security issues.

Eh, the Live images are persistent now and AFAIK can be updated, and expanded with new packages, using an overlay fs.
And for a good laugh: It’s the first time I see non-dutch writing ‘duck tape’. Where the product is called DUCT tape. :smiley:

It’s a duct tape brand name as well :wink: (duckbrand)

Always happy to learn laughing :smiley:

I’m pretty sure that does not work for updating the kernel or the booting. The live image has to be booted with it’s initial kernel before the overlay is mounted and made available.

If you want to create a custom ISO, then Kiwi or Studio Express can do that for you, but notice because your result is a custom install combining distro and your modifications, they’re tied together. When there is a new openSUSE release or you want to modify your Ruby setup, you’ll have to re-create the whole ISO all over again.

Another more flexible approach can be to simply make a post-install script that can be run manually on an accessible server in your network, I would recommend on a website or similar so that you have maximum accessibility with minimal security restrictions.

Your post-install script can do everything you might want to do to modify each workstation for your particular needs, like add any special Ruby repos, install tools, libraries, and even course material, perhaps install and configure a website for a particular lesson.

So, for instance the following is an example of what you can do, all is required is any openSUSE install from ISO, the script is fully commented so it should be easy to understand…

  • The script detects whether the machine is a LEAP or TW install
  • Depending on what type of openSUSE is identified, a repository URL is built and then the repository is added to the machine
  • From those repos, the required C dependency packages are installed
  • Once the C Development environment has been properly prepared, the highly complex compilation to build the latest version of the Lc0 chess engine is kicked off and runs to completion.

https://github.com/LeelaChessZero/lc0/blob/master/install_openSUSE_lc0.sh

You might find many of the steps I described might be what you would do to set up your classroom’s machines.
Note that the way I wrote this script, although it was written specifically to support LEAP 15.0 and TW, it should also work for any 42.3, and would expect it to continue to work for 15.1 and beyond (well until the lc0 compile requires new or different dependencies).

HTH,
tSU

I have an USB stick with an updated version of Leap 15.1:

erlangen:~ # lsblk -f  /dev/sdc
NAME   FSTYPE  LABEL                       UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sdc    iso9660 openSUSE_Leap_15.1_KDE_Live 2019-08-01-16-22-40-00                              
├─sdc1 iso9660 openSUSE_Leap_15.1_KDE_Live 2019-08-01-16-22-40-00                     0   100% /run/media/karl/openSUSE_Leap_15.1_KDE_Live
├─sdc2 vfat    BOOT                        080B-F3FC                                           
└─sdc3 ext4    cow                         cec96381-7c8a-4fe1-b809-b5b5c21f645b     53G     3% /run/media/karl/cow
erlangen:~ # 

Changes and additions go to /dev/sdc3. And yes, there is a newer kernel version:

erlangen:~ # ll /run/media/karl/cow/rw/boot/
total 19524
-rw-r--r-- 1 root root      65 Aug 11 10:54 .vmlinuz-4.12.14-lp151.28.13-default.hmac
-rw-r--r-- 1 root root 3654833 Aug 11 10:14 System.map-4.12.14-lp151.28.13-default
-rw-r--r-- 1 root root  199831 Aug 11 09:46 config-4.12.14-lp151.28.13-default
-rw-r--r-- 1 root root       0 Aug 21 16:25 do_purge_kernels
lrwxrwxrwx 1 root root      34 Aug 21 16:25 initrd -> initrd-4.12.14-lp151.28.13-default
-rw-r--r-- 1 root root  406394 Aug 11 10:17 symvers-4.12.14-lp151.28.13-default.gz
-rw-r--r-- 1 root root     484 Aug 11 10:17 sysctl.conf-4.12.14-lp151.28.13-default
-rw-r--r-- 1 root root 8367442 Aug 11 10:22 vmlinux-4.12.14-lp151.28.13-default.gz
lrwxrwxrwx 1 root root      35 Aug 21 16:25 vmlinuz -> vmlinuz-4.12.14-lp151.28.13-default
-rw-r--r-- 1 root root 7344240 Aug 11 10:54 vmlinuz-4.12.14-lp151.28.13-default
erlangen:~ # 

This will solved my problem. Because my worst experience with OpenSuse where caused by Microsoft. i do want to do reinstall because a bad update of windows. Can you give me tell me how to proceed to create this overlay fs?

In Canada, it is the normal appellation for this kind of tape. In english and in french. I hope that you will a good laugh with theses video.

//youtu.be/W5Zo3d5MaU0

youtube;c5GnBvpFnzA]https://www.youtube.com/watch?v=c5GnBvpFnzA
youtube;KhSqvycZZ0c]https://www.youtube.com/watch?v=KhSqvycZZ0c