Revisión 3d288739
Añadido por Rafael J. García Perdigón hace más de 6 años
ubuntu/bionic/amd64/linex-arduino-1.0/debian/changelog | ||
---|---|---|
linex-arduino (1.0) linex; urgency=low
|
||
|
||
* Initial Release. Package for arduino www.arduino.cc/.
|
||
|
||
-- Rafael J. García Perdigón <rafael.garciap@juntaex.es> Wed, 14 Nov 2018 12:06:16 +0100
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/compat | ||
---|---|---|
9
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/control | ||
---|---|---|
Source: linex-arduino
|
||
Section: x11
|
||
Priority: optional
|
||
Maintainer: Rafael Jesús García Perdigón <rafael.garciap@juntaex.es>
|
||
Build-Depends: debhelper (>= 8.0.0)
|
||
Standards-Version: 3.9.4
|
||
|
||
Package: linex-arduino
|
||
Architecture: amd64
|
||
Depends: default-jre, xdg-utils
|
||
Breaks: modemmanager
|
||
Description: Instalación y configuración de Arduino en Linex.
|
||
Instalación y configuración de Arduino en Linex.
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/install | ||
---|---|---|
opt
|
||
etc
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/postinst | ||
---|---|---|
#!/bin/bash
|
||
set -e
|
||
RESOURCE_NAME=arduino-arduinoide
|
||
SCRIPT_PATH="/opt/arduino-1.8.7"
|
||
cd /opt && tar -zxvf arduino.tar.gz
|
||
# Install the icon files using name and resolutions
|
||
xdg-icon-resource install --context apps --size 16 "${SCRIPT_PATH}/lib/icons/16x16/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 24 "${SCRIPT_PATH}/lib/icons/24x24/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 32 "${SCRIPT_PATH}/lib/icons/32x32/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 48 "${SCRIPT_PATH}/lib/icons/48x48/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 64 "${SCRIPT_PATH}/lib/icons/64x64/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 72 "${SCRIPT_PATH}/lib/icons/72x72/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 96 "${SCRIPT_PATH}/lib/icons/96x96/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 128 "${SCRIPT_PATH}/lib/icons/128x128/apps/arduino.png" $RESOURCE_NAME
|
||
xdg-icon-resource install --context apps --size 256 "${SCRIPT_PATH}/lib/icons/256x256/apps/arduino.png" $RESOURCE_NAME
|
||
|
||
|
||
# Install the created *.desktop file
|
||
xdg-desktop-menu install "${SCRIPT_PATH}/lib/${RESOURCE_NAME}.desktop"
|
||
|
||
# Install Arduino mime type
|
||
xdg-mime install "${SCRIPT_PATH}/lib/${RESOURCE_NAME}.xml"
|
||
|
||
# Install icons for mime type
|
||
xdg-icon-resource install --context mimetypes --size 16 "${SCRIPT_PATH}/lib/icons/16x16/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 24 "${SCRIPT_PATH}/lib/icons/24x24/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 32 "${SCRIPT_PATH}/lib/icons/32x32/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 48 "${SCRIPT_PATH}/lib/icons/48x48/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 64 "${SCRIPT_PATH}/lib/icons/64x64/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 72 "${SCRIPT_PATH}/lib/icons/72x72/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 96 "${SCRIPT_PATH}/lib/icons/96x96/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 128 "${SCRIPT_PATH}/lib/icons/128x128/apps/arduino.png" text-x-arduino
|
||
xdg-icon-resource install --context mimetypes --size 256 "${SCRIPT_PATH}/lib/icons/256x256/apps/arduino.png" text-x-arduino
|
||
|
||
# Make Arduino IDE the default application for *.ino
|
||
xdg-mime default ${RESOURCE_NAME}.desktop text/x-arduino
|
||
|
||
|
||
update-desktop-database "/usr/share/applications"
|
||
update-mime-database "/usr/share/mime"
|
||
|
||
# Add all users to groups tty, dialout, uucp, plugdev:
|
||
|
||
pathGroup="/etc/security/"
|
||
|
||
group=`cat $pathGroup/group.conf|grep "*;*;*;Al0000-2400"|cut -d ";" -f 5`
|
||
|
||
newGroup="tty dialout uucp plugdev"
|
||
|
||
for i in $newGroup;do
|
||
(echo $group|grep -w $i>/dev/null)|| group=$group",$i"
|
||
done
|
||
|
||
newLine=`cat /etc/security/group.conf|grep "*;*;*;Al0000-2400"|cut -d ";" -f 1-4`";"$group
|
||
|
||
|
||
sed -i "s/\*;\*;\*;Al0000-2400.*/$newLine/g" $pathGroup/group.conf
|
||
|
||
|
||
|
||
|
||
# Restart udev to apply new rules:
|
||
invoke-rc.d udev restart
|
||
udevadm control --reload-rules
|
||
udevadm trigger
|
||
|
||
|
||
|
||
exit 0
|
||
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/postrm | ||
---|---|---|
#!/bin/bash
|
||
set -e
|
||
# Restart udev to apply new rules:
|
||
invoke-rc.d udev restart
|
||
udevadm control --reload-rules
|
||
udevadm trigger
|
||
|
||
|
||
|
||
exit 0
|
||
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/prerm | ||
---|---|---|
#!/bin/bash
|
||
set -e
|
||
RESOURCE_NAME=arduino-arduinoide
|
||
SCRIPT_PATH="/opt/arduino-1.8.7"
|
||
|
||
|
||
# Remove *.desktop file
|
||
xdg-desktop-menu uninstall ${RESOURCE_NAME}.desktop
|
||
|
||
# Remove icon from desktop
|
||
xdg-desktop-icon uninstall ${RESOURCE_NAME}.desktop
|
||
|
||
# Remove icons
|
||
xdg-icon-resource uninstall --size 16 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 24 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 32 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 48 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 64 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 72 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 96 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 128 ${RESOURCE_NAME}
|
||
xdg-icon-resource uninstall --size 256 ${RESOURCE_NAME}
|
||
|
||
# Remove MIME type icons
|
||
xdg-icon-resource uninstall --size 16 text-x-arduino
|
||
xdg-icon-resource uninstall --size 24 text-x-arduino
|
||
xdg-icon-resource uninstall --size 32 text-x-arduino
|
||
xdg-icon-resource uninstall --size 48 text-x-arduino
|
||
xdg-icon-resource uninstall --size 64 text-x-arduino
|
||
xdg-icon-resource uninstall --size 72 text-x-arduino
|
||
xdg-icon-resource uninstall --size 96 text-x-arduino
|
||
xdg-icon-resource uninstall --size 128 text-x-arduino
|
||
xdg-icon-resource uninstall --size 256 text-x-arduino
|
||
|
||
# Remove Arduino MIME type
|
||
xdg-mime uninstall "${SCRIPT_PATH}/lib/${RESOURCE_NAME}.xml"
|
||
|
||
|
||
update-desktop-database "/usr/share/applications"
|
||
update-mime-database "/usr/share/mime"
|
||
|
||
rm -r $SCRIPT_PATH
|
||
exit 0
|
||
|
ubuntu/bionic/amd64/linex-arduino-1.0/debian/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
# -*- makefile -*-
|
||
# Sample debian/rules that uses debhelper.
|
||
# This file was originally written by Joey Hess and Craig Small.
|
||
# As a special exception, when this file is copied by dh-make into a
|
||
# dh-make output file, you may use that output file without restriction.
|
||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||
|
||
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
%:
|
||
dh $@
|
ubuntu/bionic/amd64/linex-arduino-1.0/etc/udev/rules.d/40-dfuse.rules | ||
---|---|---|
# Makes STM32 DfuSe device writeable for the "plugdev" group
|
||
|
||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="664", GROUP="plugdev", TAG+="uaccess"
|
ubuntu/bionic/amd64/linex-arduino-1.0/etc/udev/rules.d/90-extraacl.rules | ||
---|---|---|
"KERNEL="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess"
|
||
"KERNEL="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess"
|
ubuntu/bionic/amd64/linex-arduino-1.0/etc/udev/rules.d/98-openocd.rules | ||
---|---|---|
ACTION!="add|change", GOTO="openocd_rules_end"
|
||
SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"
|
||
|
||
#Please keep this list sorted by VID:PID
|
||
|
||
#CMSIS-DAP compatible adapters
|
||
ATTRS{product}=="*CMSIS-DAP*", MODE="664", GROUP="plugdev"
|
||
|
||
LABEL="openocd_rules_end"
|
ubuntu/bionic/amd64/linex-arduino-1.0/etc/udev/rules.d/99-arduino-101.rules | ||
---|---|---|
SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
|
||
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
|
ubuntu/bionic/amd64/linex-arduino-1.0/etc/udev/rules.d/avrisp.rules | ||
---|---|---|
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
|
||
# Atmel Corp. JTAG ICE mkII
|
||
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2103", MODE="660", GROUP="dialout"
|
||
# Atmel Corp. AVRISP mkII
|
||
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2104", MODE="660", GROUP="dialout"
|
||
# Atmel Corp. Dragon
|
||
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="660", GROUP="dialout"
|
||
|
||
LABEL="avrisp_end"
|
ubuntu/bionic/amd64/siatic-3.4/debian/changelog | ||
---|---|---|
siatic (3.4) linex; urgency=medium
|
||
|
||
* Initial release.
|
||
* Modified poweroff.sh to let shutdown projector on poweroff computer.
|
||
* Added systemd service to shutdown projector on poweroff computer.
|
||
|
||
-- Rafael J. García Perdigón <rafael.garciap@juntaex.es> Tue, 03 Jul 2018 14:41:15 +0200
|
ubuntu/bionic/amd64/siatic-3.4/debian/compat | ||
---|---|---|
9
|
ubuntu/bionic/amd64/siatic-3.4/debian/conffiles | ||
---|---|---|
/etc/SIATIC/siaticcontrol.ini
|
ubuntu/bionic/amd64/siatic-3.4/debian/control | ||
---|---|---|
Source: siatic
|
||
Section: x11
|
||
Priority: optional
|
||
Maintainer:Soditec <info@soditec.es>, Rafael Jesús García Perdigón <rafael.garciap@gobex.es>
|
||
Build-Depends: debhelper (>= 8.0.0)
|
||
Standards-Version: 3.9.4
|
||
|
||
Package: siatic
|
||
Architecture: amd64
|
||
Depends: gksu, libssh-4 (>=0.6.1) , libhidapi-hidraw0 (>=0.7.0) , qt5-default (>=5.2.1) , libqt5serialport5 (>=5.2.1) , libssl1.0.0 (>=1.0.1)
|
||
Description: Sistema de control de Dispositivos para los componentes de la Pizarra Digital.
|
ubuntu/bionic/amd64/siatic-3.4/debian/install | ||
---|---|---|
etc
|
||
lib
|
||
usr
|
ubuntu/bionic/amd64/siatic-3.4/debian/postinst | ||
---|---|---|
#!/bin/sh
|
||
POWERON_GREETER=`grep "session-setup-script=/usr/lib/siatic/poweron.sh" /etc/lightdm/lightdm-gtk-greeter.conf`
|
||
if [ -z "$POWERON_GREETER" ]; then
|
||
echo "session-setup-script=/usr/lib/siatic/poweron.sh">>/etc/lightdm/lightdm-gtk-greeter.conf
|
||
fi
|
||
|
||
POWEROFF_GREETER=`grep "display-stopped-script=/usr/lib/siatic/poweroff.sh" /etc/lightdm/lightdm-gtk-greeter.conf`
|
||
if [ -z "$POWERON_GREETER" ]; then
|
||
echo "display-stopped-script=/usr/lib/siatic/poweroff.sh">>/etc/lightdm/lightdm-gtk-greeter.conf
|
||
fi
|
||
|
||
POWERON_XUBUNTU=`grep "session-setup-script=/usr/lib/siatic/poweron.sh" /etc/lightdm/lightdm.conf.d/10-xubuntu.conf`
|
||
if [ -z "$POWERON_XUBUNTU" ]; then
|
||
echo "session-setup-script=/usr/lib/siatic/poweron.sh">>/etc/lightdm/lightdm.conf.d/10-xubuntu.conf
|
||
fi
|
||
|
||
POWEROFF_XUBUNTU=`grep "display-stopped-script=/usr/lib/siatic/poweroff.sh" /etc/lightdm/lightdm.conf.d/10-xubuntu.conf`
|
||
if [ -z "$POWEROFF_XUBUNTU" ]; then
|
||
echo "display-stopped-script=/usr/lib/siatic/poweroff.sh">>/etc/lightdm/lightdm.conf.d/10-xubuntu.conf
|
||
fi
|
||
|
||
|
||
INICIO_CONF=`grep "[Seat:*]" /etc/lightdm/lightdm.conf`
|
||
if [ -z "$INICIO_CONF" ]; then
|
||
echo "[Seat:*]">>/etc/lightdm/lightdm.conf
|
||
fi
|
||
POWERON_CONF=`grep "session-setup-script=/usr/lib/siatic/poweron.sh" /etc/lightdm/lightdm.conf`
|
||
if [ -z "$POWERON_CONF" ]; then
|
||
echo "session-setup-script=/usr/lib/siatic/poweron.sh">>/etc/lightdm/lightdm.conf
|
||
fi
|
||
|
||
POWEROFF_CONF=`grep "display-stopped-script=/usr/lib/siatic/poweroff.sh" /etc/lightdm/lightdm.conf`
|
||
if [ -z "$POWEROFF_CONF" ]; then
|
||
echo "display-stopped-script=/usr/lib/siatic/poweroff.sh">>/etc/lightdm/lightdm.conf
|
||
fi
|
||
|
||
# SIATICCONTROL_SUDOERS=`grep "/usr/lib/siatic/siaticcontrol.sh" /etc/sudoers`
|
||
# if [ -z "$SIATICCONTROL_SUDOERS" ]; then
|
||
# echo "linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh">> /etc/sudoers
|
||
# echo "usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh">> /etc/sudoers
|
||
# echo "%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh">> /etc/sudoers
|
||
# echo "%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh">> /etc/sudoers
|
||
# fi
|
||
|
||
case "$1" in
|
||
configure)
|
||
set -e
|
||
|
||
#Se comentan las siguientes líneas porque no queremos que se machaque /etc/sudoers (SASI)
|
||
#cp /etc/sudoers /etc/sudoers_seguridad
|
||
#cp /usr/lib/siatic/sudoers_nuevo /etc/sudoers
|
||
#chmod 644 /etc/sudoers
|
||
#chown root:root /etc/sudoers
|
||
|
||
if [ -f /etc/xdg/autostart/Siatic.desktop ]; then
|
||
rm /etc/xdg/autostart/Siatic.desktop
|
||
fi
|
||
if [ -f /usr/share/applications/Siatic.desktop ]; then
|
||
rm /usr/share/applications/Siatic.desktop
|
||
fi
|
||
if [ -f /usr/bin/SIATIC_Control.sh ]; then
|
||
rm /usr/bin/SIATIC_Control.sh
|
||
fi
|
||
if [ -f /usr/bin/SIATIC_Control ]; then
|
||
rm /usr/bin/SIATIC_Control
|
||
fi
|
||
if [ -d /usr/lib/siatic ]; then
|
||
chown root:root /usr/lib/siatic -R
|
||
fi
|
||
udevadm control --reload-rules
|
||
udevadm trigger
|
||
update-rc.d siaticcontrol stop 20 0 1 6 . >/dev/null
|
||
echo "."
|
||
|
||
;;
|
||
|
||
abort-upgrade|abort-remove|abort-deconfigure)
|
||
;;
|
||
|
||
*)
|
||
echo "postinst called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
|
||
esac
|
||
|
||
|
||
#Added by AdministracionSI:
|
||
|
||
systemctl enable stopProjector.service
|
||
|
||
exit 0
|
ubuntu/bionic/amd64/siatic-3.4/debian/postrm | ||
---|---|---|
#!/bin/bash
|
||
# postrm script para control siatic
|
||
cd /etc/lightdm
|
||
sed '/poweron.sh/d;/poweroff.sh/d' lightdm-gtk-greeter.conf>>light.limpio
|
||
rm lightdm-gtk-greeter.conf
|
||
mv light.limpio lightdm-gtk-greeter.conf
|
||
sed '/poweron.sh/d;/poweroff.sh/d' lightdm.conf>>lightconf.limpio
|
||
rm lightdm.conf
|
||
mv lightconf.limpio lightdm.conf
|
||
cd lightdm.conf.d
|
||
sed '/poweron.sh/d;/poweroff.sh/d' 10-xubuntu.conf>>10-xubuntu.limpio
|
||
rm 10-xubuntu.conf
|
||
mv 10-xubuntu.limpio 10-xubuntu.conf
|
||
update-rc.d siaticcontrol remove >/dev/null
|
||
case "$1" in
|
||
purge)
|
||
|
||
|
||
;;
|
||
|
||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
|
||
;;
|
||
|
||
esac
|
||
exit 0
|
||
|
||
|
ubuntu/bionic/amd64/siatic-3.4/debian/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
# -*- makefile -*-
|
||
# Sample debian/rules that uses debhelper.
|
||
# This file was originally written by Joey Hess and Craig Small.
|
||
# As a special exception, when this file is copied by dh-make into a
|
||
# dh-make output file, you may use that output file without restriction.
|
||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||
|
||
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
%:
|
||
dh $@
|
ubuntu/bionic/amd64/siatic-3.4/debian/siatic.link | ||
---|---|---|
/lib/systemd/system/stopProjector.service /etc/systemd/system/stopProjector.service
|
ubuntu/bionic/amd64/siatic-3.4/debian/source/format | ||
---|---|---|
3.0 (native)
|
ubuntu/bionic/amd64/siatic-3.4/etc/SIATIC/siaticcontrol.ini | ||
---|---|---|
wifiFin=0
|
||
sonidoFin=0
|
||
proyectorFin=0
|
||
wifiInicio=2
|
||
sonidoInicio=2
|
||
proyectorInicio=2
|
||
puerto=/dev/ttyS0
|
||
ipRouter=192.168.0.1
|
||
clave=
|
||
actualizarClaveWifi=1
|
ubuntu/bionic/amd64/siatic-3.4/etc/init.d/siaticcontrol | ||
---|---|---|
#!/bin/sh
|
||
### BEGIN INIT INFO
|
||
# Provides: siaticcontrol
|
||
# Required-Start: dbus
|
||
# Required-Stop:
|
||
# Default-Start:
|
||
# Default-Stop: 0 1 6
|
||
# Short-Description: apagado SIATIC Control
|
||
### END INIT INFO
|
||
|
||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||
case "$1" in
|
||
stop)
|
||
echo -n "Ejecutando el script de apagado de SIATIC Control..."
|
||
/usr/lib/siatic/poweroff.sh &
|
||
|
||
echo "."
|
||
;;
|
||
restart)
|
||
|
||
echo -n "Ejecutando el script de apagado de SIATIC Control..."
|
||
/usr/lib/siatic/poweroff.sh &
|
||
|
||
echo "."
|
||
;;
|
||
*)
|
||
echo "Debes usar: siaticcontrol {stop|restart}" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
exit 0
|
ubuntu/bionic/amd64/siatic-3.4/etc/sudoers.d/siatic | ||
---|---|---|
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
ubuntu/bionic/amd64/siatic-3.4/etc/xdg/autostart/SIATIC_Control.desktop | ||
---|---|---|
[Desktop Entry]
|
||
Version=3.3-7
|
||
Type=Application
|
||
Name=Siatic
|
||
Comment=
|
||
Exec=/usr/bin/siaticcontrol
|
||
Icon=/usr/share/pixmaps/siatic.png
|
||
Path=
|
||
Terminal=false
|
||
StartupNotify=false
|
||
Name[es]=SIATIC_Control
|
ubuntu/bionic/amd64/siatic-3.4/lib/systemd/system/stopProjector.service | ||
---|---|---|
[Unit]
|
||
Description=Stop Projector on poweroff.
|
||
Conflicts=reboot.target
|
||
Before=shutdown.target halt.target
|
||
|
||
[Service]
|
||
Type=oneshot
|
||
RemainAfterExit=true
|
||
ExecStart=/bin/bash /usr/lib/siatic/poweroff.sh
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|
ubuntu/bionic/amd64/siatic-3.4/usr/bin/siaticcontrol | ||
---|---|---|
#!/bin/sh
|
||
DIRECTORIO_PERSONAL=`echo $HOME`
|
||
ESCRITORIO="$DIRECTORIO_PERSONAL/Escritorio"
|
||
LANZADOR_ESCRITORIO="$ESCRITORIO/SIATIC_Control.desktop"
|
||
|
||
DESKTOP="$DIRECTORIO_PERSONAL/Desktop"
|
||
LANZADOR_DESKTOP="$DESKTOP/SIATIC_Control.desktop"
|
||
|
||
LANZADOR="/etc/xdg/autostart/SIATIC_Control.desktop"
|
||
|
||
if [ -f $LANZADOR ]; then
|
||
if [ -d $ESCRITORIO ] && [ ! -f $LANZADOR_ESCRITORIO ]; then
|
||
cp -f $LANZADOR $LANZADOR_ESCRITORIO
|
||
fi
|
||
|
||
if [ -d $DESKTOP ] && [ ! -f $LANZADOR_DESKTOP ]; then
|
||
cp -f $LANZADOR $LANZADOR_DESKTOP
|
||
fi
|
||
fi
|
||
gksu /usr/lib/siatic/siaticcontrol.sh
|
ubuntu/bionic/amd64/siatic-3.4/usr/lib/siatic/poweroff.sh | ||
---|---|---|
#!/bin/bash
|
||
/usr/bin/killall SIATIC_Control > /dev/null 2>&1
|
||
/usr/lib/siatic/Siatic_Nod 0
|
||
|
||
#Added by AdministracionSI to let poweroff projector on shutdown.
|
||
sleep 3
|
ubuntu/bionic/amd64/siatic-3.4/usr/lib/siatic/poweron.sh | ||
---|---|---|
#!/bin/bash
|
||
cd /usr/lib/siatic
|
||
./Siatic_Nod 1
|
||
|
ubuntu/bionic/amd64/siatic-3.4/usr/lib/siatic/siaticcontrol.sh | ||
---|---|---|
#!/bin/sh
|
||
killall -9 SIATIC_Control >/dev/null 2>&1
|
||
sleep 1
|
||
/usr/lib/siatic/SIATIC_Control
|
||
|
ubuntu/bionic/amd64/siatic-3.4/usr/lib/siatic/sudoers_nuevo | ||
---|---|---|
#
|
||
# This file MUST be edited with the 'visudo' command as root.
|
||
#
|
||
# Please consider adding local content in /etc/sudoers.d/ instead of
|
||
# directly modifying this file.
|
||
#
|
||
# See the man page for details on how to write a sudoers file.
|
||
#
|
||
Defaults env_reset
|
||
Defaults mail_badpass
|
||
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||
|
||
# Host alias specification
|
||
|
||
# User alias specification
|
||
|
||
# Cmnd alias specification
|
||
|
||
# User privilege specification
|
||
root ALL=(ALL:ALL) ALL
|
||
|
||
# Members of the admin group may gain root privileges
|
||
%admin ALL=(ALL) ALL
|
||
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
linex ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
usuario ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
# Allow members of group sudo to execute any command
|
||
%sudo ALL=(ALL:ALL) ALL
|
||
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
%sudo ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/siaticcontrol.sh
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/SIATIC_Control
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/Siatic_Nod
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweron.sh
|
||
%teachers ALL = (ALL) NOPASSWD: /usr/lib/siatic/poweroff.sh
|
||
|
||
# See sudoers(5) for more information on "#include" directives:
|
||
|
||
#includedir /etc/sudoers.d
|
||
|
||
|
||
|
ubuntu/bionic/amd64/siatic-3.4/usr/share/applications/SIATIC_Control.desktop | ||
---|---|---|
[Desktop Entry]
|
||
Version=3.3-7
|
||
Type=Application
|
||
Name=Siatic
|
||
Comment=
|
||
Exec=/usr/bin/siaticcontrol
|
||
Icon=/usr/share/pixmaps/siatic.png
|
||
Path=
|
||
Terminal=false
|
||
StartupNotify=false
|
||
Name[es]=SIATIC_Control
|
Exportar a: Unified diff
Linex-arduino: Added package of arduino