Imported scripts from private repository and enforced the naming convention

This commit is contained in:
Michele Cereda
2022-03-04 00:09:59 +01:00
parent a02453cc47
commit b2a057281c
29 changed files with 104 additions and 20 deletions

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
sudo pacman -S vagrant

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
packages="virtualbox virtualbox-host-modules-arch"
sudo pacman -S ${packages}
sudo gpasswd -a $USER vboxusers
#sudo reboot
vbox_version="$(vboxmanage --version)"
version=${vbox_version%r*}
file="Oracle_VM_VirtualBox_Extension_Pack-${version}.vbox-extpack"
curl -o /tmp/${file} -s https://download.virtualbox.org/virtualbox/${version}/${file}
sudo VBoxManage extpack install /tmp/${file} --accept-license=56be48f923303c8cababb0bb4c478284b688ed23f16d775d729b89a2e8e5f9eb --replace

View File

@@ -8,7 +8,7 @@ function dropbox-install {
DROPBOX_retries="3"
DROPBOX_url="http://www.getdropbox.com/download?plat=lnx.x86_64"
# download daemon
# download the daemon
echo " downloading archive…"
curl $DROPBOX_url \
--continue-at - \
@@ -17,18 +17,18 @@ function dropbox-install {
--retry $DROPBOX_retries \
--silent --show-error
# install daemon
# install the daemon
[[ -d "${HOME}/.dropbox-dist" ]] && echo " removing old executables…" && rm -r "${HOME}/.dropbox-dist"
echo " unarchiving tarball…"
tar zxf $DROPBOX_archive -C $HOME
# cleaning
# clean up
rm $DROPBOX_archive
[[ ${DEBUG} ]] && set +o xtrace
}
if [ ! -f start-multiple-instances.sh ]
if [ ! -r "$(dirname ${0})/start-multiple-instances.sh" ]
then
echo "[ERROR] Dropbox multi-instances start script not usable. Aborting."
exit 1
@@ -48,4 +48,4 @@ killall -I dropbox
dropbox-install
echo "[NOTICE] Restarting Dropbox daemons for all acounts."
./start-multiple-instances.sh
$(dirname ${0})/start-multiple-instances.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# https://k3s.io/

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env sh
sudo zypper --non-interactive search --installed-only 'python??' \
| sed -e '1,/---/ d' -e 's/ | /,/g' \
| awk -F ',' '{print $2 "-netaddr"}' \
| xargs sudo zypper install --no-confirm ansible

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env sh
sudo zypper install --no-confirm \
boinc-client \
boinc-manager
sudo usermod --append --groups boinc mek
# stop computation when user active
xhost +SI:localuser:boinc
# virtualbox integration
command VBoxManage --version >/dev/null && sudo usermod --append --groups vboxusers boinc
# amdgpu integration
# https://en.opensuse.org/SDB:AMDGPU
# https://amdgpu-install.readthedocs.io/en/latest/install-installing.html
amdgpu-install --usecase=workstation --opencl=rocr

6
scripts/opensuse/git.setup.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env sh
sudo zypper --non-interactive search --installed-only 'python??' \
| sed -e '1,/---/ d' -e 's/ | /,/g' \
| awk -F ',' '{print $2 "-pre-commit"}' \
| xargs sudo zypper install --no-confirm git-lfs

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
sudo zypper install --no-confirm https://prerelease.keybase.io/keybase_amd64.rpm
systemctl --user enable --now keybase.service
systemctl --user enable --now kbfs.service

View File

@@ -1,10 +0,0 @@
#!/usr/bin/env sh
# sources:
# - https://software.opensuse.org/download/package?package=keybase-client&project=openSUSE%3AFactory
# sudo zypper addrepo --refresh https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo
sudo zypper --non-interactive install git-lfs
sudo zypper --non-interactive install keybase-client
keybase login mek

View File

@@ -10,5 +10,5 @@ sudo zypper addrepo --check --refresh --priority 90 https://ftp.gwdg.de/pub/linu
sudo zypper addrepo --check --refresh --priority 90 https://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/ mozilla
./chromium.sh
./keybase.sh
./chromium.install.sh
./keybase.install.sh

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
sudo zypper install --no-confirm virtualbox
sudo usermod --append --groups vboxusers $USER

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
# source: https://en.opensuse.org/Visual_Studio_Code
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo zypper addrepo --refresh https://packages.microsoft.com/yumrepos/vscode vscode
sudo zypper install --no-confirm code

View File

@@ -4,4 +4,6 @@
# - https://en.opensuse.org/OpenZFS
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
sudo zypper install zfs
sudo zypper install --no-confirm zfs
chsh --shell $(which zsh) ${USER}

View File

@@ -0,0 +1,25 @@
#!/bin/sh
for release in stable testing
do
envsubst <<-EOF | sudo tee /etc/apt/sources.list.d/raspi.${release}.list
deb http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
EOF
done
cat <<-EOF > /etc/apt/preferences.d/90pin-to-release
Package: *
Pin: release n=stable
Pin-Priority: 500
Package: *
Pin: release n=testing
Pin-Priority: 450
Package: *
Pin: release n=buster
Pin-Priority: 400
EOF

View File

@@ -0,0 +1,4 @@
deb http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ ${release} main contrib non-free rpi

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
interface="wlan0"