Brother MFC 7320

Install printer

#!/bin/bash

# enable multiverse repository
cat  /etc/apt/sources.list.d/extra-repository.list
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) universe
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) multiverse
EOF
apt-get update -qq

# install printer driver
apt-get install -y brother-cups-wrapper-laser

# remove multiverse repository
rm /etc/apt/sources.list.d/extra-repository.list
apt-get update -qq

# create printer
lpadmin -p Brother-MFC-7320 -E -v usb://Brother/MFC-7320 -P /usr/share/ppd/Brother/MFC7220.ppd -o PageSize=A4

# FIXME: set resolution to 1200
# -o Resolution=1200x600dp
>

Install scanner

#!/bin/bash

# patch udev rules
cat > /lib/udev/rules.d/40-libsane.rules
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
EOF

# restart udev
sudo service udev restart

# download driver
wget http://pub.brother.com/pub/com/bsc/linux/dlf/brscan3-0.2.11-4.i386.deb -P /tmp

# install driver
sudo dpkg -i /tmp/brscan3-0.2.11-4.i386.deb
>

Scanner
!!! First POWER OFF your Brother MFC-7320 !!!
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/scripts/install.brother-mfc-7320.scanner.sh";
echo "wget $URL -O - | sudo bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>
!!! Now you can POWER ON your Brother MFC-7320 again !!!
Go Applications > Graphics > Simple Scan

Fax
not tested yet, see: http://wiki.ubuntuusers.de/Brother/Fax

Links
http://wiki.ubuntuusers.de/Brother/Drucker
http://wiki.ubuntuusers.de/Brother/Scanner
http://wiki.ubuntuusers.de/Brother/Fax
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-7320
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html