Page 1 of 2

[SOLVED] Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 11:33
by Sybelius
Hi All,

After long time I reinstalled Salix on a machine of mine, choosing the KDE flavour by the iso 14.0.1 32 bit (sincerely I don't understand if it is based on Slackware 14.0 or 14.1), still I have to add all packages I need, the first serious problem concerning the printer.
I have been installing "gutenprint" "xsane" "cups-bjnp" (SlackBuild - http://slackbuilds.org/repository/14.0/ ... cups-bjnp/), maybe something else, I don't remember.
Well, the printer is installed but doesn't work complaining the absence of the file "pstocanonij"
(/usr/lib/cups/filter/cmdtocanonij #not avalaible).
I guess the problem comes out due the absence of the official driver, I have been looking for it but I get only .rpm or .deb packages (trying to get the files from .deb packages using the command "ar" I don't get all of them).
I saw this thread in the Forum:
http://forum.salixos.org/viewtopic.php? ... nij#p26556
Where kindly the "Salixer" Djemos provided the right packages to Mr. Cox; I have been visiting his repository, unfortunately the packages stored over there are not for MG3540 (MG 3500 Series).
Please, could come help for me by the Salix Team?

Thank you for your kind attention

Best Regards

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 11:44
by djemos
Here is the canon 3500 driver.
install both packages cnijfilter-common and cnijfilter-mg3500series
pstocanonij is included on cnijfilter-common package
source file as also rpm and debian packages are here
I don't have a canon printer to test these drivers.

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 12:55
by Sybelius
Hi Djemos,

Thank you very much for your kind and precious help, never thinking so fast!
I have just installed both canon 3500 driver (first link) but even after rebooting and configuring again the printer, I get this error message (both files are executable):
File "/usr/lib/cups/filter/cmdtocanonij" has insecure permissions (0100755/uid=1000/gid=100).
I don't touch anything, afraid to do mistake :)

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 13:16
by djemos
It is my fault did not use sudo to create txz files.
Please download again the packages, remove the old ones and reinstall them.
files now belong to root:root

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 14:04
by Sybelius
Hi did, but even adding the user to "root" group I get the same error, sorry.
File "/usr/lib/cups/filter/cmdtocanonij" has insecure permissions (0100755/uid=1000/gid=100)

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 14:06
by djemos
Do what i write above.

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 14:38
by Sybelius
I did before writing my last message :) I did again before writing this one but I get the same error

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 15:03
by djemos
If you still get the message then type

Code: Select all

sudo chmod 555  /usr/lib/cups/filter/pstocanonij
sudo chmod 555  /usr/lib/cups/filter/cmdtocanonij
I think it will work

Otherwise read below
are you sure you download again the files?
type

Code: Select all

less cnijfilter-common-4.00-1.i386.txz
then you see all files belong to root root if not then you dont have the right files.

So what i did
First remove the packages

Code: Select all

sudo removepkg cnijfilter-common 
sudo removepkg cnijfilter-mg3500series
Then look on

Code: Select all

ls -l  /usr/lib/cups/filter/cmdtocanonij
it has to not exist
otherwise delete it

Code: Select all

sudo rm  /usr/lib/cups/filter/cmdtocanonij
install the packages

Code: Select all

sudo installpkg cnijfilter-common-4.00-1.i386.txz
sudo installpkg cnijfilter-mg3500series-4.00-1.i386.txz
and the

Code: Select all

 ls -l  /usr/lib/cups/filter/cmdtocanonij
return

Code: Select all

djemos[canon]$ ls -l /usr/lib/cups/filter/cmdtocanonij 
-rwxr-xr-x 1 root root 11624 Ιούλ 17  2013 /usr/lib/cups/filter/cmdtocanonij
and also

Code: Select all

djemos[canon]$ ls -l /usr/lib/cups/filter/pstocanonij 
-rwxr-xr-x 1 root root 33471 Ιούλ 17  2013 /usr/lib/cups/filter/pstocanonij
as you see these files belong to root and root group.
I did not say to add user to root group. So remove the user from root group.

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 15:45
by Sybelius
... I'm starting to feel a bit embarassed Djemos, if this issue annoing you leave it.

Yes, you did'nt say to add the user to "root" group, I did to see if helps; I have been removing it and followed the last instructions but as "root" because "sudo" is not activated.
Unfortunately something is still wrong, this is the output:
dominum@darkstar:~$ su
Password:
root[dominum]# installpkg -i cnijfilter-common-4.00-1.i386.txz
Cannot install -i: file not found
Verifying package cnijfilter-common-4.00-1.i386.txz.
Installing package cnijfilter-common-4.00-1.i386.txz:
PACKAGE DESCRIPTION:
Package cnijfilter-common-4.00-1.i386.txz installed.

root[dominum]# installpkg cnijfilter-mg3500series-4.00-1.i386.txz
Verifying package cnijfilter-mg3500series-4.00-1.i386.txz.
Installing package cnijfilter-mg3500series-4.00-1.i386.txz:
PACKAGE DESCRIPTION:
Package cnijfilter-mg3500series-4.00-1.i386.txz installed.

dominum@darkstar:~$ ls -l /usr/lib/cups/filter/cmdtocanonij
-rwxr-xr-x 1 dominum users 8523 lug 17 2013 /usr/lib/cups/filter/cmdtocanonij*
dominum@darkstar:~$

dominum@darkstar:~$ ls -l /usr/lib/cups/filter/pstocanonij
-rwxr-xr-x 1 dominum users 27122 lug 17 2013 /usr/lib/cups/filter/pstocanonij*
dominum@darkstar:~$
The same error here:
File "/usr/lib/cups/filter/cmdtocanonij" has insecure permissions (0100755/uid=1000/gid=100).

Re: Canon Pixia MG3540 not active

Posted: 11. Nov 2014, 15:46
by djemos

Code: Select all

installpkg  cnijfilter-common-4.00-1.i386.txz
not -i i misstyping :-)
This is wrong

Code: Select all

 ls -l /usr/lib/cups/filter/pstocanonij
-rwxr-xr-x 1 dominum users 27122 lug 17 2013 /usr/lib/cups/filter/pstocanonij*
it has to be root root

So

Code: Select all

sudo chmod 555  /usr/lib/cups/filter/pstocanonij
sudo chmod 555  /usr/lib/cups/filter/cmdtocanonij
md5sums

Code: Select all

2c55f6d74f166e4b4260c10c833bbb54  cnijfilter-common-4.00-1.i386.txz
d144ae52c3a8c212cd4d571bec215884  cnijfilter-mg3500series-4.00-1.i386.txz
If it does not work i cannot help more
And please don't feel embarrassed i just trying to help.