-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
192 lines (149 loc) · 5.86 KB
/
install.sh
File metadata and controls
192 lines (149 loc) · 5.86 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#!/bin/bash
sudo apt update
sudo apt upgrade
## Install fish shell and make it default
sudo apt install fish
chsh -s /usr/bin/fish
## Install and configure Git
sudo apt install git
git config --global user.name "NePav"
git config --global user.email "nenad.pavlovic@sentian.ai"
## Copy and register old SSH keys
#cp /path/to/my/key/id_rsa ~/.ssh/id_rsa
#cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub
## change permissions on file
#sudo chmod 600 ~/.ssh/id_rsa
#sudo chmod 600 ~/.ssh/id_rsa.pub
## start the ssh-agent in the background
#eval $(ssh-agent -s)
## make ssh agent to actually use copied key
#ssh-add ~/.ssh/id_rsa
## Git clone my config files
git clone https://github.com/NePav/dotFiles.git ~/Documents/MyGits/dotFiles/
## In case of lsot git keys do the following:
## Generate and install git key
#ssh-keygen -t rsa -b 4096 -C "nenad.pavlovic@sentian.ai" -f /home/nenad/.ssh/id_rsa
# eval "$(ssh-agent -s)"
# ssh-add ~/.ssh/id_rsa
##
## Else, migrate the existing keys!!!
## Generating new keys will require updating those to all places, such as git,
## where they are used.
## Copy fonts
cp -r ~/Documents/MyGits/dotFiles/.fonts/ ~/
## Copy background wallpapers
cp -r ~/Documents/MyGits/dotFiles/Background/ ~/Pictures/Background
## Install ARandR
sudo apt install arandr
## Copy screen layouts
cp -r ~/Documents/MyGits/dotFiles/.screenlayout/ ~/
## Install feh
sudo apt-get install feh
## Install flameshot
sudo apt install flameshot
## Install htop
sudo apt install htop
## Install net-tools
sudo apt install net-tools
## Install Slack
sudo snap install slack --classic
## Install pip
sudo pip3 install pip
## Install pywal
sudo pip3 install pywal
## Install i3 prerequisites
sudo apt install feh fonts-font-awesome rofi pulseaudio-utils xbacklight alsa-tools clipit gcc git terminator locate pcmanfm acpi libnotify-bin
## i3wm installation (Official i3wm repo)
## https://i3wm.org/docs/repositories.html
## i3wm Ubuntu repository. Maybe must run these commented lines manualy!
/usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2021.02.02_all.deb keyring.deb SHA256:cccfb1dd7d6b1b6a137bb96ea5b5eef18a0a4a6df1d6c0c37832025d2edaa710
sudo su root
dpkg -i ./keyring.deb
echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list
exit
sudo apt update
sudo apt install i3
## Install i3gaps
sudo add-apt-repository ppa:kgilmer/speed-ricer
sudo apt-get update
sudo apt-get install i3-gaps
sudo apt-get install i3blocks
sudo apt-get install i3lock-fancy
# sudo apt-get install i3status #isntalled with i3wm
## Install i3wm + i3blocks + i3gaps from (Debian managed repo - older version)
## All at once
#sudo apt-get install i3 i3-wm i3-wm-dbg i3blocks i3lock i3lock-fancy i3status
## One by one
#sudo apt-get install i3
#sudo apt-get install i3-wm
#sudo apt-get install i3-wm-dbg
#sudo apt-get install i3blocks
#sudo apt-get install i3lock
#sudo apt-get install i3lock-fancy
#sudo apt-get install i3status
## !!! OPTIONAL - instead of i3-Blocks !!!
## Install Ploybar## Link: https://gist.github.com/kuznero/f4e983c708cd2bdcadc97be695baacf8
## Colors: https://github.com/unix121/i3wm-themer/blob/master/themes/001.json
## During the build process answer Yes to all the options (except the first on on using GCC instead of CLang if available). And in the end say Yes to run sudo make install.
#sudo apt-get install \
# cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev \
# libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev \
# libxcb-util0-dev libxcb-xkb-dev pkg-config python3-xcbgen \
# xcb-proto libxcb-xrm-dev libasound2-dev libmpdclient-dev \
# libiw-dev libcurl4-openssl-dev libpulse-dev \
# libxcb-composite0-dev xcb libxcb-ewmh2 libjsoncpp-dev
#cd /tmp
#git clone https://github.com/jaagr/polybar.git
#cd polybar
#git tag # see what version do you need
## Update version from 3.5.0 to the latest based on tag output
#git checkout 3.5.0
#./build.sh
#cd dotFiles
# Copy config file and launch.sh
#sudo cp /polybar/config $HOME/.config/polybar/config
#sudo cp /polybar/launch.sh $HOME/.config/polybar/launch.sh
#sudo chmod +x $HOME/.config/polybar/launch.sh
## !!! END of OPTIONAL - instead of i3-Blocks !!!
## install xorg
sudo apt-get install xorg
## Install compton
sudo apt install compton
## Install Redshift (screen blue colour dimmer)
sudo apt install redshift-gtk
sudo apt install redshift
## Install polkit packages
sudo apt install policykit-1-gnome
## Copy i3 config file
sudo cp ~/Documents/MyGits/dotFiles/.config/i3/config ~/.config/i3/config
## Copy i3-blocks config file
mkdir ~/.config/i3blocks/
sudo cp ~/Documents/MyGits/dotFiles/.config/i3blocks/i3blocks.conf ~/.config/i3/i3blocks.conf
## Copy compton config file
mkdir ~/.config/compton
sudo cp ~/Documents/MyGits/dotFiles/.config/compton.conf ~/.config/i3/compton.conf
#########################
## THE END ##
## of Step 1 ! ##
#########################
echo 'Logout from Gnome and log-in using i3-debug-WM)'
#########################
## Step 2 ##
## after reboot ##
#########################
## Create alias for settings control center
echo "my_settings='env XDG_CURRENT_DESKTOP=GNOME gnome-control-center'" >> ~/.bash_aliases && source ~/.bash_aliases
## Install Fish Shell from here: https://fishshell.com/
## Launch Shell
## Create alias in Fish:
# alias my_settings='env XDG_CURRENT_DESKTOP=GNOME gnome-control-center'
# funcsave my_settings
## Install Ranger file manager
sudo apt-get install ranger caca-utils highlight atool w3m poppler-utils mediainfo
# Add devicons to Ranger
cd ~/Documents/MyGits/
git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1 ~/Documents/MyGits/nerd-fonts/
cd ~/Documents/MyGits/nerd-fonts
./install.sh
cd ~/
git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons