Re: scanning from a network attached printer
by R. G. Newbury
> On 10/9/18 11:32 AM, Patrick O'Callaghan wrote:
>> On Tue, 2018-10-09 at 11:09 -0400, Robert Moskowitz wrote:
>>> So what is the equivalent way to do this from Fedora 28?
>> Have you installed hplip?
>
> It was installed, and I can print to the printer. I did some googling
> and found that I needed hplib-gui and xsane.
>
> Maybe only xsane is needed.
>
> I got some things working, but the adf function is only saving the 1st
> page of the stack. I can do multipage by scanning one page at a time
> into the multipage project which will then save all the pages into one
> pdf. This is too painful;; what is the adf for?
>
> So now have to get xsane to actually pay attention to the adf sending
> multiple pages. One thing might be that it is saying the paper length
> is 8.5x14 when I am scanning 8.5x11? But I can't find where to config this.
I have an all-in-one HP3055. I use hplip to set up the printer side,
scanimage to scan, and gscan2pdf to create pdfs from the tiff images.
scanimage is part of the sane-backends package.
hplip seesthe scanner at hpaio:/net/HP_LaserJet_3055?ip=192.168.99.112
I export that: export hpaio="hpaio:/net/HP_LaserJet_3055?ip=192.168.99.112"
I use scanimage from the command line with a script. The main command
line is:
Script 'scanner' sets the export variable and calls:
cd $1
scanimage --device-name=$hpaio --source auto --resolution 150 --format
tiff --mode Color --contrast 125 -x 220 -y 290 --batch=$2%d.tiff
--batch-start=$3 --batch-count=$4 --batch-increment=$5
$1 is the folder to dump the images in to;
$2 is the starting part of the file name: some-page-
$3 is the starting count number x: -> some-page-x
$4 is the number of pages to scan y: -> some-page-(x+y)
$5 is the batch increment: -2 lets you number the pages downwards:
especially useful when you have a stack of double-sided pages to scan.
The 'source auto' switch uses the adf: depends upon the 'page loaded'
sensor to realize that the page feeder is in use.
Paper length is set in mm by the x 220 y 290 parameters: legal length: y 355
The scanadf program is supposed to do this too, but I had no luck
getting it working on a networked printer back about Fedora 16 and have
not tried since. I found it much easier to set up a script to handle
scanning, and just call it with the 5 parameters set out above.
Once I have the scanned images, I use gscan2pdf to create the pdf files.
gscan2pdf has scanning capabilities but also has problems with a
networked scanner: it finds the scanner but cannot open it to scan.
The same scanner script using scanimage works nicely with USB scanners
such as a Brother 1000ADS, using 'export ads='brother4:bus1;dev2'
and --device-name=$ads in the scanner script.
I have literally scanned thousands of pages with this setup.
Geoff
5 years, 6 months
scanning from a network attached printer
by Robert Moskowitz
I have an HP8600 attached to my network. I can use its web interface to
scan one page, but not its APF to scan multiple pages. The pdf generated
cannot be opened by any software I have found.f
A friend told me that he uses a twain driver on his Windows system to
get to his network attached HP printer/scanner. Blast from the past; I
have not touched twain for 15 years at least...
So what is the equivalent way to do this from Fedora 28?
thanks
5 years, 6 months
PHP-FPM, PHP code in browser
by Benjamin Smith
I'm unable to get PHP too actually *run* instead of just downloading the
PHP sources. Coming from years of experience with Mod PHP wand I know that
PHP FPM is different. I've confirmed that both RPMs (native FC 27) are
installed, and that PHP-FPM and Apache are installed. I tried moving
/etc/https/conf.modules/PHP.conf. I've looked at /etc/https/php.conf and
read all comments. I've restarted phpfpm and Apache via system ctl. I've
restarted the system. How do I get Apache to connect to Phpfpm for PHP
scripts?
5 years, 6 months
Re: Hard drive to sleep
by Tony Nelson
On 18-10-08 05:32:14, Patrick Dupre wrote:
...
> Power mode is: ACTIVE or IDLE
...
== spinning. See `man hdparm` and "-C".
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson@georgeanelson.com>
' <http://www.georgeanelson.com/>
5 years, 6 months
copy /home on one laptop to another
by Ranjan Maitra
Hi,
I have a new laptop and have installed F28 on it. The old laptop is also running F28. I would like to copy /home from the old laptop to the second. What would be the best way to do this? Both are on the network, but I am hoping for a solution that does not go through the network.
Any suggestions?
Many thanks for any help and best wishes,
Ranjan
--
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
5 years, 6 months
OT: fastest way to copy one drive to another
by Ranjan Maitra
Hi,
I have two drives mounted on a F28 system. Both are identical 4TB drives. The second one is empty. I am concerned about the first one failing so would like to copy the contents (which are around 3.7 TB) to the second.
What is the fastest way to copy the contents of the first drive to the second? I was using rsync, but is there a better way?
Many thanks in advance for any advice,
Ranjan
--
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
5 years, 6 months
hybrid-sleep with Gnome
by Samuel Sieb
My laptop sometimes doesn't turn back on after suspending, so I've
decided to try using hybrid-sleep instead. I modified logind.conf to
contain the following two lines and restarted logind:
HandleSuspendKey=hybrid-sleep
HandlePowerKey=hybrid-sleep
However, both keys still only cause a suspend. "systemctl hybrid-sleep"
does work properly. I was going to ask if Gnome was intercepting the
keys and doing its own thing with them, but then I remembered how to
check. Sure enough, from "systemd-inhibit":
Who: samuel (UID 1000/samuel, PID 1667/gsd-media-keys)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Does anyone know how to change Gnome's handling of the suspend key? It
used to be possible, but they removed all those options. As much as I
like Gnome, it does get a bit frustrating how much they are making it
"our way is the only way"... I have filed a bug upstream:
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/97
5 years, 6 months
Access to Android
by Patrick Dupre
Hello,
I am not sure that I should post this message here.
Is there an Android mailing list?
I cannot access to my Android phone via the USB bus.
Actually, I can see it:
ls
/var/run/user/1000/gvfs/mtp\:host\=%5Busb%3A001%2C007%5D
but
a touch provides me:
'/var/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C007%5D/test': Permission denied
How can I give the right to the internal folder
of my Android?
Thank.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
5 years, 6 months