Compare commits
No commits in common. "master" and "v2.3" have entirely different histories.
4
README
|
|
@ -43,10 +43,6 @@ Note:
|
|||
- it will create ISO and TAR files for you in /tmp
|
||||
- make sure you have enough free space in /tmp to handle it
|
||||
|
||||
* If you want to use the Live Kit on a USB you have to either
|
||||
- use Windows to execute the bootinst.bat file in the $NAME/boot folder
|
||||
- or use Linux to execute the shellscript bootinst.sh in the $NAME/boot folder.
|
||||
|
||||
* You will need the following packages to be installed:
|
||||
- squashfs-tools
|
||||
- genisoimage or mkisofs
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
\l
|
||||
_ ____ _____
|
||||
| | / __ \\ / ____|
|
||||
__| |_ __ __ _| | | | (___
|
||||
/ _` | '_ \\ / _` | | | |\\___ \\
|
||||
| (_| | | | | (_| | |__| |____) |
|
||||
\\__,_|_| |_|\\__,_|\\____/|_____/
|
||||
|
||||
powered by Briq
|
||||
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
#! /bin/bash --
|
||||
|
||||
# Aggrega file di pacchetti installati o aggiornati con Pacman
|
||||
# dall'ultimo avvio di una distribuzione linux-live
|
||||
# (cfr. https://www.linux-live.org/ ) senza persistenza attivata,
|
||||
# creando un unico bundle .sb
|
||||
# I file vengono letti dalla directory changes e da essa filtrati solo
|
||||
# quelli appartenenti ai pacchetti di pacman.
|
||||
#
|
||||
# Autore: Guido Longoni <guidolongoni@gmail.com>
|
||||
|
||||
IFS=$'\n'
|
||||
OUTLST="/tmp/added_files_$$.lst"
|
||||
CACHEDIR=$(sed -n -e '/^[[:space:]]*CacheDir/s|^[^=]*=[[:space:]]*||gp' -e 's|[[:space:]]*$||g' /etc/pacman.conf | head -n1)
|
||||
OUTDIR="/tmp/sb_$$"
|
||||
OUTFILE="$OUTDIR".sb
|
||||
CHGDIR=$(realpath $(mount | sed -n -e '/squashfs/s|.* on \([^ ]*\)/.*|\1|gp' | head -n1)/../changes)
|
||||
|
||||
mkdir -p '/tmp'
|
||||
mkdir -p "$OUTDIR"
|
||||
rm -rf "$OUTLST"
|
||||
touch "$OUTLST"
|
||||
for i in $(find "$CACHEDIR" -iname '*.pkg.tar.xz'); do
|
||||
tar t -f $i >> "$OUTLST" 2>/dev/null
|
||||
done
|
||||
sort -u "$OUTLST" | grep -v '^\.' > "$OUTLST".tmp
|
||||
mv "$OUTLST".tmp "$OUTLST"
|
||||
rsync -av --old-d --files-from="$OUTLST" "$CHGDIR" "$OUTDIR"
|
||||
dir2sb "$OUTDIR" "$OUTFILE"
|
||||
rm -rf "$OUTDIR"
|
||||
rm -rf "$OUTLST"
|
||||
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Rebuild initial ramdisk with full network drivers,
|
||||
# start DHCP and TFTP server in order to provide PXE service
|
||||
#
|
||||
# Author: Tomas M <www.slax.org>
|
||||
|
||||
LIVE=/run/initramfs
|
||||
FTPROOT=/var/state/dnsmasq/root
|
||||
|
||||
# find out our own IP address. If more interfaces are available, use the first one
|
||||
IP="$(hostname -I | cut -d " " -f 1)"
|
||||
GW=$(ip route show | grep default | grep -o "via.*" | head -n 1 | cut -d " " -f 2)
|
||||
|
||||
# if no IP is assigned to this computer, setup private address randomly
|
||||
if [ "$IP" = "" ]; then
|
||||
killall dhclient 2>/dev/null
|
||||
IP="10."$(($RANDOM/130+1))"."$(($RANDOM/130+1))".1"
|
||||
ifconfig $(ls -1 /sys/class/net | egrep -v '^lo$' | sort | head -n 1) $IP netmask 255.255.255.0
|
||||
fi
|
||||
|
||||
# if gateway is not recognized, lets make our IP a gateway and enable forwarding
|
||||
if [ "$GW" = "" ]; then
|
||||
GW="$IP"
|
||||
echo 1 > /proc/sys/net/ipv4/conf/all/forwarding
|
||||
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
fi
|
||||
|
||||
echo Starting PXE server on $IP ...
|
||||
|
||||
# calculate C class range
|
||||
RANGE=$(echo $IP | cut -d "." -f 1-3)
|
||||
|
||||
# make sure dnsmasq can be started
|
||||
killall dnsmasq 2>/dev/null
|
||||
killall busybox 2>/dev/null
|
||||
rm -Rf $FTPROOT 2>/dev/null
|
||||
mkdir -p $FTPROOT/{pxelinux.cfg,tmp}/
|
||||
|
||||
# create root filesystem for ftfp
|
||||
cd $LIVE
|
||||
( find . -print | grep -v "memory"
|
||||
cd /
|
||||
find /lib/modules/$(uname -r)/kernel/drivers/net | grep -v wireless
|
||||
) | cpio -pvd $FTPROOT/tmp 2>/dev/null
|
||||
|
||||
cp /lib/modules/$(uname -r)/modules.* $FTPROOT/tmp/lib/modules/$(uname -r)
|
||||
depmod -b $FTPROOT/tmp
|
||||
rm $FTPROOT/tmp/lib/initramfs_escaped
|
||||
|
||||
# pack root in initramfs
|
||||
cd $FTPROOT/tmp
|
||||
find . -print | cpio -o -H newc 2>/dev/null | gzip -f --fast >../initrfs.img
|
||||
cd ..
|
||||
rm -Rf tmp
|
||||
|
||||
# link files here since copying is not necessary
|
||||
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep vmlinuz | head -n 1) $FTPROOT/vmlinuz
|
||||
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep pxelinux.0 | head -n 1) $FTPROOT/pxelinux.0
|
||||
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep ldlinux.c32 | head -n 1) $FTPROOT/ldlinux.c32
|
||||
|
||||
find $LIVE/memory/{data,iso,toram} 2>/dev/null | egrep "[.]sb\$" | sort -n | while read LINE; do
|
||||
BAS="$(basename "$LINE")"
|
||||
ln -s $LINE "$FTPROOT/$BAS"
|
||||
echo $BAS >> "$FTPROOT/PXEFILELIST"
|
||||
done
|
||||
|
||||
echo "This is <a href=http://www.slax.org/>Slax</a> PXE data server. PXE clients will download <a href=PXEFILELIST>file list</a>" > "$FTPROOT/index.html"
|
||||
|
||||
# default pxelinux configuration. Keep xmode selection for clients the same like for the server
|
||||
echo "
|
||||
PROMPT 0
|
||||
DEFAULT slax
|
||||
LABEL slax
|
||||
KERNEL /vmlinuz
|
||||
IPAPPEND 1
|
||||
APPEND initrd=/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 $(cat /proc/cmdline | egrep -o 'slax.flags=[^ ]+' | sed -r 's:[,=]pxe::' | sed -r 's:[,=]toram::')
|
||||
" > $FTPROOT/pxelinux.cfg/default
|
||||
|
||||
# start the DHCP server and TFTP server
|
||||
dnsmasq --enable-tftp --tftp-root=/var/state/dnsmasq/root \
|
||||
--dhcp-boot=pxelinux.0,"$IP",$IP \
|
||||
--dhcp-option=3,$GW \
|
||||
--dhcp-range=$RANGE.2,$RANGE.250,infinite --log-dhcp
|
||||
|
||||
# start HTTP server at port 7529 (that are the numbers you type on your phone to write 'slax')
|
||||
busybox httpd -p 7529 -h /var/state/dnsmasq/root
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "rm" ]; then
|
||||
shift
|
||||
rmsbdir "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ "$1" = "rmdir" ]; then
|
||||
shift
|
||||
rmsbdir "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ "$1" = "conv" ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ ! -r "$1" ]; then
|
||||
echo File not found "$1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "$1" ]; then
|
||||
dir2sb "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
sb2dir "$@"
|
||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
|
@ -29,14 +29,14 @@ MENU TABMSG [F1] help [Ta
|
|||
LABEL default
|
||||
MENU LABEL Run Slax (Persistent changes)
|
||||
KERNEL /slax/boot/vmlinuz
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=perch,automount
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,automount
|
||||
|
||||
LABEL perch
|
||||
MENU LABEL Run Slax (Fresh start)
|
||||
KERNEL /slax/boot/vmlinuz
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=automount
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=automount
|
||||
|
||||
LABEL toram
|
||||
MENU LABEL Run Slax (Copy to RAM)
|
||||
KERNEL /slax/boot/vmlinuz
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=toram
|
||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=toram
|
||||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
|
@ -15,9 +15,6 @@ apt-get install --yes --no-install-recommends \
|
|||
libgl1-mesa-dri \
|
||||
libglu1-mesa
|
||||
|
||||
# Set setuid bit on xorg binary, so it can be started by guest user
|
||||
chmod u+s /usr/lib/xorg/Xorg
|
||||
|
||||
# use only white cursors. There were some troubles if the other cursors
|
||||
# was left behind, installing gtk apps reverted the cursor from white to gray,
|
||||
# so we're going to nuke it to leave only Snow cursors active.
|
||||
|
|
@ -39,4 +36,3 @@ update-alternatives --set x-terminal-emulator /usr/bin/xterm
|
|||
. /tmp/cleanup
|
||||
|
||||
savechanges /02-xorg.sb
|
||||
|
||||
|
|
@ -26,5 +26,3 @@ Xft.hinting: true
|
|||
Xft.hintstyle: hintfull
|
||||
Xft.lcdfilter: lcdlegacy
|
||||
Xft.rgba: rgb
|
||||
|
||||
XTerm*selectToClipboard: true
|
||||
|
|
@ -64,10 +64,10 @@ cp debian/$NAME/usr/bin/fluxbox /squashfs-root/usr/bin
|
|||
|
||||
|
||||
# add xlunch from sources
|
||||
wget -O /tmp/xlunch.tar.gz https://github.com/Tomas-M/xlunch/archive/v4.5.3.tar.gz
|
||||
wget -O /tmp/xlunch.tar.gz https://github.com/Tomas-M/xlunch/archive/v4.4.1.tar.gz
|
||||
cd /tmp
|
||||
tar -xf xlunch.tar.gz
|
||||
cd xlunch-4.5.3
|
||||
cd xlunch-4.4.1
|
||||
make
|
||||
cp xlunch /squashfs-root/usr/bin
|
||||
cp extra/gentriesquick /squashfs-root/usr/bin/xlunch_genquick
|
||||
|
|
@ -28,10 +28,6 @@ done
|
|||
xsetroot -solid '#111111'
|
||||
xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37
|
||||
|
||||
# disable screen blanking
|
||||
xset s off
|
||||
xset -dpms
|
||||
|
||||
# volume icon in system tray. Can fail if no soundcard is detected
|
||||
volumeicon &
|
||||
|
||||
|
|
@ -72,11 +68,6 @@ rm -f $SIGNAL2 2>/dev/null
|
|||
sleep 0.1
|
||||
done
|
||||
touch $SIGNAL2
|
||||
|
||||
(sleep 1; (echo; sleep 10; echo :quit) | xlunch --window --xposition 20 --yposition -30 \
|
||||
--width 195 --height 53 --noscroll --noprompt --backgroundcolor ffffff00 \
|
||||
--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'
|
||||
) &
|
||||
|
||||
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
|
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 543 B After Width: | Height: | Size: 543 B |
|
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
|
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 536 B |
|
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
|
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 547 B |
|
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
|
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 394 B |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 645 B |
|
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 511 B |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |