Merge branch 'master' of git.labolyon.fr:DTux/task-lalis
This commit is contained in:
commit
4fea084684
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
ssh -p 10022 -N -f -R 6000:localhost:22 ssh@lalis69.ddns.net
|
ssh -p 10022 -N -f -R 6000:localhost:22 ssh@lalis69.ddns.net
|
||||||
#ssh -N -f -R 6001:localhost:5900 ssh@82.225.210.60 'x11vnc -localhost -display :0'
|
ssh -N -f -L 5500:localhost:5500 ssh@lalis69.ddns.net
|
||||||
|
x11vnc --connect localhost:5500
|
||||||
|
204
SPECS/task-lalis.spec
Executable file
204
SPECS/task-lalis.spec
Executable file
@ -0,0 +1,204 @@
|
|||||||
|
Summary: Install LALIS packages and configuration
|
||||||
|
Name: task-lalis
|
||||||
|
Version: 2.9
|
||||||
|
Release: %mkrel 1
|
||||||
|
License: GPLv3
|
||||||
|
Group: Tools
|
||||||
|
Url: http://lalis.fr
|
||||||
|
BuildArch: noarch
|
||||||
|
Source1: journald.conf
|
||||||
|
Source2: lalistunnel
|
||||||
|
Source3: Lalis.desktop
|
||||||
|
Source4: identMM.pl
|
||||||
|
Source5: test.desktop
|
||||||
|
Source6: checklist.txt
|
||||||
|
Requires: kate
|
||||||
|
Requires: openssh-server
|
||||||
|
Requires: sshfs-fuse
|
||||||
|
Requires: celestia
|
||||||
|
Requires: kstars
|
||||||
|
Requires: stellarium
|
||||||
|
Requires: ssmtp
|
||||||
|
Requires: kwallet-pam
|
||||||
|
Requires: tuxpaint
|
||||||
|
Requires: avidemux-qt-plugins
|
||||||
|
Requires: kpdftool
|
||||||
|
Requires: gcompris-qt
|
||||||
|
Requires: kgpg
|
||||||
|
Requires: xsane
|
||||||
|
Requires: celestia
|
||||||
|
Requires: kstars
|
||||||
|
Requires: stellarium
|
||||||
|
Requires: gnuplot
|
||||||
|
Requires: drgeo
|
||||||
|
Requires: evince
|
||||||
|
Requires: audacity
|
||||||
|
Requires: kdenlive
|
||||||
|
Requires: spamassassin
|
||||||
|
Requires: p7zip
|
||||||
|
Requires: unrar
|
||||||
|
Requires: kaudiocreator
|
||||||
|
Requires: ark
|
||||||
|
Requires: kim4
|
||||||
|
Requires: krename
|
||||||
|
Requires: gimp-resynthesizer
|
||||||
|
Requires: gimp-data-extras
|
||||||
|
Requires: gimp-plugin-gmic
|
||||||
|
Requires: ktorrent
|
||||||
|
Requires: lame
|
||||||
|
Requires: pidgin
|
||||||
|
Requires: empathy
|
||||||
|
Requires: vlc-plugin-opengl
|
||||||
|
Requires: vlc-plugin-pulse
|
||||||
|
Requires: vlc-plugin-vdpau
|
||||||
|
Requires: vlc-plugin-lua
|
||||||
|
Requires: vlc-plugin-common
|
||||||
|
Requires: vlc-plugin-flac
|
||||||
|
Requires: vlc-plugin-fluidsynth
|
||||||
|
Requires: phonon-vlc
|
||||||
|
Requires: vlc-plugin-gnutls
|
||||||
|
Requires: vlc-plugin-kate
|
||||||
|
Requires: vlc-plugin-libass
|
||||||
|
Requires: vlc-plugin-libnotify
|
||||||
|
Requires: vlc-plugin-mod
|
||||||
|
Requires: vlc-plugin-mpc
|
||||||
|
Requires: vlc-plugin-projectm
|
||||||
|
Requires: vlc-plugin-schroedinger
|
||||||
|
Requires: vlc-plugin-sdl
|
||||||
|
Requires: vlc-plugin-shout
|
||||||
|
Requires: vlc-plugin-speex
|
||||||
|
Requires: vlc-plugin-twolame
|
||||||
|
Requires: vlc-plugin-upnp
|
||||||
|
Requires: vlc-plugin-zvbi
|
||||||
|
Requires: vlc-qt
|
||||||
|
Requires: flash-player-plugin
|
||||||
|
Requires: system-config-printer
|
||||||
|
Requires: task-printing-scanning
|
||||||
|
Requires: gsmartcontrol
|
||||||
|
Requires: bind-utils
|
||||||
|
Requires: k3b
|
||||||
|
Requires: luckybackup
|
||||||
|
Requires: kpat
|
||||||
|
Requires: gimp-plugin-bimp
|
||||||
|
Requires: audiokonverter
|
||||||
|
Requires: gnubg
|
||||||
|
Requires: v4l-utils
|
||||||
|
Requires: gutenprint-gimp2
|
||||||
|
Requires: printer-utils
|
||||||
|
Requires: task-codec-audio
|
||||||
|
Requires: task-codec-video
|
||||||
|
Requires: x11vnc
|
||||||
|
Requires: kamoso
|
||||||
|
Requires: fuse-exfat
|
||||||
|
Requires: exfat-utils
|
||||||
|
Requires: simple-scan
|
||||||
|
Requires: kipi-plugins
|
||||||
|
Requires: tintii
|
||||||
|
Requires: krfb
|
||||||
|
Requires: clementine
|
||||||
|
Requires: aspell-fr
|
||||||
|
Requires: transcode
|
||||||
|
Requires: plasma-applet-systemloadviewer
|
||||||
|
Requires: ffmulticonverter
|
||||||
|
Requires: print-manager
|
||||||
|
Requires: sweeper
|
||||||
|
Requires: gvfs-mtp
|
||||||
|
Requires: mtpfs
|
||||||
|
Requires: libmtp-utils
|
||||||
|
Requires: simple-mtpfs
|
||||||
|
Requires: gmtp
|
||||||
|
Requires: qtbluetooth5
|
||||||
|
Requires: pulseaudio-module-bluetooth
|
||||||
|
Requires: kdeconnect-kde
|
||||||
|
Requires: chromium-browser
|
||||||
|
Requires: fuse-exfat
|
||||||
|
Requires: mageia-theme-extra
|
||||||
|
Requires: chromium-browser
|
||||||
|
Requires: lshw
|
||||||
|
Requires: x11-driver-input-synaptics
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package installs LALIS choosen packages and some configurations.
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}/tmp/
|
||||||
|
mkdir -p %{buildroot}/usr/local/bin/
|
||||||
|
mkdir -p %{buildroot}/usr/share/lalis/
|
||||||
|
mkdir -p %{buildroot}/usr/share/kio_desktop/
|
||||||
|
mkdir -p %{buildroot}/usr/share/dist/desktop-files/default/
|
||||||
|
cp -af %{SOURCE1} %{buildroot}/tmp/
|
||||||
|
cp -f %{SOURCE2} %{buildroot}/usr/local/bin/
|
||||||
|
cp -f %{SOURCE4} %{buildroot}/usr/local/bin/
|
||||||
|
cp -f %{SOURCE3} %{buildroot}/usr/share/kio_desktop/
|
||||||
|
cp -f %{SOURCE3} %{buildroot}/usr/share/dist/desktop-files/default/
|
||||||
|
cp -f %{SOURCE5} %{buildroot}/usr/share/dist/desktop-files/default/
|
||||||
|
cp -f %{SOURCE6} %{buildroot}/usr/share/lalis/
|
||||||
|
|
||||||
|
%files
|
||||||
|
|
||||||
|
/tmp/journald.conf
|
||||||
|
/usr/local/bin/lalistunnel
|
||||||
|
/usr/local/bin/identMM.pl
|
||||||
|
/usr/share/kio_desktop/Lalis.desktop
|
||||||
|
/usr/share/lalis/*
|
||||||
|
/usr/share/dist/desktop-files/default/*
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
# configuration de l'assistance à distance
|
||||||
|
# créer un utilisateur Lalis enlève les droits de lecture/écriture/visibilité/exécution à others
|
||||||
|
desktop()
|
||||||
|
{
|
||||||
|
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
|
||||||
|
DESKTOP=${DESKTOP##*}
|
||||||
|
}
|
||||||
|
|
||||||
|
mv -f /tmp/journald.conf /etc/systemd/
|
||||||
|
getent passwd lalis
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
adduser lalis
|
||||||
|
chmod -R o-rwX /home/lalis
|
||||||
|
passwd lalis << EOF
|
||||||
|
Lalis
|
||||||
|
Lalis
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ajoute l'utilisateur lalis à la liste des utilisateurs autorisés à se connecter en ssh
|
||||||
|
if [ -z "`grep lalis /etc/ssh/sshd_config`" ]; then
|
||||||
|
echo "Allowusers lalis" >>/etc/ssh/sshd_config
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ajoute le fichier test.desktop sur le bureau de l'utilisateur lalis
|
||||||
|
desktop /home/lalis
|
||||||
|
echo $DESKTOP
|
||||||
|
if ! [ -d "/home/lalis/$DESKTOP" ]; then
|
||||||
|
/usr/bin/mkdir "/home/lalis/$DESKTOP"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
chmod a+rw /usr/share/lalis/checklist.txt
|
||||||
|
cp /usr/share/dist/desktop-files/default/test.desktop /home/lalis/$DESKTOP/
|
||||||
|
chown lalis:lalis -R /home/lalis/$DESKTOP/test.desktop
|
||||||
|
# Copie le fichier Lalis.desktop dans le dossier /etc/skel
|
||||||
|
cp -f /usr/share/kio_desktop/Lalis.desktop /etc/$DESKTOP/
|
||||||
|
|
||||||
|
# Copie le fichier Lalis.desktop dans les dossier utilisateurs existant
|
||||||
|
cp -f /usr/share/kio_desktop/Lalis.desktop /usr/share/dist/desktop-files/default/
|
||||||
|
for i in /home/*
|
||||||
|
do
|
||||||
|
USER=`basename "$i"`
|
||||||
|
getent passwd "$USER"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
if [ -d $i ]; then
|
||||||
|
desktop "/$i"
|
||||||
|
echo $DESKTOP
|
||||||
|
if ! [ -d "$i/$DESKTOP" ]; then
|
||||||
|
su -c "mkdir $i/Bureau" - "$USER"
|
||||||
|
echo "su -c mkdir $i/Bureau - $USER"
|
||||||
|
fi
|
||||||
|
cp -fa /usr/share/kio_desktop/Lalis.desktop "$i/$DESKTOP/"
|
||||||
|
chown $USER:$USER "$i/$DESKTOP"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
Reference in New Issue
Block a user