Browse Source

Update

master
crims0n 4 years ago
parent
commit
8e81ac7bf6
  1. 1
      linux-live/basesystem/01-core/package.list
  2. 2
      linux-live/basesystem/01-core/rootcopy/usr/lib/systemd/system/ssh.service
  3. 21
      linux-live/minioslib
  4. 24
      linux-live/modules/03-desktop/rootcopy/home/live/.fluxbox/startup
  5. 2
      linux-live/modules/03-desktop/rootcopy/root/.fluxbox/menu
  6. 4
      linux-live/modules/03-desktop/rootcopy/root/.fluxbox/startup
  7. 2
      linux-live/modules/04-apps/install
  8. 6
      linux-live/modules/04-apps/install2
  9. 0
      unused_modules/dhclient.service

1
linux-live/basesystem/01-core/package.list

@ -47,3 +47,4 @@ pm-utils
wget wget
openssh-server openssh-server
open-vm-tools open-vm-tools
network-manager

2
linux-live/basesystem/01-core/rootcopy/usr/lib/systemd/system/ssh.service

@ -5,7 +5,7 @@ ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
[Service] [Service]
EnvironmentFile=-/etc/default/ssh EnvironmentFile=-/etc/default/ssh
ExecStartPre=-/bin/sh -c 'if ! ls /etc/ssh/ssh_host_* >/dev/null 2>&1; then /usr/sbin/dpkg-reconfigure openssh-server; fi' ExecStartPre=-/bin/sh -c 'if ! ls /etc/ssh/ssh_host_* >/dev/null 2>&1; then /usr/sbin/dpkg-reconfigure openssh-server; mkdir -p /run/sshd; fi'
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
KillMode=process KillMode=process

21
linux-live/minioslib

@ -1051,7 +1051,28 @@ function chroot_configure() {
live ALL=(ALL) NOPASSWD:ALL live ALL=(ALL) NOPASSWD:ALL
EOF EOF
if [ ! -d /etc/NetworkManager ]; then
echo "Enable dhclient.service autostart." >>$OUTPUT 2>&1
cat <<EOF >/usr/lib/systemd/system/dhclient.service
[Unit]
Description=DHCP Client
Documentation=man:dhclient(8)
Wants=network.target
After=network-pre.target systemd-sysctl.service systemd-modules-load.service
Before=network.target shutdown.target network-online.target
ConditionPathExists=!/run/initramfs/net.up.flag
[Service]
Type=forking
ExecStart=-/bin/sh -c 'udevadm settle && dhclient -nw'
PIDFile=/run/dhclient.pid
[Install]
WantedBy=multi-user.target
WantedBy=network-online.target
EOF
systemctl enable dhclient >>$OUTPUT 2>&1 systemctl enable dhclient >>$OUTPUT 2>&1
fi
if [ -f /etc/systemd/system/multi-user.target.wants/grub-initrd-fallback.service ]; then if [ -f /etc/systemd/system/multi-user.target.wants/grub-initrd-fallback.service ]; then
echo "Disable grub-initrd-fallback.service autostart." echo "Disable grub-initrd-fallback.service autostart."

24
linux-live/modules/03-desktop/rootcopy/home/live/.fluxbox/startup

@ -36,7 +36,10 @@ xset -dpms
volumeicon & volumeicon &
# preload compton and fluxbox to cache # preload compton and fluxbox to cache
(compton --help; fluxbox --help) >/dev/null 2>&1 (
compton --help
fluxbox --help
) >/dev/null 2>&1
# Keep black screen for first second while the sound plays. # Keep black screen for first second while the sound plays.
# This slows startup a little, but it is nicer effect. # This slows startup a little, but it is nicer effect.
@ -73,9 +76,16 @@ rm -f $SIGNAL2 2>/dev/null
done done
touch $SIGNAL2 touch $SIGNAL2
(sleep 1; (echo; sleep 10; echo :quit) | xlunch --window --xposition 20 --yposition -30 \ (
sleep 1
(
echo
sleep 10
echo :quit
) | xlunch --window --xposition 20 --yposition -30 \
--width 195 --height 53 --noscroll --noprompt --backgroundcolor ffffff00 \ --width 195 --height 53 --noscroll --noprompt --backgroundcolor ffffff00 \
--multiple --desktop --button "/usr/share/fluxbox/styles/Slax/pixmaps/start-here.png;;0,0;fbappselect" & ) & --multiple --desktop --button "/usr/share/fluxbox/styles/Slax/pixmaps/start-here.png;;0,0;fbappselect" &
) &
exec compton --sw-opti -e 0.9 --shadow-exclude 'class_g="xlunch-windowed"' --fade-exclude 'role*="fluxbox-toolbar"' --opacity-rule '70:role*="fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' exec compton --sw-opti -e 0.9 --shadow-exclude 'class_g="xlunch-windowed"' --fade-exclude 'role*="fluxbox-toolbar"' --opacity-rule '70:role*="fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped'
) & ) &
@ -98,13 +108,17 @@ rm -f $SIGNAL2 2>/dev/null
) & ) &
# gen screen resolutions to fluxbox menu # gen screen resolutions to fluxbox menu
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \ xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 |
| sed -r "s:(.*):[exec] (\\1) {fbscreensize \\1}:" > ~/.fluxbox/menu_resolution sed -r "s:(.*):[exec] (\\1) {fbscreensize \\1}:" >~/.fluxbox/menu_resolution
# In all cases, wait for the sound sleeper. # In all cases, wait for the sound sleeper.
# If startup took longer (sound completed already), no extra wait # If startup took longer (sound completed already), no extra wait
wait $SOUNDPID wait $SOUNDPID
if [ -f /usr/bin/nm-applet ]; then
exec nm-applet &
fi
# And last but not least we start fluxbox. # And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it. # Because it is the last app you have to run it with ''exec'' before it.

