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 0b4e7cb
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
40 changes: 40 additions & 0 deletions init-pi
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/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 -Syu --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 cog + wpewebkit dependencies
sudo pacman -S --needed --noconfirm \
wpewebkit wpebackend-fdo meson wayland-protocols \
pipewire-jack libbluray \
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gstreamer-vaapi gst-libav \
geoip geoclue \
weston mesa ttf-dejavu

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

sudo pacman -S --needed --noconfirm weston
while ! sudo pacman -S --needed --noconfirm weston
do
:
done

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}
Expand All @@ -26,6 +30,7 @@ repaint-window=15
require-input=false
[shell]
client=$(which weston-terminal)
animation=none
close-animation=none
startup-animation=none
Expand Down
4 changes: 2 additions & 2 deletions kiosk/spotipi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if [ "$(which sudo 2> /dev/null)" = "" ]; then
bash <(curl -s https://archibold.io/utils/sudo)
else
# sudo installs already the
# sudo installs already the
sudo pacman-key --init
sudo pacman-key --populate archlinuxarm
fi
Expand Down Expand Up @@ -35,7 +35,7 @@ if [ "$(pacman -Qmq wpewebkit-bin 2> /dev/null)" = "" ]; then
fi

yes y | sudo pacman -S --needed \
jack libbluray \
pipewire-jack libbluray \
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gstreamer-vaapi gst-libav \
geoip geoclue \
Expand Down

0 comments on commit 0b4e7cb

Please sign in to comment.