Install the printer driver from the command line of the terminal software.

Installing the printer driver by using the Installer

The Installer automatically determines the package required for your system environment and installs the printer driver.
At the same time, the Installer can also detect the printer, register the printer to the spooler, and set the default printer.

Installing the printer driver by specifying the package

If installation by the Installer fails because of an unknown error, you can specify the package required for your system environment and install the printer driver.
You must use the lpadmin command to register the printer to the spooler.

Installing the printer driver by using the Installer

If you want to install the printer driver in Fedora, log in as root.
In Ubuntu, use the sudo command to install the printer driver.

When asked for a password in Ubuntu, enter the password of the user who is currently logged in.

1. Install the printer driver

Install the printer driver by entering the following command from the command line of a terminal software.

For Fedora

(1) Expanding the archived file and switching to the expanded directory

[root@zzz /yyy]# tar zxvf cnijfilter2-5.40-x-rpm.tar.gz
[root@zzz /yyy]# cd cnijfilter2-5.40-x-rpm

(2) Installing the printer driver

[root@zzz /yyy]# ./install.sh

For Ubuntu

(1) Expanding the archived file and switching to the expanded directory

[user@zzz /yyy]$ tar zxvf cnijfilter2-5.40-x-deb.tar.gz
[user@zzz /yyy]$ cd cnijfilter2-5.40-x-deb

(2) Installing the printer driver

[user@zzz /yyy]$ sudo ./install.sh

 

When the installation is completed, a message instructing you to register the printer is displayed.

Next, register the printer to the computer.
Connect the printer, and then turn on the power.
To use the printer on the network, connect the printer to the network.
When the printer is ready, press the Enter key.

>

Check that the machine is properly connected and that the power is on. Then press the Enter key.

2. Select the connection method

Select the connection method for this machine.
Select the connection method to be used, and then press Enter.

1) USB
2) Network
Select the connection method.[1]

For a USB connection, enter "1" and press the Enter key.
For a network connection, enter "2" and press the Enter key.

The default selection value is displayed in [ ].

3. Select the printer

From the list of detected printers, select the printer to be registered.

Example when the model is not network enabled or when USB is selected in "2. Select the connection method"

Select the printer.
If the printer you want to use is not listed, select Update [0] to search again.
To cancel the process, enter [Q].

----------------------------------------------------------
0) Update
----------------------------------------------------------
Target printers detected
1) Canon MB5300 series (//Canon/?port=usb&serial=200123)
----------------------------------------------------------
Currently selected:[1] Canon MB5300 series (//Canon/?port=usb&serial=200123)
Enter the value.[1]

When connection of non-target printer model is confirmed, "Other printers detected" is displayed.

Enter the number of the printer to be registered, and then press Enter.

To update the list of detected printers, enter "0" and press the Enter key.
To end the installation without registering the printer, enter "Q" and press the Enter key.

Example when Network is selected in "2. Select the connection method"

Select the printer.
If the printer you want to use is not listed, select Update [0] to search again.
To cancel the process, enter [Q].

----------------------------------------------------------
0) Update
----------------------------------------------------------
Target printers detected (MAC address  IP address)
1) Canon MB5300 series (XX-XX-XX-XX-XX-XX YYY.YYY.YYY.YYY)
2) Canon MB5300 series (XX-XX-XX-XX-XX-XX YYY.YYY.YYY.YYY)
----------------------------------------------------------
Currently selected:[1] Canon MB5300 series (XX-XX-XX-XX-XX-XX YYY.YYY.YYY.YYY)
Enter the value.[1]

In an actual message, "XX-XX-XX-XX-XX-XX" shown in the above example displays the MAC address and "YYY.YYY.YYY.YYY" displays the IP address.

If the network contains more than one printer of the target model, the message lists multiple "Target printers detected."
In this case, check the MAC address and IP address from the Operation Panel, and select the number of the printer matching the displayed network address.

When connection of non-target printer model is confirmed, "Other printers detected" is displayed.

Enter the number of the printer to be registered, and then press Enter.

To update the list of detected printers, enter "0" and press the Enter key.
To end the installation without registering the printer, enter "Q" and press the Enter key.

For information about checking the MAC address and IP address of the machine, refer to the "Online Manual."

If the printer registration procedure was terminated before completion or if you canceled processing by entering "Q," use the lpadmin command to register the printer. For instructions, refer to "Installing the printer driver by specifying the package," and start from "3. Restarting the CUPS daemon."

If the model is network enabled, you must re-register the printer if you switch the wired/wireless status of the machine, because the wired LAN and the wireless LAN have different MAC addresses.

4. Enter the registered printer name

Enter the registered printer name.
You can specify the desired name as the registered printer name.

For the printer registration name, the only allowed characters are letters (a-z, A-Z), numbers (0-9), and certain special characters (. - _ + @).

Enter the printer name.[MB5300USB]

Enter the registered printer name, and press the Enter key.

If the entered printer registration name is already registered, a message confirming whether you want to overwrite the existing information is displayed.

