Closed hgw77 closed 6 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
The kasminit and everything in /kasmbins is for using the images with Kasm workspaces. It requires their frontend and accompanying backend as kclient has no logic for their micro services.
ah thanks for the explanation, now I remember that some features are only available in Kasm workspaces.
I have now helped myself with the printer setup in a different way by adapting the start script for cups that I found under /etc/cups/start_cups.sh So my printers, that I have setuped before and stored as ppd-files, are created when I start cups with that script.
But I just can't find a way to run this script when the container starts. In root there is /defaults/autostart
I added the command /etc/cups/start_cups.sh
there (I adapt this in my own Dockerfile) but somehow it doesn't work when the container is started. Any idea how I can run the cups script at container start?
You should look at the startwm.sh script, auto start is an easy to use plop an executable name in there for running a single app on top of openbox. Can be overridden with /defaults/startwm.sh in the container.
Webtop example: https://github.com/linuxserver/docker-webtop/blob/master/root/defaults/startwm.sh
Core logic to run openbox: https://github.com/linuxserver/docker-baseimage-kasmvnc/blob/master/root/defaults/startwm.sh
Keep in mind at this run level you are the user not root in both the case of startwm and autostart. If you need root perms you need to learn s6 init v3 or just use sudo in these userspace scripts. Look over the code in root/etc in this repo for how that init works.
thank you with that hint I injected my line of code into the startwm.sh
script and now cups is running and I can print from my desktop-container 👍
Is there an existing issue for this?
Current Behavior
I have no idea how it should looks like because I was never able to print from the webtop desktop
Expected Behavior
I do not have an idea how it looks like because it never worked ;-) but I guess it opens a print dialog in the browser to print the document from the webtop with the installed printer on the client?
Steps To Reproduce
I was checking the repo and found that the
kasm_printer_service
is startet withkasminit
here So I tried to reproduce it by running the command in the container terminal.retry with sudo
but the permission to
/config/PDF/
is root so I changed it withchown abc.users /config/PDF/
next try to save a pdf inside
/config/PDF/
and I can see the log messageINFO:KasmPrintingService:Sending "/config/PDF/Untitled 1.pdf" for printing (6857B)
but nothing more happens....I guess the command in kasminit here is not working because of permission problems? I never saw the
PDF/
directory in my home dir before.Environment
Docker creation
Container logs