how to configure tprintdaemon for network?

Post Reply
jbh
Posts: 5
Joined: Wed Feb 12, 2014 5:00 pm

how to configure tprintdaemon for network?

Post by jbh »

Hi,

I need a print driver for pixma ip7250 that can print on CD media, which led me to Turboprint. Am very happy with the software so far, just one more thing I'd like to get going. The printer is connected via usb on my "server" and shared to the lan with cups. Printer and ink status works fine on the server, but I normally use another machine.

When I create the printer from a cups share on the client, I can print with no problem, but the print status is always printer not connected or switched off, which seems to indicate that tprintdaemon is looking for the printer on the client and not on the server. I've opened tcp port 5552 on the server as /etc/turboprint/system.cfg mentions the port.

How do I configure tprintdaemon on the server and client to make this work, or maybe it's something else I've misunderstood?
zedonet
Site Admin
Posts: 2154
Joined: Fri Oct 06, 2006 8:02 am

Re: how to configure tprintdaemon for network?

Post by zedonet »

Hello,

printer status works also over a network connection provided that client and server are Linux PCs and TurboPrint is installed on the server and the client.

On the client, you should set up the printer as an "IPP" printer with

Server = <Name> or <IP Address> of printer server
Queue = printers/<cups name of printer>
jbh
Posts: 5
Joined: Wed Feb 12, 2014 5:00 pm

Re: how to configure tprintdaemon for network?

Post by jbh »

Seeing that I got no answers in a few days, I decided to remove my posts and condense the present situation into one post. In the mean time I've removed turboprint from both machines. I've purchased a license and installed a registered version on the server. On the server I can print and the status reporting works fine.

I've reinstalled the unregistered version on the client. I can print from it, but it seems no matter what I do I can't get the status update working. Here are config files and the debug output from tprintdaemon on the client, please let me know if you need something else, like the server config files, cups debug error logs or something else. TCP port 631 and 5552 has been opened in the firewall on the server and 5552 on the client.

cat /etc/turboprint/system.cfg
TPBIN_BROWSER=firefox
TPFILE_PRINTCAP=/etc/printcap
TPPATH_CONFIG=/etc/turboprint
TPPATH_SHARE=/usr/share/turboprint
TPPATH_SPOOL=/var/spool/lpd
TPPATH_BIN=/usr/bin
TPPATH_FILTERS=/usr/lib/turboprint
TPPATH_DOC=/usr/share/turboprint/doc
TPPATH_LOG=/var/log
TPPATH_VAR=/var/spool
TPPATH_TEMP=/tmp
TPPATH_MAN=/usr/share/man
TPPATH_CUPSDRIVER=/usr/share/cups/model
TPPATH_CUPSSETTINGS=/etc/cups/ppd
TPPATH_CUPSLIB=/usr/lib/cups
TPPATH_CUPSLIB64=/usr/lib64/cups
TPOWN_SPOOLDIR=lp
TPMOD_SPOOLDIR=0755
TPOWN_SPOOLFILE=lp
TPMOD_SPOOLFILE=0640
TPDAEMON_START=1
TPDAEMON_USER=root
TPDAEMON_GROUP=lp
TPDAEMON_PORT=5552
TPDAEMON_SERVER=1
TPUSE_GSZEDO=1
TP_CUPS=1

cat /etc/turboprint/turboprint.cfg

[Turboprint_Config_File]

