Tips and Tricks
Ultimately, the Live environment is not where the lasting changes occur. If you wish to modify the post-installation results, there is a very easy way to do this, which is thoroughly discussed below.
- First, create a Github repository.
- In it, simply create a file titled packages.xml. This file determines exactly what packages Cnchi installs.
- Next, copy and paste the contents of Reborn’s packages.xml, found here. Once that is copied over, enjoy tinkering with it until you have achieved your dream installation.
- Now that that is done, just clone Reborn’s source code with “sudo git clone https://github.com/keeganmilsten/Reborn-OS“. You may be wondering at this point why we’re not just modifying Reborn’s source code directly, but please rest assured there’s a good reason. Basically, it comes down to this. Reborn’s actual source code is continually modified daily, and so if you were to fork our source code and modify it directly, your forked version of it would be outdated within 24 hours. Thus, your repository you created in step one can easily contain all of your changed files, and then you can create a bash script in this new repository to copy your changed files over, effectively getting around this shortcoming.
- Next, simply navigate to a specialized systemd init service file found here in /Reborn-OS/airootfs/usr/bin/internet.sh . This bash script is executed in the Live ISO the moment the user connects to the internet.
- OK, so you’re probably wondering why this file is so important. Well, as you can see, it is here that you can add any command you want to to modify the ISO experience, and do so with internet access guaranteed. With this, we can clone your new Github repository containing that customized packages.xml file you just created. To do so, simply add the line “sudo mkdir /git-repo” and “sudo git clone URL_OF_YOUR_REPOSITORY /git-repo” directly before the line that reads “else exec /home/$USER/.config/autostart/internet.sh”. Now your custom version of packages.xml will be in a definite location, /git-repo.
- To move it to /usr/share/cnchi/data/, simply add this line after the one you just added: “mv /git-repo/packages.xml /usr/share/cnchi/data/” and you should be good to go!
- By now, that file should look something like this:
wget –spider http://www.google.com
if [ “$?” = 0 ]; then
sudo pacman -Syy
sudo pacman-key –init
sudo pacman-key –populate archlinux antergos
sudo pacman-key –refresh-keys
sudo pacman -Syy
sudo mkdir /git-repo
sudo git clone URL_OF_YOUR_REPOSITORY /git-repo
sudo mv /git-repo/packages.xml /usr/share/cnchi/data/
else exec /home/$USER/.config/autostart/internet.sh
And your almost done! Now all that is left to do is to git clone your repository you created in step one to wherever you wish on your own personal system. Once that is done, execute your bash script to copy your customized files over, and then simply open up your terminal, navigate to the Reborn-OS repository using the “cd” command, and run this:
After about an hour, a completed ISO should pop out in the ‘Out” folder of the Reborn-OS repository. You did it!
And now the only thing left to do is to upload it. There are numerous free locations to upload your ISO to, but the one that I would personally recommend is MediaFire. MediaFire is completely free, and also one of the easiest to upload a file over 1 GB (which your ISO will most likely be). To upload it there, just click “Upload” in the top right corner and navigate to your ISO. Now all that is left is to wait until the upload is complete.
Congratulations! You have just created your first ISO. To have your work officially supported and recognized by Reborn OS, please message me about it at our Forum.