-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.sh
More file actions
35 lines (35 loc) · 1.48 KB
/
run.sh
File metadata and controls
35 lines (35 loc) · 1.48 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
#!/bin/bash
set -e -x
[ `id -u` -eq 0 ] || ( echo Must be run with sudo, exiting. && exit 1)
# make script idempotent (snap install fails if already installed)
snap list zoom-client || snap install zoom-client
snap list teams || snap install teams
#
apt update
apt -y dist-upgrade
apt install -y webext-ublock-origin vim
# install full language support
apt install -y $(check-language-support)
## this is for KDE Plasma
# add zoom, teams, lowriter, loimpress, firefox launchers to the panel
# just put the config file from github to /etc/skel for new users
APPLETS_CFG=plasma-org.kde.plasma.desktop-appletsrc
mkdir -p /etc/skel/.config
wget https://github.com/eudoxos/skoly/raw/main/$APPLETS_CFG -O /etc/skel/.config/$APPLETS_CFG
## this is for gnome-shell
# see https://askubuntu.com/a/1193560/24839
# and https://help.gnome.org/admin/system-admin-guide/stable/dconf-custom-defaults.html.en
# gsettings set org.gnome.shell favorite-apps ""
echo -e "user-db:user\nsystem-db:local\n" > /etc/dconf/profile/user
mkdir -p /etc/dconf/db/local.d
cat << EOF > /etc/dconf/db/local.d/10-skoly-default-favorites
[org/gnome/shell]
favorite-apps=['org.gnome.Nautilus.desktop','firefox.desktop','teams_teams.desktop','zoom-client_zoom-client.desktop','libreoffice-writer.desktop','libreoffice-impress.desktop','snap-store_ubuntu-software.desktop','yelp.desktop']
EOF
dconf update
## most laptops don't need this
##
# apt install -y lm-sensors fancontrol
# sensors-detect # this is interactive
# /etc/init.d/kmod start
# pwmconfig