Skip to content

Commit ae05df9

Browse files
committed
add patch for headless ubuntu environments
1 parent c1effc1 commit ae05df9

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

dev/headless-ubuntu.patch

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
diff --git dev/setup dev/setup
2+
index 0b9e264..9cc0ab5 100755
3+
--- dev/setup
4+
+++ dev/setup
5+
@@ -3,10 +3,7 @@ set -e
6+
7+
apt-get update -qq
8+
9+
-apt-get install -y ntp ntpdate locales opendoas || exit 1
10+
-
11+
-# sync time
12+
-/usr/sbin/ntpdate -s time.nist.gov
13+
+apt-get install -y locales opendoas || exit 1
14+
15+
# Gen locales if not set
16+
if [ -z "$LC_ALL" ]; then
17+
diff --git install install
18+
index c830e21..409c612 100755
19+
--- install
20+
+++ install
21+
@@ -107,43 +107,6 @@ fi
22+
23+
echo "Setting up the system."
24+
25+
-# Change debian to testing and add unstable to the sources
26+
-doas rm -f /etc/apt/sources.list
27+
-doas tee /etc/apt/sources.list.d/debian.sources >/dev/null <<EOF
28+
-Types: deb deb-src
29+
-URIs: http://deb.debian.org/debian/
30+
-Suites: stable
31+
-Components: main non-free-firmware
32+
-Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
33+
-
34+
-Types: deb deb-src
35+
-URIs: http://deb.debian.org/debian/
36+
-Suites: testing
37+
-Components: main non-free-firmware
38+
-Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
39+
-
40+
-Types: deb deb-src
41+
-URIs: http://deb.debian.org/debian/
42+
-Suites: unstable
43+
-Components: main non-free-firmware
44+
-Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
45+
-EOF
46+
-
47+
-# Lower the priority of unstable packages and keep firmware from stable
48+
-doas tee /etc/apt/preferences.d/unstable.pref >/dev/null <<'EOF'
49+
-Package: *
50+
-Pin: release a=testing
51+
-Pin-Priority: 990
52+
-
53+
-Package: *
54+
-Pin: release a=unstable
55+
-Pin-Priority: 10
56+
-
57+
-Package: firmware-misc-nonfree
58+
-Pin: release a=stable
59+
-Pin-Priority: 1001
60+
-EOF
61+
-
62+
# Do not install recommended packages automatically
63+
doas tee /etc/apt/apt.conf.d/99norecommends >/dev/null <<EOF
64+
APT::Install-Recommends "0";
65+
diff --git packages.csv packages.csv
66+
index 508a0e5..5d16b58 100644
67+
--- packages.csv
68+
+++ packages.csv
69+
@@ -28,7 +28,6 @@ core,pipewire-pulse,Audio server compatible with PulseAudio
70+
core,pipewire-audio,Handle many devices
71+
core,wireplumber,Session manager for PipeWire
72+
core,pulsemixer,PulseAudio mixer
73+
-core,newsboat,RSS reader
74+
core,command-not-found,Suggests packages for missing commands
75+
core,bash-completion,Tab completion
76+
core,gcc,Compilation

0 commit comments

Comments
 (0)