[turbo2]
Default=0
Name="iP7250-TP"
Short="iP7250-TP"
Port="ipp"
Devicename="/dev/lp0"
Filename="/tmp/turboprint.prn"
Remoteprinter="/printers/iP2750-TP"
Remoteserver="tor"
Remoteuser=""
Remotepassword=""
Remoteworkgroup=""
Remoteip=""
Remotesocket=""
Remoteuri=""
Driver="Canon_PIXMA_iP7200series"
Colormode=2
Preview=0
Cartridge=0
Paper=0
Quality=1
Pagesize=3
Borderlessexpand=2
Customsize=5000,7000
Feed=0
Tray=0
Duplex=0,0,0
Copies=1
Dithering=0
Truematch=1
Mirror=0
Usercolor=0
Brightness=0
Contrast=0
Screengamma=180
Inkvolume=0
Shadows=0
Colorsaturation=0
Intensity_KCMY=0,0,0,0
Limit_KCMY=0,0,0,0
Inklimit=0
Bright_KCMY=0,0,0,0
UCR=0
TAC=0
Colorspace=0
CMYKspace=0
Intent=1
Greytone_AB=0,0
RefLight=6500
GS_X_Scale=100
GS_Y_Scale=100
GS_X_Offset=0
GS_Y_Offset=0
GS_Screen_Lpi=0
GS_Buffer=0
PIC_Ignore_Margins=0
PIC_Position=0,0
PIC_Size=7000,0
PIC_Center=1,1
PIC_Aspect=1
A2PS_Defaults=0
A2PS_Landscape=0
A2PS_Borders=1
A2PS_Headers=1
A2PS_Columns=1
Landscape=0
Number_Up=1
Image_X=1
Image_Y=1
Image_Scaling=100
Use_Image_Scaling=0
Image_DPI=300
Use_Image_DPI=0
Text_CPI=10
Text_LPI=6
Pretty_Print=0
Settings=

SSH: jack@frigga /home/jack $ sudo tprintdaemon 255
TP-Daemon Version 2.32-1
Debug Level set to 255
linking usblib...
linking usblib...
attachting to libusb -> attach_kernel_driver function
attachting to libusb -> kernel_driver_active function
usbserv starting...
created semaphore with key=4759 -> semid=0
GetPrinterID: port #0 id timed out (14319751) - open failed
GetPrinterID: port #1 id timed out (14319751) - open failed
GetPrinterID: port #2 id timed out (14319751) - open failed
GetPrinterID: port #3 id timed out (14319751) - open failed
GetPrinterID: port #4 id timed out (14319751) - open failed
GetPrinterID: port #5 id timed out (14319751) - open failed
GetPrinterID: port #6 id timed out (14319751) - open failed
GetPrinterID: port #7 id timed out (14319751) - open failed
GetPrinterID: port #8 id timed out (14319751) - open failed
GetPrinterID: port #9 id timed out (14319751) - open failed
GetPrinterID: port #10 id timed out (14319751) - open failed
GetPrinterID: port #11 id timed out (14319751) - open failed
write statuslist
write statuslist
write statuslist
daemon: connect from host 127.0.0.1, port -20706.
### open-cmd for printer:iP7250-TP
connect_to_printer: shortname=iP7250-TP
@get printer - state:0 = successful-ok
printer is local: yes
connect printer: backend type = 1 uri=tpu://Canon/iP7200_series/SN=2061FE
connect printer - backendtype = 1
### connect_to_printer result=0
### backendtype=1, status=-10 usbport = -1, mfg=MFG:CANON, mdl=MDL:IP7200_SERIES, serstr=2061FE
THREAD started ('CA;MDL:IP7200_SERIES2061FE') backend type = 1
USBCONTEXT = -1235221400


***

