SliTaz SliTaz Forum

You are not logged in.

#1 2012-06-04 09:49:43

Guest
Guest

Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Please help me!!!

I can't use my printer : HP "All in One" Deskjet F4200

i have Install CUPS and add the user(s) to the lp group to gain permissions to access the devices.

i have correctly customise the default configuration in /etc/cupsd.conf

i have install hplip

I have set the administrative password for CUPS and add an administrative user with # lppasswd -g lp -a tux

I have follow all instructions in the guide but when i go to http://localhost:631/

i have always "canno't acces to destination (localhost)

When i try to launch hp-setup i have a message : No PPD files found

I can access to scanner with xsane but i can't print

Can somebody please help me i'm lost

How get acces to cups or where find PPD file ??

PS : I'm french sorry for my english, i have write my question in the french support but i have no answer...

Thank you !!

#2 2012-06-04 14:02:27

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

pgrep cupsd

If no PID number is displayed cupsd is not running.

As root user start cupsd:

/etc/init.d/cupsd start

Cupsd is started post-install but not set to auto-start on boot.

To auto-start user must add cupsd to /etc/rcS.conf RUN_DAEMONS=

Offline

#3 2012-06-04 23:13:26

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Thanks a lot for you answer

I have do this :

root@slitaz:/etc/init.d# cupsd start

cupsd: Unknown argument "start" - aborting!

Usage: cupsd [-c config-file] [-f] [-F] [-h] [-l]

-c config-file      Load alternate configuration file

-f                  Run in the foreground

-F                  Run in the foreground but detach

-h                  Show this usage message

-l                  Run cupsd from launchd(8)

root@slitaz:/etc/init.d# cupsd -f

Terminated

But it's still not working

i've try :

root@slitaz:/etc/init.d# cupsd -l

cupsd: launchd(8) support not compiled in, running in normal mode.

cupsd: Child exited on signal 15!

root@slitaz:/etc/init.d#

can i do?

and to auto start i don't understand very well, i go to the file rcS.conf and i write "# RUN_DAEMONS=" and "cupsd"?

thank you

#4 2012-06-04 23:29:50

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Here my cupsd.conf , maybe it's the problem?

# Administrator user group...

SystemGroup lp

# Restrict access to the admin pages...

  Order allow,deny

  Allow 127.0.0.1

# Restrict access to configuration files...

  AuthType Default

  Require user @SYSTEM

  Order allow,deny

  Deny From None

  Allow From 127.0.0.1

#5 2012-06-04 23:32:55

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

/etc/init.d/cupsd start|stop|restart is a script, not an executable.

Open terminal

To start cups:

su

Enter

password:

Type

root

Enter

Type this:

/etc/init.d/cupsd start

Enter

leafpad /etc/rcS.conf

Add whats in bold:

RUN_DAEMONS="RUN_DAEMONS="dbus hald slim cupsd"

File/Save/File/Quit

Offline

#6 2012-06-04 23:40:03

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

And i have modifie also the cupsd.conf.default so i can't restore it, i think it was a big mistake...

If this is the problem, can you help me to fix it bye giving me the contents of the cupsd.conf.default ?

#7 2012-06-04 23:46:11

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Ok, Thank you

but it still no working, i have this :

root@slitaz:~# /etc/init.d/cupsd start

Not starting cups deamon: cups deamon is already running             [ OK ]

i don't understand because in my administration console, cupsd is marqued as stopped

I had this :

RUN_DAEMONS="dbus hald slim firewall httpd"

and now i modifie and this is that :

RUN_DAEMONS="dbus hald slim cupsd firewall httpd"

#8 2012-06-04 23:59:40

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

i have do this and really i understand nothing !!!!!

root@slitaz:~# /etc/init.d/cupsd stop

Stopping cups deamon: Cupsd... Terminated

root@slitaz:~#

root@slitaz:~# /etc/init.d/cupsd start

Not starting cups deamon: cups deamon is already running             [ OK ]

root@slitaz:~#

#9 2012-06-05 00:06:13

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

please help me you are my only hope, i'd like to continue to use slitaz but i need my printer !!

#10 2012-06-05 09:12:45

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Hi,

First of all, you do not need to edit your rcS.conf file to make your printer working. ;-) But once it works it is worth to edit this file to automatically start the cups daemon.

That is said and now here are the steps I followed to install my HP_CM11312:

