Stampa fronte-retro
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Stampa fronte-retro
Attualmente sul mio Ubuntu 18.04 con HPLIP non riesco a stampare fronte retro, lo imposto ma HP ignora il comando e si ferma dopo aver stampato il fronte come se avessi impostato una pagona singola.
Lo stesso se apro il pdf anzichè da acrobat da Okular.
Lo stesso se apro il pdf anzichè da acrobat da Okular.
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro manuale non possibile con Linux?
Da write -> File -> Impostazioni stampante -> Opzioni -> Pagine. Togli/metti la spunta su quello che vuoi/non vuoi stampare. Oppure File -> Stampa -> Pagine - metti 1,3,5,7 ecc per stampare le pagine dispari e 2,4,6, eccc per quelle pari. Questo lo hai provato?
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro manuale non possibile con Linux?
uhm...si ma volevo evitare di stampare dispari e poi pari...vorrei stampasse fronte retro.
- giulux
- Amministratore
- Messaggi: 25422
- Iscrizione: domenica 10 gennaio 2010, 12:17
- Desktop: ubuntu 18.04
- Distribuzione: Ubuntu 18.04.3 LTS x86_64
- Sesso: Maschile
- Località: Roma
Re: Stampa fronte-retro manuale non possibile con Linux?
Scusa, ma cosa intendi per stampare in front-retro? Che i fogli uscissero dalla stampante con entrambe le facciate stampate?
"Non è una segno di buona salute l'essere ben adattato ad una società malata". (Jiddu Krishnarmurti)
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro manuale non possibile con Linux?
No, che terminata la stampa di quelle dispari mi avverta di reinserire le pagine (nello stesso verso) per stampare le pari come faceva una volta e come fa su win.
-
- Imperturbabile Insigne
- Messaggi: 2842
- Iscrizione: domenica 11 maggio 2008, 18:03
- Desktop: plasma
- Distribuzione: 22.04
- Località: Palermo
Re: Stampa fronte-retro manuale non possibile con Linux?
Per ottenere questo io ho uno script che stampa prima le pagine dispari, avvisa di reinserire opportunamente la carta e poi stampa le pagine pari. Per risolvere lo sfasamento che si verificherebbe, nei documenti che hanno un numero dispari di pagine lo script stampa un foglio bianco prima di iniziare la stampa delle pagine pari. È un po' che non lo uso ma funzionavaashesBowie ha scritto: ↑martedì 3 agosto 2021, 9:41No, che terminata la stampa di quelle dispari mi avverta di reinserire le pagine (nello stesso verso) per stampare le pari come faceva una volta e come fa su win.
Codice: Seleziona tutto
#!/bin/bash
# fronte-retro.sh
# semplice script per stampare fronte/retro
# modificato a partire da: https://opensource.com/article/20/4/print-duplex-bash-script
# la stampante default
default="$(lpstat -d | awk '{print $(NF)}')"
# array delle stampanti riconosciute
stampanti=($(lpstat -a | awk '{print $1}'))
usage="
USO: `basename $0` <PDF> [<STAMPANTE>]
<PDF> '/percorso/di/un/file.pdf' (racchiuso tra apici)
<STAMPANTE> nome di sistema della stampante da usare (facoltativo)
Stampante predefinita è: $default
Stampanti utilizzabili:
$(for prn in ${stampanti[@]}; do echo $prn; done)
"
# Controllo di correttezza della riga di comando:
# se non ci sono parametri o se FILE non è un pdf
if ! (file "$1" 2>/dev/null | grep -qi "pdf document"); then
error=1
# oppure se ci sono 2 parametri e il 2° non è una stampante valida
elif [ $# = 2 ]; then
for prn in ${stampanti[@]}; do
if [ $prn = "$2" ]; then
error=0
break
else error=1
fi
done
# oppure se ci sono più di 2 parametri
elif [ $# -gt 2 ]; then
error=1
fi
if [ $error = 1 ]; then
echo "$usage" >&2 && exit 1
fi
stampante=${2:-$default} # se manca il parametro $2, viene usato il valore default
pages=$( pdfinfo "$1" | awk '/^Pages:/ {print $2}' )
cat<<EOF
Stampa di $1 ($pages pagine) su $2
-------------------------------------------
Stampa prima le pagine dispari
Per favore aspetta la fine della stampa...
-------------------------------------------
EOF
lpr -P "$stampante" -o page-set=odd "$1"
sleep $pages
# TODO CANCELLARE SE FUNZIONA IL METODO ALTERNATIVO blank_page
# soluzione manuale del problema pagine dispari
#if [ $(( $pages % 2 )) -ne 0 ] ; then
# avviso="!! Togli l'ultima pagina - questo documento ha un numero dispari di pagine"
#fi
# nelle istruzioni di ricarica della carta era inclusa la riga contenente "$avviso"
# Se il pdf ha un numero dispari di pagine,
# inizia la stampa (in ordine inverso) delle pagine pari dalla penultima dispari
# lo fa stampando prima un foglio bianco sull'ultima dispari
if [ $(( $pages % 2 )) -ne 0 ] ; then
blank_page=$(mktemp)
echo " " > $blank_page
lpr -P "$stampante" $blank_page
rm $blank_page
fi
cat<<EOF
===============================================================================
Ricarica la carta esattamente nell'ordine in cui è uscita (a faccia sotto)
poi premi INVIO
===============================================================================
EOF
read
cat<<EOF
-------------------------------------------
Stampa delle pagine pari
Per favore aspetta la fine della stampa...
-------------------------------------------
EOF
lpr -P "$stampante" -o page-set=even -o outputorder=reverse "$1"
Codice: Seleziona tutto
chmod +x "/percorso/del/file/stampa_fronte-retro"
Codice: Seleziona tutto
stampa_fronte-retro "/percorso/di/un/documento.pdf"
- giulux
- Amministratore
- Messaggi: 25422
- Iscrizione: domenica 10 gennaio 2010, 12:17
- Desktop: ubuntu 18.04
- Distribuzione: Ubuntu 18.04.3 LTS x86_64
- Sesso: Maschile
- Località: Roma
Re: Stampa fronte-retro
Ho creato questa nuova discussione separando i post relativi al tuo problema da quella originaria, risalente al 2013.
"Non è una segno di buona salute l'essere ben adattato ad una società malata". (Jiddu Krishnarmurti)
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
Ci dici marca e modello della stampante?
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
Certo HP P1005.
HP Linux Imaging and Printing System (ver. 3.17.10)
Printer/Fax Setup Utility ver. 9.0
HP Linux Imaging and Printing System (ver. 3.17.10)
Printer/Fax Setup Utility ver. 9.0
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
Se la distribuzione che usi è quella in firma ci vogliono i drive 3.18.4. Li puoi trovare qui -> https://sourceforge.net/projects/hplip/files/hplip/. Ricordati anche di installare i plugin.(ver. 3.17.10)
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
Fantastico grazie
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
Di nulla.
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
Codice: Seleziona tutto
HP Linux Imaging and Printing System (ver. 3.18.4)
System Tray Status Service ver. 2.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Gtk-Message: 19:28:24.894: Failed to load module "canberra-gtk-module"
No systemtrayicon available
gianni@tessparks:~/download$ error: No system tray detected on this system. Unable to start, exiting.
Ultima modifica di trekfan1 il venerdì 13 agosto 2021, 20:50, modificato 1 volta in totale.
Motivazione: Inseriti i tag CODE (tasto </>) ricordalo in futuro
Motivazione: Inseriti i tag CODE (tasto </>) ricordalo in futuro
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
controlla se è installato il pacchetto -> libcanbera-gtk-module.
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
sembra di no.
Codice: Seleziona tutto
libchromaprint1/bionic,now 1.4.3-1 amd64 [installato, automatico]
libgutenprint2/bionic,now 5.2.13-2 amd64 [installato, automatico]
libqt5printsupport5/bionic-updates,bionic-security,now 5.9.5+dfsg-0ubuntu2.5 amd64 [installato, automatico]
openprinting-ppds/bionic,bionic,now 20180306-1 all [installato, automatico]
printer-driver-brlaser/bionic,now 4-1 amd64 [installato, automatico]
printer-driver-c2esp/bionic,now 27-4 amd64 [installato, automatico]
printer-driver-foo2zjs/bionic,now 20170320dfsg0-4 amd64 [installato, automatico]
printer-driver-foo2zjs-common/bionic,bionic,now 20170320dfsg0-4 all [installato, automatico]
printer-driver-gutenprint/bionic,now 5.2.13-2 amd64 [installato, automatico]
printer-driver-hpcups/bionic,now 3.17.10+repack0-5 amd64 [installato, automatico]
printer-driver-m2300w/bionic,now 0.51-13 amd64 [installato, automatico]
printer-driver-min12xxw/bionic,now 0.0.9-10 amd64 [installato, automatico]
printer-driver-pnm2ppa/bionic,now 1.13+nondbs-0ubuntu6 amd64 [installato, automatico]
printer-driver-postscript-hp/bionic,bionic,now 3.17.10+repack0-5 all [installato, automatico]
printer-driver-ptouch/bionic,now 1.4.2-3 amd64 [installato, automatico]
printer-driver-pxljr/bionic,now 1.4+repack0-5 amd64 [installato, automatico]
printer-driver-sag-gdi/bionic,bionic,now 0.1-5 all [installato, automatico]
printer-driver-splix/bionic,now 2.0.0+svn315-6fakesync1 amd64 [installato, automatico]
system-config-printer/bionic,bionic,now 1.5.11-1ubuntu2 all [installato, automatico]
system-config-printer-common/bionic,bionic,now 1.5.11-1ubuntu2 all [installato, automatico]
system-config-printer-udev/bionic,now 1.5.11-1ubuntu2 amd64 [installato, automatico]
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
uhmm....
Codice: Seleziona tutto
sudo apt-get install -y libcanberra-gtk-module
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
libcanberra-gtk-module è già alla versione più recente (0.30-5ubuntu1).
0 aggiornati, 0 installati, 0 da rimuovere e 20 non aggiornati.
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
Codice: Seleziona tutto
e 20 non aggiornati.
Codice: Seleziona tutto
hp-doctor
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
Codice: Seleziona tutto
hp-doctor
HP Linux Imaging and Printing System (ver. 3.18.4)
Self Diagnse Utility and Healing Utility ver. 1.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
HP Linux Imaging and Printing System (ver. 3.18.4)
Self Diagnse Utility and Healing Utility ver. 1.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Checking for Deprecated items....
No Deprecated items are found
Checking for HPLIP updates....
HP Linux Imaging and Printing System (ver. 3.18.4)
HPLIP upgrade latest version ver. 1.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
error: Either Internet is not working or Wget is not installed.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?
Checking for Dependencies....
---------------
| SYSTEM INFO |
---------------
Kernel: 5.4.0-80-generic #90~18.04.1-Ubuntu SMP Tue Jul 13 19:40:02 UTC 2021 GNU/Linux
Host: tessparks
Proc: 5.4.0-80-generic #90~18.04.1-Ubuntu SMP Tue Jul 13 19:40:02 UTC 2021 GNU/Linux
Distribution: 12 18.04
Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.18.4
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 18.04 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.18.4
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.4
html=/usr/share/doc/hplip-3.18.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.18.4
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no
Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.18.4
Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1628443218
pending_upgrade_time = 0
latest_available_version = 3.17.10
[last_used]
device_uri = hp:/usb/HP_LaserJet_P1005?serial=BC1JMQJ
[installation]
date_time = 08/09/21 21:48:24
version = 3.18.4
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
-------------------------
| External Dependencies |
-------------------------
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
network network -wget OPTIONAL - 1.19.4 OK -
avahi-utils avahi-utils OPTIONAL - 0.7 OK -
------------------------
| General Dependencies |
------------------------
libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.9 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.12.1 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
python3-xml Python XML libraries REQUIRED - 2.2.5 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.6.9 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
--------------
| COMPILEDEP |
--------------
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
---------------------
| Python Extentions |
---------------------
cupsext CUPS-Extension REQUIRED - 3.18.4 OK -
hpmudext IO-Extension REQUIRED - 3.18.4 OK -
----------------------
| Scan Configuration |
----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.18.4 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.18.4 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
Device URI Model
-------------------------------- -----------------
hp:/usb/HP_LaserJet_P1005?serial HP LaserJet P1005
=BC1JMQJ
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-LaserJet-P1005
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1005?serial=BC1JMQJ
PPD: /etc/cups/ppd/HP-LaserJet-P1005.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-P1005.ppd ppd file
PPD Description:
Printer status: la stampante HP-LaserJet-P1005 è inattiva. è stata abilitata da dom 08 ago 2021 19:25:31 CEST
Required plug-in status: Installed
Communication status: Good
--------------
| PERMISSION |
--------------
USB HP-LaserJet-P1005 Required - - OK Node:'/dev/bus/usb/002/003' Perm:' root lp rw- rw- rw- rw- r--'
[b]Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/HP-LaserJet-P1005.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/HP-LaserJet-P1005.ppd
warning: Could not complete Queue(s) configuration check
[/b]
Checking for HP Properitery Plugin's....
Plugin's already installed
Diagnose completed...
More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
Ultima modifica di trekfan1 il venerdì 13 agosto 2021, 20:51, modificato 1 volta in totale.
Motivazione: Inseriti i tag CODE (tasto </>) ricordalo in futuro
Motivazione: Inseriti i tag CODE (tasto </>) ricordalo in futuro
-
- Rampante Reduce
- Messaggi: 6613
- Iscrizione: mercoledì 20 maggio 2009, 22:48
- Distribuzione: 18.4 mate - 22.4 mate
- Sesso: Maschile
- Località: Versilia
Re: Stampa fronte-retro
Per ora dice che ci sono solo due piccoli problemi, vediamo di risolverli e poi si prosegue:
Per il primo basta installare il programma Wget, che scarica programmi da internet:
per il secondo devi andare nella directory, come amministratore, -> etc/cups//ppd ed abilitare il file -> HP-LaserJet-P1005.ppd al tuo utente. Dopo ti conviene eliminare la stampante da cups e reinstallarla. Fai attenzione che quando posti i listati di inserirli tramite tasto </> in alto a sinistra.
Codice: Seleziona tutto
error: Either Internet is not working or Wget is not installed.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?
------------------------------------------------------------------------------------------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1005?serial=BC1JMQJ
PPD: /etc/cups/ppd/HP-LaserJet-P1005.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-P1005.ppd ppd file
PPD Description:
Printer status: la stampante HP-LaserJet-P1005 è inattiva. è stata abilitata da dom 08 ago 2021 19:25:31 CEST
Required plug-in status: Installed
Communication status: Good
Codice: Seleziona tutto
sudo apt install wgwt
-
- Prode Principiante
- Messaggi: 13
- Iscrizione: martedì 27 luglio 2021, 13:07
- Desktop: 18.04
Re: Stampa fronte-retro
Strano, Wget in realtà era istallato...
No system tray detected on this system.
Unable to start, exiting.
No system tray detected on this system.
Unable to start, exiting.
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 17 ospiti