2
linux-live/modules/03-desktop/rootcopy/root/.fluxbox/menu

@ -2,7 +2,7 @@
[exec] (Terminal) { fbstartupnotify && xterm -ls } [exec] (Terminal) { fbstartupnotify && xterm -ls }
[exec] (File Manager) { fbstartupnotify && pcmanfm } [exec] (File Manager) { fbstartupnotify && pcmanfm }
[exec] (Web Browser) { fbstartupnotify && fbliveapp chromium } [exec] (Web Browser) { fbstartupnotify && fbliveapp chromium }
[exec] (Text Editor) { fbstartupnotify && leafpad } [exec] (Text Editor) { fbstartupnotify && medit }
[exec] (Calculator) { fbstartupnotify && qalculate } [exec] (Calculator) { fbstartupnotify && qalculate }
[exec] (Network Manager) { fbstartupnotify && wicd-manager } [exec] (Network Manager) { fbstartupnotify && wicd-manager }
[exec] (Run) { fbappselect } [exec] (Run) { fbappselect }

4
linux-live/modules/03-desktop/rootcopy/root/.fluxbox/startup

@ -105,6 +105,10 @@ xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \
# If startup took longer (sound completed already), no extra wait # If startup took longer (sound completed already), no extra wait
wait $SOUNDPID wait $SOUNDPID
if [ -f /usr/bin/nm-applet ]; then
exec nm-applet &
fi
# And last but not least we start fluxbox. # And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it. # Because it is the last app you have to run it with ''exec'' before it.

2
linux-live/modules/04-apps/install

@ -11,7 +11,7 @@ apt-get install --no-install-recommends --yes \
pcmanfm \ pcmanfm \
lxtask \ lxtask \
xarchiver xdg-utils libgconf-2-4 \ xarchiver xdg-utils libgconf-2-4 \
wicd >>$OUTPUT 2>&1 network-manager-gnome >>$OUTPUT 2>&1
(cd /rootcopy && cp --parents -afr * /) (cd /rootcopy && cp --parents -afr * /)

6
linux-live/modules/04-apps/install2

@ -28,11 +28,13 @@ make >>$OUTPUT 2>&1
strip --strip-unneeded src/pcmanfm >>$OUTPUT 2>&1 strip --strip-unneeded src/pcmanfm >>$OUTPUT 2>&1
cp src/pcmanfm /squashfs-root/usr/bin >>$OUTPUT 2>&1 cp src/pcmanfm /squashfs-root/usr/bin >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/leafpad.desktop >>$OUTPUT 2>&1 #rm -f /squashfs-root/usr/share/applications/leafpad.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/medit.desktop >>$OUTPUT 2>&1 rm -f /squashfs-root/usr/share/applications/medit.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/qalculate-gtk.desktop >>$OUTPUT 2>&1 rm -f /squashfs-root/usr/share/applications/qalculate-gtk.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/pcmanfm.desktop >>$OUTPUT 2>&1 rm -f /squashfs-root/usr/share/applications/pcmanfm.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/wicd.desktop >>$OUTPUT 2>&1 #rm -f /squashfs-root/usr/share/applications/wicd.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/nm-applet.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/nm-connection-editor.desktop >>$OUTPUT 2>&1
rm -f /squashfs-root/usr/share/applications/lxtask.desktop >>$OUTPUT 2>&1 rm -f /squashfs-root/usr/share/applications/lxtask.desktop >>$OUTPUT 2>&1
dir2sb /squashfs-root /04-apps.sb >>$OUTPUT 2>&1 dir2sb /squashfs-root /04-apps.sb >>$OUTPUT 2>&1

0
linux-live/basesystem/01-core/rootcopy/usr/lib/systemd/system/dhclient.service → unused_modules/dhclient.service

Loading…
Cancel
Save