The printer name you entered already exists. Do you want to overwrite it?
Enter [y] for Yes or [n] for No. [y]

5. Set the default printer

Set the default printer to be used when the printer name is omitted in the print command.

Do you want to set this printer as the default printer?
Enter [y] for Yes or [n] for No. [y]

6. Installation complete

When the installation is completed, the name registered for the installed printer is displayed.
During printing, be sure to specify the printer name displayed here.

Example when "MB5300USB" is registered as the printer name:

Installation has been completed.
Printer Name : MB5300USB
Select this printer name for printing.

TOP

Installing the printer driver by specifying the package

If you want to install the printer driver in Fedora, log in as root.
In Ubuntu, use the sudo command to install the printer driver.

When asked for a password in Ubuntu, enter the password of the user who is currently logged in.

1. Expanding the archived file and switching to the expanded packages directory

Expand the file and switch the directory by entering the following command line of a terminal software.

For Fedora

[root@zzz /yyy]# tar zxvf cnijfilter2-5.40-x-rpm.tar.gz
[root@zzz /yyy]# cd cnijfilter2-5.40-x-rpm/packages

For Ubuntu

[user@zzz /yyy]$ tar zxvf cnijfilter2-5.40-x-deb.tar.gz
[user@zzz /yyy]$ cd cnijfilter2-5.40-x-deb/packages

2. Installing the package

Install the package required for your system environment by entering the following command line of a terminal software.

For Fedora (32 bit)

[root@zzz /yyy]# rpm -ivh cnijfilter2-5.40-x.i386.rpm

For Fedora (64 bit)

[root@zzz /yyy]# rpm -ivh cnijfilter2-5.40-x.x86_64.rpm

For Ubuntu (32 bit)

[user@zzz /yyy]$ sudo dpkg -iG cnijfilter2_5.40-x_i386.deb

For Ubuntu (64 bit)

[user@zzz /yyy]$ sudo dpkg -iG cnijfilter2_5.40-x_amd64.deb

3. Restart the CUPS daemon

Enter the following from the command line of a terminal software.

For Fedora

[root@zzz /yyy]# /bin/systemctl restart cups.service

For Ubuntu

[user@zzz /yyy]$ sudo service cups restart

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

4. Register the printer to the spooler

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

/usr/sbin/lpadmin -p [printer_name] -P /usr/share/cups/model/[PPD_filename] -v [device-uri] -E

For the printer registration name, the only allowed characters are letters (a-z, A-Z), numbers (0-9), and certain special characters (. - _ + @).

Obtain the [device-uri] by following the procedure below.

1. Log in as root, and execute the following command:

For Fedora

[root@zzz /yyy]# /usr/lib/cups/backend/cnijbe2

For Ubuntu

[user@zzz /yyy]$ sudo /usr/lib/cups/backend/cnijbe2

2. A list of network printers and USB printers that are connected to the host is displayed.
The blue portion is the [device-uri].

-For a USB connection

direct cnijbe2://Canon/?port=usb&serial=200123 "Canon MB5300 series" "USB Printer #1 with staus readback for Canon IJ"

-For a network connection

network cnijbe2://Canon/?port=net&serial=00-00-85-AB-C1-23 "Canon MB5300 series" "Canon-MB5300-series_00-00-85-AB-C1-23"

For a USB connection

Example in which the [device-uri] is "cnijbe2://Canon/?port=usb&serial=200123" and the [printer_name] is registered as "MB5300USB":

For Fedora

[root@zzz /yyy]# /usr/sbin/lpadmin -p MB5300USB -P /usr/share/cups/model/canonmb5300.ppd -v "cnijbe2://Canon/?port=usb&serial=200123" -E

For Ubuntu

[user@zzz /yyy]$ sudo /usr/sbin/lpadmin -p MB5300USB -P /usr/share/cups/model/canonmb5300.ppd -v "cnijbe2://Canon/?port=usb&serial=200123" -E

For a network connection

Example in which the [device-uri] is "cnijbe2://Canon/?port=net&serial=00-00-85-AB-C1-23" and the [printer_name] is registered as "MB5300LAN":

For Fedora

[root@zzz /yyy]# /usr/sbin/lpadmin -p MB5300LAN -P /usr/share/cups/model/canonmb5300.ppd -v "cnijbe2://Canon/?port=net&serial=00-00-85-AB-C1-23" -E

For Ubuntu

[user@zzz /yyy]$ sudo /usr/sbin/lpadmin -p MB5300LAN -P /usr/share/cups/model/canonmb5300.ppd -v "cnijbe2://Canon/?port=net&serial=00-00-85-AB-C1-23" -E

If the model is network enabled, you must re-register the printer if you switch the wired/wireless status of the machine. This is because the wired LAN and the wireless LAN have different [device-uri].

5. 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 a terminal software.
Specify this setting only as necessary.

/usr/sbin/lpadmin -d [printer_name]

 

If the [printer_name] is "MB5300USB":

For Fedora

[root@zzz /yyy]# /usr/sbin/lpadmin -d MB5300USB

For Ubuntu

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

TOP