IRC chat logs for #ltsp on irc.freenode.net (webchat)


Channel log from 9 January 2021   (all times are UTC)

01:04pppingme has left IRC (pppingme!~pppingme@unaffiliated/pppingme, Read error: Connection reset by peer)
01:10pppingme has joined IRC (pppingme!~pppingme@unaffiliated/pppingme)
02:43GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
03:22pppingme has left IRC (pppingme!~pppingme@unaffiliated/pppingme, Ping timeout: 260 seconds)
05:13GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 265 seconds)
05:38quinox has left IRC (quinox!~quinox@ghost.qtea.nl, Quit: WeeChat 2.9)
05:41quinox has joined IRC (quinox!~quinox@ghost.qtea.nl)
09:11vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
09:18ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
11:28lucascastro has joined IRC (lucascastro!~lucascast@189.90.44.253.jupiter.com.br)
11:32lucas_ has joined IRC (lucas_!~lucascast@177-185-133-174.dynamic.isotelco.net.br)
11:35lucascastro has left IRC (lucascastro!~lucascast@189.90.44.253.jupiter.com.br, Ping timeout: 264 seconds)
14:48onixx has joined IRC (onixx!~onixx@75.152.28.214)
14:50
<onixx>
good morning, I have a question regarding local printers. I have set CUPS_SERVER="localhost" which works and enables the local cups server. I can goto localhost:631 and add the usb printer locally. it prints and all good. however my added printer does not survive a reboot. how can I fix this ?
14:59
<alkisg>
onixx: you're supposed to add the printer driver in the image
14:59
Does it require a driver? What are the steps to "add the usb printer locally"?
15:02
<onixx>
alkisg: I went to localhost:631, admin, add printer, choose usb printer lexmark, browse ppd ... next finish
15:02
<alkisg>
If everything else fails, you can copy /etc/cups/printer*.conf from the client to the server's /etc/ltsp/printers*.conf, and then use a POST_INIT_CP parameter in ltsp.conf to put them back to the client /etc/cups
15:02
Is the ppd in the image? Why isn't it automatically installed, there's no usbid match for it?
15:02
Normally, if one adds a usb printer, it's auto-installed, it doesn't require manually browsing the ppd
15:02
<onixx>
alkisg: probably not... it does not auto install you are right
15:03
<alkisg>
When you're locating the ppd, where do you find it, under /home/user?
15:03
<onixx>
alkisg: the lexmark choices are limited when I add printed hence why I needed to browse the pdd
15:03
ppd
15:03
<alkisg>
OK, but where is the ppd, in /usr/share or in /home etc?
15:03
To see if it's in the image or not
15:03
<onixx>
alkisg: on a network share (for now)
15:04
<alkisg>
Are you using a chrootless setup, or a vm setup, or a chroot setup?
15:04
<onixx>
alkisg: on, so ideally i would setup the ppd so cups likes it and auto installs !!
15:05
<alkisg>
If you're using chrootless, you can install the printer to the server
15:05
Then run `ltsp image /`, and the driver will exist in the image
15:05
So it will be auto-activated
15:10
<onixx>
alkisg: I am chrootless. will try that now
15:22
alkisg: can you explain the syntax of POST_INIT_CP . I think I will just do that for now
15:32
<alkisg>
If you put things in /etc/ltsp, and you run `ltsp initrd`, they then go to the client /etc/ltsp without running `ltsp image`
15:33
So POST_INIT_CP_PRINTERS="cp /etc/ltsp/printer.conf /etc/cups" would then put them to /etc/cups
15:33
But you'll need to copy both the printers.conf and the ppd etc; it's easier if you install the printer to the server than copying files around manually
15:33
<onixx>
alkisg: thanks. makes sense. will try to get it to auto install for sure
15:48woernie has joined IRC (woernie!~werner@pd9e8bc11.dip0.t-ipconnect.de)
16:00
<onixx>
alkisg: got the driver on server and client now autoinstalls
16:01
alkisg: one issue however, for whatever reason the printer is autoinstalled and is paused + not accepting job. I have to go to cups interface to unpause and make it accept jobs
16:23
<alkisg>
Maybe when you ran `ltsp image /`, it was removed+paused on the server
16:25
<onixx>
alkisg: I never installed it on the server. I just added the ppd
16:25GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
16:25
<onixx>
alkisg: Its never been connected to the server
16:36GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 256 seconds)
16:40GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
16:53
<alkisg>
onixx: that's why then
17:10
Keep a backup of /etc/cups on the client, then activate the printer, then run a diff, to see what part it updates
17:10
And do it from a POST_INIT command
17:33
<onixx>
alkisg: update: if I connect the printer on the client after it is booted, it installs normally ! I believe its something to do with the fact it installs too early
17:33
alkisg: maybe I can delay how quick cups is starting ?
17:33
<alkisg>
onixx: run a diff
17:33
If you find the line that changes, then we can easily google it
17:33
It shouldn't take more than 1 minute
17:34
Boot, cp -a /etc/cups /etc/cups.bak, activate printer, diff -r /etc/cups /etc/cups.bak
17:34
You'll need root access to do that
18:36GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 246 seconds)
18:54shored has left IRC (shored!~shored@82-128-142-239.rev.dnainternet.fi, Read error: Connection reset by peer)
18:54shored has joined IRC (shored!~shored@82-128-142-239.rev.dnainternet.fi)
19:26
<onixx>
alkisg: looks like problem has nothing to do with cups. printer experiences issues even after I enable it !
19:26
alkisg: usblp0 keeps disconnecting and reconnecting
19:27
alkisg: seen this in dmesg
20:06
<alkisg>
onixx, sounds unrelated to ltsp...
20:11
<onixx>
alkisg: yes
20:46woernie has left IRC (woernie!~werner@pd9e8bc11.dip0.t-ipconnect.de, Ping timeout: 240 seconds)
20:47woernie has joined IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de)
20:49
<onixx>
alkisg: thanks for all your help
21:03vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
21:10
<alkisg>
np
21:14GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
21:17woernie has left IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de, Ping timeout: 240 seconds)
21:18woernie has joined IRC (woernie!~werner@pd9e8bc11.dip0.t-ipconnect.de)
22:05onixx has left IRC (onixx!~onixx@75.152.28.214, Quit: leaving)
23:28vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
23:31ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
23:59gonzooo has joined IRC (gonzooo!~gonzooo@gateway/tor-sasl/gonzooo)