-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-fedora.sh
executable file
·71 lines (60 loc) · 1.89 KB
/
setup-fedora.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash -e
# NOTES: this should be idempoent
# may need to run the following commands to get yubikey working
# sudo pkill scadeamon
# sudo pkill gpg-agent
echo "running fedora setup..."
# yum repo for google chrome
echo "setup yum repos"
cat << EOF > ./google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF
sudo mv google-chrome.repo /etc/yum.repos.d/
# setup RPM Fusion
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
echo "dnf install apps"
sudo dnf install -y neovim
sudo dnf install -y xsel # so system clipboard works with vim
sudo dnf install -y google-chrome-stable
sudo dnf install -y htop
sudo dnf install -y powertop
sudo dnf install -y paperkey
sudo dnf install -y stow
sudo dnf install -y mercurial
sudo dnf install -y gnome-tweak-tool
#sudo dnf install nautilus-dropbox
sudo dnf install -y ShellCheck
sudo dnf install -y arandr
sudo dnf install -y qemu
sudo dnf install -y the_silver_searcher tmux
sudo dnf install -y jq
# gpg stuff
sudo dnf install -y gnupg2 cryptsetup paperkey
# yubkikey tools
sudo dnf install -y ykclient ykpers libykneomgr
#smart card deps
sudo dnf install -y pcsc-tools opensc ccid gnupg2-smime
stow bash
stow git
stow nvim
stow psql
stow terraform
# enable GPG ssh support
mkdir -p ~/.gnupg
touch ~/.gnupg/gpg-agent.conf
echo enable-ssh-support > ~/.gnupg/gpg-agent.conf
# python tools
source ~/.bashrc
sudo pip install --upgrade pip
pip install --upgrade --user awscli
# GO
source ~/.bashrc
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz
rm go1.8.linux-amd64.tar.gz
./go-get.sh