Skip to content

Commit 39c5fc3

Browse files
authored
Merge pull request #67 from DanielOaks/known-fixes
Initial Known Linux Fixes file
2 parents dfdac96 + 6bde197 commit 39c5fc3

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

known_linux_fixes.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Known Linux Fixes
2+
3+
Fixes for one image will sometimes work for another image if they share the same DE, base distribution, or other supporting software. These are some example fixes that may work, so it's worth looking through this if you're setting up a new image or debugging a common issue with an existing one.
4+
5+
## gdm3
6+
7+
Disable Wayland (SPICE doesn't work well with Wayland, xorg is preferred):
8+
```
9+
sed -i "/\[daemon]/a WaylandEnable=false" "$WORK/etc/gdm3/custom.conf"
10+
```
11+
12+
## GNOME
13+
14+
Disabling sleep, suspend, and hibernating:
15+
```
16+
run systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
17+
```
18+
19+
## KDE
20+
21+
Disable locking:
22+
```
23+
cat >"$WORK/etc/skel/.config/kscreenlockerrc" <<EOF
24+
[Daemon]
25+
Autolock=false
26+
LockOnResume=false
27+
EOF
28+
```
29+
30+
## LightDM
31+
32+
Logging in automatically, and also logging back in when the Logout button is pressed:
33+
```
34+
echo autologin-user=${SHELLS_USERNAME} >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
35+
echo autologin-user-timeout=0 >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
36+
echo session-cleanup-script=pkill -P1 -fx /usr/sbin/lightdm >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
37+
```
38+
39+
## PulseAudio
40+
41+
Fix sound being muted by default:
42+
```
43+
cat <<'EOF' >>"$WORK/etc/pulse/default.pa"
44+
set-sink-volume 0 32768
45+
set-sink-mute 0 0
46+
EOF
47+
```

0 commit comments

Comments
 (0)