generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·40 lines (28 loc) · 1.21 KB
/
build.sh
File metadata and controls
executable file
·40 lines (28 loc) · 1.21 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
36
37
38
39
40
#!/bin/bash
set -ouex pipefail
RELEASE="$(rpm -E %fedora)"
### Install packages
flatpak install --noninteractive --system im.riot.Riot
flatpak install --noninteractive --system org.pulseaudio.pavucontrol
systemctl enable seagl-init-system-flatpak.service
mv /var/lib/flatpak /usr/lib/seagl-flatpak
### Configure system
systemctl set-default graphical.target
systemd-firstboot --locale="en_US.UTF-8" --timezone=America/Los_Angeles --hostname seagl-unconfigured --root-password=password
sed -i 's/\[daemon\]/[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=seagloperator/' /etc/gdm/custom.conf
systemctl enable seagl-reset-users.service
ln -s /usr/share/applications/room-setup.desktop /etc/xdg/autostart
cat > /etc/dconf/db/local.d/00-disable-gnome-tour <<EOF
[org/gnome/shell]
welcome-dialog-last-shown-version='$(rpm -qv gnome-shell | cut -d- -f3)'
EOF
dconf update
# TODO figure out why this hack is needed
systemctl enable seagl-dconf-update-hack.service
# Put some useful stuff in bash history so ^R muscle memory works (AJ relies on this a lot)
cat > /etc/skel/.bash_history <<EOF
$(ls /usr/bin/seagl* | xargs -n 1 basename)
$(ls /usr/sbin/seagl* | xargs -n 1 basename)
sudo rpm-ostree update
sudo rpm-ostree usroverlay
EOF