mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Refactored installation scripts
This commit is contained in:
7
scripts/apt/ansible.install.sh
Executable file
7
scripts/apt/ansible.install.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
sudo apt update && sudo apt --assume-yes install ansible ansible-lint
|
||||||
16
scripts/apt/docker.install.sh
Executable file
16
scripts/apt/docker.install.sh
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
# source: https://docs.docker.com/engine/install/ubuntu/
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
sudo apt --assume-yes purge docker docker-engine docker.io containerd runc
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
|
||||||
|
| sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||||
|
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
|
||||||
|
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
sudo apt update && sudo apt --assume-yes install docker-ce
|
||||||
10
scripts/apt/get-and-install-key.sh
Executable file
10
scripts/apt/get-and-install-key.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
if [[ "$APT_KEYS" != "" ]]
|
||||||
|
then
|
||||||
|
sudo apt-key adv --recv-keys $APT_KEYS
|
||||||
|
fi
|
||||||
13
scripts/apt/keybase.install.sh
Executable file
13
scripts/apt/keybase.install.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
# https://keybase.io/docs/the_app/install_linux
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
curl https://prerelease.keybase.io/keybase_amd64.deb \
|
||||||
|
--output /tmp/keybase_amd64.deb \
|
||||||
|
--silent
|
||||||
|
|
||||||
|
sudo apt update && sudo apt install --assume-yes /tmp/keybase_amd64.deb
|
||||||
|
rm keybase_amd64.deb
|
||||||
14
scripts/apt/vscodium.install.sh
Executable file
14
scripts/apt/vscodium.install.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
|
||||||
|
| gpg --dearmor \
|
||||||
|
| sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
|
||||||
|
|
||||||
|
echo 'deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' \
|
||||||
|
| sudo tee /etc/apt/sources.list.d/vscodium.list
|
||||||
|
|
||||||
|
sudo apt update && sudo apt --assume-yes install codium
|
||||||
7
scripts/apt/zsh.install.sh
Executable file
7
scripts/apt/zsh.install.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
export \
|
||||||
|
DEBIAN_FRONTEND='noninteractive' \
|
||||||
|
LC_ALL='C'
|
||||||
|
|
||||||
|
sudo apt --assume-yes install fzf zsh
|
||||||
8
scripts/dnf/clamav.install.sh
Normal file
8
scripts/dnf/clamav.install.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
sudo dnf install --assumeyes clamav clamd clamav-update
|
||||||
|
sudo setsebool -P antivirus_can_scan_system 1
|
||||||
|
|
||||||
|
sudo systemctl stop clamav-freshclam
|
||||||
|
sudo freshclam
|
||||||
|
sudo systemctl enable --now clamav-freshclam
|
||||||
7
scripts/keybase/install.rpm.sh
Executable file
7
scripts/keybase/install.rpm.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
# https://keybase.io/docs/the_app/install_linux
|
||||||
|
|
||||||
|
: "${PKG_MGR:=$(command which dnf yum zypper 2>/dev/null | head -n 1)}"
|
||||||
|
sudo $PKG_MGR install --assumeyes https://prerelease.keybase.io/keybase_amd64.rpm
|
||||||
|
|
||||||
|
run_keybase
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# https://keybase.io/docs/the_app/install_linux
|
|
||||||
|
|
||||||
curl https://prerelease.keybase.io/keybase_amd64.deb \
|
|
||||||
--output /tmp/keybase_amd64.deb \
|
|
||||||
--silent
|
|
||||||
LC_ALL='C' sudo apt install --assume-yes /tmp/keybase_amd64.deb
|
|
||||||
rm keybase_amd64.deb
|
|
||||||
|
|
||||||
run_keybase
|
|
||||||
|
|
||||||
# sudo dnf install --assumeyes https://prerelease.keybase.io/keybase_amd64.rpm
|
|
||||||
# sudo yum install --assumeyes https://prerelease.keybase.io/keybase_amd64.rpm
|
|
||||||
@@ -5,5 +5,3 @@
|
|||||||
|
|
||||||
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
|
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
|
||||||
sudo zypper install --no-confirm zfs
|
sudo zypper install --no-confirm zfs
|
||||||
|
|
||||||
chsh --shell $(which zsh) ${USER}
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
export LC_ALL='C'
|
|
||||||
|
|
||||||
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
|
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list
|
|
||||||
sudo apt update && sudo apt install codium
|
|
||||||
Reference in New Issue
Block a user