1
0

bug selection Bureau

This commit is contained in:
Daniel Tartavel 2020-04-17 15:45:59 +02:00
parent 59f6a668e3
commit 124e036651
2 changed files with 9 additions and 11 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/sh
ssh -i /usr/local/etc/ssh_id_rsa -p 10022 -N -f -R 6000:localhost:22 ssh@lalis69.ddns.net
ssh -i /usr/local/etc/ssh_id_rsa -p 10022 -N -f -R 5900:localhost:5900 ssh@lalis69.ddns.net
ssh -i /usr/share/lalis/ssh_id_rsa -p 10022 -N -f -R 6000:localhost:22 ssh@lalis69.ddns.net
ssh -i /usr/share/lalis/ssh_id_rsa -p 10022 -N -f -R 5900:localhost:5900 ssh@lalis69.ddns.net
x11vnc -nopw
killall ssh

View File

@ -1,7 +1,7 @@
Summary: Install LALIS packages and configuration
Name: task-lalis
Version: 5
Release: %mkrel 1
Version: 5.1
Release: %mkrel 4
License: GPLv3
Group: Tools
Url: http://lalis.fr
@ -87,7 +87,6 @@ Requires: wpa_supplicant
Requires: lshw
Requires: x11-driver-input-synaptics
Requires: bsdiff
#Requires: fuse-exfat
Requires: mageia-theme-extra
Requires: gvfs-mtp
Requires: mtpfs
@ -188,7 +187,7 @@ desktop()
{
if [ -f "$1/.config/user-dirs.dirs" ]; then
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
DESKTOP=${DESKTOP##*}
DESKTOP=`echo ${DESKTOP##*/} | sed -e s/\"//g`
else
DESKTOP=""
fi
@ -209,7 +208,7 @@ fi
if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
echo "Allowusers lalis" >>/etc/ssh/sshd_config
fi
/usr/bin/systemctl restart sshd
# Ajoute le fichier test.desktop sur le bureau de l'utilisateur lalis
desktop /home/lalis
echo $DESKTOP
@ -237,10 +236,9 @@ do
if ! [ -d "$i/$DESKTOP" ]; then
su -c "mkdir $i/$DESKTOP" - "$USER"
echo "su -c mkdir $i/$DESKTOP - $USER"
cp -fa /usr/share/kio_desktop/Lalis.desktop "$i/$DESKTOP/"
chown $USER:$USER "$i/$DESKTOP"
fi
cp -fa /usr/share/kio_desktop/Lalis.desktop "$i/$DESKTOP/"
chown $USER:$USER "$i/$DESKTOP"
fi
fi
done
@ -261,6 +259,6 @@ MGAVERSION=${U##*.mga}
#adding lalis mirror
grep -q 'lalis rsync://lalis69.ddns.net:10073/mageia/lalis/' /etc/urpmi/urpmi.cfg
if [ ${?} -ne 0 ]; then
echo -e "\nlalis rsync://lalis69.ddns.net:10073/mageia/lalis/8/x86_64/media/core {\n}" >>/etc/urpmi/urpmi.cfg
echo -e "\nlalis rsync://lalis69.ddns.net:10073/mageia/lalis/$MGAVERSION/x86_64/media/core {\n}" >>/etc/urpmi/urpmi.cfg
echo "urpmi.update lalis;urpmi msttcore-fonts-installer" | at now +2 minutes
fi