-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev_setup.sh
More file actions
executable file
·81 lines (63 loc) · 2.29 KB
/
dev_setup.sh
File metadata and controls
executable file
·81 lines (63 loc) · 2.29 KB
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
#!/bin/bash
# Start with updates.
sudo apt update
sudo apt-get upgrade -y
# install chrome
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'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Install programs / utils
sudo apt-get install -y tilix
sudo apt-get install -y git
sudo apt-get install -y vim
sudo apt-get install -y curl
sudo apt-get install -y tmux
sudo apt-get install -y neovim
sudo apt-get install -y texmaker
sudo apt-get install -y gtg
sudo apt-get install -y htop
# Install VsCode
sudo snap install code
# Install Spotify
sudo snap install spotify
# Install Slack
sudo snap install slack --classic
# Install Docker
sudo apt-get install -y apt-transport-https ca-certificates curl 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"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo docker run hello-world
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo usermod -aG docker ${USER}
su - ${USER}
docker run hello-world
# Github login
read -p "Enter your email: " email
read -sp "Enter your token: " token
git config --global user.email "$email"
git config --global user.token "$token"
git config --global credential.helper store
# install nvchad
git clone https://github.com/NvChad/NvChad ~/.config/nvim
# Change directory to nvchad
cd ~/.config/nvim
echo "nvchad installed successfully."
# Generate GPG key
gpg --full-generate-key
# Get GPG key ID
key_id=$(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | awk -F '/' '{print $2}')
# Configure Git to use GPG key for signing commits
git config --global user.signingkey $key_id
git config --global commit.gpgsign true
echo "Git configured successfully."
# Return Full GPG key
echo "Add this new GPG key to your github Account:"
echo ""
key=$(gpg --armor --export $key_id)
echo "$key"