Ftp server installare e configurare vsftpd in Debian Bullseye 11.xx

vsftp ( Veri Secure FTP ) è un server ftp efficace e veloce con poche richieste in termini di risorse e sufficientemente sicuro e vsftpd. L’installazione  e la configurazione del server ftp da terminale è in genere agevole. Di seguito i comandi di base per installare e configurare vsftpd in Debian Stretch 8.xx .

Installare vsftpd con

sudo apt install vsftpd

Debian 11 utilizza ovviamente systemd come gestore dei servizi quindi si può controllare lo status del servizio con

sudo systemctl status vsftpd

se si ottiene

● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

riavviare il servizio con

sudo systemctl restart vsftpd

nuovo controllo

 

sudo systemctl status vsftpd
vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-10-17 17:55:14 CEST; 2s ago
Process: 27999 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
Main PID: 28000 (vsftpd)
Tasks: 1 (limit: 4915)
Memory: 828.0K
CGroup: /system.slice/vsftpd.service
└─28000 /usr/sbin/vsftpd /etc/vsftpd.conf

E’ possibile controllare che è avviato e in ascolto sulla classica porta 21 con:

netstat -npl | grep ":21"
tcp6      0    0 :::21         :::*         LISTEN        -
non sembra avviato configuriamo poniamo listen a YES 


netstat -npl | grep ":21"
tcp6      0    0 :::21         :::*         LISTEN           14541/vsftpd 




Con l’installazione di vsftp viene creato un nuovo user ftp e il gruppo ftp.

Configurare il server FTP

Il file di configurazione si trova in

/etc/vsftpd.conf

prima di modificare il file si può generare una copia di backup con

sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak

Editiamo con vi o un editor di proprio gradimento

sudo vi /etc/vsftpd.conf

Mettiamo in ascolto e disabilitiamo IPV6

listen=YES   
...
#listen_ipv6=NO

Accesso anonimo

L’accesso anomino al server ftp in Debian 9.xx è disabilitato (in altre versioni è consentito di default). Per consentire l’accesso anonimo editare vsftpd.conf

e cambiare anonymus_enabled=NO in  :

anonymous_enabled=YES

La directory di default è:

/svr/ftp

L’upload da parte dello user anonimo non è consentito. Per abilitare la scrittura sul server  togliere il commento a

write_enables=YES

e

anon_upload_enable=YES

per creare directories

anon_mkdir_write_enable=YES

Quindi riavviare il servizio vsftpd.

Debian 11.xx usa systemd come controllore dei sistemi e dei servizi.
Il comando per il riavvio si vsftpd sarà pertanto:

