File tree 10 files changed +26
-23
lines changed
10 files changed +26
-23
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Debian bullseye setup on a virtual server.
3
+ # Debian GNU/Linux setup on a virtual server.
4
4
#
5
5
# VERSION :3.0.0
6
6
# URL :https://github.com/szepeviktor/debian-server-tools
82
82
export IMAGE_ARCH=" amd64"
83
83
export IMAGE_MACHINE=" x86_64"
84
84
export IMAGE_ID=" Debian"
85
- export IMAGE_CODENAME=" bullseye "
86
- # export IMAGE_CODENAME="bookworm "
85
+ export IMAGE_CODENAME=" bookworm "
86
+ # export IMAGE_CODENAME="trixie "
87
87
88
88
# "A real danger for the future of GNU/Linux"
89
89
# https://skarnet.org/software/s6/systemd.html
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Continue Debian bullseye setup on a virtual server.
3
+ # Continue Debian GNU/Linux setup on a virtual server.
4
4
#
5
5
# VERSION :3.0.0
6
6
# URL :https://github.com/szepeviktor/debian-server-tools
@@ -55,9 +55,9 @@ packages/s-nail
55
55
packages/goaccess
56
56
57
57
# From backports
58
- # List available backports: apt-get upgrade -t bullseye -backports
58
+ # List available backports: apt-get upgrade -t bookworm -backports
59
59
# @nonDebian
60
- # #Pkg_install_quiet -t bullseye -backports
60
+ # #Pkg_install_quiet -t bookworm -backports
61
61
62
62
packages/needrestart
63
63
Original file line number Diff line number Diff line change @@ -11,16 +11,18 @@ sed -i -e 's|^\(password\t\+requisite\t\+pam_cracklib\.so\).\+$|\1 retry=3 difok
11
11
/etc/pam.d/common-password
12
12
13
13
# Nice welcome screen
14
- # @FIXME Python 2 does not handle UTF-8 in YAML
15
14
printf ' *\n*** %s ***\n*\n\n' " $( Data get-value system.trespass-warning) " > /etc/motd.tail
16
15
17
- Data get-value system.host-color " 7" > /etc/hostcolor
16
+ Data get-value system.host-color " 7" > /etc/hostcolor
18
17
19
18
if [ -d /etc/update-motd.d ]; then
20
- # Remove default uname script
19
+ # Remove default uname scripts
21
20
if [ -f /etc/update-motd.d/10-uname ] && [ " $( stat -c " %s" /etc/update-motd.d/10-uname) " == 23 ]; then
22
21
rm /etc/update-motd.d/10-uname
23
22
fi
23
+ if [ -f /etc/update-motd.d/92-unattended-upgrades ] && [ " $( stat -c " %s" /etc/update-motd.d/92-unattended-upgrades) " == 165 ]; then
24
+ rm /etc/update-motd.d/92-unattended-upgrades
25
+ fi
24
26
# Halt on non-empty script directory
25
27
test -z " $( find /etc/update-motd.d/ -type f -prune) "
26
28
else
31
33
mv /etc/motd " /etc/motd~"
32
34
33
35
# Make motd a symlink
34
- ln -sf /var/run/motd /etc/motd
36
+ ln -s -f /var/run/motd /etc/motd
35
37
36
38
# Install scripts
37
39
Dinstall input/update-motd.d/00-header
Original file line number Diff line number Diff line change 2
2
3
3
set -e -x
4
4
5
- # @TODO move to v4.0 in stretch-backports
5
+ # @TODO Migrate to Valkey
6
6
7
- # @TODO Prevent shutdown during background saving
7
+ # Prevent shutdown during background saving
8
8
cat > /etc/sysctl.d/redis-overcommit.conf << "EOF "
9
9
# https://redis.io/topics/faq#background-saving-fails-with-a-fork-error-under-linux-even-if-i-have-a-lot-of-free-ram
10
10
#vm.overcommit_memory = 1
11
11
EOF
12
12
13
- # @TODO Allow high backlog
13
+ # Allow high backlog
14
14
cat > /etc/sysctl.d/redis-tcp-listen-backlog.conf << "EOF "
15
15
# https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
16
16
##net.ipv4.tcp_max_syn_backlog = 512
Original file line number Diff line number Diff line change 4
4
system :
5
5
fqdn : # #host.example.com
6
6
uuid : # #/usr/sbin/dmidecode -s system-uuid | tr '[:upper:]' '[:lower:]'
7
- os : " Debian ‘bullseye ’"
7
+ os : " Debian ‘bookworm ’"
8
8
install-date : # #YYYY-MM-DD
9
9
# tput sgr0;for C in {1..7};do tput setaf $C;echo -n "■${C}■ ";tput sgr0;done;echo
10
10
host-color : 7
@@ -185,8 +185,8 @@ packaging:
185
185
list-command : gem list
186
186
location : /usr/lib/ruby/vendor_ruby
187
187
188
- # shyaml get-values bullseye -backports </root/server.yml | xargs -- apt-get install -t bullseye -backports # -y
189
- bullseye -backports :
188
+ # shyaml get-values bookworm -backports </root/server.yml | xargs -- apt-get install -t bookworm -backports # -y
189
+ bookworm -backports :
190
190
- init-system-helpers
191
191
- needrestart
192
192
- geoipupdate
Original file line number Diff line number Diff line change 1
1
# Goaccess
2
- deb http://deb.goaccess.io/ bullseye main
2
+ deb http://deb.goaccess.io/ bookworm main
3
3
#K: wget -qO- https://deb.goaccess.io/goaccess.gpg.key >/etc/apt/trusted.gpg.d/goaccess.gpg
4
4
#M: https://goaccess.io/download#distro
Original file line number Diff line number Diff line change 1
1
# DEB.SURY.ORG (is in CZ)
2
- deb https://packages.sury.org/php/ bullseye main
2
+ deb https://packages.sury.org/php/ bookworm main
3
3
#K: wget -qO/etc/apt/trusted.gpg.d/sury-php.gpg https://packages.sury.org/php/apt.gpg
4
4
#M: https://packages.sury.org/php/README.txt
5
5
#P: printf 'Package: openssl libssl-dev libssl-doc libssl1.1\nPin: origin "packages.sury.org"\nPin-Priority: -1\n' >/etc/apt/preferences.d/sury-openssl.pref
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docker run --rm -i -t -v /opt:/etc/gitlab-runner gitlab/gitlab-runner:latest reg
8
8
# --url "https://gitlab.com/" \
9
9
# --registration-token "PROJECT-REGISTRATION-TOKEN" \
10
10
# --executor "docker" \
11
- # --docker-image "php:7.4-bullseye " \
11
+ # --docker-image "php:7.4-bookworm " \
12
12
# --description "gitlab-runner on UpCloud" \
13
13
# --tag-list "upcloud,docker" \
14
14
# --run-untagged \
Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ PHP_TZ="UTC"
24
24
CWD=" $( dirname " ${BASH_SOURCE[0]} " ) "
25
25
26
26
# Later versions of Ondřej Surý's PHP-FPM "Depends: systemd | systemd-tmpfiles"
27
- Pkg_install_quiet systemd-standalone-tmpfiles/bullseye -backports
27
+ Pkg_install_quiet systemd-standalone-tmpfiles/bookworm -backports
28
28
# Alternative
29
+ # @nonDebian
29
30
# Pkg_install_quiet opentmpfiles
30
31
31
32
# @nonDebian
Original file line number Diff line number Diff line change 3
3
Later versions of Ondřej Surý's PHP-FPM packages
4
4
[ depend on ` systemd ` ] ( https://github.com/oerdnj/deb.sury.org/issues/1347 ) .
5
5
6
- ` systemd-tmpfiles ` provides one symlink to the ` opentmpfiles ` command.
6
+ ### Building with equivs
7
7
8
- ### Building
8
+ ` systemd-tmpfiles ` provides one symlink to the ` opentmpfiles ` command.
9
9
10
10
1 . Install [ equivs version 2.1+] ( https://packages.debian.org/buster/equivs )
11
11
1 . Build the dummy package: ` equivs-build systemd-tmpfiles `
12
12
13
- ### Installation
13
+ ### Installation with equivs
14
14
15
15
1 . Install [ opentmpfiles] ( https://packages.debian.org/sid/opentmpfiles )
16
16
1 . Install the dummy package: ` dpkg -i ./systemd-tmpfiles_*_amd64.deb `
You can’t perform that action at this time.
0 commit comments