From d05171fabfe502853cb56eb9f3d09518a19823d2 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 12 May 2024 12:41:31 -0400 Subject: Add OBS, darktable, and a few other bits to Ubuntu script --- distro/ubuntu.sh | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) (limited to 'distro/ubuntu.sh') 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 -- cgit v1.2.3