sudo systemctl restart vsftpd
systemctl status vsftpd
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-08-09 13:12:51 CEST; 23s ago
  Process: 774 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 777 (vsftpd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/vsftpd.service
           └─777 /usr/sbin/vsftpd /etc/vsftpd.conf

Nella directory /svr/ftp non è consigliato e non è consentito l’upload.
Normalmente l’utente owner della cartella /svr/ftp è root group ftp i permessi sono

 wrx w-x w-x

Quindi per consentire l’upload anonymous si può creare un directory ad esempio e il proprietario come ftp:ftp.

mkdir /srv/ftp/public
chown -R ftp:ftp /srv/ftp/public

ovviamente è possibile creare altre dir a piacere

Quando viene caricato un file di norma i permessi sono 077

-rw------

Per cambiare i permessi dei file caricari dallo user anonymous in

-rw-r--r--

Aggiungere nel file di configurazione /etc/vsftp.conf la riga

anon_umask=022

Accesso autenticato

Per consentire l’accesso agli utenti del server con user e password è necessario abiltare, elimindo il commento

local_enable=YES

Per consentire che i permessi in caso di upload e creazione directories siano opportunamente assegnati come già evidenziato togliere il commento

local_umask=022

Per limitare l’accesso di ciascun user alla propria directory  togliere il commento a

chroot_local_user=YES

A questo punto la configurazione di base può dirsi completata riavviare il servizio con

systemctl restart vsftpd

Utilizzo come server FTP per stampante Brother

Configurazione brothers MFC-J6520DW per invio scansioni su server FTP ( installare la stampante multifunzione Brother MFC-J6520DW in Debian 9.x Stretch installer tools )

MFC-J6520DW – scansione
MFC-J6520DW – Scansione su FTP – esempio profilo 1

in questo caso la directory di memorizzazione è /scan pertanto in /srv/ftp va creata la dir apposita come visto in precedenza per la dir public

mkdir /srv/ftp/scan
chown -R ftp:ftp /srv/ftp/scan

il proprietario dei file caricati dalla stampante sarà ftp:ftp
se desideriamo che i files abbiamo permessi 022

-rw-r--r--

oltre alle impostazioni viste in precedenza

anon_umask=022
local_umask=022

aggiungere

chown_upload_mode=0644

valutare anche eventualmente: chown_username=ftp

Risorse:

Installare la stampante multifunzione Brother MFC-J6520DW in Debian 10.x Buster – installer tools

Debian

Di seguito i passi per installare e per configurare da linea di comando i drivers della multifunzione full A3  Brother MFC-J6520DW  full A3 in debian 9.xx Stretch. In questo blog più volte si è parlato dell’installazione in configurazione di rete delle stampanti multifunzione Brother MFC-J6520DW e  MFC5890CN in Ubuntu e Debian.  Queste multifunzione Brother sono stampanti dall’indubbia solidità. Da tempo ho abbandonato le varie HP ed Epson che hanno una vita decisamente breve. La MFC5890CN, ad esempio, dopo diverse decine di migliaia di pagine e oltre 10 anni di vita stampa ancora in maniera più che dignitosa. 
Da tempo la procedura per l’installazione sotto linux delle stampanti multifunzione Brother grazie al Driver install Tool risulta decisamente agevole. L’utilizzo della modalità a 32 bit richiede solo un minimo di attenzione aper le dipendenze. Di fatto l’installazione della Brother MFC-J652DW in debian 10 segue sostanzialmente i passi evidenziati nel post Installare la stampante multifunzione Brother MFC-J6520DW in Debian 9.x Stretch installer tools

In fondo al post anche l’amminstrazione della stampante utilizzando il servizio http di cups. La versione corrente del demone cups in debian 10 è la 2.2.10.

Il  Driver install Tool  è alla versione 2.2.1.1.

Se il server di stampa non è stato installato. Si può essere installare la versione base con

$ apt install cups

per la versione più completa installare il server di stampa con

$ apt install task-print-server

installare anche i seguenti pacchetti:

$ apt install lib32z1 lib32gcc1 lib32gcc1 lib32stdc++6

La pagina supporto Brother dedicata alla MFC-J6520CN 

mfc-j6520dw download page

Una volta scaricato il driver install tool:  linux-brprinter-installer-2.2.1-1

decomprimere e rendere eseguibile con

gunzip linux-brprinter-installer-2.2.1-1.gz
sudo chmod +x linux-brprinter-installer-2.2.1-1

Quindi avviare e seguire la procedura guidata che inizia con la richiesta del modello di stampante, prosegue con la configurazione della stampante e termina con la parte dedicata allo scanner.

Di seguito sono riportate le fasi principali della procedura

su
./linux-brprinter-installer-2.2.1-1
Input model name ->MFC-J6520DW

You are going to install following packages.
   mfcj6520dwlpr-3.0.0-1.i386.deb
   mfcj6520dwcupswrapper-3.0.0-1.i386.deb
   brscan4-0.4.7-1.amd64.deb
   brscan-skey-0.2.4-1.amd64.deb
OK? [y/N] ->y
=========================================
Brother License Agreement
...
...
Do you agree? [y/N] ->y
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
--2018-09-24 00:51:18-- http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.104, 2.228.46.105
Connecting to www.brother.com (www.brother.com)|2.228.46.104|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2957158 (2.8M) [text/plain]
Saving to: ‘mfcj6520dwlpr-3.0.0-1.i386.deb’

mfcj6520dwlpr-3.0.0-1.i386.deb 100%[==========================================================================================================================================>] 2.82M 263KB/s in 11s 

2018-09-24 00:51:29 (259 KB/s) - ‘mfcj6520dwlpr-3.0.0-1.i386.deb’ saved [2957158/2957158]
========================================
GPL License Agreement
...
Do you agree? [y/N] ->y
Saving to: ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’

mfcj6520dwcupswrapper-3. 100%[==================================>] 14.77K --.-KB/s in 0.01s

2019-05-03 20:47:16 (1.14 MB/s) - ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’ saved [15120/15120]

Ign:1 http://ftp.it.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
..
...
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 lib32z1
E: Package 'ia32-libs' has no installation candidate
dpkg -x mfcj6520dwlpr-3.0.0-1.i386.deb /
dpkg -x mfcj6520dwcupswrapper-3.0.0-1.i386.deb /
[ ok ] Restarting cups (via systemctl): cups.service.
Purging configuration files for mfcj6520dwcupswrapper:i386 (3.0.0-1) ...
dpkg-deb: building package 'mfcj6520dwlpr' in 'mfcj6520dwlpr-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwlpr-3.0.0-1a.i386.deb
dpkg-deb: building package 'mfcj6520dwcupswrapper' in 'mfcj6520dwcupswrapper-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwcupswrapper-3.0.0-1a.i386.deb
dpkg -i --force-all mfcj6520dwlpr-3.0.0-1a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
(Reading database ... 175759 files and directories currently installed.)
Preparing to unpack mfcj6520dwlpr-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwlpr:i386 (3.0.0-1) over (3.0.0-1) ...
...
...
Selecting previously unselected package mfcj6520dwcupswrapper.
(Reading database ... 191040 files and directories currently installed.)
Preparing to unpack mfcj6520dwcupswrapper-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwcupswrapper (3.0.0-1) ...
Setting up mfcj6520dwcupswrapper (3.0.0-1) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p MFCJ6520DW -E -v dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/ -P /usr/share/cups/model/Brother/brother_mfcj6520dw_printer_en.ppd

Will you specify the Device URI? [Y/n] ->Y 
0: cups-brf:/
1: beh
2: https
3: http
4: ipp
5: socket
6: ipps
7: serial:/dev/ttyS0?baud=115200
8: lpd
9: dnssd://Brother%20MFC-5890CN._pdl-datastream._tcp.local/
10: dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cb37abb
11: ipp://BRN30055CB37ABB.local:631/ipp/print
12 (I): Specify IP address.
13 (A): Auto. (dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cb37abb)


select the number of destination Device URI. -> 14 
enter IP address ->192.168.1.152

lpadmin -p MFCJ6520DW -v socket://192.168.1.152 -E

Test Print? [y/N] -> 

You are going to install following packages.
brscan4-0.4.3-3.amd64.deb
=========================
Brother License Agreement
...
Do you agree? [y/N] ->Y
... 
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.7-1.amd64.deb
--2019-05-05 12:14:26--  http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.7-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.20.82.192
Connecting to www.brother.com (www.brother.com)|2.20.82.192|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88038 (86K) [application/x-troff-man]
Saving to: ‘brscan4-0.4.7-1.amd64.deb’

brscan4-0.4.7-1.amd64.deb              100%[==========================================================================>]  85.97K  --.-KB/s    in 0.1s    

2019-05-05 12:14:26 (892 KB/s) - ‘brscan4-0.4.7-1.amd64.deb’ saved [88038/88038]

dpkg -i --force-all brscan4-0.4.3-3.amd64.deb
Selecting previously unselected package brscan4.
(Reading database ... 197672 files and directories currently installed.)
Preparing to unpack brscan4-0.4.7-1.amd64.deb ...
Unpacking brscan4 (0.4.7-1) ...
Setting up brscan4 (0.4.7-1) ...
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
 brscan-skey-0.2.4-1.amd64.deb

=========================================
Brother License Agreement
...
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
--2016-09-24 01:02:16-- http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.104
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50852 (50K) [text/plain]
Saving to: ‘brscan-skey-0.2.4-1.amd64.deb’

brscan-skey-0.2.4-1.amd64.deb          100%[==========================================================================>]  49.66K  --.-KB/s    in 0.06s   

2019-05-05 12:14:29 (826 KB/s) - ‘brscan-skey-0.2.4-1.amd64.deb’ saved [50852/50852]


dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb
Selecting previously unselected package brscan-skey.
(Reading database ... 197719 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.amd64.deb ...
Unpacking brscan-skey (0.2.4-1) ...
Setting up brscan-skey (0.2.4-1) ...
brsaneconfig4 -a name=MFC-J6520DW model=MFC-J6520DW ip=192.168.1.152
Hit Enter/Return key.

XSane 0.99

XSane – scanner

Impostazione manuale dello scanner

brsaneconfigX  -a  name=Brother  model=MFC-XXX  ip=XXX.XXX.XXX.XX 

Configurare Brother MFC-J6520DW using CUPS servizio http

La stampante può essere controllata anche utilizzando l’apposita interfaccia web ( http ) di cups che risponde alla porta 631:

http://localhost:631
cups 2.2.10 – Debian 10

La stampante Brother MFC-J6520DW in cups:

Brother MFC-J6520DW Debian 10 – Test page printing

10 (I): Specify IP address.   Connection: socket//192.168.1.152

11 (A): Auto. (dnssd://Brother%20MFC-J6520DW._pdl-datastream._tcp.local/) 

mfc-j6520dw cups

Risorse:

Ftp server installare e configurare svftpd in Debian stretch 9.xx

Un server ftp efficace e veloce con poche richieste in termini di risorse e sufficentemente sicuro e vsftpd ( Very Secure FTP ). L’installazione  e la configurazione del server ftp da terminale è in genere agevole. Di seguito i comandi di base per installare e configurare vsftpd in Debian Stretch 8.xx .

Installare vsftpd con

su
apt-get install vsftpd

Come conseguenza il server ftp viene avviato automaticamente. E’ possibile controllare che è avviato e in ascolto sulla classica porta 21 con:

netstat -npl | grep ":21"
tcp6      0    0 :::21         :::*         LISTEN           14541/vsftpd 

Viene creato un nuovo user ftp e il gruppo ftp.

Il file di configurazione è

/etc/vsftpd.conf

Accesso anonimo

L’accesso anomino al server ftp in Debian 9.xx è disabilitato (in altre versioni è consentito di default). Per consentire l’accesso anonimo editare vsftpd.conf

vi /etc/vsftpd.conf

e cambiare anonymus_enabled=NO in  :

anonymous_enabled=YES

La directory di default è:

/svr/ftp

L’upload da parte dello user anonimo non è consentito. Per abilitare la scrittura sul server  togliere il commento a

write_enables=YES

e

anon_upload_enable=YES

per creare directories

anon_mkdir_write_enable=YES

Quindi riavviare il servizio vsftpd.

Debian 9.xx usa systemd come controllore dei sistemi e dei servizi.
Il comando per il riavvio si vsftpd sarà pertanto:

service restart vsftpd
systemctl status vsftpd
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-08-09 13:12:51 CEST; 23s ago
  Process: 774 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 777 (vsftpd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/vsftpd.service
           └─777 /usr/sbin/vsftpd /etc/vsftpd.conf

Nella directory /svr/ftp non è consigliato e non è consentito l’upload.
Normalmente l’utente owner della cartella /svr/ftp è root group ftp i permessi sono

 wrx w-x w-x

Quindi per consentire l’upload anonymous si può creare un directory ad esempio e il proprietario come ftp:ftp.

mkdir /srv/ftp/pubblic
chown -R ftp:ftp /srv/ftp/pubblic

ovviamente è possibile creare altre dir a piacere

Quando viene caricato un file di norma i permessi sono

-rw------

Per cambiare i permessi dei file caricari dallo user anonymous in

-rw-r--r--

Aggiungere nel file di configurazione /etc/vsftp.conf la riga

anon_umask=022

per i file caricati da un local user utilizzare

local_umask=022

Accesso autenticato

Per consentire l’accesso agli utenti del server con user e password è necessario abiltare, elimindo il commento

local_enable=YES

Per consentire che i permessi in caso di upload e creazione directories siano opportunamente assegnati come già evidenziato togliere il commento

local_umask=022

Per limitare l’accesso di ciascun user alla propria directory  togliere il commento a

chroot_local_user=YES

A questo punto la configurazione di base può dirsi completata riavviare il servizio con

systemctl restart vsftpd

Configurazione brothers MFC-J6520DW per invio scansioni su server FTP ( installare la stampante multifunzione Brother MFC-J6520DW in Debian 9.x Stretch installer tools )

MFC-J6520DW – scansione
MFC-J6520DW – Scansione su FTP – esempio profilo 1

in questo caso la directory di meorizzazione è /scan pertanto in /srv/ftp va creata la dir apposita come visto in precedenza per la dir public

mkdir /srv/ftp/scan
chown -R ftp:ftp /srv/ftp/scan

il proprietario dei file caricati dalla stampante sarà ftp:ftp e i files a seguito con l’aggiunta della riga anon_umask=022 avranno permessi.

-rw-r--r--

Risorse:

Installare la stampante multifunzione Brother MFC-J6520DW in Debian 9.x Stretch installer tools

Aggiornato installer tools  2.2.1.1 ( 13/09/2018)

DebianDi seguito i passi per installare e per configurare da linea di comando i drivers della multifunzione full A3  Brother MFC-J6520DW  full A3 in debian 9.xx Stretch. In questo blog più volte si è parlato della configurazione e dell’installazione in confiruazione di rete della stampante multifuzione Brother MFC5890CN in Ubuntu e Debian. Ora la procedura per l’installazione delle stampanti multifunzione Brother grazie al Driver install Tool risulta decisamente agevole. L’installazione della Brother MFC-J652DW segue sostanzialmente i passi evidenziati nel post Installare la stampante multifunzione Brother MFC-J6520DW in Debian Jessie 8.x installer tools.

In fondo al post anche l’amminstrazione della stampante utilizzando il servizio http di cups.

Il  Driver install Tool  è alla versione 2.2.1.1.

Se il server di stampa non è stato installato. Si può essere installare la versione base con

apt install cups

per la versione piàù completa installare il server di stampa con

apt install task-print-server

installare anche i seguenti pacchetti:

apt install lib32z1 lib32ncurses5

La pagina supporto Brother dedicata alla MFC-J6520CN 

mfc-j6520dw download page

Una volta scaricato il driver install tool:  linux-brprinter-installer-2.2.1-1

decomprimere e rendere eseguibile con

gunzip linux-brprinter-installer-2.2.1-1.gz
sudo chmod +x linux-brprinter-installer-2.2.1-1

Quindi avviare e seguire la procedura guidata che inizia con la richiesta del modello di stampante, prosegue con la configurazione della stampante e termina con la parte dedicata allo scanner.

Di seguito sono riportate le fasi principali della procedura

su
./linux-brprinter-installer-2.2.1-1
Input model name ->MFC-J6520DW

You are going to install following packages.
   mfcj6520dwlpr-3.0.0-1.i386.deb
   mfcj6520dwcupswrapper-3.0.0-1.i386.deb
   brscan4-0.4.7-1.amd64.deb
   brscan-skey-0.2.4-1.amd64.deb
OK? [y/N] ->y
=========================================
Brother License Agreement
...
...
Do you agree? [y/N] ->y
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
--2018-09-24 00:51:18-- http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.104, 2.228.46.105
Connecting to www.brother.com (www.brother.com)|2.228.46.104|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2957158 (2.8M) [text/plain]
Saving to: ‘mfcj6520dwlpr-3.0.0-1.i386.deb’

mfcj6520dwlpr-3.0.0-1.i386.deb 100%[==========================================================================================================================================>] 2.82M 263KB/s in 11s 

2018-09-24 00:51:29 (259 KB/s) - ‘mfcj6520dwlpr-3.0.0-1.i386.deb’ saved [2957158/2957158]
========================================
GPL License Agreement
...
Do you agree? [y/N] ->y
Saving to: ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’

mfcj6520dwcupswrapper-3. 100%[==================================>] 14.77K --.-KB/s in 0.01s

2019-05-03 20:47:16 (1.14 MB/s) - ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’ saved [15120/15120]

Ign:1 http://ftp.it.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
..
...
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 lib32z1 lib32ncurses5
E: Package 'ia32-libs' has no installation candidate
dpkg -x mfcj6520dwlpr-3.0.0-1.i386.deb /
dpkg -x mfcj6520dwcupswrapper-3.0.0-1.i386.deb /
[ ok ] Restarting cups (via systemctl): cups.service.
Purging configuration files for mfcj6520dwcupswrapper:i386 (3.0.0-1) ...
dpkg-deb: building package 'mfcj6520dwlpr' in 'mfcj6520dwlpr-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwlpr-3.0.0-1a.i386.deb
dpkg-deb: building package 'mfcj6520dwcupswrapper' in 'mfcj6520dwcupswrapper-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwcupswrapper-3.0.0-1a.i386.deb
dpkg -i --force-all mfcj6520dwlpr-3.0.0-1a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
(Reading database ... 175759 files and directories currently installed.)
Preparing to unpack mfcj6520dwlpr-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwlpr:i386 (3.0.0-1) over (3.0.0-1) ...
...
...
Selecting previously unselected package mfcj6520dwcupswrapper.
(Reading database ... 191040 files and directories currently installed.)
Preparing to unpack mfcj6520dwcupswrapper-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwcupswrapper (3.0.0-1) ...
Setting up mfcj6520dwcupswrapper (3.0.0-1) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p MFCJ6520DW -E -v dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/ -P /usr/share/cups/model/Brother/brother_mfcj6520dw_printer_en.ppd

Will you specify the Device URI? [Y/n] ->Y 
0: beh
1: ipps
2: lpd
3: ipp
4: http
5: ipp14
6: socket
7: https
8: serial:/dev/ttyS0?baud=115200
9: dnssd://Brother%20MFC-5890CN._pdl-datastream._tcp.local/
10: dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cb37abb
11: dnssd://Brother%20MFC-5890CN._printer._tcp.local/
12: lpd://BRN30055CB37ABB/BINARY_P1
13: lpd://BRN001BA920882F/BINARY_P1
14 (I): Specify IP address.
15 (A): Auto. (dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055cb37abb)

select the number of destination Device URI. -> 14 
enter IP address ->192.168.1.152

lpadmin -p MFCJ6520DW -v socket://192.168.1.152 -E

Test Print? [y/N] -> 

You are going to install following packages.
brscan4-0.4.3-3.amd64.deb
=========================
Brother License Agreement
...
Do you agree? [y/N] ->Y
... 
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.7-1.amd64.deb
--2019-05-05 12:14:26--  http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.7-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.20.82.192
Connecting to www.brother.com (www.brother.com)|2.20.82.192|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88038 (86K) [application/x-troff-man]
Saving to: ‘brscan4-0.4.7-1.amd64.deb’

brscan4-0.4.7-1.amd64.deb              100%[==========================================================================>]  85.97K  --.-KB/s    in 0.1s    

2019-05-05 12:14:26 (892 KB/s) - ‘brscan4-0.4.7-1.amd64.deb’ saved [88038/88038]

dpkg -i --force-all brscan4-0.4.3-3.amd64.deb
Selecting previously unselected package brscan4.
(Reading database ... 197672 files and directories currently installed.)
Preparing to unpack brscan4-0.4.7-1.amd64.deb ...
Unpacking brscan4 (0.4.7-1) ...
Setting up brscan4 (0.4.7-1) ...
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
 brscan-skey-0.2.4-1.amd64.deb

=========================================
Brother License Agreement
...
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
--2016-09-24 01:02:16-- http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.104
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50852 (50K) [text/plain]
Saving to: ‘brscan-skey-0.2.4-1.amd64.deb’

brscan-skey-0.2.4-1.amd64.deb          100%[==========================================================================>]  49.66K  --.-KB/s    in 0.06s   

2019-05-05 12:14:29 (826 KB/s) - ‘brscan-skey-0.2.4-1.amd64.deb’ saved [50852/50852]


dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb
Selecting previously unselected package brscan-skey.
(Reading database ... 197719 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.amd64.deb ...
Unpacking brscan-skey (0.2.4-1) ...
Setting up brscan-skey (0.2.4-1) ...
brsaneconfig4 -a name=MFC-J6520DW model=MFC-J6520DW ip=192.168.1.152
Hit Enter/Return key.

 

Impostazione manuale dello scanner

brsaneconfigX  -a  name=Brother  model=MFC-XXX  ip=XXX.XXX.XXX.XX 

 

Configurare Brother MFC-J6520DW using CUPS servizio http

La stampante può essere controllata anche utilizzando l’apposita interfaccia http di cups che risponde alla porta 631:

http://localhost:631

La stampante Brother MFC-J6520DW in cups:

10 (I): Specify IP address.   Connection: socket//192.168.1.152
che come
11 (A): Auto. (dnssd://Brother%20MFC-J6520DW._pdl-datastream._tcp.local/) 

mfc-j6520dw cups

 

Risorse:

Installare la stampante multifunzione Brother MFC-J6520DW in Debian Jessie 8.x installer tools

DebianDi seguito i passi per installare e per configurare da linea di comando i drivers della multifunzione full A3  Brother MFC-J6520DW  full A3 in debian 8.x jessie.  In questo blog più volte si è parlato della configurazione e dell’installazione della stampante multifuzione  Brother  multifunzione MFC5890CN in Ubuntu e Debian. Ora la procedura per l’installazione delle stampanti multifunzione Brother grazie al Driver install Tool risulta decisamente agevole. L’installazione della Brother MFC-J652DW grazie segue sostanzialmente i passi evidenziati in questo post Installare la stampante multifunzione Brother MFC-5890CN in Debian Jessie 8.x nuovo installer tools.

In fondo al posto anche l’amminstrazione della stampante utilizzando il servizio http di cups.MFC-

Brother MFC-J6520DW Network printer in Debian 8.x

Di seguito la procedura di installazione e configurazione della stampante  MFC-J6520DW disponibile via rete in Debian 8.0 Jessie a 64 bit.

Il  Driver install Tool  è alla versione 2.0.0.1 ( marzo 2014 ).

La pagina supporto Brother dedicata alla MFC-J6520CN 

mfc-j6520dw download page

Una volta scaricato il driver install tool:  linux-brprinter-installer-2.0.0-1

decomprimere e rendere eseguibile con

gunzip linux-brprinter-installer-2.0.0-1.gz
sudo chmod +x linux-brprinter-installer-2.0.0-1

Quindi avviare e seguire la procedura guidata che inizia con la richiesta del modello di stampante prosegue con la configurazione della stampante e termina con la parte dedicata allo scanner.

Di seguito sono riportate le fasi principali della procedura

su
./linux-brprinter-installer-2.0.0-1
Input model name ->MFC-J6520DW
You are going to install following packages.
 mfcj6520dwlpr-3.0.0-1.i386.deb
 mfcj6520dwcupswrapper-3.0.0-1.i386.deb
 brscan4-0.4.3-3.amd64.deb
 brscan-skey-0.2.4-1.amd64.deb
OK? [y/N] ->y
=========================================
Brother License Agreement
...
...
Do you agree? [y/N] ->y
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
--2016-09-24 00:51:18-- http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwlpr-3.0.0-1.i386.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.104, 2.228.46.105
Connecting to www.brother.com (www.brother.com)|2.228.46.104|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2957158 (2.8M) [text/plain]
Saving to: ‘mfcj6520dwlpr-3.0.0-1.i386.deb’

mfcj6520dwlpr-3.0.0-1.i386.deb 100%[==========================================================================================================================================>] 2.82M 263KB/s in 11s 

2016-09-24 00:51:29 (259 KB/s) - ‘mfcj6520dwlpr-3.0.0-1.i386.deb’ saved [2957158/2957158]
========================================
GPL License Agreement
...
Do you agree? [y/N] ->y

wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/mfc5890cncupswrapper-1.1.2-2.i386.deb
--2015-06-11 18:51:13-- http://www.brother.com/pub/bsc/linux/packages/mfc5890cncupswrapper-1.1.2-2.i386.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.106
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14094 (14K) [text/plain]
Saving to: ‘mfc5890cncupswrapper-1.1.2-2.i386.deb’

mfc5890cncupswrappe 100%[====================>] 13.76K --.-KB/s in 0.02s 

2015-06-11 18:51:13 (800 KB/s) - ‘mfc5890cncupswrapper-1.1.2-2.i386.deb’ saved [14094/14094]


 

GPL License Agreement
...
Do you agree? [y/N] ->y
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwcupswrapper-3.0.0-1.i386.deb
--2016-09-24 00:53:31-- http://www.brother.com/pub/bsc/linux/packages/mfcj6520dwcupswrapper-3.0.0-1.i386.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.104
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15120 (15K) [text/plain]
Saving to: ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’

mfcj6520dwcupswrapper-3.0.0-1.i386.deb 100%[==========================================================================================================================================>] 14.77K --.-KB/s in 0.03s 

2016-09-24 00:53:31 (564 KB/s) - ‘mfcj6520dwcupswrapper-3.0.0-1.i386.deb’ saved [15120/15120]

Ign http://ftp.it.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] 
Get:2 http://deb.opera.com stable InRelease [2,592 B] 
Get:3 http://ftp.it.debian.org jessie-updates InRelease [142 kB] 
...
...
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 lib32z1 lib32ncurses5

E: Package 'ia32-libs' has no installation candidate
dpkg -x mfcj6520dwlpr-3.0.0-1.i386.deb /
dpkg -x mfcj6520dwcupswrapper-3.0.0-1.i386.deb /
dpkg-deb: building package `mfcj6520dwlpr' in `mfcj6520dwlpr-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwlpr-3.0.0-1a.i386.deb
dpkg-deb: building package `mfcj6520dwcupswrapper' in `mfcj6520dwcupswrapper-3.0.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir mfcj6520dwcupswrapper-3.0.0-1a.i386.deb
dpkg -i --force-all mfcj6520dwlpr-3.0.0-1a.i386.deb
Selecting previously unselected package mfcj6520dwlpr.
(Reading database ... 191014 files and directories currently installed.)
Preparing to unpack mfcj6520dwlpr-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwlpr (3.0.0-1) ...
Setting up mfcj6520dwlpr (3.0.0-1) ...
mkdir: cannot create directory ‘/var/spool/lpd/mfcj6520dw’: No such file or directory
chown: cannot access ‘/var/spool/lpd/mfcj6520dw’: No such file or directory
chgrp: cannot access ‘/var/spool/lpd/mfcj6520dw’: No such file or directory
chmod: cannot access ‘/var/spool/lpd/mfcj6520dw’: No such file or directory
dpkg -i --force-all mfcj6520dwcupswrapper-3.0.0-1a.i386.deb
Selecting previously unselected package mfcj6520dwcupswrapper.
(Reading database ... 191040 files and directories currently installed.)
Preparing to unpack mfcj6520dwcupswrapper-3.0.0-1a.i386.deb ...
Unpacking mfcj6520dwcupswrapper (3.0.0-1) ...
Setting up mfcj6520dwcupswrapper (3.0.0-1) ...
Restarting cups (via systemctl): cups.service.
lpadmin -p MFCJ6520DW -E -v dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/ -P /usr/share/cups/model/Brother/brother_mfcj6520dw_printer_en.ppd


Will you specify the Device URI? [Y/n] ->Y 
0: http
1: ipp14
2: https
3: ipps
4: ipp
5: hp
6: socket
7: lpd
8: hpfax
9: dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/
10: lpd://BRN30055CB37ABB/BINARY_P1
11 (I): Specify IP address.
12 (A): Auto. (dnssd://Brother%20MFC-J6520DW._ipp._tcp.local/

select the number of destination Device URI. -> 11 

enter IP address ->192.168.1.152

lpadmin -p MFCJ6520DW -v socket://192.168.77.252 -E
Test Print? [y/N] -> 

wait 5s.
lpr -P MFCJ6520DW /usr/share/cups/data/testprint

You are going to install following packages.
brscan4-0.4.3-3.amd64.deb
=========================
Brother License Agreement
...
Do you agree? [y/N] ->Y
... 
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.3-3.amd64.deb
--2016-09-24 01:00:33-- http://www.brother.com/pub/bsc/linux/packages/brscan4-0.4.3-3.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.104
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73704 (72K) [text/plain]
Saving to: ‘brscan4-0.4.3-3.amd64.deb’

brscan4-0.4.3-3.amd64.deb 100%[==========================================================================================================================================>] 71.98K --.-KB/s in 0.1s 

2016-09-24 01:00:33 (713 KB/s) - ‘brscan4-0.4.3-3.amd64.deb’ saved [73704/73704]

dpkg -i --force-all brscan4-0.4.3-3.amd64.deb
Selecting previously unselected package brscan4.
(Reading database ... 191044 files and directories currently installed.)
Preparing to unpack brscan4-0.4.3-3.amd64.deb ...
Unpacking brscan4 (0.4.3-3) ...
Setting up brscan4 (0.4.3-3) ...
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
 brscan-skey-0.2.4-1.amd64.deb

=========================================
Brother License Agreement
...
wget -T 10 -nd --no-cache http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
--2016-09-24 01:02:16-- http://www.brother.com/pub/bsc/linux/packages/brscan-skey-0.2.4-1.amd64.deb
Resolving www.brother.com (www.brother.com)... 2.228.46.105, 2.228.46.104
Connecting to www.brother.com (www.brother.com)|2.228.46.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50852 (50K) [text/plain]
Saving to: ‘brscan-skey-0.2.4-1.amd64.deb’

brscan-skey-0.2.4-1.amd64.deb 100%[==========================================================================================================================================>] 49.66K --.-KB/s in 0.07s 

2016-09-24 01:02:16 (716 KB/s) - ‘brscan-skey-0.2.4-1.amd64.deb’ saved [50852/50852]

dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb
(Reading database ... 191080 files and directories currently installed.)
Preparing to unpack brscan-skey-0.2.4-1.amd64.deb ...
Unpacking brscan-skey (0.2.4-1) over (0.2.4-1) ...
Setting up brscan-skey (0.2.4-1) ...
brsaneconfig4 -a name=MFC-J6520DW model=MFC-J6520DW ip=192.168.77.252
Hit Enter/Return key.

mfc-j6520DW scanner

 

Impostazione manuale dello scanner

brsaneconfigX  -a  name=Brother  model=MFC-XXX  ip=XXX.XXX.XXX.XX 

 

Configurare Brother MFC-J6520DW using CUPS servizio http

La stampante può essere controllata anche utilizzando l’apposita interfaccia http di cups che risponde alla porta 631:

http://localhost:631

Cups 1.7.5. Debian 8.0

La stampante Brother MFC-J6520DW in cups:

10 (I): Specify IP address.   Connection: socket//192.168.1.65
che come
11 (A): Auto. (dnssd://Brother%20MFC-5890CN._pdl-datastream._tcp.local/) 

mfc-j6520dw cups

mfc-j6520dw-cups2

 

 

Risorse: