Skip to content

Commit

Permalink
Added a fresh take at cog installation on Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Oct 2, 2024
1 parent 48b0a7b commit 6b73138
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions init-pi
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env sh

# RPi3 - RPi4 => boot 512M
# root: init
if [ "$USER" = "root" ] || [ "$(whoami)" = "root" ]; then
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syyu --noconfirm

# optional RPi arm64 - Enables RPi5 too
yes y | pacman -S --needed linux-rpi
else
# alarm
if [ "$(which sudo 2> /dev/null)" = "" ]; then
bash <(curl -s https://archibold.io/install/sudo)
else
sudo pacman -Syyu --noconfirm
fi

# weston
sudo pacman -S --needed --noconfirm libdisplay-info
bash <(curl -s https://archibold.io/install/weston)
bash <(curl -s https://archibold.io/install/weston-launch)

# optional for webkitgtk
# sudo pacman -S --needed --noconfirm \
# gtk4 webkitgtk-6.0 \
# gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad \
# gstreamer-vaapi gst-libav \
# geoip geoclue

# optional cog dependencies
sudo pacman -S --needed --noconfirm wpewebkit wpebackend-fdo meson wayland-protocols

if [ "$(which sudo 2> /dev/null)" = "" ]; then
bash <(curl -s https://archibold.io/install/aur)
fi
aur --no-pgp cog
fi
4 changes: 2 additions & 2 deletions install/weston
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ if [ "$(which sudo 2> /dev/null)" = "" ]; then
fi

sudo pacman -S --needed --noconfirm weston
sudo groupadd weston 2> /dev/null
sudo groupadd weston-launch 2> /dev/null
sudo usermod -a -G wheel,games,power,optical,storage,scanner,lp,audio,video,render,weston,weston-launch ${USER}
sudo usermod -a -G wheel,games,power,optical,storage,scanner,lp,audio,video,render,weston-launch ${USER}

if [ ! -f ~/.config/weston.ini ]; then
mkdir -p ~/.config
Expand All @@ -26,6 +25,7 @@ repaint-window=15
require-input=false
[shell]
client=$(which weston-terminal)
animation=none
close-animation=none
startup-animation=none
Expand Down

0 comments on commit 6b73138

Please sign in to comment.