After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 638 KiB |
After Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 151 KiB |
Before Width: | Height: | Size: 707 KiB |
After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 707 KiB |
After Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 725 KiB |
After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 734 KiB |
After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 643 KiB |
@ -1,48 +0,0 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
# Run me with: |
||||
# |
||||
# bash <(curl -Ss raw.githubusercontent.com/01-edu/public/master/scripts/kickstart.sh) |
||||
|
||||
# Treat unset variables as an error when substituting. |
||||
set -u |
||||
|
||||
# Exit immediately if a command exits with a non-zero status. |
||||
set -e |
||||
|
||||
# Set the variable corresponding to the return value of a pipeline is the status |
||||
# of the last command to exit with a non-zero status, or zero if no command |
||||
# exited with a non-zero status |
||||
set -o pipefail |
||||
|
||||
# Separate tokens on newlines only |
||||
IFS=' |
||||
' |
||||
|
||||
# The value of this parameter is expanded like PS1 and the expanded value is the |
||||
# prompt printed before the command line is echoed when the -x option is set |
||||
# (see The Set Builtin). The first character of the expanded value is replicated |
||||
# multiple times, as necessary, to indicate multiple levels of indirection. |
||||
# \D{%F %T} prints date like this : 2019-12-31 23:59:59 |
||||
PS4='-\D{%F %T} ' |
||||
|
||||
# Print commands and their arguments as they are executed. |
||||
set -x |
||||
|
||||
# Skip dialogs during apt-get install commands |
||||
export DEBIAN_FRONTEND=noninteractive # DEBIAN_PRIORITY=critical |
||||
|
||||
gsettings set org.gnome.desktop.session idle-delay 0 |
||||
gsettings set org.gnome.desktop.screensaver lock-enabled false |
||||
|
||||
cd |
||||
wget github.com/01-edu/public/archive/master.zip |
||||
unzip master.zip |
||||
|
||||
cd public-master/scripts |
||||
sudo -E ./install_client.sh |
||||
cat dconfig.txt | dconf load / |
||||
|
||||
cd |
||||
rm -rf master.zip public-master |
||||
reboot |
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
# Setup everything |
||||
|
||||
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" |
||||
cd $script_dir |
||||
. set.sh |
||||
|
||||
repo_dir=$(git rev-parse --show-toplevel) |
||||
|
||||
gsettings set org.gnome.desktop.session idle-delay 0 |
||||
gsettings set org.gnome.desktop.screensaver lock-enabled false |
||||
|
||||
sudo -E ./configure_ubuntu.sh |
||||
cat dconfig.txt | dconf load / |
||||
rm -rf "$repo_dir" |
||||
reboot |
@ -0,0 +1,10 @@
|
||||
[Unit] |
||||
Description=Docker relocation |
||||
Before=docker.service |
||||
|
||||
[Service] |
||||
ExecStart=/usr/local/bin/mount-docker.sh |
||||
Type=oneshot |
||||
|
||||
[Install] |
||||
RequiredBy=docker.service |
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
# Unofficial Bash Strict Mode |
||||
set -euo pipefail |
||||
IFS=' |
||||
' |
||||
|
||||
cp -a /var/lib/docker /tmp |
||||
mount -t tmpfs -osize=2G tmpfs /var/lib/docker |
||||
mv /tmp/docker/* /var/lib/docker |
@ -1,119 +0,0 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
# Configure ubuntu desktop systems |
||||
|
||||
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" |
||||
cd "$script_dir" |
||||
. set.sh |
||||
|
||||
# Install dependencies |
||||
apt-get -y install lz4 |
||||
|
||||
# Change ext4 default mount options |
||||
sed -i -e 's/ errors=remount-ro/ noatime,nodelalloc,errors=remount-ro/g' /etc/fstab |
||||
|
||||
# Disable GTK hidden scroll bars |
||||
echo GTK_OVERLAY_SCROLLING=0 >> /etc/environment |
||||
|
||||
# Reveal boot messages |
||||
sed -i -e 's/TTYVTDisallocate=yes/TTYVTDisallocate=no/g' /etc/systemd/system/getty.target.wants/getty@tty1.service |
||||
|
||||
# Speedup boot |
||||
sed -i 's/MODULES=most/MODULES=dep/g' /etc/initramfs-tools/initramfs.conf |
||||
sed -i 's/COMPRESS=gzip/COMPRESS=lz4/g' /etc/initramfs-tools/initramfs.conf |
||||
|
||||
# Reveal autostart services |
||||
sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop |
||||
|
||||
# Remove password complexity constraints |
||||
sed -i 's/ obscure / minlen=1 /g' /etc/pam.d/common-password |
||||
|
||||
# Remove splash screen (plymouth) |
||||
sed -i 's/quiet splash/quiet/g' /etc/default/grub |
||||
|
||||
update-initramfs -u |
||||
update-grub |
||||
|
||||
# Disable swapfile |
||||
swapoff /swapfile ||: |
||||
rm -f /swapfile |
||||
sed -i '/swapfile/d' /etc/fstab |
||||
|
||||
|
||||
# Purge unused Ubuntu packages |
||||
pkgs=" |
||||
apparmor |
||||
apport |
||||
bind9 |
||||
bolt |
||||
cups* |
||||
exim* |
||||
fprintd |
||||
friendly-recovery |
||||
gnome-initial-setup |
||||
gnome-online-accounts |
||||
gnome-power-manager |
||||
gnome-software |
||||
gnome-software-common |
||||
memtest86+ |
||||
orca |
||||
popularity-contest |
||||
python3-update-manager |
||||
secureboot-db |
||||
snapd |
||||
speech-dispatcher* |
||||
spice-vdagent |
||||
ubuntu-report |
||||
ubuntu-software |
||||
unattended-upgrades |
||||
update-inetd |
||||
update-manager-core |
||||
update-notifier |
||||
update-notifier-common |
||||
whoopsie |
||||
xdg-desktop-portal |
||||
" |
||||
|
||||
apt-get -y purge $pkgs |
||||
apt-get -y autoremove --purge |
||||
|
||||
services=" |
||||
apt-daily-upgrade.timer |
||||
apt-daily.timer |
||||
console-setup.service |
||||
e2scrub_reap.service |
||||
keyboard-setup.service |
||||
motd-news.timer |
||||
remote-fs.target |
||||
" |
||||
systemctl disable $services |
||||
|
||||
services=" |
||||
grub-common.service |
||||
plymouth-quit-wait.service |
||||
" |
||||
systemctl mask $services |
||||
|
||||
# Install packages |
||||
pkgs="$(cat common_packages.txt) |
||||
baobab |
||||
blender |
||||
dconf-editor |
||||
firefox |
||||
gimp |
||||
gnome-calculator |
||||
gnome-system-monitor |
||||
gnome-tweaks |
||||
i3lock |
||||
imagemagick |
||||
mpv |
||||
virtualbox |
||||
zenity |
||||
" |
||||
|
||||
# Replace debian packages with ubuntu's |
||||
pkgs=${pkgs/linux-image-amd64/linux-image-generic} |
||||
pkgs=${pkgs/linux-headers-amd64/linux-headers-generic} |
||||
pkgs=${pkgs/firmware-linux-nonfree} |
||||
|
||||
apt-get -y install $pkgs |