You are not logged in.
Iḿ running Slitaz-RC3 quite successfully under Virtualbox 5, and now wanted to install cups in order to get a printer. so I followed the HOWTO posted on this site "http://doc.slitaz.org/en:guides:printer?s[]=cups", but I only made it until the point where one should run "# lppasswd -g lp -a tux".
Here Iḿ stuck as the terminal is giving me:
root@slitaz:/etc/init.d# lppasswd -g lp -a tux
sh: lppasswd: not found
I doublechecked the installation of the package, and it look like ok to me:
root@slitaz:/etc/init.d# tazpkg get-install cups --forced
cups-2.0.2.tazpkg 100% |*******************************| 6191k 0:00:00 ETA
Installation of package "cups"
================================================================================
Common UNIX Printing System.
--------------------------------------------------------------------------------
Copying package... [ Done ]
Extracting package... [ Done ]
Remember modified packages... [ Done ]
Installing package... [ Done ]
Removing all tmp files... [ Done ]
Execute post-install commands... Starting cups deamon: Cupsd... [ Done ]
[ Done ]
Update system databases... [ Done ]
================================================================================
Package "cups" (2.0.2) is installed.
so cups should be installed and the daemon should be started. But something must be NOK anyway as I also cannot get any connection to the webinterface although the port is existing on localhost:
root@slitaz:/etc/init.d# pscan localhost
Scanning localhost ports 1 to 1024
Port Proto State Service
80 tcp open www
82 tcp open unknown
631 tcp open unknown
1021 closed, 3 open, 0 timed out (or blocked) ports
Looks like rather strange to me, there must be something very easy that simply Iḿ to stupid to see.
I cannot find lppasswd no where in my directories, but it should be part of the cups package ?
If someone has an idea where to start resolving, please ...
Many thanks in advance,
Offline
Hi,
I don't remember typing such a command after installing CUPS.
About the web interface, check the daemon is indeed running by this command:
[c]busybox ps | grep cupsd[/c]
Also check the word [c]cupsd[/c] shows up on the [c]RUN_DAEMONS=[/c] line in [c]/etc/rcS.conf[/c].
Offline
Hi,
many thanks for taking care.
Looks like the daemin is running:
1795 root 0:00 cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
1856 root 0:00 grep cupsd
But Iḿ afraid I don find this line in rcS.conf, can that be real ?
Offline
Near the end of file [c]/etc/rcS.conf[/c] you should find a line like this one:
[c]RUN_DAEMONS="acpid laptop-mode.sh httpd"[/c]
(with different words between the double quotes).
There you should add [c]cupsd[/c] (anywhere between the quotes, separate this word from others with white space).
I think the web interface is also accessible via TazPanel, try this maybe.
Offline
found that line now... don t know why not at the first place.
With this being added the boot-script definitely starts cupsd, but now access to the webinterface still.
Think I saw a httpd.conf file for the local http-server, maybe this is where to fix it.
But its telling me that port 631 on localhost is not existing, not that I don have the permission, so very strange to me.
Offline
got acces to the webinterface now: After studying the whole afternoon I found that that the package cups-doc need to be installed. Quite obvious ? Maybe, but I checked the content and found a lot of documentation that will be then made available locally. What I did not get: I does also contain the styles and templates for the webinterface....
Thatś why w/o this package nstalled you can get access to the admin-page and all other subpages but NOT to the main-page unter localhost:631.
So now I can have a look how to get the printers installed. Many thanks to those who have helped so far.
Offline
Why oh why did Aleksej remove cups-doc and more from DEPENDS of cups ;^)
http://hg.slitaz.org/wok/rev/77dc6129b023
[c]-DEPENDS="libssl slitaz-base-files libgcrypt gnutls dbus jpeg libpng tiff zlib \[/c]
[c]-libcomerr cups-doc libkrb5 libcomerr3 gcc-lib-base libusb-compat libtasn1 acl \[/c]
[c]-poppler-apps cups-filters"[/c]
[c]+DEPENDS="cups-filters libcups"[/c]
Offline
Fixed: http://hg.slitaz.org/wok/rev/ce8561c19cb9
and ready for downloading:
http://cook.slitaz.org/cooker.cgi?pkg=cups
http://cook.slitaz.org/cooker.cgi?pkg=cups-pam
Sorry. Everything, absolutely everything that I'm doing lately, contains hidden bugs 
Offline
As about mysterious [c]lppasswd[/c].
This file just absent: http://pkgs.slitaz.org/?file=/lppasswd$
But it exists in the SliTaz 4.0: http://pkgs.slitaz.org/?file=/lppasswd$&version=s (packages "cups" and "cups-pam"). Seems like aforementioned guide written in the SliTaz 4.0 times.
Offline
Now, with all this being corrected and packages are fixed, the situation in my case is as follows:
I have no problem in starting cupsd, and I have followed the guide presented at this website under http://doc.slitaz.org/en:guides:printer?s[]=cups (with the exception being the section concerning lppasswd which seems to be outdated following the comment of Aleksej)
There is also no worries getting access to the webinterface, all perfect.
BUT:
when I try to search or add a printer the CPU goes to 100% immediately and stays there. And no printer is detected. But I saw my printer detected before as I was struggeling with the admin-page before....
I followed the debugging guide posted unter https://wiki.ubuntu.com/DebuggingPrintingProblems#Network_printer which I found quite useful, and nmap is giving me:
tux@slitaz:~$ nmap 192.168.0.130
Starting Nmap 6.25 ( http://nmap.org ) at 2016-01-01 17:59 UTC
Nmap scan report for Drucker.lan (192.168.0.130)
Host is up (1.2s latency).
Not shown: 984 closed ports
PORT STATE SERVICE
25/tcp open smtp
80/tcp open http
110/tcp open pop3
119/tcp open nntp
139/tcp open netbios-ssn
143/tcp open imap
443/tcp open https
445/tcp open microsoft-ds
465/tcp open smtps
515/tcp open printer
563/tcp open snews
587/tcp open submission
631/tcp open ipp
993/tcp open imaps
995/tcp open pop3s
9100/tcp open jetdirect
Nmap done: 1 IP address (1 host up) scanned in 85.05 seconds
so the printer is in the network and Iḿ afraid all relevant ports are open.
snmp is also able to talk to the printer:
tux@slitaz:~$ /usr/lib/cups/backend/snmp drucker.lan
INFO: Using default SNMP Community public
network lpd://192.168.0.130:515/PASSTHRU "EPSON WF-3620 Series" "EPSON WF-3620 Series" "MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR7,END4;MDL:WF-3620 Series;CLS:PRINTER;DES:EPSON WF-3620 Series;CID:EpsonRGB;FID:FXA,DPA,WFA,ETA,AFA,DAA,WRN;RID:40;DDS:022500;ELG:0D83;" ""
CUPS is giving me a hard time, folks, I have set error_log to debug but I cannot read anything strange there after flipping through it.
If someone has an idea where to continue please ...
Offline
Hi,
At what stage exactly is it bugging? Do you use tazpanel or another browser to configure CUPS? What is the process using the CPU (use [c]top[/c])?
Offline
It is starting to freak out exactly when cups is starting to talk to the printer. Regardless which browser I use. So I f I try via tazpanel, and select "find new printers", top is giving me:
Mem: 445676K used, 67424K free, 8836K shrd, 24552K buff, 183616K cached
CPU: 50.0% usr 50.0% sys 0.0% nic 0.0% idle 0.0% io 0.0% irq 0.0% sirq
Load average: 0.92 0.66 0.37 2/168 6163
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
1371 1 root R 5688 1.1 0 74.9 /usr/sbin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
1988 1 tux S 117m 23.3 0 8.3 tazweb --notoolbar http://127.0.0.1:82/index.cgi?guiuser=tux
1385 1382 root S 114m 22.8 0 8.3 /usr/bin/Xorg -auth /var/run/slim.auth vt07
all other processes are staying idle, whilst cups is bouncing between 50% and 85% CPU.
It the stays like that for a couple of minutes, with "no printers found" unchanged, and falls back to idle.
The only way to stop it w/o waiting for time-out is to stop cupsd manually, which always works. Restarting is keeping cups silent still, until you do anything with cups again.
Offline
It the stays like that for a couple of minutes, with "no printers found" unchanged, and falls back to idle.
So it is not crashed? Then, can't you try "Add printer" instead of "Search printer", wait for the search to end, select "Other network printers > lpd", then fill the forms manually, since you seem to know all relevant information (IP adress, port, model...)?
Offline
unfortunately even a stpid "nmap" is causing the CPU to run crazy already because of cupsd ...
But the printer is reacting to nmap, as well as it does for snmp.
I meanwhile tried to simulate the same under Slitaz 4.0. No discovery of any printer but no CPU Utilization either. I will check my network configuration in VirtualBox now, maybe it is just because of this ?
Offline
[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]