-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
ubuntu.sh
executable file
·46 lines (34 loc) · 1.17 KB
/
ubuntu.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
#!/usr/bin/env sh
set -e
user=$(whoami)
if [ ! "${user}" = "root" ]; then
echo "Granting sudoer nopassword to ${user}" >&2
echo "${user} ALL=(ALL) NOPASSWD:ALL" | sudo tee "/etc/sudoers.d/90-${user}-root"
fi
if ! hash sudo 2> /dev/null; then
apt-get install -y sudo
fi
if [ -f /etc/apt/sources.list.d/pve-enterprise.list ]; then
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" | sudo tee "/etc/apt/sources.list.d/pve-enterprise.list"
fi
curl -fsSL https://tailscale.com/install.sh | sudo sh
sudo apt-get install -y tmux most zsh watch htop build-essential zip unzip python3-pip git rsync git-lfs jq
if hash snap 2> /dev/null; then
sudo snap install emacs --classic
else
sudo apt-get install -y emacs-nox
fi
sudo chsh -s /usr/bin/zsh "${user}"
pip3 install powerline-status
pip3 install yq
make
. "${HOME}/.nvm/nvm.sh"
nvm install 14
nvm install 16
vivid_version=0.8.0
wget "https://github.com/sharkdp/vivid/releases/download/v0.8.0/vivid_${vivid_version}_amd64.deb"
sudo dpkg -i "vivid_${vivid_version}_amd64.deb"
rm "vivid_${vivid_version}_amd64.deb"
export GOBIN=~/go/bin
export GOROOT=~/goroot
go install github.com/owenthereal/ccat@latest