Introduction
Introduction Statistics Contact Development Disclaimer Help
Cleaning up the script slightly. - bootstrap - Bootstrap script for my alpine l…
Log
Files
Refs
README
---
commit 071f00a7e19204518ec9fdccdb11343c342344bd
parent 9e73a48ad9a30e2b9ca0be44f04f1b03ac6b2c63
Author: Jay Scott <[email protected]>
Date: Tue, 27 Sep 2022 11:57:44 +0100
Cleaning up the script slightly.
Diffstat:
M install.sh | 51 +++++++++++++++++------------…
1 file changed, 28 insertions(+), 23 deletions(-)
---
diff --git a/install.sh b/install.sh
@@ -1,37 +1,41 @@
-#!/usr/bin/env sh
+#!/bin/sh
# bootstrap for alpine linux
user="jay"
src="/home/jay/src"
-echo "=== enable community repo ==="
+echo "── enable community repo"
sed -i '/v3\..*\/community/s/^#//g' /etc/apk/repositories
-echo "=== updating base system ==="
+echo "── updating base system"
apk update
apk upgrade -a
-echo "=== installing cli essentials ==="
+echo "── installing cli essentials"
apk add curl doas wget git vim tar zip gzip p7zip bzip2 rsync build-base less
-echo "=== installing wayland ==="
-apk add wlsunset wl-clipboard mesa-dri-gallium eudev font-hack seatd sway foot…
+echo "── installing wayland"
+apk add wlsunset wl-clipboard mesa-dri-gallium eudev font-hack seatd \
+ sway foot bemenu xwayland
+
setup-udev
-echo "=== installing tools ==="
-apk add shfmt shellcheck openssh gemget yt-dlp pass fzf mpv zathura-pdf-mupdf …
+echo "── installing tools"
+apk add urlview shfmt shellcheck openssh gemget yt-dlp pass fzf mpv \
+ zathura-pdf-mupdf firefox mutt mpd ncmpcpp
-echo "=== installing audio ==="
-apk add pipewire-pulse pamixer dbus dbus-openrc pipewire wireplumber rtkit pip…
+echo "── installing audio"
+apk add pipewire-pulse pamixer dbus dbus-openrc pipewire wireplumber \
+ rtkit pipewire-alsa
-echo "=== bluetooth setup ==="
+echo "── bluetooth setup"
apk add bluez bluez-openrc pipewire-spa-bluez
-echo "=== installing documentation ==="
+echo "── installing documentation"
apk add mandoc mandoc-apropos man-pages docs
if [ ! -d "/home/$user" ]; then
- echo "=== creating user ==="
+ echo "── creating user $user"
adduser "$user"
adduser "$user" audio
adduser "$user" wheel
@@ -44,21 +48,23 @@ if [ ! -d "/home/$user" ]; then
fi
if [ ! -e /home/$user/bin/fdm ]; then
- echo "=== build and install fdm ==="
+ echo "── build and install fdm"
pkgver=2.1
- apk add tdb-dev openssl-dev>3 zlib-dev bsd-compat-headers pcre-dev aut…
+ apk add tdb-dev openssl-dev zlib-dev bsd-compat-headers pcre-dev \
+ automake autoconf libtool
wget -P /tmp https://github.com/nicm/fdm/releases/download/$pkgver/fdm…
tar -zxvf /tmp/fdm-$pkgver.tar.gz -C $src
cd $src/fdm-$pkgver
autoreconf -vif
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --ena…
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --enable-pcre --mandir=/usr/share/man
make
cp fdm /home/jay/bin
chown -R $user:$user $src/fdm-$pkgver
fi
if [ ! -e /usr/local/bin/senpai ]; then
- echo "=== build and install senpai ==="
+ echo "── build and install senpai"
apk add go scdoc
git clone https://git.sr.ht/~taiite/senpai $src/senpai
cd $src/senpai
@@ -67,7 +73,7 @@ if [ ! -e /usr/local/bin/senpai ]; then
fi
if [ ! -e /usr/local/bin/sfeed ]; then
- echo "=== build and install sfeed ==="
+ echo "── build and install sfeed"
apk add ncurses-dev
git clone git://git.codemadness.org/sfeed $src/sfeed
cd $src/sfeed
@@ -76,7 +82,7 @@ if [ ! -e /usr/local/bin/sfeed ]; then
fi
if [ ! -e /home/$user/bin/lf ]; then
- echo "=== install lf ==="
+ echo "── install lf"
pkgver=r27
apk add ncurses
wget -P /tmp https://github.com/gokcehan/lf/releases/download/$pkgver/…
@@ -84,7 +90,7 @@ if [ ! -e /home/$user/bin/lf ]; then
fi
if [ ! -e /usr/local/bin/rdrview ]; then
- echo "=== build and install rdrview ==="
+ echo "── build and install rdrview"
apk add libxml2-dev libseccomp-dev curl-dev lynx
git clone https://github.com/eafer/rdrview.git $src/rdrview
cd $src/rdrview
@@ -93,7 +99,7 @@ if [ ! -e /usr/local/bin/rdrview ]; then
fi
if [ ! -e /usr/local/bin/castget ]; then
- echo "=== build and install castget ==="
+ echo "── build and install castget"
src=/home/$user/src/castget
apk add glib-dev libxml2-dev curl-dev
git clone https://github.com/mlj/castget.git $src/castget
@@ -106,7 +112,7 @@ fi
chown -R $user:$user $src
-echo "=== Starting services ==="
+echo "── starting services"
rc-update add seatd
rc-service seatd start
@@ -115,4 +121,3 @@ rc-service dbus start
rc-update add bluetooth
rc-service bluetooth start
-
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.