aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-05-12 12:41:31 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2024-05-12 12:41:31 -0400
commitd05171fabfe502853cb56eb9f3d09518a19823d2 (patch)
treed553fe577f4ec233cf210171efb43377ede47aae
parentaefd314c59bac195676da4fdfa706dc6e1ac576a (diff)
downloaddotfiles-d05171fabfe502853cb56eb9f3d09518a19823d2.tar.gz
dotfiles-d05171fabfe502853cb56eb9f3d09518a19823d2.tar.xz
Add OBS, darktable, and a few other bits to Ubuntu script
-rwxr-xr-xdistro/ubuntu.sh49
1 files changed, 39 insertions, 10 deletions
diff --git a/distro/ubuntu.sh b/distro/ubuntu.sh
index e744363..0818fca 100755
--- a/distro/ubuntu.sh
+++ b/distro/ubuntu.sh
@@ -1,6 +1,11 @@
#!/bin/sh
+if [ "$(id -u)" -eq 0 ] ; then
+ echo "Run as a regular user"
+ exit 1
+fi
set -ex
nvimdir="$HOME/scm/pub/neovim-nvim"
+NVIM="${NVIM:-yes}"
sudo apt update
@@ -17,9 +22,7 @@ sudo apt install -y \
dconf-editor \
git \
htop \
- lua-nvim \
neofetch \
- neovim \
npm \
oathtool \
pavucontrol \
@@ -27,18 +30,37 @@ sudo apt install -y \
tmux \
vim \
wl-clipboard \
-
+ evemu-tools \
+ evtest \
+ libarchive-tools \
+ evolution \
+ gimp \
+ git-lfs \
+ iperf3 \
+ ncdu \
+ nload \
+ pv \
+ pwgen \
+ ripgrep \
+ yubikey-manager \
+ wireguard-tools \
+ zstd \
+ darktable \
+ v4l2loopback-dkms \
+
sudo apt build-dep -y neovim
-if ! [ -d "$nvimdir" ] ; then
- git clone https://github.com/neovim/neovim "$nvimdir"
+if [ "$NVIM" = yes ] ; then
+ if ! [ -d "$nvimdir" ] ; then
+ git clone https://github.com/neovim/neovim "$nvimdir"
+ fi
+ cd "$nvimdir"
+ rm -rf build || echo ""
+ make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
+ make install
+ cd -
fi
-cd "$nvimdir"
-rm -rf build || echo ""
-make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
-make install
-cd -
case "$(uname -m)" in
x86_64)
@@ -72,3 +94,10 @@ if echo "$XDG_CURRENT_DESKTOP" | grep -qi gnome ; then
fi
fi
+
+sudo sh -c 'echo "kmod-v4l2loopback" > /etc/modules-load.d/v4l.conf'
+
+sudo sh -c 'echo "options v4l2loopback devices=3 video_nr=10,11,12 card_label=\"OBS Cam,Loopback 1,Loopback 2\"" > /etc/modprobe.d/99-v4l.conf '
+
+flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
+flatpak install -y flathub com.obsproject.Studio