You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.2 KiB

#!/usr/bin/env bash
# Paquets à installer (sur l'hôte)
DEBS="kmod iproute2 ruby ruby-gtk2 ruby-rsvg2 libvte9 qemu-kvm"
DEBS="$DEBS bzip2 graphviz gawk sysfsutils"
DEBS="$DEBS libxcb-render-util0"
DEBS="$DEBS tmuxinator"
DEBS="$DEBS virt-viewer"
DEBS="$DEBS wget lsb-release xfce4-terminal xdg-utils firefox-esr"
testInstall() {
ret=0
for i in $DEBS; do
if ! dpkg -s $i &> /dev/null; then
echo "$i must be installed !"
ret=1
fi
done
if [ $ret = 0 ]; then
echo
echo "root must be run $VDN_PATH/bin/vdn-prepare" >&2
fi
}
runInstall() {
local list="" addExtra=0
for i in $DEBS; do
if ! dpkg -s $i &> /dev/null; then
echo "$i must be installed !"
list="$list $i"
ret=1
fi
done
#if ! dpkg -s python-gtk-vnc &> /dev/null; then
# extra="python-gtk-vnc"
# echo "Embedded package $extra must be installed !"
# echo -e "Press Enter to install... (CTRL C to stop)."
#
# read
# addExtra=1
#fi
for i in $DEBS; do
if ! dpkg -s $i &> /dev/null; then
echo "$i must be installed !"
list="$list $i"
ret=1
fi
done
if [ -n "$list" ]; then
apt-get install $@ $list
fi
#if [ $addExtra = 1 ]; then
# dpkg -i $VDN_PATH/distribs/hosts/$HOST_RELEASE/$extra*
#fi
}