This commit is contained in:
2026-03-22 01:56:57 +01:00
parent 03efff4341
commit f855f32794
15 changed files with 154 additions and 109 deletions

View File

@@ -175,6 +175,7 @@ COPY desktop .
COPY wallpaper.jpg .
COPY neofetch .
COPY editions ./editions
COPY internal ./internal
RUN apt-get update && \
apt-get -y --force-yes install live-helper genisoimage syslinux squashfs-tools aptitude && \
apt-get clean

5
Jenkinsfile vendored
View File

@@ -134,10 +134,9 @@ pipeline {
-e 's|^menu color timeout_msg.*|menu color timeout_msg * #ffB0B0B0 #00000000 none|' \
-e 's|^menu color timeout.*|menu color timeout * #ffff0000 #00000000 none|' \
config/templates/syslinux/menu/header.cfg
mkdir -p config/chroot_local-includes/usr/share/themes/
tar -xf /root/deps/theme-AdwaitaDark.tar -C config/chroot_local-includes/usr/share/themes/
cp -R /root/internal/rootfs/* config/chroot_local-includes
chmod +x /root/update-initramfs.sh
chmod +x /root/zzz-config-live.sh
cp /root/update-initramfs.sh config/chroot_local-hooks

View File

@@ -43,3 +43,5 @@ libopenal0a
usplash
debian-edu-artwork-usplash
libxft2
cpp
inotify-tools

View File

@@ -0,0 +1,34 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: retrodebian-fluxbox-watch-menu
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Watch and filter Fluxbox generated menu
### END INIT INFO
DAEMON=/opt/retrodebian/fluxbox/watch-menu.sh
PIDFILE=/var/run/retrodebian-fluxbox-watch-menu.pid
case "$1" in
start)
echo "Starting retrodebian-fluxbox-watch-menu"
start-stop-daemon --start --background --make-pidfile --pidfile "$PIDFILE" --exec "$DAEMON"
;;
stop)
echo "Stopping retrodebian-fluxbox-watch-menu"
start-stop-daemon --stop --pidfile "$PIDFILE" --retry 5
rm -f "$PIDFILE"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0

View File

@@ -0,0 +1,18 @@
URxvt*font: xft:DejaVu Sans Mono:size=9
URxvt*foreground: #7186e3
URxvt*background: #303030
URxvt*cursorColor: #65adc7
URxvt*scrollBar: false
URxvt*internalBorder: 6
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 9
XTerm*foreground: #7186e3
XTerm*background: #303030
XTerm*cursorColor: #65adc7
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: none
Xft.dpi: 96

View File

@@ -0,0 +1,3 @@
if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile"
fi

View File

@@ -0,0 +1,14 @@
PS1='${debian_chroot:+($debian_chroot)}\[\033[0;37m\]\u@\h\[\033[0m\]:\[\033[0;36m\]\w\[\033[0m\]\$ '
alias apt='apt-get'
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors -b)"
fi
# Softer moonlight palette for ls
LS_COLORS="di=0;36:ln=1;36:so=1;35:pi=0;33:ex=1;32:bd=1;33:cd=1;33:su=0;37;41:sg=0;30;43:tw=0;30;42:ow=0;34;42:or=1;31:mi=1;31"
export LS_COLORS
alias ls='ls --color=auto'
alias ll='ls --color=auto -l'
alias la='ls --color=auto -la'

View File

@@ -0,0 +1,7 @@
session.styleFile: /usr/share/fluxbox/styles/BlueNight
session.screen0.rootCommand: Esetroot /usr/share/wallpapers/retrodebian.jpg
menu.frame.font: Sans-9
menu.title.font: Sans:bold-9
toolbar.clock.font: Sans-9
toolbar.workspace.font: Sans-9
window.font: Sans-9

View File

@@ -0,0 +1,3 @@
[submenu] (Applications)
[include] (/var/run/final-fluxbox-menu)
[end]

View File

@@ -0,0 +1,27 @@
style "force-dark"
{
bg[NORMAL] = "#303030"
bg[ACTIVE] = "#404040"
bg[PRELIGHT] = "#505050"
bg[SELECTED] = "#506070"
fg[NORMAL] = "#f0f0f0"
fg[ACTIVE] = "#ffffff"
fg[PRELIGHT] = "#ffffff"
fg[SELECTED] = "#ffffff"
base[NORMAL] = "#202020"
base[ACTIVE] = "#303030"
base[PRELIGHT] = "#404040"
base[SELECTED] = "#506070"
text[NORMAL] = "#f0f0f0"
text[ACTIVE] = "#ffffff"
text[PRELIGHT] = "#ffffff"
text[SELECTED] = "#ffffff"
}
class "*" style "force-dark"
gtk-font-name="Sans 8"
gtk-icon-theme-name="Tango"

View File

@@ -0,0 +1,4 @@
#!/bin/sh
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
exec startx
fi

View File

@@ -0,0 +1,4 @@
#!/bin/sh
xrdb -merge ~/.Xresources
fbsetbg -f /usr/share/wallpapers/retrodebian.jpg
exec startfluxbox

View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
SRC="/etc/X11/fluxbox/fluxbox-menu"
DST="/var/run/retrodebian/final-fluxbox-menu"
mkdir -p "$DST"
sed \
-e '/(Eterm/d' \
-e '/(Rxvt-Unicode (Black/d' \
-e '/(XTerm/d' \
"$SRC" > "$DST.tmp"
mv "$DST.tmp" "$DST"
fluxbox-remote reconfigure >/dev/null 2>&1 || true

View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
SRC="/etc/X11/fluxbox/fluxbox-menu"
UPD_SCRIPT="/opt/retrodebian/fluxbox/update-menu.sh"
# Génération initiale
"$UPD_SCRIPT"
inotifywait -m -e modify -e move_self -e close_write "$SRC" 2>/dev/null |
while read dummy; do
"$UPD_SCRIPT"
done

View File

@@ -1,113 +1,8 @@
#!/bin/sh
set -e
mkdir -p /etc/skel
cat > /etc/skel/.xinitrc <<'EOF'
#!/bin/sh
xrdb -merge ~/.Xresources
fbsetbg -f /usr/share/wallpapers/retrodebian.jpg &
exec startfluxbox
EOF
cat > /etc/skel/.profile <<'EOF'
#!/bin/sh
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
exec startx
fi
EOF
cat > /etc/skel/.bash_profile <<'EOF'
if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
EOF
cat > /etc/skel/.gtkrc-2.0 <<'EOF'
style "force-dark"
{
bg[NORMAL] = "#303030"
bg[ACTIVE] = "#404040"
bg[PRELIGHT] = "#505050"
bg[SELECTED] = "#506070"
fg[NORMAL] = "#f0f0f0"
fg[ACTIVE] = "#ffffff"
fg[PRELIGHT] = "#ffffff"
fg[SELECTED] = "#ffffff"
base[NORMAL] = "#202020"
base[ACTIVE] = "#303030"
base[PRELIGHT] = "#404040"
base[SELECTED] = "#506070"
text[NORMAL] = "#f0f0f0"
text[ACTIVE] = "#ffffff"
text[PRELIGHT] = "#ffffff"
text[SELECTED] = "#ffffff"
}
class "*" style "force-dark"
gtk-font-name="Sans 9"
gtk-icon-theme-name="Tango"
#gtk-toolbar-style=GTK_TOOLBAR_ICONS
#gtk-button-images=0
#gtk-menu-images=0
EOF
mkdir -p /etc/skel/.fluxbox
cat > /etc/skel/.fluxbox/init <<'EOF'
session.styleFile: /usr/share/fluxbox/styles/BlueNight
session.screen0.rootCommand: Esetroot /usr/share/wallpapers/retrodebian.jpg
menu.frame.font: Sans-9
menu.title.font: Sans:bold-9
toolbar.clock.font: Sans-9
toolbar.workspace.font: Sans-9
window.font: Sans-9
EOF
cat > /etc/skel/.Xresources <<'EOF'
URxvt*font: xft:DejaVu Sans Mono:size=9
URxvt*foreground: #7186e3
URxvt*background: #303030
URxvt*cursorColor: #65adc7
URxvt*scrollBar: false
URxvt*internalBorder: 6
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 9
XTerm*foreground: #7186e3
XTerm*background: #303030
XTerm*cursorColor: #65adc7
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: none
Xft.dpi: 96
EOF
cat >> /etc/skel/.bashrc <<'EOF'
PS1='${debian_chroot:+($debian_chroot)}\[\033[0;37m\]\u@\h\[\033[0m\]:\[\033[0;36m\]\w\[\033[0m\]\$ '
alias apt='apt-get'
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors -b)"
fi
# Softer moonlight palette for ls
LS_COLORS="di=0;36:ln=1;36:so=1;35:pi=0;33:ex=1;32:bd=1;33:cd=1;33:su=0;37;41:sg=0;30;43:tw=0;30;42:ow=0;34;42:or=1;31:mi=1;31"
export LS_COLORS
alias ls='ls --color=auto'
alias ll='ls --color=auto -l'
alias la='ls --color=auto -la'
EOF
# ensuring correct file mode (can be done in git but this is safer)
chmod 0755 /etc/skel/.xinitrc
chmod 0644 \
/etc/skel/.profile \
/etc/skel/.bash_profile \
@@ -116,6 +11,10 @@ chmod 0644 \
/etc/skel/.fluxbox/init \
/etc/skel/.bashrc
chmod 0755 /opt/retrodebian/fluxbox/watch-menu.sh
chmod 0755 /etc/init.d/retrodebian-fluxbox-watch-menu
update-rc.d retrodebian-fluxbox-watch-menu defaults
# Locale
if [ -x /usr/sbin/locale-gen ]; then
grep -q '^en_US.UTF-8 UTF-8$' /etc/locale.gen 2>/dev/null || echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen