56 lines
2.1 KiB
Bash
Executable file
56 lines
2.1 KiB
Bash
Executable file
#!/bin/bash
|
|
function pause {
|
|
read -n1 -rsp $'Press any key to continue...\n'
|
|
}
|
|
function config_git {
|
|
echo -n "Enter your name (git):"
|
|
read name
|
|
echo -n "Enter your email address (git):"
|
|
read mail
|
|
git config --global user.name $name
|
|
git config --global user.email $mail
|
|
git config --global gpg.program gpg2
|
|
git config --global commit.gpgsign true
|
|
}
|
|
function install_software {
|
|
sudo dnf install -y http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm https://prerelease.keybase.io/keybase_amd64.rpm
|
|
sudo dnf copr enable -y decathorpe/syncthing #Syncthing
|
|
sudo dnf copr enable -y region51/chrome-gnome-shell #Makes the gnome extension site function in Chrome
|
|
sudo dnf install -y vlc ffmpeg hexchat menulibre htop shutter deluge syncthing* chrome-gnome-shell gnome-tweak-tool heimdall latexila texlive-scheme-full gnupg gnupg2 pass yubi* gimp digikam java-1.8.0-openjdk-devel golang compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 ncurses-libs.i686 --best --allowerasing
|
|
sudo dnf upgrade -y
|
|
}
|
|
function config_ssh {
|
|
echo -n "Application Name (ssh key):"
|
|
read application
|
|
echo -n "Hostname (ssh key):"
|
|
read hostname
|
|
DATE=`date +%Y%m%d`
|
|
comment="$DATE - $application - $hostname"
|
|
#ssh-keygen -b 8192 -t rsa -C "$comment" -f ~/.ssh/id_rsa
|
|
cat ~/.ssh/id_rsa.pub
|
|
echo "Insert this SSH key into gogs before you continue."
|
|
pause
|
|
}
|
|
function get_gpg_keys {
|
|
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 691C036821A1C2A05415F572F338AD3815B5D61C 33BD6633839B232E1A24BF4262BEE5EB8F370DC6
|
|
}
|
|
function clone_git_repos {
|
|
git clone ssh://git@jcg.re:10022/jcgruenhage/.password-store.git
|
|
mkdir dev
|
|
cd dev
|
|
git clone ssh://git@jcg.re:10022/jcgruenhage/scripts.git
|
|
git clone ssh://git@jcg.re:10022/jcgruenhage/homepage.git
|
|
git clone ssh://git@jcg.re:10022/klug-O-soft/kOs_Timer.git
|
|
}
|
|
|
|
install_software
|
|
config_ssh
|
|
config_git
|
|
clone_git_repos
|
|
get_gpg_keys
|
|
|
|
|
|
|
|
|
|
|