28 lines
1.0 KiB
Bash
Executable File
28 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Set root password.
|
|
chpasswd --encrypted <<< 'root:@contestant_root_password@'
|
|
|
|
# Set chromium homepage.
|
|
sed -i 's|"homepage": ".*"|"homepage": "https://contest.soi.ch/"|' /etc/chromium/master_preferences
|
|
sed -i 's|"homepage_is_newtabpage": true,|"homepage_is_newtabpage": false,|' /etc/chromium/master_preferences
|
|
|
|
# Disable Bluetooth.
|
|
systemctl disable bluetooth.service
|
|
|
|
# Disable sleep.
|
|
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
|
|
|
|
# Disable panels in gnome-control-center.
|
|
DISABLE_DESKTOP="dpkg-statoverride --force-statoverride-add --update --add root root 640"
|
|
$DISABLE_DESKTOP /usr/share/applications/gnome-bluetooth-panel.desktop
|
|
$DISABLE_DESKTOP /usr/share/applications/gnome-online-accounts-panel.desktop
|
|
$DISABLE_DESKTOP /usr/share/applications/gnome-sharing-panel.desktop
|
|
|
|
# Disable kexec-tools services.
|
|
# We want to load kexec manually, and execution of kexec is already done by systemd.
|
|
systemctl disable kexec-load.service
|
|
systemctl disable kexec.service
|