Add ArmCord & Steam installs, + minor updates
This commit is contained in:
parent
c86fa46a01
commit
b371a1642e
5 changed files with 64 additions and 20 deletions
6
daily-use-pcs/gpg-config.batch
Normal file
6
daily-use-pcs/gpg-config.batch
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
%echo Generating an example PGP key
|
||||||
|
Key-Type: RSA
|
||||||
|
Key-Length: 4096
|
||||||
|
Name-Real: askiiart
|
||||||
|
Name-Email: dev@askiiart.net
|
||||||
|
Expire-Date: 0
|
|
@ -3,8 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
# Modify constants as needed
|
# Modify constants as needed
|
||||||
GITEA_URL="https://git.askiiart.net"
|
GITEA_URL="https://git.askiiart.net"
|
||||||
NAME="askiiart"
|
|
||||||
EMAIL="dev@askiiart.net"
|
|
||||||
|
|
||||||
# Note: This waits until enter is pressed
|
# Note: This waits until enter is pressed
|
||||||
# read -p "Press Enter to continue" < /dev/tty
|
# read -p "Press Enter to continue" < /dev/tty
|
||||||
|
@ -60,20 +58,9 @@ if [ -d "${HOME}/.gnupg/" ]; then
|
||||||
read -p "Enter the long ID of the key to be used for git:" KEY_ID
|
read -p "Enter the long ID of the key to be used for git:" KEY_ID
|
||||||
else
|
else
|
||||||
# Create GPG key
|
# Create GPG key
|
||||||
echo "> $ gpg --full-generate-key"
|
gpg --batch --gen-key gpg-config.batch
|
||||||
echo
|
|
||||||
echo Use the defaults, then real name "askiiart", email address \"dev@askiiart.net\", and comment \"git key\"\n
|
|
||||||
echo
|
|
||||||
gpg --full-generate-key
|
|
||||||
read -p "Copy the long ID above, then paste it here: " KEY_ID
|
read -p "Copy the long ID above, then paste it here: " KEY_ID
|
||||||
echo $KEY_ID
|
echo $KEY_ID
|
||||||
|
|
||||||
# Export GPG key
|
|
||||||
gpg --armor --export $KEY_ID
|
|
||||||
echo This is the exported key, copy it and put it in GitHub/Gitea/whatever
|
|
||||||
echo Gitea URL: ${GITEA_URL}/user/settings/keys
|
|
||||||
echo GitHub URL: https://github.com/settings/gpg/new
|
|
||||||
read -p "Press enter when you're done" </dev/tty
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Doing git config stuff...
|
echo Doing git config stuff...
|
||||||
|
@ -97,10 +84,6 @@ else
|
||||||
# -f: file, -N: passphrase, -t: type
|
# -f: file, -N: passphrase, -t: type
|
||||||
ssh-keygen -f ~/.ssh/id_rsa -N "" -t rsa
|
ssh-keygen -f ~/.ssh/id_rsa -N "" -t rsa
|
||||||
echo
|
echo
|
||||||
cat ~/.ssh/id_rsa.pub
|
|
||||||
echo This is the SSH public key, copy it and put it in GitHub/Gitea/whatever
|
|
||||||
echo Gitea URL: ${GITEA_URL}/user/settings/keys
|
|
||||||
echo GitHub URL: https://github.com/settings/ssh/new
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# From https://superuser.com/a/954639
|
# From https://superuser.com/a/954639
|
||||||
|
@ -116,3 +99,16 @@ chmod 600 ~/.gnupg/*
|
||||||
sudo chmod 700 $(ls -d $HOME/.gnupg/*/)
|
sudo chmod 700 $(ls -d $HOME/.gnupg/*/)
|
||||||
|
|
||||||
read -p "Done. Now verify your SSH and GPG keys in Git*" </dev/tty
|
read -p "Done. Now verify your SSH and GPG keys in Git*" </dev/tty
|
||||||
|
|
||||||
|
# Export GPG key
|
||||||
|
gpg --armor --export $KEY_ID
|
||||||
|
echo This is the exported key, copy it and put it in GitHub/Gitea/whatever
|
||||||
|
echo Gitea URL: ${GITEA_URL}/user/settings/keys
|
||||||
|
echo GitHub URL: https://github.com/settings/gpg/new
|
||||||
|
read -p "Press enter when you're done" </dev/tty
|
||||||
|
|
||||||
|
cat ~/.ssh/id_rsa.pub
|
||||||
|
echo This is the SSH public key, copy it and put it in GitHub/Gitea/whatever
|
||||||
|
echo Gitea URL: ${GITEA_URL}/user/settings/keys
|
||||||
|
echo GitHub URL: https://github.com/settings/ssh/new
|
||||||
|
read -p "Press enter when you're done" </dev/tty
|
||||||
|
|
|
@ -8,9 +8,10 @@ fi
|
||||||
command_exists() { type "$1" &>/dev/null; }
|
command_exists() { type "$1" &>/dev/null; }
|
||||||
|
|
||||||
if command_exists "apt-get"; then
|
if command_exists "apt-get"; then
|
||||||
;
|
sudo apt update
|
||||||
|
sudo apt install curl -y
|
||||||
elif command_exists "yum"; then
|
elif command_exists "yum"; then
|
||||||
;
|
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
|
||||||
elif command_exists "pacman"; then
|
elif command_exists "pacman"; then
|
||||||
WD=$(pwd)
|
WD=$(pwd)
|
||||||
pacman -S --needed git base-devel
|
pacman -S --needed git base-devel
|
||||||
|
|
20
install-stuff/install-armcord.bash
Normal file
20
install-stuff/install-armcord.bash
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
if [ $(whoami) == "root" ]; then
|
||||||
|
echo "Run as a normal user, not root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
command_exists() { type "$1" &>/dev/null; }
|
||||||
|
|
||||||
|
if command_exists "apt-get"; then
|
||||||
|
sudo curl -L https://askiiart.net/repos/debian/bookworm/amd64/askiiart.list -C - -o /etc/apt/sources.list.d/askiiart.list
|
||||||
|
sudo apt update --allow-insecure-repositories
|
||||||
|
sudo apt install armcord -y
|
||||||
|
elif command_exists "yum"; then
|
||||||
|
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
|
||||||
|
elif command_exists "pacman"; then
|
||||||
|
yay -S armcord-bin
|
||||||
|
else
|
||||||
|
echo "IDK, check ArmCord's GitHub repo: https://github.com/ArmCord/ArmCord"
|
||||||
|
fi
|
21
install-stuff/install-steam.bash
Normal file
21
install-stuff/install-steam.bash
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
if [ $(whoami) == "root" ]; then
|
||||||
|
echo "Run as a normal user, not root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
command_exists() { type "$1" &>/dev/null; }
|
||||||
|
|
||||||
|
if command_exists "apt-get"; then
|
||||||
|
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
|
||||||
|
sudo dpkg -i steam.deb
|
||||||
|
elif command_exists "yum"; then
|
||||||
|
sudo dnf install steam -y
|
||||||
|
elif command_exists "pacman"; then
|
||||||
|
echo "[multilib]\nInclude = /etc/pacman.d/mirrorlist"
|
||||||
|
read -p "Enable the multilib repo in /etc/pacman.conf - look above`
|
||||||
|
$EDITOR /etc/pacman.conf
|
||||||
|
else
|
||||||
|
echo "IDK"
|
||||||
|
fi
|
Loading…
Reference in a new issue