CUPS in Fossapup barebone

Moderators: 666philb, Forum moderators

Post Reply
dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

CUPS in Fossapup barebone

Post by dellus »

Hello
I have to get the LibreCAD 2.2.0 64 appimage to run with working printing. It doesn't run in Fossapup64 full, but surprisingly it runs in the barebone. I suspect it is because the qt stuff contained in the appimage collides with the qt built in in Fossapup. It seems the bare Fossa is without qt.
As I am a main question answerer in the LibreCAD forum I also have to examine issues with printing. So I have tried to install my printer, a Canon pixma ip 4600. When I started the CUPS Printer Wizard Dillo came up with http://localhost: 631/, it said contacting host..., but nothing happened. I thought CUPS may be missing in the barebone and installed it from PPM, successfully. But to no avail, it was all the same.

So how to get CUPS running?

In hope for advice - dellus

edited: removed request for help to get the appimage to run in full fossapup , but kept the question on how to get CUPS running in fossapup bare, as there already have been contributions for this here.

Last edited by dellus on Fri Apr 01, 2022 4:02 pm, edited 2 times in total.
User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: fossapup barebone cups

Post by Phoenix »

Question/Checklist:
Driver for printer/communicating with it?
Correct utility to setup? (It's also possible to setup via CUPS manually, for example you happen to have a very very old printer and you're using a parallel-USB connection)
Also that port is what CUPS uses meaning the daemon needs to be up and running. To verify this, run htop and look for cups.

Regarding Qt and AppImages, disappointingly the library path is not always set correctly, so when the AppImage is run it will most likely pick up the Qt libraries already present, rather than the one bundled.

IRC: firepup | Time to hack Puppy!

williams2
Posts: 1071
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: fossapup barebone cups

Post by williams2 »

When I started the CUPS Printer Wizard Dillo came up with http://localhost: 631/, it said contacting host.

If the url in the quote was copy/pasted,
then there is a space between localhost: and 631/
which will not work.

So how to get CUPS running?

You can see if cups is running by pasting in a terminal this:

Code: Select all

ps|grep [c]ups
User avatar
bigpup
Moderator
Posts: 7593
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1038 times
Been thanked: 1692 times

Re: LibreCAD in Fossapup64 or CUPS in Fossapup barebone?

Post by bigpup »

dellus,

You need to make two separate topics.

Keep this one about Fossapup64 9.5 and Librecad.

Make a new topic about Fossapup barebone and Cups.

Edit the first post to reflect this change in subjects.

Please help you and all of us.
It is hard to discuss two different issues in one topic.
Especially about two different Puppy versions!

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: LibreCAD in Fossapup64 or CUPS in Fossapup barebone?

Post by Phoenix »

Correction to my eariler post: It is cupsd not cups

IRC: firepup | Time to hack Puppy!

dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

Re: CUPS in Fossapup barebone

Post by dellus »

@ williams2: there is no space localhost: and 631/ ,mistyping by me.
ps|grep ups brings up nothing, ps|grep cups reports: 2227 root 0:00 grep cups

@ Phoenix: Driver for printer/communicating with it? When I install CUPS and the printer in Fossapup Full (it works there), it is cups_2.3.1 and gutenprint 5.2.13.
Correct utility to setup? I am not a coder. I have installed CUPS from PPM, but it doesn't respond.
When I run htop I can't see anything of cups.

It is cupsd not cups: Where to apply? I can't find the quote in your earlier post.

Thanks - dellus

williams2
Posts: 1071
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: CUPS in Fossapup barebone

Post by williams2 »

In BionibPup64, cups was started like this:

/usr/sbin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf

You could try pasting that in a terminal, to see if it works
and to see if there are any error messages.

I think, in BionicPup64, cups is started by executing cups_shell

dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

Re: CUPS in Fossapup barebone

Post by dellus »

"/usr/sbin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf" didn't bring up anything.

"cups_shell" spat out this:
root# cups_shell

(process:7866): Gtk-WARNING **: 21:10:29.219: Locale not supported by C library.
Using the fallback 'C' locale.
* Starting Common Unix Printing System cupsd [fail]
paths: Cannot open file '/root/.dillo/dillorc': No such file or directory
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/root/.dillo/keysrc': No such file or directory
paths: Using /etc/dillo/keysrc
paths: Cannot open file '/root/.dillo/domainrc': No such file or directory
paths: Using /etc/dillo/domainrc
Domain: Default accept.
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred cursive font "URW Chancery L" not found.
Nav_open_url: new url='http://localhost:631/'
Dns_server [0]: localhost is 127.0.0.1
Connecting to 127.0.0.1

