Epson B-310N / B-500DN

If not already purchased, then DON´T buy this crappy Epson B-300 / B-308 / B-310 / B-500 / B-508 / B-510 printer. The printer are very short-lived. After about 1-2 years and ~10,000 pages unusable, paper jam, ink leaking, complete damage... The same problems occurred by FOUR! Business Inkjet printers. I have expected a little bit more from a "business printer" in the € 500 price range. Shame on you Epson!

Automatic installation script
wget -O - | bash -


function fix_libs() {
   [ -d ${DEBDIR}/ ] && rm -r ${DEBDIR}/
   mkdir ${DEBDIR}/
   dpkg-deb -x /tmp/release/pips-common_3.2.0-3_i386.deb ${DEBDIR}/
   dpkg-deb --control /tmp/release/pips-common_3.2.0-3_i386.deb ${DEBDIR}/DEBIAN
   sed -i 's|libxml2 (>= 2.7.4), ||g' ${DEBDIR}/DEBIAN/control
   sed -i 's|libgnutls26 (>= 2.7.14-0), ||g' ${DEBDIR}/DEBIAN/control
   dpkg -b ${DEBDIR}/ /tmp/release/pips-common_3.2.0-3_i386.deb

# enable universe repository
sudo apt-add-repository universe

# add support for 32 bit libs
sudo dpkg --add-architecture i386
sudo apt-get update

# install libs
sudo apt-get install -y libxml2:i386
sudo apt-get install -y libatk1.0-0:i386
sudo apt-get install -y libcairo2:i386
sudo apt-get install -y libcupsimage2:i386
sudo apt-get install -y libgtk2.0-0:i386
sudo apt-get install -y libpango1.0-0:i386
sudo apt-get install -y libstdc++6:i386
sudo apt-get install -y libgnutls30:i386

# download driver package
if [ ! -f /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz ]; then
   wget -O /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz

# extract
tar xzf /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz -C /tmp
bash /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.install --noexec --keep --nox11 --target /tmp/release

# fix pips-common package
# install driver
sudo dpkg -i --force-architecture /tmp/release/pips-common_3.2.0-3_i386.deb
sudo dpkg -i --force-architecture /tmp/release/pips-ubuntu10.04_3.2.0-3_i386.deb
sudo dpkg -i --force-architecture /tmp/release/pips-pxb500_3.2.0-3_i386.deb

# set owner
sudo chown root:root /usr/lib/cups/filter/pips-wrapper

# create network printer when IP specified
if [ -n "${1}" ]; then
    sudo lpadmin -p Epson_B-310N -v socket://${1}:2501 -E -P /usr/share/cups/model/ekpxb310.ppd

create printer
sudo lpadmin -p Epson_B-310DN -v socket:// -E -P /usr/share/cups/model/ekpxb310.ppd
sudo lpadmin -p EpsonColorOben -v lpd://YOUR_PRINTER_IP:515/PASSTHRU -E -P /usr/share/cups/model/ekb500dn.ppd -o DefaultInputSlot=Front
sudo lpadmin -p ZertifikateOben -v lpd:// -E -P /usr/share/cups/model/ekb500dn.ppd -o MediaType=EPHOTOGLOSSY -o PrintQuality=BestPhoto -o InputSlot=Rear -o PageSize=A5 -o PageRegion=A5 -o ImageableArea=A5 -o PaperDimension=A5 -o OutputPaper=A5

# create DIN A5 printer
wget -P /tmp
lpadmin -p Zertifikate -v socket://EpsonColor:9100 -E -P /tmp/Epson_B-500DN_A5.ppd

Commercial alternative TurboPrint
wget -P /tmp
sudo dpkg -i /tmp/turboprint_2.23-1_amd64.deb

HowTo convert image to AdobeRGB1998.icc

Links - PPD DIN A5 only - PPD