This section describes how to install a printer driver in Ubuntu 7.04.

You must use the root authority when installing the printer driver.
With Ubuntu, use the sudo command to install the printer driver.

Preparation

Connecting the machine

Before installing the printer driver, connect the computer and the machine with a USB cable and turn on the machine.

If a window that prompts you to add a printer is automatically displayed when you connect the machine, cancel the window by closing it.

Preparing the printer driver

Before using the printer driver, you must install the "common package" and the "model-specific package."

cnijfilter-common_2.80-x_i386.deb --- common package

cnijfilter-mp520series_2.80-x_i386.deb --- model-specific package

First download the above files from the Canon Web site.
("2.80-x" in the above files is the version number.)

Install

1. Install printer driver.

Install the printer driver sequentially (first the "common package" and then the "model-specific package") by executing the dpkg command from the command line of the terminal software.

1) Installing the common package

[user@zzz /yyy]$ sudo dpkg -i cnijfilter-common_2.80-x_i386.deb

2) Installing the model-specific package

[user@zzz /yyy]$ sudo dpkg -i cnijfilter-mp520series_2.80-x_i386.deb

Be sure to install the printer driver in the sequence indicated above.

When asked for a password, enter the password of the user who is currently logged in.
In Ubuntu, the root password is not set as the default.

2. Restart the CUPS daemon.

Enter the following from the command line of the terminal software:

[user@zzz /yyy]$ sudo /etc/init.d/cupsys restart

Do not register the printer with the lpadmin command before you restart the CUPS daemon.

3. Register the printer to the spooler.

Register the printer to the spooler by using the lpadmin command from the command line of the terminal software. You can specify the desired name as the [printer_name].

sudo /usr/sbin/lpadmin -p [printer_name] -m [PPD_filename] -v [device_URI] -E

If you specify MP520 as the [printer_name]:

[user@zzz /yyy]$ sudo /usr/sbin/lpadmin -p MP520 -m canonmp520.ppd -v cnij_usb:/dev/usblp0 -E

4. Set the default printer.

Set the default printer to be used when the [printer_name] is omitted in the print command from the command line of the terminal software.
Specify this setting only as necessary.

sudo /usr/sbin/lpadmin -d [printer_name]

Example:

[user@zzz /yyy]$ sudo /usr/sbin/lpadmin -d MP520

5. Restart the computer.

If the Driver UI does not start even when the --gui option is specified in the cif command, specify the following setting:

Run the sudo gdmsetup command.

At the [Login Window Preferences] window, select the [Security] tab and uncheck the [Deny TCP connections to Xserver] check box.

Log out and then log back in again.

The Status Monitor may not be displayed properly if the LAN environment has been configured and the IP address has been specified.
If such is the case, make sure to perform the configuration specified at 4 in "Restriction of the Status Monitor" of "Main Restrictions."