I use German locale in Fossa bare. I didn't go through the full list to select when setting it up, just typed "de". Could this be the reason?

williams2
Posts: 1071
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: CUPS in Fossapup barebone

Post by williams2 »

"/usr/sbin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf" didn't bring up anything

That might mean that the cups daemon is working properly, because there are no error messages.

You need to make sure there are not multiple instances of the cups daemon running, at the same time, which can cause cups to not work properly.

For example,

Code: Select all

killall cupsd
cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf

Starting Common Unix Printing System cupsd [fail]

This says the cups daemon did not start, so cups is not running.

(process:7866): Gtk-WARNING **: 21:10:29.219: Locale not supported by C library.
Using the fallback 'C' locale.

LANG=C is a basic English locale. cups should run using the C locale.

You probably want to set the locale to de_DE (Germany German)
or de_AT (Austria)
or de_BE (Belgium)
or de_CH (Swiss)

The locales are in /usr/share/i18n/locales/

like this LANG=de_DE cups_shell

Basically, cups_shell tries to start the cups daemon, but fails.
Then it tries to connect to cups using dillo.
Which doesn't work because cups didn't start running.

The error messages from dillo are not important.

After you try to start cups, like this:
cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
can you connect to the daemon, like this:

dillo http://127.0.0.1:631

Does ps|grep cupsd show that cupsd is running?

dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

Re: CUPS in Fossapup barebone

Post by dellus »

I tried all the steps you suggested, but no success.
From the terminal:

root# killall cupsd
killall: cupsd: no process killed
root# killall cupsd
killall: cupsd: no process killed
root# cupsd -C /etc/cupsd.conf -s /etc/cups/cups-files.conf
root# LANG=de_DE@euro cups_shell

(process:7067): Gtk-WARNING **: 23:47:17.817: Locale not supported by C library.
Using the fallback 'C' locale.
* Starting Common Unix Printing System cupsd [fail]
paths: Cannot open file '/root/.dillo/dillorc': No such file or directory
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/root/.dillo/keysrc': No such file or directory
paths: Using /etc/dillo/keysrc
paths: Cannot open file '/root/.dillo/domainrc': No such file or directory
paths: Using /etc/dillo/domainrc
Domain: Default accept.
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred cursive font "URW Chancery L" not found.
Nav_open_url: new url='http://localhost:631/'
Dns_server [0]: localhost is 127.0.0.1
Connecting to 127.0.0.1
** WARNING **: IO_write, closing with pending data not sent: "GET / HTTP/1.1\x0D..."
Dillo: normal exit!
root# cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
root# ps|grep cupsd
7702 root 0:00 grep cupsd
root# dillo http://127.0.0.1:631
paths: Cannot open file '/root/.dillo/dillorc': No such file or directory
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/root/.dillo/keysrc': No such file or directory
paths: Using /etc/dillo/keysrc
paths: Cannot open file '/root/.dillo/domainrc': No such file or directory
paths: Using /etc/dillo/domainrc
Domain: Default accept.
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred cursive font "URW Chancery L" not found.
Nav_open_url: new url='http://127.0.0.1:631'
Dns_server [0]: 127.0.0.1 is 127.0.0.1
Connecting to 127.0.0.1
ps|grep cupsd
** WARNING **: IO_write, closing with pending data not sent: "GET / HTTP/1.1\x0D..."
Dillo: normal exit!
root# ps|grep cupsd
8206 root 0:00 grep cupsd
root#

I give up for today, it's midnight here.

Thanks - dellus

williams2
Posts: 1071
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: CUPS in Fossapup barebone

Post by williams2 »

I booted FossaPup64 without the adrv.sfs

As the error messages are telling you, cupsd is not there.
cupsd is not installed.

Installing cups to a stripped down Linux OS can be hard work.
It may not be worth it.

Dillo seems to work (I did not do any extensive tests.)

dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

Re: CUPS in Fossapup barebone

Post by dellus »

williams2, many thanks for your efforts. Now I at least know what is the reason.
I will look for an other 64bit Puppy which runs the LibreCAD appimage and provides a working CUPS.
If this fails I might also try to get cupsd installed.

Bye - dellus

dellus
Posts: 57
Joined: Sat Nov 14, 2020 9:15 pm
Has thanked: 4 times
Been thanked: 7 times

Re: CUPS in Fossapup barebone

Post by dellus »

cupsd not installed? When I installed CUPS from ppm the package cups-daemon_2.3.1 was included. Isn't that cupsd?

Post Reply

Return to “Fossapup64”