Categories
Linux

Scanning in Linux

I was having a mare trying to get scanning working on my USB HP Deskjet 2050.
Even though some of these settings are listed as defaults, it produces rubbish.

So I thought that I would document a working command!

Obviously you need to install the scan utilites
matt@server:~$ sudo apt install sane

Then list the devices:

matt@server:~$ scanimage -L device `hpaio:/usb/Deskjet_2050_J510_series?serial=XXXXXXXXXX' is a Hewlett-Packard Deskjet_2050_J510_series all-in-one

And use the output from above to specify the device:

scanimage -d "hpaio:/usb/Deskjet_2050_J510_series?serial=XXXXXXXXXX" --mode Color --resolution 200 --brightness 1000 --contrast 1000 -o scan9.jpg

Categories
Linux Security

Fail2ban not picking up sshd attacks

It wasn’t working for me, no matter what I tried.
The command
fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf
was showing matches successfully.

In the end I ran these commands… I’m fairly sure it was just the RepeatedMsgReduction setting to off that fixed it though

dpkg-reconfigure tzdata
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

vim /etc/rsyslog.conf
#Change this line of "off" so we can see all messages
$RepeatedMsgReduction off

Then
service rsyslog restart