-
Notifications
You must be signed in to change notification settings - Fork 3
/
post_install.sh
230 lines (189 loc) · 10.2 KB
/
post_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
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#!/usr/bin/env bash
## +-----------------------------------+-----------------------------------+
## | |
## | Pos Install Scrypt |
## | |
## | Copyright (c) 2022, Bragatte <marcelobragatte@gmail.com>. |
## | |
## | All programs are free software: you can redistribute it and/or modify |
## | it under the terms of the GNU General Public License as published by |
## | the Free Software Foundation, either version 3 of the License, or |
## | (at your option) any later version. |
## | |
## | This script should be run with SUDO command. |
## | Detail instructions: |
## | <https://github.com/BragatteMAS/Linux_posintall_script> |
## | POP-OS 22.04 version - Tested 20220426 |
## +-----------------------------------------------------------------------+
echo ' \n Auto install Bragatte_mode!!!! \n '
# -------------------------------------------------------------------------- #
#APT command line package used to install programs Debian/Ubuntu distros stores
# -----------------------------VARIABLES APT-------------------------------- #
APT_INSTALL=(
synaptic #System|program manager
neofetch #System|verify info term
gufw #System|firewall for linux
git git-lfs #System|control modifications
stacer #System|clean and monitor programs
alacritty #System|GPU enhanced terminal
timeshift #System|backup
virtualbox-qt #System|emulate OS 'sudo adduser $USER vboxusers'
nemo #System|file manager
flameshot #Image|capture screen with shortcut system -> easir to manager with .deb
zsh #Terminal|alternative option for bash in terminal
terminator #Terminal|high configurtion term
gnome-sushi #Image|previsualize files pressing space Nautilus
folder-color #Image|visual productivity for management folders structures
ffmpeg #Image|extension
simplescreenrecorder #Video|capture and film screen
lutris piper ratbagd wine #Games|systems
openssh-server #System|remotely controlling & transferring
tigervnc-viewer #System|VNC
openconnect network-manager-openconnect network-manager-openconnect-gnome #System|VPN
openvpn network-manager-openvpn network-manager-openvpn-gnome #System|ProtonVPN
gnome-tweaks gnome-shell-extensions gnome-shell-extension-prefs chrome-gnome-shell #Gnome|desktop utilities
pspp #Research|Stats
)
# -------------------------------------------------------------------------- #
#Programs select from SNAP store <https://snapcraft.io/store>
# -----------------------------VARIABLES SNAP------------------------------- #
SNAP_INSTALL=(
#bing-wall #Image|Wallpapers automatically generated | change for gnome extension
photogimp #Image|patch 'Adobe' for GIMP
bpytop #System|memory verify
authy #System|backup two steps factors
homeserver #Productivity|Share folders in urls
docker #Productivity|container environmental 'sudo groupadd docker' && 'sudo usermod -aG docker $USER'
qsnapstore #Productivity|Snap store improved
weka-james-carroll #Research|ML
)
# --------------------------------------------------------------------------- #
#Programs select from Flathub store <https://flathuby.org/home>
# -----------------------------VARIABLES FLAT-------------------------------- #
FLAT_INSTALL=(
com.bitwarden.desktop #System|password manager
flatseal #System|permissions
filezilla #System|SQL manager
gpuviewer #System|GPU easy info
OnionShare #System|transfer files safety
org.gnome.Boxes #System|virtualization
de.haeckerfelix.Fragments #System|bitTorrent client for gnome
fr.romainvigier.MetadataCleaner #System|clean metadata imgs before upload to internet
pavucontrol #Sound|Control
com.spotify.Client #Sound|digital music service
org.audacityteam.Audacity #Sound|Record and edit audio files
io.github.seadve.Mousai #Sound|discover songs
com.uploadedlobster.peek #Image|gif creator
org.inkscape.Inkscape #Image|vector graphics software
#org.flozz.yoga-image-optimizer #Image|converter
org.kde.kdenlive #Video|Edition
obsproject.Studio #Video|streaming software
org.videolan.VLC #Video|media player open-source
org.blender.Blender #Video|3D pipeline—model,animation,simulation,rendering
com.valvesoftware.Steam #Games|systems
zoom #Comunication|webinars
slack #Comunication|team chat
org.telegram.desktop #Comunication|popular messaging protocol
com.discordapp.Discord #Comunication|messaging electron framework
com.google.Chrome #Productivity|browser
org.chromium.Chromium #Productivity|browser
io.gitlab.librewolf-community #Productivity|browser
dropbox #Productivity|online files manager storage
nz.mega.MEGAsync #Productivity|online files manager storage
org.kde.okular #Productivity|pdf-editor
calibre #Productivity|reader kindle types
openboard #Productivity|educational software interactive board
com.github.johnfactotum.Foliate #Productivity|ebook viewer
fontfinder #Productivity|design
org.gustavoperedo.FontDownloader #Productivity|design
io.github.lainsce.Colorway #Productivity|design
io.github.lainsce.Emulsion #Productivity|design
com.visualstudio.code #Productivity|Best IDE
rest.insomnia.Insomnia #Productivity|open source rest api tester
meld #Productivity|diif across files
#gitkraken #Productivity|code commit
com.toggl.TogglDesktop #Productivity|design
org.texstudio.TeXstudio #Productivity|writing
blanket #Productivity|back environmental sounds to work
organizer #Productivity|shifts files according to their filetype
com.gitlab.cunidev.Workflow #Productivity|timecontrol
md.obsidian.Obsidian #Research|Link your thinking
org.zotero.Zotero #Research|References
org.pymol.PyMOL #Research|3D viewer
org.jaspstats.JASP #Research|real-time, statisticial spreadsheet
geogebra #Research|dynamic geometry program
)
# ---------------------------------------------------------------------- #
#Deb packages
##Alternative for Flathub from Chrome released 2022
#URL_GOOGLE_CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
#PPA
#sudo add-apt-repository ppa:lutris-team/lutris
### --------------------- Basic system utilities ---------------------- ###
## Removing any apt locks ##
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
## Adding / Confirming 32-bit Architecture ##
sudo dpkg --add-architecture i386
## Updating the repository ##
sudo apt update -y
##Packages of apps for Linux
sudo apt install snapd -y
sudo apt install flatpak -y
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# ---------------------------------------------------------------------- #
## Install programs APT
for apt_program in ${APT_INSTALL[@]}; do
if ! dpkg -l | grep -q $apt_program; then # Just install if not exist
apt install -y "$apt_program" #$# Change this line if you have other distro than debian/ubuntu base
else
echo "[successful installation] - $apt_program"
fi
done
## Install programs SNAP
for snap_program in ${SNAP_INSTALL[@]}; do
if ! dpkg -l | grep -q $snap_program; then # Just install if not exist
snap install "$snap_program"
fi
done
## Install programs FLATPAK
for flat_program in ${FLAT_INSTALL[@]}; do
if ! dpkg -l | grep -q $flat_program; then # Just install if not exist
flatpak install flathub "$flat_program" -y
fi
done
### --------------------------- Exceptions----------------------------- ###
## Brave Browser
sudo apt install apt-transport-https curl -y
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update -y
sudo apt install brave-browser -y #faster/browser
##Github Desktop
wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/shiftkey/desktop/any/ any main" > /etc/apt/sources.list.d/packagecloud-shiftky-desktop.list'
sudo apt-get update
sudo apt install github-desktop -y
### ------------------------------------------------------------------- ###
## Download and install external programs .deb -> using for Bravebrowser##
HOME="$(getent passwd $SUDO_USER | cut -d: -f6)"
Dir_Downloads="$HOME/Downloads/Programs"
mkdir "$Dir_Downloads"
sudo chmod 777 -R "$Dir_Downloads"
#wget -c "$URL_GOOGLE_CHROME" -P "$Dir_Downloads"
## Installing .deb packages ##
sudo dpkg -i $Dir_Downloads/*.deb
sudo apt update -y
### ---------------------------- After install ------------------------ ###
# ---------------------------------------------------------------------- #
#sudo add-apt-repository --remove ppa:lutris-team/lutris
sudo add-apt-repository --remove ppa:linux/chrome/deb/
# ---------------------------------------------------------------------- #
sudo apt update && sudo apt upgrade && apt dist-upgrade -y
sudo snap refresh
flatpak update -y
sudo apt autoclean
sudo apt autoremove -y
# ---------------------------------------------------------------------- #
echo '\n All done! Reboot your pc, run this script a second time to check the instalation confirmation message and keep walking!'
### ------------------------------------------------------------------- ####