new thread cyle [portthread:CA;MDL:IP7200_SERIES2061FE] - usbport=-1 dev=0 handle=0 result=-10
commandtime=0
trying to connect to printer...dev=0
find_usblibprinter - searching
looking for printer on xtraport: USB;CANON;IP7200_SERIES;2061FE;'
current semaphore value = 1
trying to block semaphore...
... blocked - result = 0 (Invalid argument)
raising semaphore...
...raised
find_xtraport: 0
no device yet found... search via find_usblib_printer...
find_usblib_printer
traverse_usblib_printers...
interface=0find_usblib_printer: found device d#0 c#0 i#0 a#0, class=14
find_usblib_printer: printer best_altsetting=#-1
interface=1find_usblib_printer: found device d#0 c#0 i#1 a#0, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#1, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#2, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#3, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#4, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#5, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#6, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#7, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#8, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#9, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#10, class=14
find_usblib_printer: found device d#0 c#0 i#1 a#11, class=14
find_usblib_printer: printer best_altsetting=#-1
interface=2find_usblib_printer: found device d#0 c#0 i#2 a#0, class=1
find_usblib_printer: printer best_altsetting=#-1
interface=3find_usblib_printer: found device d#0 c#0 i#3 a#0, class=1
find_usblib_printer: found device d#0 c#0 i#3 a#1, class=1
find_usblib_printer: found device d#0 c#0 i#3 a#2, class=1
find_usblib_printer: found device d#0 c#0 i#3 a#3, class=1
find_usblib_printer: found device d#0 c#0 i#3 a#4, class=1
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#1 c#0 i#0 a#0, class=9
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#2 c#0 i#0 a#0, class=9
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#3 c#0 i#0 a#0, class=9
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#4 c#0 i#0 a#0, class=3
find_usblib_printer: printer best_altsetting=#-1
interface=1find_usblib_printer: found device d#4 c#0 i#1 a#0, class=3
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#5 c#0 i#0 a#0, class=9
find_usblib_printer: printer best_altsetting=#-1
interface=0find_usblib_printer: found device d#6 c#0 i#0 a#0, class=9
find_usblib_printer: printer best_altsetting=#-1
traverse_usblib_printers done ... result = 0 busy=0
find_usblib_device returned 0 - sernr=2061FE
find_usblibprinter: Search printer (USB;CANON;IP7200_SERIES;2061FE;) result = 0
find_usblibprinter result=-3
find_usbport: printer (MFG:CANON/MDL:IP7200_SERIES/2061FE) not found via usblib
scanning port #0 (0)..
GetPrinterID: port #0 id timed out (14319867) - open failed
@no printer connected to port 0 - usberr=-1
scanning port #1 (0)..
GetPrinterID: port #1 id timed out (14319867) - open failed
@no printer connected to port 1 - usberr=-1
scanning port #2 (0)..
GetPrinterID: port #2 id timed out (14319867) - open failed
@no printer connected to port 2 - usberr=-1
scanning port #3 (0)..
GetPrinterID: port #3 id timed out (14319867) - open failed
@no printer connected to port 3 - usberr=-1
scanning port #4 (0)..
GetPrinterID: port #4 id timed out (14319867) - open failed
@no printer connected to port 4 - usberr=-1
scanning port #5 (0)..
GetPrinterID: port #5 id timed out (14319867) - open failed
@no printer connected to port 5 - usberr=-1
scanning port #6 (0)..
GetPrinterID: port #6 id timed out (14319867) - open failed
@no printer connected to port 6 - usberr=-1
scanning port #7 (0)..
GetPrinterID: port #7 id timed out (14319867) - open failed
@no printer connected to port 7 - usberr=-1
scanning port #8 (0)..
GetPrinterID: port #8 id timed out (14319867) - open failed
@no printer connected to port 8 - usberr=-1
scanning port #9 (0)..
GetPrinterID: port #9 id timed out (14319867) - open failed
@no printer connected to port 9 - usberr=-1
scanning port #10 (0)..
GetPrinterID: port #10 id timed out (14319867) - open failed
@no printer connected to port 10 - usberr=-1
scanning port #11 (0)..
GetPrinterID: port #11 id timed out (14319867) - open failed
@no printer connected to port 11 - usberr=-1
...printer not found
thread result:-3 - delay=0 - sleeping for time=100
periodic monitoring portthread: CA;MDL:IP7200_SERIES2061FE
..done
write statuslist
periodic monitoring portthread: CA;MDL:IP7200_SERIES2061FE
..done
write statuslist
periodic monitoring portthread: CA;MDL:IP7200_SERIES2061FE
..done
write statuslist

TERM signal received...quitting

To me it looks like the tprintdaemon isn't trying to connect to to the server (tor 10.9.8.3) and just fails to find the local printer, which would explain the status msg "printer not connected or turned off". I hope that I haven't made a mistake and that I followed your instructions above.

Thanks in advance for any help, as I have read all the documentation and searched your websites without being able to come up with anything relevant...
Post Reply