Linux Programmer | RHCE | RHCSA

Search This Blog

Friday 30 November 2018

How to make Canon LBP2900B work on Ubuntu 16.04 LTS?

After clean installation of Ubuntu 16.04 my Canon LBP2900 refused to print. I found out a solution.

Standard method to install driver doesn't work.
To install driver manually I downloaded and unpacked them from the official web-site of Canon.
The next step was to choose between the 32- or 64-bit driver. First my decision was to use 64-bit driver, because my OS is also 64-bit. But it was a mistake, 64-bit driver refused to work.
So I choose 32-bit driver, unpacked and installed two packages in the following order:
Check which packages are installed (32bit/64bit)
$ dpkg -l | grep -i cndrvcups

Remove the existing 64 bit installed packages:
$ apt-get remove --purge cndrvcups-*

Install 32 bit packages
$ sudo dpkg -i cndrvcups-common.deb 
$ sudo dpkg -i cndrvcups-capt.deb

If some dependency errors, then,
$ apt-get install -f


Then reboot and start work after reinstalling printer.
 

Wednesday 21 November 2018

blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'.

Getting this kind of error while connecting with the database,

blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
Solution:
Go to shell of the database server(Where sql database is located) and enter below command,

$ mysqladmin -uusername -ppassword flush-hosts;

Tuesday 13 November 2018

Cups printing issue

CUPS: Adding printer fails with “Unable to get list of printer drivers: Success”

When installing a new printer using the CUPS web interface, instead of displaying the list of drivers only the message
Unable to get list of printer drivers:
Success
OR
When i try to list printer drivers with command line,
$ lpinfo -m
lpinfo: success
is displayed. No printers drivers list can be shown.
Workaround:
Cups runs lpinfo -m to get a list of printer drivers, and this runs scripts in /usr/lib/cups/driver, and one of these is causing problems. By removing all scripts and adding them one by one you can determine which script is causing the problems.

Move all the scripts to a subdirectory, so that they are ignored.
cd /usr/lib/cups/driver
mkdir /opt/driver
mv * /opt/driver/
then copy one by one driver to original location.
for ex.
cp /opt/driver/cupsfilter /usr/lib/cups/driver
you can check it by running lpinfo command
lpinfo -m
All drivers are showing. Place files one by one and check.





SSH not working with password after upgrade ubuntu 22.04

Issue: In recent upgrade of ubuntu 22.04 we are not able to login server with SSH password. but when we try to login with key then it allow...