-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot.sh
executable file
·33 lines (26 loc) · 1.03 KB
/
boot.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
#!/bin/bash
# Needed for all installers
sudo apt update -y
sudo apt upgrade -y
sudo apt install -y curl git unzip
sudo apt install -y \
build-essential pkg-config autoconf bison clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev \
libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libsqlite3-dev git-core libxml2-dev \
libmysqlclient-dev libxslt1-dev libcurl4-openssl-dev \
software-properties-common
# Ensure computer doesn't go to sleep or lock while installing
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0
# Run desktop installers
for installer in $PWD/installers/*.sh; do
source $installer
done
sudo apt update -y
# Revert to normal idle and lock settings
gsettings set org.gnome.desktop.screensaver lock-enabled true
gsettings set org.gnome.desktop.session idle-delay 300
# Logout to pickup changes
gnome-session-quit --logout --no-prompt