Hello guys ihave question

103 views
Skip to first unread message

EGI AGGATA

unread,
Jul 12, 2023, 10:16:10 AM7/12/23
to minix3
how can i add some packages before i build the iso like apache2 in minix source? 

thanks

Jean-Loups White

unread,
Jul 12, 2023, 3:00:03 PM7/12/23
to min...@googlegroups.com
By pkgsrc i suppose 

Envoyé de mon iPhone

Le 12 juil. 2023 à 16:16, EGI AGGATA <egi.a...@gmail.com> a écrit :

how can i add some packages before i build the iso like apache2 in minix source? 

thanks

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minix3/71dd5aec-6adf-4e6b-9777-aecde75da270n%40googlegroups.com.

vic...@gmail.com

unread,
Jul 12, 2023, 3:58:55 PM7/12/23
to minix3

I would not add apache 2 to the ISO but rather add it to the install unless the installation will not have access to the internet.

Murray Smith

unread,
Jul 12, 2023, 6:31:10 PM7/12/23
to min...@googlegroups.com
Look in the release tools directory.

Package.install has a list of packages that look like they are installed with a new system, not sure where the script looks for these packages.

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.

EGI AGGATA

unread,
Jul 14, 2023, 3:37:00 AM7/14/23
to minix3
thanks jean, I guess I'll start looking for information regarding pkgsrc

stux...@gmail.com

unread,
Jul 14, 2023, 9:44:27 AM7/14/23
to minix3
Hi EGI,

There is a specific way to add pkgsrc packages to a minix ISO.  Please note that normally I build minix using the " x86_cdimage.sh" in the "releasetools" subfolder.  I'm going to assume that you follow similar steps:
  • In this example, let's assume that you checked out minix and pkgsrc to the "/usr/build/" folder (your actual folder will be different)
  • You would then have two subfolders: "minix" and "packages"
  • cd into the minix folder.  Your current path should be "/usr/build/minix"
  • You can then run the following command (in this case I'm bundling openssh):
    • PACKAGE_DIR=../packages BUNDLE_PACKAGES='pkgin- openssl- pkg_install- libarchive- ' ./releasetools/x86_cdimage.sh
    • I'm not sure why the example above has "openssl" instead of "openssh" since it's been years since I've done this.  You'll have to play around with things.
  • If you want multi-process support you can prepend your command with  "JOBS=8" for example.  This spawns 8 processes during build.  Note that this only works when cross-compiling since Minix does not yet have SMP support.
  • Notice that libacrchive is a dependency of openssh, so you may have to add all package dependencies to your command line.
  • According to my notes you still have to install openssh via "pkgin install openssh", but at least the package is built and doesn't have to be downloaded from the internet and compiled. Trying to add "openssh" to the command line above might work (iirc openSSL is another dependency of openSSH, but I could be wrong)
  • Finally, please keep in mind that all packages in minix are old.  The packages have not been updated since 2016 and still contain any vulnerabilities discovered since. 
Hope this helps and please let us know how it goes or if you have other questions.

-stux

EGI AGGATA

unread,
Jul 17, 2023, 4:41:45 AM7/17/23
to min...@googlegroups.com
thank's stux, 

I will try first, thanks for the information, I'm very happy

Reply all
Reply to author
Forward
0 new messages