How To Install A (Canon) Printer On Debian And Debian-Like Systems
|
Submitted by freebourg (Contact Author) (Forums) on Wed, 2011-05-18 17:05. :: Debian | Linux | Ubuntu | Desktop
How To Install A (Canon) Printer On Debian And Debian-Like SystemsThis tutorial will cover how to install the well-known CUPS printing system, and optionally tell you how to have your Canon printer work. There are extra details about where to find Canon drivers and how to install the "Print to PDF" feature.
Cups InstallationIf you didn't check any option at the Debian network installation, you will need to download and install a few packages. Run the following command as root: # apt-get install cups cups-client "foomatic-db*" This will install CUPS and download a database of printer drivers.
Allow Users To PrintAs the Debian distribution installs a secure Linux system on your computer, most of the permissions involved by installing packages are "opt-in". This means you have to explicitly grant permission to users so that they can print. This is done by adding them to the lpadmin group: # adduser YOUR_NORMAL_ACCOUNT lpadmin
Configure Your PrinterPower on and plug your printer, and then browse to http://localhost:631/ Go to the Administration tab and click Add printer. At that point you will be required to type your normal user and password (not root). CUPS will look for printers available on the network or attached to your computer. Choose your printer in the Local printers section. Fill the form if you want to, then see if your printer driver is
in the list. If you don't find your printer in the list, either the driver just doesn't exist for non-Windows OS / Mac OS, or it is proprietary (non-free). If you bought a Brother or HP printer, you're lucky because all of their current printers are provided with an opensource driver. Install the hplip package for Hewlett Packard printers. You can't find Canon drivers on non-free repositories. You have to go to the Canon website and download them.
Download A Canon Printer DriverGo to www.canon.com, select your country and language, then go to
the Support page, find your printer (in category "Printer"
or "Multifunction"). Download that UFR II driver file.
Install Canon UFR II DriverYou'll end up with a zip file / archive. Open your Terminal again, change to your Downloads directory, and unzip that file: $ unzip *ufr2*.zip The unzipped directory is the language you choose, e.g. "english" or "italiano". cd to that directory, then open the "driver" directory corresponding to your architecture (32 or 64 bits), and finally open the RPM folder. As you may know, RPM is the "Red Hat Package Manager", but Debian uses APT. RPM files have the ".rpm" extension and Debian packages get a ".deb" extension. So, we will have to convert them. For that purpose, install a program called alien. And I'd advice to install fakeroot as well. (Fakeroot allows you to work on Debian packaging without root privileges, which are not needed until the installation part.) # apt-get install alien fakeroot Then convert the packages: $ fakeroot alien --to-deb *.rpm Finally you can now install them as usual: # dpkg -i *.deb
Configure Your PrinterReload the "Add printer" page on the CUPS web interface, and this time you should be able to find your printer model in the list. (You can also press "Choose another ...." and go back to "Canon" again.) You should not need to restart cups, but if you want to, just to be sure, do the following as root: # service cups restart Voilà ! You've successfully installed your printer!
Print To PDFHere is a trick that could be helpful. If you're using an application that doesn't provide an "Export to PDF" function, you can simply print as normally and select a special "PDF printer." In order to do that, you have to install the "cups-pdf" package: # apt-get install cups-pdf Your "PDF printed" documents will be put in a folder called "PDF" in your home directory, i.e. ~/PDF/ You may have to create this directory yourself if you have issues with the cups PDF printer.
Use The CUPS Web FrontendThe CUPS web user interface is the place to go whether you need to manage your printers and printing jobs, and find the reasons of printing issues. You can pause or cancel a job and even re-print a document. Note you have to modify your /etc/cups/cupsd.conf configuration file if you want the interface to be accessible from other computers in your network.
|



Recent comments
11 hours 29 min ago
16 hours 34 min ago
20 hours 58 min ago
22 hours 47 min ago
1 day 12 hours ago
1 day 13 hours ago
1 day 18 hours ago
2 days 43 min ago
2 days 1 hour ago
2 days 2 hours ago