-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.sh
executable file
·127 lines (109 loc) · 3.57 KB
/
INSTALL.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Fresh Installation
OS_VERSION_CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | sed 's/VERSION_CODENAME=//')
## From server only installs
```bash
apt-get install \
curl htop alsa-utils gnupg software-properties-common
```
## Repositories
```bash
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
# Add Ulauncher PPA
mkdir /etc/apt/keyrings
echo "
deb [signed-by=/etc/apt/keyrings/ulauncher.gpg] https://ppa.launchpadcontent.net/agornostal/ulauncher/ubuntu ${OS_VERSION_CODENAME} main
deb-src [signed-by=/etc/apt/keyrings/ulauncher.gpg] https://ppa.launchpadcontent.net/agornostal/ulauncher/ubuntu ${OS_VERSION_CODENAME} main
" | sudo tee /etc/apt/sources.list.d/ulauncher.list
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xfaf1020699503176' -o /etc/apt/keyrings/ulauncher.key
cat /etc/apt/keyrings/ulauncher.key | apt-key --keyring /etc/apt/keyrings/ulauncher.gpg add -
```
## Apt Packages
```bash
apt-get update
apt-get upgrade
apt-get install \
xinit i3-wm dunst i3status suckless-tools compton hsetroot fonts-noto fonts-mplus fonts-font-awesome xsettingsd lxappearance \
scrot imagemagick i3lock
apt-get install \
git tig meld xclip terminator sshuttle gnome-screenshot \
spotify-client google-chrome-stable \
python3 python3-pip \
openafs-client openafs-krb5
```
## Work Tools
```bash
pip3 install --user virtualenvwrapper
```
## dotfiles
```bash
mkdir ws
cd ws
git clone [email protected]:dioguerra/dotfiles.git
cd dotfiles
git submodule init
git submodule update
```
```bash
rm $HOME/.bashrc
for f in $(find . -maxdepth 1 -name '\.*'); do ln -s $HOME/ws/dotfiles/$f ~/$f; done
```
## Visual
```bash
apt install ulauncher --no-install-recommends --no-install-suggests
cd $HOME/ws/dotfiles/nerd-fonts
#./install.sh -l -C -S -T -A
./install.sh -U -l --fontawesome --fontlinux --octicons --pomicons
```
## Scripts
```bash
for s in $(ls $HOME/ws/dotfiles/bin); do ln -s $HOME/ws/dotfiles/bin/$s $HOME/.local/bin/$s; done
```
## SSH
```bash
mkdir ~/.ssh/controlmasters
scp -r lxplus.cern.ch:~/.ssh/id_dsa ~/.ssh
scp -r lxplus.cern.ch:~/.ssh/id_rsa ~/.ssh
```
## GPG
#Public Key: http://keys.gnupg.net/pks/lookup?search=0x5453F6BE&fingerprint=on&op=index
#```bash
#scp -r lxplus.cern.ch:~/.gnupg/* ~/.gnupg
#```
#Helper commands:
#```bash
#gpg --list-keys
#gpg --list-secret-keys
#gpg --encrypt --armor sample.txt
#```
## Container Tools
# TODO: Setup auto containerd+nerdctl installation
### docker
```bash
apt install docker.io
usermod -aG docker $USER
```
### Kubernetes
# kubectl
```bash
mkdir -p $HOME/.local/bin
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -O $HOME/.local/bin/kubectl
bash -c "$HOME/.local/bin/kubectl completion bash > /etc/bash_completion.d/kubectl"
```
# helm
```bash
HELM_LATEST=$(curl -s https://github.com/helm/helm/releases | grep "Download Helm" | grep -oE "v[0-9]+\.[0-9]+\.[0-9]+\." | head -n1 | rev | cut -c2- | rev)
curl https://get.helm.sh/helm-${HELM_LATEST}-linux-amd64.tar.gz -o helm-latest.tar.gz
tar zxvf helm-latest.tar.gz
mv linux-amd64/helm $HOME/.local/bin
rm -rf helm-latest.tar.gz linux-amd64
```
## Media & Chat
### zoom
```bash
wget https://zoom.us/client/latest/zoom_amd64.deb
sudo apt install ./zoom_amd64.deb
rm zoom*.deb
```