0) Disconnect and reconnect the usb plug to make sure the printer is recognized by your system. Launch the <lsusb> command twice. First time with printer disconnected and second time when the printer is connected. And compare both outputs. Here is an example of what you should get:

[c]tux@slitaz:~$ lsusb
Bus 001 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 058f:9254
Bus 001 Device 003: ID 05e3:0606
Bus 001 Device 004: ID 046a:0023
Bus 001 Device 005: ID 046d:c050
Bus 001 Device 006: ID 10d5:55a2
tux@slitaz:~$[/c]
1) open terminal, then login as root using <su> command:

[c]tux@slitaz:~$ su
Password:
root@slitaz:/home/tux#[/c]
2) (re-)install the HP tool available from slitaz:

[c]root@slitaz:~# tazpkg get-install hplip --forced[/c]

3) launch setup process (as root):

[c]root@slitaz:~# hp-setup[/c]
then answer:

[c]d -> download[/c]
You may need to specifiy where is the ppd file located. In my case:

[c]/usr/share/ppd/HP/hp-color_laserjet_cm1312_mfp-ps.ppd.gz[/c]
4) Restart the cups server (as root):

[c]root@slitaz:~# /etc/init.d/cupsd start
Starting cups deamon: Cupsd...                                       [ OK ]
root@slitaz:~#[/c]
5) then start your favorite GUI application and you should have your new printer available.

6) you can admin your printer using any web browser with the address <http://localhost:631/admin>

7) Sometimes I have a "failed" message, to get the printer back to ok state, simply use <resume printer> in the cups web interface.

8) Once you can print, then follow mojo's instructions to automatically start the cups daemon when booting up (by editing the famous file <rcS.conf>).

Cheers.

Offline

#11 2012-06-05 12:52:01

Guest
Guest

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

YES It's WORK !!!!

I've Reinstall cups and hplip with tazpkg get-install cups --forced and tazpkg get-install hplip --forced

I've let the cups.conf by default without modifie it, and now it's working

mojo and totoetsasoeur : THANK YOU VERY MUCH !!!!!

#12 2012-06-05 13:49:36

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Glad you made it. :-)

Happy slitaz.

Offline

#13 2012-08-08 02:49:01

jsav3725
Member
Registered: 2012-08-04
Posts: 3

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Still looking for laptop stopped at root@slitaz:"# answer? Anyone? What use the slitaz disc for a frizzbee? Jsav.

Offline

#14 2012-08-08 11:23:19

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Do not hijack threads or play necromancer with topics not related to your problem. Instead go back to your own thread and answer the questions asked of you.

You display clear knowledge of Linux that most newbies get stuck on. You also deflecting and avoiding answering questions clearly while repeating the same inane question. Now you've spread to old and unrelated topics and even added a tag - Two things most newbies wouldn't do.

If you keep this behavior up, I'll just consider what you're doing as trolling and will start marking your posts as spam.

Offline

#15 2012-10-10 09:49:48

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Printer hp deskjet F4200 - I can't Access to Cups or fin'd PPD file

Just for info, I was faced to something stange with cups in Slitaz4.

Impossible to start or stop the cups daemon because already running. But obviously the deamon was not running!!:

[c]root@slitaz:/home/tux# /etc/init.d/cupsd start
Not starting cups deamon: cups deamon is already running             [ OK ]
root@slitaz:/home/tux# /etc/init.d/cupsd stop
Stopping cups deamon: Cupsd... Terminated
root@slitaz:/home/tux# /etc/init.d/cupsd start
Not starting cups deamon: cups deamon is already running             [ OK ]
root@slitaz:/home/tux# ps -ef | grep cupsd
4809 root       0:00 grep cupsd[/c]
The workaround is to delete cups.sock file:

[c]root@slitaz:/home/tux# rm /var/run/cups/cups.sock[/c]
Then it is possible to start or stop the cups daemon:

[c]root@slitaz:/home/tux# /etc/init.d/cupsd start
Starting cups deamon: Cupsd...                                       [ OK ]
root@slitaz:/home/tux# /etc/init.d/cupsd stop
Stopping cups deamon: Cupsd... Terminated
root@slitaz:/home/tux# /etc/init.d/cupsd start
Starting cups deamon: Cupsd...                                       [ OK ]
root@slitaz:/home/tux# ps -ef | grep cupsd
4866 root       0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
4870 root       0:00 grep cupsd
root@slitaz:/home/tux#[/c]
Happy slitaz.

:-)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]