useful_scripts/install_debian_software.sh

68 lines
2.0 KiB
Bash
Raw Normal View History

2024-03-03 15:34:52 +00:00
#!/bin/bash
2024-03-29 04:57:07 +00:00
# for nodejs/opencommit
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
# apt packages
2024-06-15 17:19:24 +00:00
sudo apt update
sudo apt install -y \
2024-03-03 15:07:29 +00:00
mpv `# for video playing` \
sxiv `# for pictures` \
2024-03-03 15:34:52 +00:00
strace `# for tracing` \
2024-03-03 15:09:35 +00:00
docker.io `# containers` \
docker-compose `# containers` \
ffmpeg `# for video` \
v4l2loopback-dkms `# for obs-studio` \
obs-studio `# for screen recording` \
2024-04-06 16:00:18 +00:00
peek `# for screen recording` \
2024-06-15 17:19:24 +00:00
nodejs `# for opencommit` \
python3-pip `# pip` \
bat \
locales \
2024-06-15 17:19:24 +00:00
scrot `# screenshots`
sudo docker swarm init
sudo docker stack deploy -c ollama-stack.yaml ollama
2024-03-03 15:07:29 +00:00
# this is needed for pavucontrol/docker working not under sudo only
for group in audio pulse-access pulse docker
2024-03-03 15:07:29 +00:00
do
sudo usermod -a -G $group $USER
done
2024-06-15 17:19:24 +00:00
newgrp docker
# background removal for obs-studio
if [ ! -d /usr/share/obs/obs-plugins/obs-backgroundremoval ]
then
wget https://github.com/occ-ai/obs-backgroundremoval/releases/download/1.1.10/obs-backgroundremoval-1.1.10-x86_64-linux-gnu.deb
sudo apt install -y ./obs-backgroundremoval-1.1.10-x86_64-linux-gnu.deb
rm -f obs-backgroundremoval-1.1.10-x86_64-linux-gnu.deb
fi
2024-03-17 09:22:42 +00:00
# install opencommit
if ! command -v opencommit &> /dev/null
then
2024-06-15 17:19:24 +00:00
sudo npm install -g opencommit
oco config set OCO_AI_PROVIDER=ollama
fi
2024-03-03 15:07:29 +00:00
# install pet
if ! command -v pet &> /dev/null
then
wget https://github.com/knqyf263/pet/releases/download/v0.3.6/pet_0.3.6_linux_amd64.deb
sudo apt install -y ./pet_0.3.6_linux_amd64.deb
rm -f pet_0.3.6_linux_amd64.deb
fi
2024-03-29 04:57:07 +00:00
# install gui scripts
if ! command -v a &> /dev/null
then
2024-06-15 17:19:24 +00:00
curl -O "https://git.digitalstudium.com/digitalstudium/tui-scripts/releases/download/latest/tui-scripts_$(curl -s https://git.digitalstudium.com/digitalstudium/tui-scripts/raw/branch/main/VERSION)-1.deb"
sudo apt install -y ./tui-scripts_*.deb
rm -f tui-scripts*
fi