Vmware Perl SDK on Debian Jessie

The only thing I dislike more than RPM-based distros, is software thats only tested on RPM-based distros.
</fanboi>

Do the following to install VMWare Perl SDK:

# apt-get install libconvert-units-perl libmath-calc-units-perl libnagios-plugin-perl libxml-perl libclass-methodmaker-perl libnet-ssleay-perl libcrypt-ssleay-perl libarchive-zip-perl libdata-dump-perl libsoap-lite-perl libssl-dev –no-install-recommends

Enter “vmware-vsphere-cli-distrib” after extracting the tar-file from vmware, edit “vmware-install.pl” and search for:


if ( direct_command(“cat /etc/*-release | grep -i ubuntu”) || direct_command(“cat /proc/version | grep -i ubuntu”) ) {

Change it to:

if ( direct_command(“cat /etc/*-release | grep -i ubuntu”) || direct_command(“cat /proc/version | grep -i debian”) ) {

 

After running vmware-install.pl, watch as the installer will ruin your package-manager by downloading stuff via CPAN manually.

Thats just lovely. 🙂

Installing paperless on Debian Jessie

I wanted to test installation of https://github.com/danielquinn/paperless, but the instructions are “somewhat” unclear.
Here I am trying to document the process, so it might be usefull for someone later on.

First, having a requirements.txt is all great and dandy, but saying I need GNU Privacy Guard does not translate to which package, and a link to GPG’s homepage isnt very helpful.
Also, “apt-cache search gpg | wc -l” returns 72 packages.

Alright, enough said – lets do this. 🙂

Start slow, apt-get all the requirements (hope I got them all….) :

# apt-get install –no-install-recommends git libtiff-tools python3-pip python3-dev libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk unpaper imagemagick tesseract-ocr tesseract-ocr-YOURLANGUAGE

Please note the YOURLANGUAGE there, to find your language do this:

$ apt-cache search tesseract-ocr-| sort

# git clone https://github.com/danielquinn/paperless /usr/src/paperless/
# cd /usr/src/paperless/

Copy the example-config, then edit it.
# cp /usr/src/paperless/paperless.conf.example /etc/paperless.conf
You have to change some stuff in the config-file, so do:
# editor /etc/paperless.conf
And edit:
PAPERLESS_PASSPHRASE, just set and forget – this should never ever be changed.
PAPERLESS_CONSUMPTION_DIR, somewhere your service user have access, I just used a subfolder in $HOME.

Then do

# pip3 install –requirement /usr/src/paperless/requirements.txt

(and poff, there goes management via apt. The packages dont exist with the correct versions in Jessie repos anyway, so well… This wouldnt have been pretty anyway.)

 

After that, do the following:

# /usr/src/paperless/src/manage.py migrate

and

# /usr/src/paperless/src/manage.py createsuperuser

 

Finally you run the software by starting the webserver, and the consumer.
First the webserver:
# /usr/src/paperless/src/manage.py runserver 0.0.0.0:8000 &
(Obviously, remember to open tcp/8000)
And the consumer:
# /usr/src/paperless/src/manage.py document_consumer

Then put pdf-files into the consumer-dir and watch some kind of magic happen.

To be honest, I wasn’t that impressed so I ditched the software at this point.
Therefore I doubt this guide will be updated in the future.

Configure Brother DCP-7055W under Debian Jessie

On a fresh machine, do the following:

# apt-get install cups sane sane-utils —no-install-recommends
(Theres two –no, in case wordpress touches the formating)

Surf to

http://support.brother.com/g/b/downloadend.aspx?c=gb&lang=en&prod=dcp7055w_us_eu_as&os=128&dlid=dlf006893_000&flang=4&type3=625

(In case link dont work, go to Brothers support-site, search up your printer, select Linux as OS, and pick the “deb-edition”, then select “Driver Install Tool”)

Right click on “If your download does not start automatically, please click here.”, copy link.

 

Go to server:

$ wget http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.0.0-1.gz

(that link might be old when you are reading this)

Then, as root:

# mkdir brotherprint; mv linux*brprinter*.gz brotherprint; cd brotherprint

# gunzip linux-brprinter-installer-*.*.*-*.gz

# bash linux-brprinter-installer-*.*.*-*

Follow the on-screen installation, don’t panic if it can’t find ia32-libs, its going to work great.

When you are prompted for a device URI, choose yes, select 9 (thats input of IP)

When prompted, insert the IP. (DNS does not work…..)

 

When finished, test the scanner by issuing the following command:

# scanimage -T

You should hear your scanner working now. 🙂