mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Imported scripts from private repository and enforced the naming convention
This commit is contained in:
3
scripts/archlinux/vagrant.install.sh
Normal file
3
scripts/archlinux/vagrant.install.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sudo pacman -S vagrant
|
||||
14
scripts/archlinux/virtualbox.setup.bash
Normal file
14
scripts/archlinux/virtualbox.setup.bash
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# https://k3s.io/
|
||||
|
||||
6
scripts/opensuse/ansible.setup.sh
Executable file
6
scripts/opensuse/ansible.setup.sh
Executable 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
|
||||
18
scripts/opensuse/boinc-client.setup.sh
Executable file
18
scripts/opensuse/boinc-client.setup.sh
Executable 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
6
scripts/opensuse/git.setup.sh
Executable 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
|
||||
5
scripts/opensuse/keybase.setup.sh
Normal file
5
scripts/opensuse/keybase.setup.sh
Normal 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
4
scripts/opensuse/virtuabox.setup.sh
Executable file
4
scripts/opensuse/virtuabox.setup.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sudo zypper install --no-confirm virtualbox
|
||||
sudo usermod --append --groups vboxusers $USER
|
||||
7
scripts/opensuse/visual-studio-code.install.sh
Executable file
7
scripts/opensuse/visual-studio-code.install.sh
Executable 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
|
||||
@@ -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}
|
||||
25
scripts/raspbian/frankendebian.setup.sh
Executable file
25
scripts/raspbian/frankendebian.setup.sh
Executable 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
|
||||
4
scripts/raspbian/raspbian.list.template
Normal file
4
scripts/raspbian/raspbian.list.template
Normal 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
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
interface="wlan0"
|
||||
|
||||
Reference in New Issue
Block a user