#! /bin/sh #http://pkgs.slitaz.org/search.cgi #http://www.slitaz.org/fr/doc/releases/3.0/relnotes.fr.html#utf-8 #http://code.google.com/p/burg/wiki/ManualInstall #http://www.slitaz.org/fr/doc/handbook/livecd.html#home #http://www.slitaz.org/fr/doc/handbook/openbox.html #http://hg.slitaz.org/tazpkg/raw-file/tip/doc/tazpkg.fr.html #tazpkg recharge #tazpkg upgrade #tazpkg check #tazpkg check --full #tazpkg clean-cache dossier="/usr/local/share/multisystem" user_taz="tux" home_taz="/home/tux" if [ ! "$(which tazpkg)" ]; then echo tazpkg? exit 0 fi if [ "$USER" != "${user_taz}" ]; then echo ${user_taz}? exit 0 fi if [ ! -d "${home_taz}" ]; then echo ${home_taz}? exit 0 fi if [ "$HOME" != "/root" ]; then xterm -e "gksu "$0";read" exit 0 fi mkdir -p /usr/local/share/ cd /usr/local/share/ wget http://liveusb.info/multisystem/multisystem.tar.bz2 tar xjf ./multisystem.tar.bz2 rm ./multisystem.tar.bz2 cd - if [ ! -d "/usr/local/share/multisystem" ]; then exit 0 fi #chmod 777 /media if [ "$(stat -c %a /media)" != "777" ]; then chmod 777 /media fi tazpkg get-install sudo tazpkg get-install bash tazpkg get-install zsh tazpkg get-install gettext tazpkg get-install zenity tazpkg get-install grub2 tazpkg get-install xdotool tazpkg get-install wmctrl tazpkg get-install fuseiso tazpkg get-install qemu tazpkg get-install xdg-utils tazpkg get-install imagemagick tazpkg get-install mtools tazpkg get-install dosfstools tazpkg get-install coreutils tazpkg get-install cryptsetup tazpkg get-install rsync tazpkg get-install lsof tazpkg get-install glibc-locale tazpkg get-install fuse tazpkg get-install vim tazpkg get-install sed tazpkg get-install retawq tazpkg get-install unzip tazpkg get-install coreutils-disk tazpkg get-install gawk tazpkg get-install procps tazpkg get-install xorg-xprop tazpkg get-install poedit tazpkg get-install syslinux --forced tazpkg get-install syslinux-extra --forced tazpkg get-install syslinux-modules tazpkg get-install syslinux-tools tazpkg get-install findutils tazpkg get-install coreutils-command tazpkg get-install rox-filer tazpkg get-install rox-default-icons tazpkg get-install rox-filer-locales tazpkg get-install xpad tazpkg get-install busybox-pam tazpkg get-install cabextract tazpkg get-install wget --forced #commande id tazpkg get-install coreutils-context-user #pour commande date +%N tazpkg get-install coreutils-context-system #Ajouter lien vers liveusb.info sed -i "s@SliTaz :@SliTaz :\n\tWebSite MultiSystem | @g" /usr/share/webhome/index.html #tous droits pour user qui installe multisystem if [ ! "$(grep "${user_taz} ALL=NOPASSWD: ALL" /etc/sudoers)" ]; then echo -e "${user_taz} ALL=NOPASSWD: ALL" | tee -a /etc/sudoers fi #Ajouter user ${user_taz} au groupe disk if [ ! "$(grep "disk:x:3:${user_taz}" /etc/group)" ]; then sed -i "s/disk:x:3:/disk:x:3:${user_taz}/" /etc/group fi #Supprimer ces dépendances pour Slitaz dans multisystem sed -i "s/gksudo//" ${dossier}/dependances.txt sed -i "s/apt-get//" ${dossier}/dependances.txt sed -i "s/fatresize//" ${dossier}/dependances.txt #rechercher et remplacer mount -l par mount sauf dans update-src.sh grep 'mount -l' -r ${dossier} | awk -F":" '{print $1}' | uniq | grep -v 'update-src.sh' | tee /tmp/multisystem-mform2-slitaz cat /tmp/multisystem-mform2-slitaz | while read line do sed -i "s@mount -l@mount@g" "$line" done rm /tmp/multisystem-mform2-slitaz #Modifier les echo des input car Slitaz accepte option -e !!! et pas Ubuntu/Debian echo "" | tee /tmp/multisystem-mform-slitaz grep 'echo ' -r ${dossier} | grep -v ' -e ' | awk -F":" '{print $1}' | uniq | tee /tmp/multisystem-mform-slitaz cat /tmp/multisystem-mform-slitaz | while read line do sed -i "s@echo @echo -e @g" "$line" done rm /tmp/multisystem-mform-slitaz #Ajouter Lanceur de multisystem mkdir -p /usr/local/share/pixmaps/ cp -f ${dossier}/pixmaps/multisystem-liveusb.png /usr/local/share/pixmaps/multisystem-liveusb.png cp -f ${dossier}/pixmaps/multisystem-vbox.png /usr/local/share/pixmaps/multisystem-vbox.png cp -f ${dossier}/launcher/multisystem-liveusb.desktop /usr/share/applications/multisystem-liveusb.desktop cp -f ${dossier}/launcher/multisystem-vbox.desktop /usr/share/applications/multisystem-vbox.desktop xdg-desktop-menu install /usr/share/applications/multisystem-liveusb.desktop xdg-desktop-menu install /usr/share/applications/multisystem-vbox.desktop xdg-desktop-menu forceupdate --mode user xdg-desktop-menu forceupdate --mode system #copier img couleur pour réglages de gurb2 mkdir -p /usr/local/share/pixmaps 2>/dev/null cp -f ${dossier}/img/*.png /usr/local/share/pixmaps #Remplacer Icon de Rox-Filer sed -i 's/Icon=pcmanfm/Icon=multisystem-rox-filer/' /usr/share/applications/rox-filer.desktop #Copier Icone Rox-Filer cp -f /usr/local/share/multisystem/pixmaps/multisystem-rox-filer.png /usr/share/pixmaps/multisystem-rox-filer.png #Changer icone car est trop petite wget http://liveusb.info/multisystem/slitaz-multisystem/img/media-flash.png -O /usr/share/pixmaps/media-flash.png sed -i "s@/usr/share/icons/SliTaz/16x16/devices/media-flash.png@/usr/share/pixmaps/media-flash.png@g" /usr/share/applications/mountbox.desktop #Changer Wallpaper rm /usr/share/images/slitaz-background.jpg wget http://liveusb.info/multisystem/slitaz-multisystem/img/slitaz-background.jpg -O /usr/share/images/slitaz-background.jpg sudo -u ${user_taz} pcmanfm --set-wallpaper /usr/share/images/slitaz-background.jpg & zenity --info --text "Fin de l'installation\npour glisser déposer vos isos dans la fenêtre de multisystem utilisez Rox-Filer." exit 0 #▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