Skip to content

Instantly share code, notes, and snippets.

@tellmeY18
Forked from Ast3risk-ops/building_blendos.md
Last active July 25, 2023 07:47
Show Gist options
  • Select an option

  • Save tellmeY18/b8d6af5cb1dabd0f324f81dd737bcce2 to your computer and use it in GitHub Desktop.

Select an option

Save tellmeY18/b8d6af5cb1dabd0f324f81dd737bcce2 to your computer and use it in GitHub Desktop.
Building blendOS for Outdated GPU (nvidia driver without wayland support)

Made by @RayVermey.

Hi, here is my procedure i use for building a BlendOS iso from the host itself Building an iso in a container does not work so i have to use the BlendOS host itself. I dont want to have to install all kind of needed packages because that goes directly against the BlendOS principles. So with the help of @rs2009 I made it work as follows:

mkdir arch-chroot
sudo pacstrap -K arch-chroot base linux linux-firmware base-devel vim sudo
sudo mount -o rw,suid --bind arch-chroot arch-chroot
sudo arch-chroot arch-chroot
useradd -m YOUR USERNAME

add YOUR USERNAME to sudoers

vim /etc/sudoers

Set password to the user you created

passwd YOUR USERNAME

Switch User

su - YOUR USERNAME

YOUR USERNAME is an user you create cause building packages under root is not possible

Go to your Home directory

cd
mkdir blend-iso
sudo pacman -Syu
sudo pacman -S python-click python-yaml python-psutil grub squashfs-tools archiso git

vim get_assemble.sh #and copy paste lines between the ------ below in there


TEMP_ASSEMBLE_DIR="$(mktemp -d)"
git clone https://github.com/blend-os/assemble "${TEMP_ASSEMBLE_DIR}/assemble"
sudo cp "${TEMP_ASSEMBLE_DIR}/assemble/assemble" /usr/local/bin
rm -rf "${TEMP_ASSEMBLE_DIR}"

make the script executable

chmod +x get_assemble.sh
sh get_assemble.sh
cd blend-iso
assemble init https://github.com/tellmeY18/manifests main
assemble sync

To make sure all packages that breakfast downloads are indeed downloaded do this:

sudo vim /etc/pacman.conf

add SigLevel = Never under all active repositories, in case of gpg key errors which sometimes happen, don't know why that is.

sudo pacman -Syy

Set the source

source build/envsetup.sh

edit the package list:

vim build/base-profile/packages.x86_64 

Replace the Proprietory Nvidia driver nvidia-utils with the open source driver nouveau

source build/envsetup.sh
breakfast | tee breakfast.log

If you see at the end all packages are built succesfully you can start:

sudo brunch

Pick the iso you want to create from the list.

If the iso is built succesfully you will see a line where the new created iso resides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment