Compare commits
49 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
5aa73fb1af | |
|
|
bc5a770d3f | |
|
|
a3bfaccea1 | |
|
|
f02e73e522 | |
|
|
56dc040397 | |
|
|
8678d5f4b5 | |
|
|
b588256382 | |
|
|
81dfba7480 | |
|
|
e552cf09c6 | |
|
|
f43da7b5cf | |
|
|
82555a7ec4 | |
|
|
8db5cb64a2 | |
|
|
c405536126 | |
|
|
9774c4dd1b | |
|
|
7b243f9781 | |
|
|
ecdfe750c8 | |
|
|
103e1eeb13 | |
|
|
ece2224e18 | |
|
|
0010fcde7e | |
|
|
a45ff59376 | |
|
|
2c2e73992f | |
|
|
9e41cd8253 | |
|
|
31c1e64cec | |
|
|
fcc1c91b2b | |
|
|
32afaf7f89 | |
|
|
7bca13b9a6 | |
|
|
5f0ccd3362 | |
|
|
b6569a3d0b | |
|
|
89c08c297a | |
|
|
98cd8e51b4 | |
|
|
7709174535 | |
|
|
73d605d9ad | |
|
|
72de891a3d | |
|
|
05af29f8d1 | |
|
|
93cbaf8c67 | |
|
|
8be589217e | |
|
|
5a06b74174 | |
|
|
6edbe53252 | |
|
|
1257303ef3 | |
|
|
e365ab8859 | |
|
|
41f195da50 | |
|
|
809dc08543 | |
|
|
5e288baafe | |
|
|
0548b30e81 | |
|
|
8852a1062d | |
|
|
95656a4eff | |
|
|
afe634c46a | |
|
|
0d9256ee6a | |
|
|
e38da35316 |
4
README
|
|
@ -43,6 +43,10 @@ Note:
|
||||||
- it will create ISO and TAR files for you in /tmp
|
- it will create ISO and TAR files for you in /tmp
|
||||||
- make sure you have enough free space in /tmp to handle it
|
- 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:
|
* You will need the following packages to be installed:
|
||||||
- squashfs-tools
|
- squashfs-tools
|
||||||
- genisoimage or mkisofs
|
- genisoimage or mkisofs
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
\l
|
||||||
|
_ ____ _____
|
||||||
|
| | / __ \\ / ____|
|
||||||
|
__| |_ __ __ _| | | | (___
|
||||||
|
/ _` | '_ \\ / _` | | | |\\___ \\
|
||||||
|
| (_| | | | | (_| | |__| |____) |
|
||||||
|
\\__,_|_| |_|\\__,_|\\____/|_____/
|
||||||
|
|
||||||
|
powered by Briq
|
||||||
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
#! /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"
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@ FTPROOT=/var/state/dnsmasq/root
|
||||||
|
|
||||||
# find out our own IP address. If more interfaces are available, use the first one
|
# find out our own IP address. If more interfaces are available, use the first one
|
||||||
IP="$(hostname -I | cut -d " " -f 1)"
|
IP="$(hostname -I | cut -d " " -f 1)"
|
||||||
GW=$(ip route show | grep default | grep -o "via.*" | cut -d " " -f 2)
|
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 no IP is assigned to this computer, setup private address randomly
|
||||||
if [ "$IP" = "" ]; then
|
if [ "$IP" = "" ]; then
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/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 "$@"
|
||||||
|
|
@ -51,7 +51,8 @@ activate()
|
||||||
|
|
||||||
# check if file exists
|
# check if file exists
|
||||||
if [ ! -r "$SB" ]; then
|
if [ ! -r "$SB" ]; then
|
||||||
usage "file not found $SB"
|
usage
|
||||||
|
die "file not found $SB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if the file is part of aufs union, if yes we need to copy it outside
|
# check if the file is part of aufs union, if yes we need to copy it outside
|
||||||
|
|
@ -145,8 +146,18 @@ deactivate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "Usage: $0 [ activate | deactivate | list ] [ file.sb ]" >&2
|
||||||
|
if [ "$1" != "" ]; then
|
||||||
|
echo "$1" >&2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
die "Usage: $0 [ activate | deactivate | list ] [ file.sb ]"
|
usage
|
||||||
|
die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "activate" ]; then
|
if [ "$1" = "activate" ]; then
|
||||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
|
@ -29,14 +29,14 @@ MENU TABMSG [F1] help [Ta
|
||||||
LABEL default
|
LABEL default
|
||||||
MENU LABEL Run Slax (Persistent changes)
|
MENU LABEL Run Slax (Persistent changes)
|
||||||
KERNEL /slax/boot/vmlinuz
|
KERNEL /slax/boot/vmlinuz
|
||||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,automount
|
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=perch,automount
|
||||||
|
|
||||||
LABEL perch
|
LABEL perch
|
||||||
MENU LABEL Run Slax (Fresh start)
|
MENU LABEL Run Slax (Fresh start)
|
||||||
KERNEL /slax/boot/vmlinuz
|
KERNEL /slax/boot/vmlinuz
|
||||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=automount
|
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=automount
|
||||||
|
|
||||||
LABEL toram
|
LABEL toram
|
||||||
MENU LABEL Run Slax (Copy to RAM)
|
MENU LABEL Run Slax (Copy to RAM)
|
||||||
KERNEL /slax/boot/vmlinuz
|
KERNEL /slax/boot/vmlinuz
|
||||||
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=toram
|
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=toram
|
||||||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
THIS=$(dirname $(readlink -f $0))
|
||||||
|
|
||||||
|
sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config
|
||||||
|
sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config
|
||||||
|
|
||||||
|
. ./copy
|
||||||
|
. ./install
|
||||||
|
. ./cleanup
|
||||||
|
. ./copy
|
||||||
|
|
||||||
|
# now run build script
|
||||||
|
SKIPINITRFS=true
|
||||||
|
cd ../../
|
||||||
|
. ./build
|
||||||
|
|
||||||
|
# setup initrd now, to include aufs
|
||||||
|
apt-get update
|
||||||
|
apt-get install aufs-dkms linux-headers-$(uname -r) --yes
|
||||||
|
|
||||||
|
cd initramfs
|
||||||
|
. ./initramfs_create
|
||||||
|
|
||||||
|
# unpack the sb archive and add aufs modules to /lib/modules
|
||||||
|
cd $LIVEKITDATA/$LIVEKITNAME
|
||||||
|
unsquashfs 01-core.$BEXT
|
||||||
|
cp -a /$LMK/kernel/fs/aufs squashfs-root/$LMK/kernel/fs
|
||||||
|
rm -f 01-core.$BEXT
|
||||||
|
mksquashfs squashfs-root 01-core.$BEXT -comp xz -b 1024K -always-use-fragments || exit
|
||||||
|
rm -Rf squashfs-root
|
||||||
|
|
||||||
|
mv -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
|
||||||
|
cp -vf $THIS/bootfiles/* $LIVEKITDATA/$LIVEKITNAME/boot/
|
||||||
|
|
@ -0,0 +1,91 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -f /etc/fstab
|
||||||
|
rm -f /etc/mtab
|
||||||
|
rm -f /etc/apt/sources.list~
|
||||||
|
rm -Rf /etc/systemd/system/timers.target.wants
|
||||||
|
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service
|
||||||
|
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service
|
||||||
|
|
||||||
|
rm -f /etc/ssh/ssh_host*
|
||||||
|
|
||||||
|
rm -f /var/backups/*
|
||||||
|
rm -f /var/cache/ldconfig/*
|
||||||
|
rm -f /var/cache/debconf/*
|
||||||
|
rm -f /var/cache/fontconfig/*
|
||||||
|
rm -f /var/lib/apt/extended_states
|
||||||
|
rm -f /var/lib/systemd/random-seed
|
||||||
|
rm -f /var/lib/apt/lists/deb.*
|
||||||
|
rm -Rf /root/.local/share/mc
|
||||||
|
rm -Rf /root/.cache
|
||||||
|
rm -f /root/.wget-hsts
|
||||||
|
|
||||||
|
rm -f /var/lib/dpkg/*-old
|
||||||
|
rm -f /var/log/*
|
||||||
|
rm -f /var/log/*/*
|
||||||
|
rm -f /var/log/*/*/*
|
||||||
|
rm -f /var/cache/apt/archives/*.deb
|
||||||
|
rm -f /var/cache/apt/*.bin
|
||||||
|
rm -f /var/cache/debconf/*-old
|
||||||
|
rm -f /var/lib/dhcp/dhclient.leases
|
||||||
|
rm -f /root/.bash_history
|
||||||
|
rm -f /root/.wget-hsts
|
||||||
|
rm -Rf /usr/share/doc/*
|
||||||
|
rm -Rf /usr/share/info/*
|
||||||
|
rm -f /usr/share/images/fluxbox/debian-squared.jpg
|
||||||
|
rm -Rf /usr/share/fluxbox/nls/??*
|
||||||
|
rm -Rf /usr/share/gnome/help
|
||||||
|
|
||||||
|
rm -Rf /usr/share/locale/??
|
||||||
|
rm -Rf /usr/share/locale/??_*
|
||||||
|
rm -Rf /usr/share/locale/??@*
|
||||||
|
rm -Rf /usr/share/locale/???
|
||||||
|
rm -Rf /usr/share/i18n/locales/*_*
|
||||||
|
rm -Rf /usr/share/man/??
|
||||||
|
rm -Rf /usr/share/man/*_*
|
||||||
|
|
||||||
|
rm -Rf /usr/share/icons/elementaryXubuntu-dark
|
||||||
|
rm -Rf /usr/share/icons/gnome/256x256
|
||||||
|
|
||||||
|
rm /usr/share/applications/compton.desktop
|
||||||
|
rm /usr/share/applications/debian-uxterm.desktop
|
||||||
|
rm /usr/share/applications/debian-xterm.desktop
|
||||||
|
rm /usr/share/applications/htop.desktop
|
||||||
|
rm /usr/share/applications/mc.desktop
|
||||||
|
rm /usr/share/applications/mcedit.desktop
|
||||||
|
rm /usr/share/applications/pcmanfm-desktop-pref.desktop
|
||||||
|
rm /usr/share/applications/python2.7.desktop
|
||||||
|
rm /usr/share/applications/python3.7.desktop
|
||||||
|
rm /usr/share/applications/vim.desktop
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Unzip gzipped files (man pages), so LZMA can compress 2times better.
|
||||||
|
# First we fix symlinks, then uncompress files
|
||||||
|
# $1 = search directory
|
||||||
|
uncompress_files()
|
||||||
|
{
|
||||||
|
local LINK LINE
|
||||||
|
|
||||||
|
find "$1" -type l -name "*.gz" | while read LINE; do
|
||||||
|
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')"
|
||||||
|
FILE="$(echo "$LINE" | sed -r 's/.gz$//')"
|
||||||
|
ln -sfn "$LINK" "$FILE"
|
||||||
|
rm -f "$LINE"
|
||||||
|
done
|
||||||
|
find "$1" -type f -name "*.gz" | xargs -r gunzip
|
||||||
|
}
|
||||||
|
|
||||||
|
uncompress_files /etc/alternatives
|
||||||
|
uncompress_files /usr/share/man
|
||||||
|
|
||||||
|
# remove broken links
|
||||||
|
# $1 = search directory
|
||||||
|
remove_broken_links()
|
||||||
|
{
|
||||||
|
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_broken_links /etc/alternatives
|
||||||
|
remove_broken_links /usr/share/man
|
||||||
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CURRENT="$(ls -1 /boot)"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get dist-upgrade --yes
|
||||||
|
|
||||||
|
NEW="$(ls -1 /boot)"
|
||||||
|
|
||||||
|
if [ "$CURRENT" != "$NEW" ]; then
|
||||||
|
echo "It looks like your kernel has been upgraded."
|
||||||
|
echo "You should reboot and restart the build process."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if kernel was upgraded, you may need to reboot
|
||||||
|
apt-get install --yes --no-install-recommends mc squashfs-tools genisoimage zip unzip psmisc net-tools \
|
||||||
|
alsa-utils man less xz-utils ca-certificates openssl acpid acpi-support-base powermgmt-base bzip2 gpart \
|
||||||
|
hdparm sdparm mdadm smartmontools dosfstools lsof htop gddrescue rsync netcat ssh gpm wireless-tools \
|
||||||
|
ntfs-3g rfkill file dnsmasq ntpdate dvd+rw-tools usb-modeswitch pm-utils wget
|
||||||
|
|
||||||
|
ln -sf bash /bin/sh
|
||||||
|
|
||||||
|
apt-get remove --yes vim* grub* debconf-i18n installation-report
|
||||||
|
|
||||||
|
CWD="$(pwd)"
|
||||||
|
cd /tmp
|
||||||
|
apt-get download acpi-support
|
||||||
|
dpkg -x acpi-support*.deb /tmp/acpisupport
|
||||||
|
cd /tmp/acpisupport
|
||||||
|
cp -aR * /
|
||||||
|
cd "$CWD"
|
||||||
|
|
@ -15,6 +15,9 @@ apt-get install --yes --no-install-recommends \
|
||||||
libgl1-mesa-dri \
|
libgl1-mesa-dri \
|
||||||
libglu1-mesa
|
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
|
# 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,
|
# 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.
|
# so we're going to nuke it to leave only Snow cursors active.
|
||||||
|
|
@ -36,3 +39,4 @@ update-alternatives --set x-terminal-emulator /usr/bin/xterm
|
||||||
. /tmp/cleanup
|
. /tmp/cleanup
|
||||||
|
|
||||||
savechanges /02-xorg.sb
|
savechanges /02-xorg.sb
|
||||||
|
|
||||||
|
|
@ -26,3 +26,5 @@ Xft.hinting: true
|
||||||
Xft.hintstyle: hintfull
|
Xft.hintstyle: hintfull
|
||||||
Xft.lcdfilter: lcdlegacy
|
Xft.lcdfilter: lcdlegacy
|
||||||
Xft.rgba: rgb
|
Xft.rgba: rgb
|
||||||
|
|
||||||
|
XTerm*selectToClipboard: true
|
||||||
|
|
@ -64,10 +64,10 @@ cp debian/$NAME/usr/bin/fluxbox /squashfs-root/usr/bin
|
||||||
|
|
||||||
|
|
||||||
# add xlunch from sources
|
# add xlunch from sources
|
||||||
wget -O /tmp/xlunch.tar.gz https://github.com/Tomas-M/xlunch/archive/v4.4.1.tar.gz
|
wget -O /tmp/xlunch.tar.gz https://github.com/Tomas-M/xlunch/archive/v4.5.3.tar.gz
|
||||||
cd /tmp
|
cd /tmp
|
||||||
tar -xf xlunch.tar.gz
|
tar -xf xlunch.tar.gz
|
||||||
cd xlunch-4.4.1
|
cd xlunch-4.5.3
|
||||||
make
|
make
|
||||||
cp xlunch /squashfs-root/usr/bin
|
cp xlunch /squashfs-root/usr/bin
|
||||||
cp extra/gentriesquick /squashfs-root/usr/bin/xlunch_genquick
|
cp extra/gentriesquick /squashfs-root/usr/bin/xlunch_genquick
|
||||||
|
|
@ -28,6 +28,10 @@ done
|
||||||
xsetroot -solid '#111111'
|
xsetroot -solid '#111111'
|
||||||
xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37
|
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
|
# volume icon in system tray. Can fail if no soundcard is detected
|
||||||
volumeicon &
|
volumeicon &
|
||||||
|
|
||||||
|
|
@ -68,6 +72,11 @@ rm -f $SIGNAL2 2>/dev/null
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
touch $SIGNAL2
|
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'
|
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'
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|
@ -0,0 +1,83 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$1" = "votecoin" ]; then
|
||||||
|
NAME="VoteCoin Wallet"
|
||||||
|
ABOUT="VoteCoin Wallet is a crypto currency wallet,
|
||||||
|
forked from ZCash, which itslef forked from Bitcoin.
|
||||||
|
It supports fully anonymous transactions and voting.
|
||||||
|
Receive free 10 VOT coins for installing the wallet.
|
||||||
|
In the future, VoteCoin will be used for decision
|
||||||
|
funding in Slax."
|
||||||
|
TMP="/tmp/votecoin.tar.gz"
|
||||||
|
EXECUTABLE="/opt/VoteCoin Wallet-linux-x64/VoteCoin Wallet"
|
||||||
|
INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt && rm -f $TMP && apt install --yes libxss1 libgconf-2-4 libnss3"
|
||||||
|
POSTINSTALL=""
|
||||||
|
ONLY64=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "vlc" ]; then
|
||||||
|
NAME="VLC Video Player"
|
||||||
|
ABOUT="VLC Video Player is a free and open source multimedia player
|
||||||
|
and framework that plays most multimedia files as well as DVDs,
|
||||||
|
Audio CDs, CVDs, and various streaming protocols."
|
||||||
|
EXECUTABLE="/usr/bin/vlc"
|
||||||
|
INSTALL="apt install --yes vlc"
|
||||||
|
POSTINSTALL="rm /usr/share/applications/vlc.desktop; mkdir /home/guest/.config/vlc; echo '[qt4]
|
||||||
|
qt-privacy-ask=0' > /home/guest/.config/vlc/vlcrc;"
|
||||||
|
GUEST=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "chromium" ]; then
|
||||||
|
NAME="Chromium Web Browser"
|
||||||
|
ABOUT="Chromium is a free and open source version of
|
||||||
|
the famous Chrome browser, developed by Google."
|
||||||
|
EXECUTABLE="/usr/bin/chromium"
|
||||||
|
INSTALL="apt install --yes chromium chromium-sandbox"
|
||||||
|
POSTINSTALL="rm -f /usr/share/applications/chromium.desktop"
|
||||||
|
GUEST=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
shift
|
||||||
|
|
||||||
|
# ------------------------------------------------
|
||||||
|
# do not touch anything below this line
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
|
if [ "$ABOUT" != "" ]; then
|
||||||
|
ABOUT="$ABOUT
|
||||||
|
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$EXECUTABLE" = "" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f "$EXECUTABLE" ]; then
|
||||||
|
|
||||||
|
if [ $(uname -m) != 'x86_64' -a "$ONLY64" = "true" ]; then
|
||||||
|
gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-warning.png -t Error -m "$NAME only works in 64bit version of Slax" -y OK
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-question.png -t Question -m "$ABOUT$NAME is not yet installed.
|
||||||
|
Do you like to download and install it now?" -y Yes -n No; then
|
||||||
|
xterm -ls -e bash --login -c -- "$INSTALL; $POSTINSTALL"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f "$EXECUTABLE" ]; then
|
||||||
|
|
||||||
|
fbstartupnotify
|
||||||
|
|
||||||
|
if [ "$GUEST" = "true" -a "$EUID" -eq 0 ]; then
|
||||||
|
xhost + >/dev/null 2>/dev/null
|
||||||
|
exec su -c "$EXECUTABLE "$@"" guest
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$EXECUTABLE" "$@"
|
||||||
|
|
||||||
|
fi
|
||||||
|
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 |
|
After Width: | Height: | Size: 8.1 KiB |
|
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 |