...
 
Commits (2)
......@@ -32,14 +32,6 @@ $DIR/update_configurations.sh
sed -i -e 's/lametro.fr/perdu.com/' /etc/conky/conky.conf
echo "Synchronisation de l'heure"
export DEBIAN_FRONTEND=noninteractive
apt-get install -o Dpkg::Options::="--force-confold" -y --force-yes \
ntpdate openssh-server
systemctl stop ntp
systemctl disable ntp
cp $DIR/ntpdate /etc/default
ntpdate-debian
echo "Récupération TFTP sur le serveur"
tftp ecole-dc <<'EOF'
......@@ -51,8 +43,6 @@ sshdir="/root/.ssh/"
mkdir -p $sshdir
mv id_rsa.pub $sshdir/authorized_keys
chown -R root:root $sshdir
systemctl enable ssh
systemctl start ssh
mkdir -p /etc/cifs/secrets
mv secret.tgz /etc/cifs/secrets/
......@@ -67,9 +57,6 @@ numero=$(zenity --title "Post installation" --text "Veuillez entrer le numéro d
newhost="u$numero"
sudo sed -i "s/$hostn/$newhost/g" /etc/hosts
sudo sed -i "s/$hostn/$newhost/g" /etc/hostname
cp "$DIR/fond admin.png" /home/administrateur/Documents/
cp $DIR/session.sh /usr/local/bin/
$DIR/add_session_script.sh
$DIR/register.sh $newhost
cp $DIR/register.sh /etc/cron.weekly/
......
......@@ -2,6 +2,6 @@
if [ -z "$(grep fsck /etc/default/grub)" ]
then
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 fsck.mode=force fsck.repair=yes"/' /etc/default/grub
update-grub
fi
update-grub
......@@ -2,10 +2,9 @@
file="/etc/apt/apt.conf.d/70debconf"
sed -i '/Acquire::.*::Proxy/d' $file
https_proxy="http://pedago:3142"
https_proxy="http://dnsproxy:3128"
echo "Acquire::http::Proxy \"$https_proxy\";" >> $file
echo "Acquire::https::Proxy \"$https_proxy\";" >> $file
https_proxy="http://dnsproxy:3128"
for PROXY in HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy
do
......
......@@ -40,10 +40,12 @@ DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y
cifs-utils \
conky \
cups-browsed \
libdvdcss2 \
language-selector-common \
libdvdcss2 \
netcat \
ntpdate \
numlockx \
openssh-server
tftp \
ttf-mscorefonts-installer \
vlc \
......@@ -51,6 +53,13 @@ DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y
x11vnc
test_and_fail $? "Cannot install required packages"
echo "Synchronisation de l'heure"
cp $DIR/ntpdate /etc/default
ntpdate-debian
systemctl enable ssh
systemctl start ssh
echo "Adding x11vnc"
cp $DIR/x11vnc.desktop /usr/share/applications/
......@@ -74,10 +83,10 @@ do
echo 'user_pref("network.proxy.type", 4);' >> $preffile
done
$DIR/update_configurations.sh
echo "Adding apt proxy"
debfile="/etc/apt/apt.conf.d/70debconf"
sed -i.bak -e '/Acquire::http::Proxy/d' $debfile
echo "Acquire::http::Proxy \"$PROXY_URL\";" >> $debfile
echo "Acquire::https::Proxy \"$PROXY_URL\";" >> $debfile
$DIR/update_configurations.sh
......@@ -20,17 +20,17 @@ cp $DIR/conky.conf /etc/conky/
cp $DIR/session.sh /usr/local/bin/
run_script add_session_script.sh
run_script create_cifs_mounts.sh
run_script set_mime_apps.sh
# run_script set_mime_apps.sh
# run_script install_print_drivers.sh
run_script fix_libreoffice.sh
# run_script fix_libreoffice.sh
run_script install_vnc.sh
run_script install_conky.sh
run_script upgrade_repository.sh
# run_script upgrade_repository.sh
run_script fix_cups.sh
run_script fix_firefox.sh
# run_script fix_proxy.sh
run_script register.sh
run_script install_polices.sh
run_script fix_locales.sh
run_script fix_network.sh
# run_script fix_network.sh
run_script fix_fsck.sh
run_script fix_proxy.sh