Commit 3d499c73 authored by Arturo Martín Romero's avatar Arturo Martín Romero :thinking:
Browse files

Paquete específico para la configuración de la CPEPA Casa del Canal

parents
No related merge requests found
Showing with 876 additions and 0 deletions
+876 -0
variables:
_USER: "builduser"
_PATH: /home/$_USER/$CI_PROJECT_NAME
stages:
- build
- upload
build-vitalinux14:
image: vitalinux14:dev
stage: build
script:
- useradd -m $_USER
- mkdir -p $_PATH
- mv * $_PATH
- pushd $_PATH
- su -c "/usr/bin/debuild --no-tgz-check -us -uc" $_USER
- popd
- mv /home/$_USER/*.deb .
artifacts:
expire_in: 1 days
paths:
- ./*.deb
only:
- tags
upload-vitalinux14:
image: vitalinux14:dev
stage: upload
script:
- MIGASFREE_PACKAGER_PROJECT=Lubuntu-14.04 migasfree-upload -f *.deb
dependencies:
- build-vitalinux14
only:
- tags
build-vitalinux18:
image: vitalinux18:dev
stage: build
script:
- useradd -m $_USER
- mkdir -p $_PATH
- mv * $_PATH
- pushd $_PATH
- su -c "/usr/bin/debuild --no-tgz-check -us -uc" $_USER
- popd
- mv /home/$_USER/*.deb .
artifacts:
expire_in: 1 days
paths:
- ./*.deb
only:
- tags
upload-vitalinux18:
image: vitalinux18:dev
stage: upload
script:
- MIGASFREE_PACKAGER_PROJECT=VX-18.04 migasfree-upload -f *.deb
dependencies:
- build-vitalinux18
only:
- tags
README.md 0 → 100644
# Paquete DEB vx-dga-l-conf-centro-cpepacasadelcanal
Paquete encargado de configurar de forma personalizada las necesidades de un centro en concreto. Se pueden llegar a configurar de forma automática las siguientes caractéristicas en función de los CIDs o Etiquetas migasfree de los equipos:
* Horas de apagado de los equipos
* Páginas de inicio de los navegadores Web
* Extensiones de los navegadores Web
* Passwords de los usuarios
* Ebooks
* Lanzadores personalizados a aplicaciones
* Impresoras en red
* Wallpaper
* Carpetas compartidas NFS
* Gestión de cuentas de usuario
* Control de inactividad (tiempo y acción a realizar)
* etc.
# Usuarios Destinatarios
Usuarios del centro correspondiente
# Aspectos Interesantes:
```
Ninguno
```
# Como Crear el paquete DEB a partir del codigo de GitHub
Para crear el paquete DEB será necesario encontrarse dentro del directorio donde localizan los directorios que componen el paquete. Una vez allí, se ejecutará el siguiente comando (es necesario tener instalados los paquetes apt-get install debhelper devscripts):
```
apt-get install debhelper devscripts
/usr/bin/debuild --no-tgz-check -us -uc
```
En el caso de que no desees crear el paquete DEB a partir del código fuente, ya que no más a modificarlo ni introducir ninguna mejora, puedes obtener el paquete DEB aquí:
[Listado de Paquetes del Proyecto de Software Libre](http://migasfree.educa.aragon.es/repo/)
# Como Instalar el paquete generado vx-dga-l-\*.deb:
Para la instalación de paquetes que estan en el equipo local puede hacerse uso de **_dpkg_** o de **_gdebi_**, siendo este último el más aconsejado para que se instalen también las dependencias correspondientes.
```
gdebi vx-dga-l-*.deb
```
# Paquete DEB vx-dga-l-conf-centro-cpepacasadelcanal
Paquete encargado de configurar de forma personalizada un centro en concreto
# Usuarios Destinatarios
Usuarios del centro correspondiente
# Aspectos Interesantes:
```
Ninguno
```
# Como Crear el paquete DEB a partir del codigo de GitHub
Para crear el paquete DEB será necesario encontrarse dentro del directorio donde localizan los directorios que componen el paquete. Una vez allí, se ejecutará el siguiente comando (es necesario tener instalados los paquetes apt-get install debhelper devscripts):
```
apt-get install debhelper devscripts
/usr/bin/debuild --no-tgz-check -us -uc
```
En el caso de que no desees crear el paquete DEB a partir del código fuente, ya que no más a modificarlo ni introducir ninguna mejora, puedes obtener el paquete DEB aquí:
[Listado de Paquetes del Proyecto de Software Libre](http://migasfree.educa.aragon.es/repo/)
# Como Instalar el paquete generado vx-dga-l-\*.deb:
Para la instalación de paquetes que estan en el equipo local puede hacerse uso de **_dpkg_** o de **_gdebi_**, siendo este último el más aconsejado para que se instalen también las dependencias correspondientes.
```
gdebi vx-dga-l-*.deb
```
vx-dga-l-conf-centro-cpepacasadelcanal (1.0-1) unstable; urgency=low
* Paquete específico para la configuración de la CPEPA Casa del Canal
-- Arturo Martin <amartinromero@gmail.com> Fri, 16 Apr 2021 00:15:06 +0200
9
Source: vx-dga-l-conf-centro-cpepacasadelcanal
Section: utils
Priority: extra
Maintainer: Arturo Martín <amartinromero@gmail.com>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.7
Homepage: http://wiki.vitalinux.educa.aragon.es
Package: vx-dga-l-conf-centro-cpepacasadelcanal
Architecture: all
Provides: vx-dga-l-conf-centro-virtual
Conflicts: vx-dga-l-conf-centro-virtual
Replaces: vx-dga-l-iconos
Pre-Depends:
Depends: ${misc:Depends}, vx-dga-l-conf-centro, vx-dga-l-printers-codusers, numlockx
Description: Personalización de Vitalinux por Centro
Paquete encargado de proveer el Json con los detalles de personalización
Format: http://dep.debian.net/deps/dep5
Upstream-Name: vx-dga-l-conf-centro-cpepacasadelcanal
Files: * debian/*
Copyright: 2017 Arturo Martín <amartinromero@gmail.com>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
usr/*
\ No newline at end of file
#!/bin/bash
# postinst script for vx-dga-l-conf-centro-cpepacasadelcanal
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
# Permisos de ejecución a los scripts del paquete:
chmod 755 /usr/bin/vx-*
# Configuración del Wallpaper del Centro: añadimos wallpaper personalizado
EJECUTABLE="/usr/bin/vx-conf-wallpaper-centro"
PAQUETECENTRO="vx-dga-l-conf-centro-cpepacasadelcanal"
ACCION="add"
# if [ -x "${EJECUTABLE}" ] ; then
# if "${EJECUTABLE}" "${ACCION}" "${PAQUETECENTRO}" > /dev/null 2>&1 ; then
# echo "=> ${EJECUTABLE}: Se ha configurado el Wallpaper del Centro"
# else
# echo "=> ${EJECUTABLE}: Problemas para configurar el Wallpaper del centro"
# fi
# fi
# Aplicamos la configuración indicada en el Json que incorpora el paquete:
EJECUTABLE="/usr/bin/vx-conf-centro-general-cli"
if [ -x "${EJECUTABLE}" ] ; then
if "${EJECUTABLE}" > /dev/null 2>&1 ; then
echo "=> ${EJECUTABLE}: Se ha configurado el equipo correctamente"
else
echo "=> ${EJECUTABLE}: Problemas para configurar el equipo correctamente"
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/bash
# prerm script for vx-dga-l-conf-centro-cpepacasadelcanal
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove)
# Desconfiguración del Wallpaper del Centro: borramos wallpaper personalizado
EJECUTABLE="/usr/bin/vx-conf-wallpaper-centro"
PAQUETECENTRO="vx-dga-l-conf-centro-cpepacasadelcanal"
ACCION="del"
# if [ -x "${EJECUTABLE}" ] ; then
# if "${EJECUTABLE}" "${ACCION}" "${PAQUETECENTRO}" > /dev/null 2>&1 ; then
# echo "=> ${EJECUTABLE}: Se ha desconfigurado el Wallpaper del Centro"
# else
# echo "=> ${EJECUTABLE}: Problemas para desconfigurar el Wallpaper del centro"
# fi
# fi
;;
upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/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 $@
#! /bin/bash
# incidencia: https://soporte.vitalinux.educa.aragon.es/issues/2428
# Damos respuesta a un Bug de Mblock
# Desc: Script de Instalación de la Extensión Mio Robot de MBlock
DIREXT="/opt/makeblock/mBlock/resources/ext/libraries/mio_robot"
[ -d "${DIREXT}" ] && \
{
echo "=> La Extensión Mio Robot de MBlock ya esta instalada ..." ;
exit 0
}
# Creamos el directorio donde se almacenan las extensiones en mblock:
DIR="/opt/makeblock/mBlock/resources/ext/libraries"
[ ! -d "${DIR}" ] && \
mkdir -p "${DIR}" && \
echo "=> Se ha creado el directorio de Extensiones de MBlock: ${DIR}"
# Damos permisos para que los usuarios puedan registrar sus propias extensiones:
[ -d "${DIR}" ] && chmod 777 "${DIR}" || \
{
echo "=> Problemas con el directorio de Destino de las Extensiones de MBlock ..." ;
exit 1 ;
}
# Descomprimimos la extensión Mio Robot en mblock",
# URL="http://migasfree.educa.aragon.es/cosas-centros/mblock-extensiones/mblock-ext-mio_robot.zip"
EXTENSION="/usr/share/vitalinux/mblock/mblock-ext-mio_robot.zip"
[ -f "${EXTENSION}" ] && unzip -q "${EXTENSION}" -d "${DIR}" && \
{
echo "=> Hemos descomprimido la Extension de MBlock Mio Robot" ;
exit 0 ;
} || \
{
echo "=> Problema para descomprimir la Extension de MBlock Mio Robot" ;
exit 1
}
\ No newline at end of file
#!/bin/bash
INITSYS=$(ls -al /proc/1/exe | awk -F' ' '{print $NF}' | awk -F'/' '{print $NF}')
if [ "systemd" == "$INITSYS" ]; then
systemctl stop avahi-daemon.service &> /dev/null || true
elif [ "init" == "$INITSYS" ]; then
/etc/init.d/avahi-daemon stop &> /dev/null || true
fi
\ No newline at end of file
#!/bin/bash
function configurar_wallpaper() {
## WALLPAPER
## Divert de los archivos que define el fondo de pantalla
for _FILE in /usr/share/vitalinux/wallpapers/*0.png; do
dpkg-divert --add --package "${PAQUETECENTRO}" --rename \
--divert $_FILE.orig $_FILE
[ ! -e $_FILE -o -L $_FILE ] && \
ln -sf /usr/share/divert$_FILE $_FILE
done
# Ajustamos de nuevo las resoluciones
RESOLUCION=$(/usr/bin/obtener-resolucion-pantalla)
[ "$RESOLUCION" = "" ] && RESOLUCION="Indeterminada"
_FILE1=/usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper.png
_FILE2=/usr/share/vitalinux/wallpapers/vitalinux-login.png
case $RESOLUCION in
"4:3" )
cp /usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper-4x3-1600x1200.png $_FILE1
cp /usr/share/vitalinux/wallpapers/vitalinux-login-4x3-1600x1200.png $_FILE2
;;
"16:9" )
cp /usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper-16x9-1920x1080.png $_FILE1
cp /usr/share/vitalinux/wallpapers/vitalinux-login-16x9-1920x1080.png $_FILE2
;;
* )
# Por defecto dejamos la 16x9
cp /usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper-16x9-1920x1080.png $_FILE1
cp /usr/share/vitalinux/wallpapers/vitalinux-login-16x9-1920x1080.png $_FILE2
;;
esac
# GREETER
FILEGREETER="/etc/lightdm/lightdm-gtk-greeter.conf.d/99_vitalinux.conf"
[ -f $FILEGREETER ] && \
sed -i --follow-symlinks "s#background=.*#background=${_FILE2}#g" $FILEGREETER
}
function bug_lorele() {
BUGPAQUETE="vx-dga-l-desktop-wallpaper-lorele"
for _FILE in $(dpkg-divert --list | grep lorele | awk '{print $3}'); do
[ -L $_FILE ] && rm $_FILE
dpkg-divert --remove --package "${BUGPAQUETE}" --rename \
--divert $_FILE.orig $_FILE > /dev/null 2>/dev/null
done
}
function desconfigurar_wallpaper()
{
bug_lorele
for _FILE in /usr/share/vitalinux/wallpapers/*0.png; do
if dpkg-divert --list | grep -q "${PAQUETECENTRO}" | grep "${_FILE}" ; then
[ -L $_FILE ] && rm $_FILE
dpkg-divert --remove --package "${PAQUETECENTRO}" --rename \
--divert $_FILE.orig $_FILE
fi
done
## Restauramos los ficheros de imagen (wallpaper y login) base aplicados
_FILE1=/usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper.png
_FILE2=/usr/share/vitalinux/wallpapers/vitalinux-login.png
_FILE1BASE=/usr/share/vitalinux/wallpapers/vitalinux-edu-wallpaper-16x9-1920x1080.png
_FILE2BASE=/usr/share/vitalinux/wallpapers/vitalinux-login-16x9-1920x1080.png
[ -f $_FILE1BASE ] && cp $_FILE1BASE $_FILE1
[ -f $_FILE2BASE ] && cp $_FILE2BASE $_FILE2
}
ACCION="${1}"
PAQUETECENTRO="${2}"
case "${ACCION}" in
"add" )
# Eliminamos previamente el posible Wallpaper que pudiera haber:
desconfigurar_wallpaper
# Añadimos el wallpaper el nuevo wallpaper:
configurar_wallpaper
;;
"del" ) desconfigurar_wallpaper
;;
esac
#!/bin/bash
uso () {
echo "=> Script que permite actualizar el valor de un parámetro de una sección de la lista del Json de descripción del centro."
echo "=> Deben pasarse 5 parámetros:"
echo "=> 1) El Json de descripción del centro"
echo "=> 2) El parámetro principal donde buscar: p.e. ebooks"
echo "=> 3) El parámetro secundario donde buscar: p.e. Icon"
echo "=> 4) Valor asignado al parametro secundario buscado: p.e. /media/profesores/icon.png"
echo "=> 5) Nuevo valor del parametro secundario a asignar: p.e. mi-otro-icono"
echo "Ej. vx-jq-update-json usr/share/vitalinux/conf-centro/vx-centro.conf.json ebooks icon /media/profesores/.libros-digitales/libros-frances/CESTADIREA2/CESTADIREA2.jpg CESTADIREA2"
}
(( ${#} != 5 )) && uso && exit 1
# Comprobamos que tiene instalado el paquete moreutils para poder usar la utilidad sponge:
if ! ( dpkg -l | tr -s " " " " | cut -d" " -f2 | grep ^moreutils > /dev/null 2>&1 ) ; then
echo -e "=> Debes instalar el paquete moreutils para usar sponge: \n\tsudo apt-get install moreutils"
fi
#RUTA="/usr/share/vitalinux/conf-centro/vx-centro.conf.json"
[ ! -z "${1}" ] && [ -f "${1}" ] && \
{
echo "=> Comprobamos el fichero pasado como FICHJSON: ${1}"
#jq -e < "${1}" > /dev/null 2>&1 && \
python -m json.tool "${1}" /dev/null 2>&1 && \
FICHJSON="${1}" && \
echo "=> Se ha adoptado con FICHJSON: ${FICHJSON}" || \
{
echo "=> Problema con FICHJSON: ${FICHJSON}" ;
exit 1;
}
} || \
{
uso && exit 1;
}
echo "=> Vamos a trabajar con el archivo: ${FICHJSON}"
# 1) Comprobamos el parámetro principal indicado:
PARAM1="${2}"
NUM1="$(jq ".${2}.lista | length" "${FICHJSON}")"
echo "=> Hay una lista de ${NUM1} conjuntos de ${2} para comprobar el parámetro secundario ${3} ..."
# 2) Hacemos un bucle para comprobar el parámetro secundario indicado:
PARAM2="${3}"
VALORANT2="\"${4}\""
VALORNEW2="${5}"
CONT1=0
while (( ${CONT1} < ${NUM1} )) ; do
CONT2=0
VALORPARAM2="$(jq ".${2}.lista[${CONT1}].${3}" "${FICHJSON}")"
# Comprobamos si el valor del parámetro secundario coincide con el indicado:
# De ser así actualizaremos su valor por el valor indicado como 5 parámetro
echo "=> Vamos a comprobar: ${VALORANT2} == ${VALORPARAM2}"
[[ "${VALORANT2}" == "${VALORPARAM2}" ]] && \
echo "=> Coincidencia!!" && \
jq ". | \
.${2}.lista[${CONT1}].${3} = \"${VALORNEW2}\"" \
"${FICHJSON}" | sponge "${FICHJSON}" && \
echo "=> Se ha actualizado \"${2}.lista[${CONT1}].${3}\": ${VALORANT2} => ${VALORNEW2}"
((CONT1++))
done
#!/bin/bash
uso () {
echo "=> Script para insertar en el Json de descripción de centro las passwords cifradas (SHA)."
echo "=> Deben pasarse 2 parámetros:"
echo "=> 1) El Json de descripción del centro"
echo "=> 2) El Json con los usuarios y passwords"
echo "Ej. vx-passwords_usuarios-json usr/share/vitalinux/conf-centro/vx-centro.conf.json otros_archivos/vx-passwords_usuarios.json"
}
(( ${#} != 2 )) && uso && exit 1
# Comprobamos que tiene instalado el paquete moreutils para poder usar la utilidad sponge:
if ! ( dpkg -l | tr -s " " " " | cut -d" " -f2 | grep ^moreutils > /dev/null 2>&1 ) ; then
echo -e "=> Debes instalar el paquete moreutils para usar sponge: \n\tsudo apt-get install moreutils"
fi
#RUTA="/usr/share/vitalinux/conf-centro/vx-centro.conf.json"
[ ! -z "${1}" ] && [ -f "${1}" ] && \
{
echo "=> Comprobamos el fichero pasado como FICHJSON: ${1}"
#jq -e < "${1}" > /dev/null 2>&1 && \
python -m json.tool "${1}" /dev/null 2>&1 && \
FICHJSON="${1}" && \
echo "=> Se ha adoptado con FICHJSON: ${FICHJSON}" || \
{
echo "=> Problema con FICHJSON: ${FICHJSON}" ;
exit 1;
}
} || \
{
uso && exit 1;
}
# Comprobamos que como segundo parámetro hay un Json con los usuarios y contraseñas:
[ ! -z "${2}" ] && {
echo "=> Comprobamos el fichero Json de usuarios y passwords: ${2}"
[ -f "${2}" ] && \
python -m json.tool "${2}" /dev/null 2>&1 && \
{
JSONPASS="${2}" ;
echo "=> Se adopta como JSONPASS: ${JSONPASS}" ;
} || \
{
uso && exit 1
}
} || \
{
uso && exit 1 ;
}
echo "=> Vamos a trabajar con el archivo: ${FICHJSON}"
# 1) Comprobamos cuantas passwords por etiquetas|cids se configuran:
NUM1="$(jq '.usuarios.passwords | length' "${FICHJSON}")"
echo "=> Hay ${NUM1} conjuntos de passwords a asignar por etiquetas|cids ..."
# 2) Hacemos un bucle para asignar passwords:
CONT1=0
while (( ${CONT1} < ${NUM1} )) ; do
CONT2=0
NUM2="$(jq ".usuarios.passwords[${CONT1}].passusus | length" "${FICHJSON}")"
while (( ${CONT2} < ${NUM2} )) ; do
USU="$(jq -r ".usuarios.passwords[${CONT1}].passusus[${CONT2}] | .usuario" "${FICHJSON}")"
[[ ! -z "${USU}" ]] && \
{
PASSUSU="$(jq -r ".passusus[] | select ( .usuario == \"${USU}\" ) | .password" "${JSONPASS}")" ;
[[ ! -z "${PASSUSU}" ]] && \
{
PASSUSUSHA="$(mkpasswd -m sha-512 "${PASSUSU}")" ;
jq ". | \
.usuarios.passwords[${CONT1}].passusus[${CONT2}].password = \"${PASSUSUSHA}\"" \
"${FICHJSON}" | sponge "${FICHJSON}" ;
echo "=> Asignación Passwords: ${USU}:${PASSUSU}:${PASSUSUSHA}:Ok!!"
} || \
{
echo "=> No hay password para el usuario: ${USU}" ;
}
}
((CONT2++))
done
((CONT1++))
done
*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.openprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (4.0.0 or newer) generated this PPD file. It is for use with
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
*% "foomatic-rip" backend filter script of Foomatic 4.0.0 or newer. This
*% file and "foomatic-rip" work together to support PPD-controlled printer
*% driver option access with all supported printer drivers and printing
*% spoolers.
*%
*% To save this file on your disk, wait until the download has completed
*% (the animation of the browser logo must stop) and then use the
*% "Save as..." command in the "File" menu of your browser or in the
*% pop-up manu when you click on this document with the right mouse button.
*% DO NOT cut and paste this file into an editor with your mouse. This can
*% introduce additional line breaks which lead to unexpected results.
*%
*% You may save this file as 'Olivetti-JP350S-laserjet.ppd'
*%
*%
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "LASERJET.PPD"
*Manufacturer: "Olivetti"
*Product: "(JP350S)"
*cupsVersion: 1.0
*cupsManualCopies: True
*cupsModelNumber: 2
*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"
*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip"
*%pprRIP: foomatic-rip other
*ModelName: "Olivetti JP350S"
*ShortNickName: "Olivetti JP350S laserjet"
*NickName: "Olivetti JP350S Foomatic/laserjet (recommended)"
*PSVersion: "(3010.000) 550"
*PSVersion: "(3010.000) 651"
*PSVersion: "(3010.000) 652"
*PSVersion: "(3010.000) 653"
*PSVersion: "(3010.000) 704"
*PSVersion: "(3010.000) 705"
*PSVersion: "(3010.000) 800"
*PSVersion: "(3010.000) 815"
*PSVersion: "(3010.000) 850"
*PSVersion: "(3010.000) 860"
*PSVersion: "(3010.000) 861"
*PSVersion: "(3010.000) 862"
*PSVersion: "(3010.000) 863"
*PSVersion: "(3010.000) 864"
*PSVersion: "(3010.000) 870"
*LanguageLevel: "3"
*ColorDevice: True
*DefaultColorSpace: RGB
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42
*1284DeviceID: "DRV:Dlaserjet,R1,M0,TG;"
*driverName laserjet: ""
*driverType G/Ghostscript built-in: ""
*driverUrl: "http://www.ghostscript.com/"
*driverObsolete: False
*driverManufacturerSupplied: False
*HWMargins: 18 36 18 36
*VariablePaperSize: True
*MaxMediaWidth: 100000
*MaxMediaHeight: 100000
*NonUIOrderDependency: 100 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop pop pop
%% FoomaticRIPOptionSetting: PageSize=Custom"
*End
*FoomaticRIPOptionSetting PageSize=Custom: " -dDEVICEWIDTHPOINTS=0 -dD&&
EVICEHEIGHTPOINTS=0"
*End
*ParamCustomPageSize Width: 1 points 36 100000
*ParamCustomPageSize Height: 2 points 36 100000
*ParamCustomPageSize Orientation: 3 int 0 0
*ParamCustomPageSize WidthOffset: 4 points 0 0
*ParamCustomPageSize HeightOffset: 5 points 0 0
*FoomaticIDs: Olivetti-JP350S laserjet
*FoomaticRIPCommandLine: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPA&&
USE -dNOINTERPOLATE -sDEVICE=laserjet%A%Z -sOutputFile=-%C -f -"
*End
*OpenGroup: General/General
*OpenUI *PageSize/Page Size: PickOne
*FoomaticRIPOption PageSize: enum CmdLine A
*OrderDependency: 100 AnySetup *PageSize
*DefaultPageSize: A4
*PageSize Letter/US Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*FoomaticRIPOptionSetting PageSize=Letter: " -dDEVICEWIDTHPOINTS=612 -&&
dDEVICEHEIGHTPOINTS=792"
*End
*PageSize A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*FoomaticRIPOptionSetting PageSize=A4: " -dDEVICEWIDTHPOINTS=595 -dDEV&&
ICEHEIGHTPOINTS=842"
*End
*PageSize 11x17/11x17: "%% FoomaticRIPOptionSetting: PageSize=11x17"
*FoomaticRIPOptionSetting PageSize=11x17: " -dDEVICEWIDTHPOINTS=792 -d&&
DEVICEHEIGHTPOINTS=1224"
*End
*PageSize A3/A3: "%% FoomaticRIPOptionSetting: PageSize=A3"
*FoomaticRIPOptionSetting PageSize=A3: " -dDEVICEWIDTHPOINTS=842 -dDEV&&
ICEHEIGHTPOINTS=1191"
*End
*PageSize A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*FoomaticRIPOptionSetting PageSize=A5: " -dDEVICEWIDTHPOINTS=421 -dDEV&&
ICEHEIGHTPOINTS=595"
*End
*PageSize B5/B5 (JIS): "%% FoomaticRIPOptionSetting: PageSize=B5"
*FoomaticRIPOptionSetting PageSize=B5: " -dDEVICEWIDTHPOINTS=516 -dDEV&&
ICEHEIGHTPOINTS=729"
*End
*PageSize Env10/Envelope #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*FoomaticRIPOptionSetting PageSize=Env10: " -dDEVICEWIDTHPOINTS=297 -d&&
DEVICEHEIGHTPOINTS=684"
*End
*PageSize EnvC5/Envelope C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*FoomaticRIPOptionSetting PageSize=EnvC5: " -dDEVICEWIDTHPOINTS=459 -d&&
DEVICEHEIGHTPOINTS=649"
*End
*PageSize EnvDL/Envelope DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*FoomaticRIPOptionSetting PageSize=EnvDL: " -dDEVICEWIDTHPOINTS=312 -d&&
DEVICEHEIGHTPOINTS=624"
*End
*PageSize EnvISOB5/Envelope B5: "%% FoomaticRIPOptionSetting: PageSize=EnvISOB5"
*FoomaticRIPOptionSetting PageSize=EnvISOB5: " -dDEVICEWIDTHPOINTS=499&&
-dDEVICEHEIGHTPOINTS=709"
*End
*PageSize EnvMonarch/Envelope Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*FoomaticRIPOptionSetting PageSize=EnvMonarch: " -dDEVICEWIDTHPOINTS=2&&
79 -dDEVICEHEIGHTPOINTS=540"
*End
*PageSize Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*FoomaticRIPOptionSetting PageSize=Executive: " -dDEVICEWIDTHPOINTS=52&&
2 -dDEVICEHEIGHTPOINTS=756"
*End
*PageSize Legal/US Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*FoomaticRIPOptionSetting PageSize=Legal: " -dDEVICEWIDTHPOINTS=612 -d&&
DEVICEHEIGHTPOINTS=1008"
*End
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*OrderDependency: 100 AnySetup *PageRegion
*DefaultPageRegion: A4
*PageRegion Letter/US Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*PageRegion A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*PageRegion 11x17/11x17: "%% FoomaticRIPOptionSetting: PageSize=11x17"
*PageRegion A3/A3: "%% FoomaticRIPOptionSetting: PageSize=A3"
*PageRegion A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*PageRegion B5/B5 (JIS): "%% FoomaticRIPOptionSetting: PageSize=B5"
*PageRegion Env10/Envelope #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*PageRegion EnvC5/Envelope C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*PageRegion EnvDL/Envelope DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*PageRegion EnvISOB5/Envelope B5: "%% FoomaticRIPOptionSetting: PageSize=EnvISOB5"
*PageRegion EnvMonarch/Envelope Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*PageRegion Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*PageRegion Legal/US Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*CloseUI: *PageRegion
*DefaultImageableArea: A4
*ImageableArea Letter/US Letter: "18 36 594 756"
*ImageableArea A4/A4: "18 36 577 806"
*ImageableArea 11x17/11x17: "18 36 774 1188"
*ImageableArea A3/A3: "18 36 824 1155"
*ImageableArea A5/A5: "18 36 403 559"
*ImageableArea B5/B5 (JIS): "18 36 498 693"
*ImageableArea Env10/Envelope #10: "18 36 279 648"
*ImageableArea EnvC5/Envelope C5: "18 36 441 613"
*ImageableArea EnvDL/Envelope DL: "18 36 294 588"
*ImageableArea EnvISOB5/Envelope B5: "18 36 481 673"
*ImageableArea EnvMonarch/Envelope Monarch: "18 36 261 504"
*ImageableArea Executive/Executive: "18 36 504 720"
*ImageableArea Legal/US Legal: "18 36 594 972"
*DefaultPaperDimension: A4
*PaperDimension Letter/US Letter: "612 792"
*PaperDimension A4/A4: "595 842"
*PaperDimension 11x17/11x17: "792 1224"
*PaperDimension A3/A3: "842 1191"
*PaperDimension A5/A5: "421 595"
*PaperDimension B5/B5 (JIS): "516 729"
*PaperDimension Env10/Envelope #10: "297 684"
*PaperDimension EnvC5/Envelope C5: "459 649"
*PaperDimension EnvDL/Envelope DL: "312 624"
*PaperDimension EnvISOB5/Envelope B5: "499 709"
*PaperDimension EnvMonarch/Envelope Monarch: "279 540"
*PaperDimension Executive/Executive: "522 756"
*PaperDimension Legal/US Legal: "612 1008"
*OpenUI *InputSlot/Media Source: PickOne
*FoomaticRIPOption InputSlot: enum CmdLine A
*OrderDependency: 100 AnySetup *InputSlot
*DefaultInputSlot: Default
*InputSlot Default/Printer Default: "%% FoomaticRIPOptionSetting: InputSlot=Default"
*FoomaticRIPOptionSetting InputSlot=Default: " -dMediaPosition=0"
*InputSlot Upper/Upper Tray: "%% FoomaticRIPOptionSetting: InputSlot=Upper"
*FoomaticRIPOptionSetting InputSlot=Upper: " -dMediaPosition=1"
*InputSlot Middle/Middle Tray: "%% FoomaticRIPOptionSetting: InputSlot=Middle"
*FoomaticRIPOptionSetting InputSlot=Middle: " -dMediaPosition=4"
*InputSlot Lower/Lower Tray: "%% FoomaticRIPOptionSetting: InputSlot=Lower"
*FoomaticRIPOptionSetting InputSlot=Lower: " -dMediaPosition=5"
*InputSlot Multipurpose/Multipurpose Tray: "%% FoomaticRIPOptionSetting: InputSlot=Multipurpose"
*FoomaticRIPOptionSetting InputSlot=Multipurpose: " -dMediaPosition=8"
*InputSlot Automatic/Automatic: "%% FoomaticRIPOptionSetting: InputSlot=Automatic"
*FoomaticRIPOptionSetting InputSlot=Automatic: " -dMediaPosition=7"
*InputSlot Envelope/Envelope Feeder: "%% FoomaticRIPOptionSetting: InputSlot=Envelope"
*FoomaticRIPOptionSetting InputSlot=Envelope: " -dMediaPosition=3"
*InputSlot Manual/Manual Feeder: "%% FoomaticRIPOptionSetting: InputSlot=Manual"
*FoomaticRIPOptionSetting InputSlot=Manual: " -dMediaPosition=2"
*CloseUI: *InputSlot
*OpenUI *Resolution/Resolution: PickOne
*FoomaticRIPOption Resolution: enum CmdLine A
*OrderDependency: 110 AnySetup *Resolution
*DefaultResolution: 300x300dpi
*Resolution 75x75dpi/75x75 DPI: "%% FoomaticRIPOptionSetting: Resolution=75x75dpi"
*FoomaticRIPOptionSetting Resolution=75x75dpi: " -r75x75"
*Resolution 150x150dpi/150x150 DPI: "%% FoomaticRIPOptionSetting: Resolution=150x150dpi"
*FoomaticRIPOptionSetting Resolution=150x150dpi: " -r150x150"
*Resolution 300x300dpi/300x300 DPI: "%% FoomaticRIPOptionSetting: Resolution=300x300dpi"
*FoomaticRIPOptionSetting Resolution=300x300dpi: " -r300x300"
*CloseUI: *Resolution
*CloseGroup: General
*% Generic boilerplate PPD stuff as standard PostScript fonts and so on
*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
*Font Bookman-Light: Standard "(001.004S)" Standard ROM
*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
*Font Courier: Standard "(002.004S)" Standard ROM
*Font Courier-Bold: Standard "(002.004S)" Standard ROM
*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
*Font Helvetica: Standard "(001.006S)" Standard ROM
*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
*Font Symbol: Special "(001.007S)" Special ROM
*Font Times-Bold: Standard "(001.007S)" Standard ROM
*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
*Font Times-Italic: Standard "(001.007S)" Standard ROM
*Font Times-Roman: Standard "(001.007S)" Standard ROM
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Standard ROM
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment