-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-linux-setup.sh
executable file
·125 lines (99 loc) · 3.87 KB
/
dev-linux-setup.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
#!/bin/bash
# Viviane's Development Machine Setup on PopOS
# Author: Viviane Dias
sudo apt update
# Installing build essentials
sudo apt install -y build-essential libssl-dev
# Installing vscode and my main extensions
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/vscodium.gpg
echo 'deb https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' | sudo tee --append /etc/apt/sources.list.d/vscodium.list
sudo apt update
sudo apt install codium
cat extensions.txt | xargs -L 1 codium --install-extension
# Install chromium browser
sudo apt install --assume-yes chromium-browser
# Install telegram
sudo add-apt-repository ppa:atareao/telegram
sudo apt update
sudo apt install telegram
# Install slack
# sudo snap install slack --classic
# Install node version manager (nvm) with latest and lts versions
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install node
nvm install --lts
# Install pnpm (package manager)
nvm use node
npm -g i pnpm
nvm use --lts
npm -g i pnpm
# Unninstall old versions of docker
sudo apt-get remove docker docker-engine docker.io containerd runc
# Setup docker repository
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Install docker engine
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# Manage docker as a non-root user
sudo groupadd docker
sudo usermod -aG docker $USER
# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# Install Vim, curl and tilix
sudo apt-get install -y vim curl tilix
# Setup terminal with zsh and oh-my-zsh
sudo apt install zsh
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install powerlevel10k theme
git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# Config zshrc with powerlevel10k theme
sed -ie 's|ZSH_THEME="robbyrussell"|ZSH_THEME="powerlevel10k/powerlevel10k"|g' ~/.zshrc
# Install GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
sudo apt install gconf2
sudo dpkg -i gitkraken-amd64.deb
# Install Discord
wget https://discord.com/api/download?platform=linux&format=deb
Y yes | sudo apt --fix-broken install
sudo apt install libgconf-2-4 libappindicator1 libc++1
sudo dpkg -i 'download?platform=linux&format=deb.deb'
# Configuring Git
git config --global user.name '<Your username>'
git config --global user.email '<[email protected]>'
# Installing pathogen vim to run fugitive.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cat >> ~/.vimrc << EOF
execute pathogen#infect()
syntax on
filetype plugin indent on
EOF
# Installing fugitive.vim
cd ~/.vim/bundle && \
git clone https://github.com/tpope/vim-fugitive.git
vim -u NONE -c "helptags vim-fugitive/doc" -c q
# Setting your default code editor to vim
git config --global core.editor vim
## Creating a commit template
git config --global commit.template ~/.gitmessage.txt
cat >> ~/.gitmessage.txt << EOF
Subject line (try to keep under 50 characters)
Multi-line description of commit,
feel free to be detailed.
[Ticket: X]
EOF