Unverified Commit 4befb3c9 authored by David Beniamine's avatar David Beniamine
Browse files

Working version on Linux Mint

parent ae3d47ac
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
#!/bin/bash
USERS="01-mini 02-super 03-maxi prof direction"
DIR=$(realpath $(dirname $0))
USERS="direction"
for u in $USERS
do
	if [ -z "`grep '^exec /usr/local/bin/session.sh' /home/$u/.fluxbox/startup `" ]
	then
		sed -i -e 's@^exec fluxbox$@exec /usr/local/bin/session.sh \&\nexec fluxbox@' /home/$u/.fluxbox/startup 
	fi
	cat <<EOF >/home/$u/.config/autostart/mounts.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Montages reseau
Comment=
Exec=$DIR/session.sh
Icon=4137_winhlp32.0
Path=
Terminal=false
StartupNotify=false
EOF
done
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ for usr in 01-mini 02-super 03-maxi
do
    mkdir -p /home/shares/$usr/ELEVES
    mkdir -p /home/shares/$usr/PROFESSEURS
    chown -R $usr:$usr /home/shares/$usr
    chown -R direction:direction /home/shares/$usr
    lvl=${LEVELS[$usr]}
    if [ $lvl != 'CP' ]
    then
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ export https_proxy="http://dnsproxy:3128"
apt-get update && apt-get install git
# En cas d’erreur verifier les commandes echo et au besoin editer le fichier /etc/apt/apt.conf.d/70debconf
cd /opt
git clone --branch Primtux4 https://gitecoles.grenoble.fr/grenoble/primtux-eole
git clone --branch Mint https://gitecoles.grenoble.fr/grenoble/primtux-eole

cd primtux-eole
DIR=$PWD
+13 −11
Original line number Diff line number Diff line
@@ -2,11 +2,12 @@
USERS="administrateur direction"
for u in $USERS
do
    profile=`awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini`
    #echo "$u uses profile $profile"
    preffile="/home/$u/.mozilla/firefox/$profile/user.js"
    #echo $preffile
    for pref in "browser.newtabpage.activity-stream.prerender" "browser.newtabpage.activity-stream.showTopSites"
    for profile in `awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini`
    do
        echo "$u uses profile $profile"
        preffile="/home/$u/.mozilla/firefox/$profile/prefs.js"
        echo $preffile
        for pref in "browser.newtabpage.activity-stream.feeds.section.highlights" "browser.newtabpage.activity-stream.feeds.topsites"
        do
            if [ -z "$(grep "$pref" $preffile)" ]
            then
@@ -16,3 +17,4 @@ do
            fi
        done
    done
done
+6 −4
Original line number Diff line number Diff line
#!/bin/bash

add-apt-repository ppa:libreoffice/ppa
export https_proxy="http://dnsproxy:3128"
export http_proxy="http://dnsproxy:3128"
add-apt-repository -y ppa:libreoffice/ppa
key=$(apt-get update 2> /dev/null | grep NO_PUBKEY | rev | cut -d ' ' -f 1 | rev)
apt-key adv --keyserver-options http-proxy=$http_proxy --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys $key
apt-get update
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y upgrade
DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade
Loading