-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* proviamo rocky * eggs_lsb_release * tolto lsb_release debian e fedora * added rockylinux * almalinux * almalinux e rocklinux * overlayfs-tools, dmraid * aggiunta crb * rimesso lsb-release * added almalinux, rockylinux * ritocchi * OK Prerequisites edited * selinux disabled almalinux, rockylinux
- Loading branch information
1 parent
004088b
commit a1c45c6
Showing
16 changed files
with
3,672 additions
and
4,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# AlmaLinux | ||
|
||
We start from the `AlmaLinux-9.4-x86_64-minimal.iso` image, which is 1,9G, and go to install AlmaLinux choosing minimun installation, set root password and user. | ||
|
||
On `Software selection` select "minimun installation" and confirm with button "Done" up on right. | ||
|
||
Then on `Installation destination` select the disk. I used a 32G disk, choose the third option advanced custom, then press "Done". On the GUI disk partition, create a minimal partition - just 1M - type `bootBIOS`, then add the remain space to a / partition format ext4. Press "Done" again and accept changes. | ||
|
||
We can create user `artisan` and choose a password and press "Done" to finish. | ||
|
||
At this point the button "Begin installation" bottom right is enabled, press it to confirm. | ||
|
||
The installation will start, is not exactly short. At the end will be enabled a buttom on bottom right to reboot. | ||
|
||
> [!NOTE] | ||
> This is tested just on BIOS, under a VM on Proxmox VE. | ||
## rename host | ||
Our installed system is not named now, we can name it, I use in case of CLI minimun system the name `naked`. | ||
|
||
``` | ||
sudo nano /etc/hostname | ||
``` | ||
|
||
then, add a line: | ||
``` | ||
127.0.1.1 naked | ||
``` | ||
to `\etc\hosts`. | ||
|
||
## Disable selinux | ||
Edit `/etc/selinux/config` and replace `SELINUX=enforced` with `SELINUX=disabled`. | ||
|
||
## reboot | ||
reboot. | ||
|
||
## install eggs | ||
First we clone penguins-eggs repository. | ||
|
||
``` | ||
git clone https://github.com/pieroproietti/penguins-eggs | ||
``` | ||
|
||
Then we install prerequisites: | ||
``` | ||
cd ~/penguins-eggs/PREREQUISITES/almalinux | ||
sudo ./install.sh | ||
``` | ||
At this point, we transpile and install penguins-eggs: | ||
``` | ||
cd ~/penguins-eggs | ||
pnpm i | ||
./install-eggs-dev | ||
``` | ||
## Create our first image | ||
|
||
When finish, we can just run: ```eggs love``` and build our first fedora naked ISO. | ||
|
||
It's installable and reproductive: once installed you can produce a live system from your installed one, just running: `eggs love`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/bash | ||
|
||
# This script installs prerequisites for penguins-eggs | ||
# on fedora linux, it is intended for development purposes | ||
|
||
# check if we are root | ||
if [ "$(id -u)" -ne 0 ]; then | ||
echo "This script must be run as root" | ||
exit 1 | ||
fi | ||
|
||
# check if we are on fedora | ||
if [ ! -f /etc/almalinux-release ]; then | ||
echo "This script is intended for almalinux only" | ||
exit 1 | ||
fi | ||
|
||
# add epel-release | ||
dnf install epel-release | ||
|
||
# enable crb | ||
dnf config-manager --set-enabled crb | ||
|
||
# update | ||
dnf -y update | ||
|
||
|
||
dnf -y install \ | ||
bash-completion \ | ||
cryptsetup \ | ||
curl \ | ||
device-mapper \ | ||
dosfstools \ | ||
dracut \ | ||
dracut-live \ | ||
fuse \ | ||
git \ | ||
grub2-tools-extra \ | ||
jq \ | ||
lsb-release \ | ||
lvm2 \ | ||
nodejs \ | ||
npm \ | ||
nvme-cli \ | ||
parted \ | ||
rsync \ | ||
squashfs-tools \ | ||
wget \ | ||
xdg-user-dirs \ | ||
sshfs \ | ||
xorriso \ | ||
zstd | ||
|
||
# install pnpm | ||
npm i pnpm@8 -g | ||
|
||
# mkdir /usr/share/icons | ||
mkdir -p /usr/share/icons | ||
|
||
# disable selinux | ||
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | ||
|
||
# we lacks | ||
# overlayfs-tools | ||
# dmraid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ dnf -y install \ | |
git \ | ||
grub2-tools-extra \ | ||
jq \ | ||
lsb-release \ | ||
lvm2 \ | ||
nodejs \ | ||
npm \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Fedora naked | ||
|
||
We start from the `Rocky-9.4-x86_64-minimal.iso` image, which is 1,7G, and go to install RockyLinux choosing minimun installation, set root password and user. | ||
|
||
On `Software selection` select "minimun installation" and confirm with button "Done" up on right. | ||
|
||
Then on `Installation destination` select the disk. I used a 32G disk, choose the third option advanced custom, then press "Done". On the GUI disk partition, create a minimal partition - just 1M - type `bootBIOS`, then add the remain space to a / partition format ext4. Press "Done" again and accept changes. | ||
|
||
We can create user `artisan` and choose a password and press "Done" to finish. | ||
|
||
At this point the button "Begin installation" bottom right is enabled, press it to confirm. | ||
|
||
The installation will start, is not exactly short. At the end will be enabled a buttom on bottom right to reboot. | ||
|
||
> [!NOTE] | ||
> This is tested just on BIOS, under a VM on Proxmox VE. | ||
## rename host | ||
Our installed system is not named now, we can name it, I use in case of CLI minimun system the name `naked`. | ||
|
||
``` | ||
sudo nano /etc/hostname | ||
``` | ||
|
||
then, add a line: | ||
``` | ||
127.0.1.1 naked | ||
``` | ||
to `\etc\hosts`. | ||
|
||
## Disable selinux | ||
Edit `/etc/selinux/config` and replace `SELINUX=enforced` with `SELINUX=disabled`. | ||
|
||
## reboot | ||
reboot. | ||
|
||
## install eggs | ||
First we clone penguins-eggs repository. | ||
|
||
``` | ||
git clone https://github.com/pieroproietti/penguins-eggs | ||
``` | ||
|
||
Then we install prerequisites: | ||
``` | ||
cd ~/penguins-eggs/PREREQUISITES/rockylinux | ||
sudo ./install.sh | ||
``` | ||
At this point, we transpile and install penguins-eggs: | ||
``` | ||
cd ~/penguins-eggs | ||
pnpm i | ||
./install-eggs-dev | ||
``` | ||
## Create our first image | ||
|
||
When finish, we can just run: ```eggs love``` and build our first fedora naked ISO. | ||
|
||
It's installable and reproductive: once installed you can produce a live system from your installed one, just running: `eggs love`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
# This script installs prerequisites for penguins-eggs | ||
# on fedora linux, it is intended for development purposes | ||
|
||
# check if we are root | ||
if [ "$(id -u)" -ne 0 ]; then | ||
echo "This script must be run as root" | ||
exit 1 | ||
fi | ||
|
||
# check if we are on fedora | ||
if [ ! -f /etc/rocky-release ]; then | ||
echo "This script is intended for rocky linux only" | ||
exit 1 | ||
fi | ||
|
||
# add epel-release | ||
dnf install epel-release | ||
|
||
# enable crb | ||
dnf config-manager --set-enabled crb | ||
|
||
# update | ||
dnf -y update | ||
|
||
# enable crb | ||
dnf config-manager --set-enabled crb | ||
|
||
dnf -y install \ | ||
bash-completion \ | ||
cryptsetup \ | ||
curl \ | ||
device-mapper \ | ||
dosfstools \ | ||
dracut \ | ||
dracut-live \ | ||
fuse \ | ||
git \ | ||
grub2-tools-extra \ | ||
jq \ | ||
lsb-release \ | ||
lvm2 \ | ||
nodejs \ | ||
npm \ | ||
nvme-cli \ | ||
parted \ | ||
rsync \ | ||
sshfs \ | ||
squashfs-tools \ | ||
wget \ | ||
xdg-user-dirs \ | ||
xorriso \ | ||
zstd | ||
|
||
# install pnpm | ||
npm i pnpm@8 -g | ||
|
||
# mkdir /usr/share/icons | ||
mkdir -p /usr/share/icons | ||
|
||
# disable selinux | ||
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | ||
|
||
# we lacks | ||
# overlayfs-tools | ||
# dmraid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.