## using debian (failed)
https://shell.cloud.google.com/?hl=en_US&fromcloudshell=true&show=terminal
git clone --depth=1 https://github.com/LBCrion/sfwbar
sudo apt install meson libgtk-3-dev libjson-c-dev libgtk-layer-shell-dev
meson build
ninja -C build
sudo ninja -C build install
dependency error layer shell is old version neeed latest to compile
## using archlinux chroot
https://geo.mirror.pkgbuild.com/iso/2023.06.01/
wget https://geo.mirror.pkgbuild.com/iso/2023.06.01/archlinux-bootstrap-2023.06.01-x86_64.tar.gz
tar xzf /path-to-bootstrap-image/archlinux-bootstrap-x86_64.tar.gz --numeric-owner
mkdir ~/arch
sudo tar xzf archlinux-bootstrap-2023.06.01-x86_64.tar.gz --numeric-owner -C arch/
sudo nano arch/root.x86_64/etc/pacman.d/mirrorlist
## uncomment some mirrors ##
sudo mount --bind arch/root.x86_64/ arch/root.x86_64/
sudo arch-chroot arch/root.x86_64/ or
/tmp/root.x86_64/bin/arch-chroot /tmp/root.x86_64/
pacman-key --init
pacman-key --populate
pacman -Syu
pacman -S base-devel git
## pacman -S meson json-c gtk3 gtk-layer-shell git wayland-protocols ## no need for aur
add normal usr for aur
adduser -m kai
passwd kai
cd
git clone https://aur.archlinux.org/sfwbar.git
makepkg -si or
makepkg -Acs
download
/home/xkailashxx/arch/root.x86_64/home/kai/sfwbar/sfwbar-1.0_beta11-1-x86_64.pkg.tar.zst
install it using sudo pacman -U sfwbar-1.0_beta11-1-x86_64.pkg.tar.zst
chroot script
nano chr.sh
#!/usr/bin/bash
mount --bind arch/root.x86_64/ arch/root.x86_64/
arch/root.x86_64/bin/arch-chroot arch/root.x86_64/
chmod +x chr.sh
sudo ./chr.sh
#sudo/doas nosuid fix
mount -o remount,suid /
mount -o remount,suid,exec /root
su kai
cd
Comments
Post a Comment