Epson XP-245 working by wireless on Fossa64 9.5 but CUPS not storing printer defaults

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
k1e3w5
Posts: 43
Joined: Thu Mar 02, 2023 8:52 pm
Has thanked: 1 time
Been thanked: 1 time

Epson XP-245 working by wireless on Fossa64 9.5 but CUPS not storing printer defaults

Post by k1e3w5 »

frugal installed
Fossapup64 9.5 Linux 5.4.53
on an old Dell dimension 5150

Epson XP-245 working by wireless printing but CUPS is not storing my printer default changes from CUPS-PDF to the XP-245 and from letter paper size to to A4. So I have to change these every time I print. Any ideas?

On my Linux Mint 18.3 Sylvia, CUPS all works and saves my default changes as A4 and as the Epson XP-245 printer.

Screenshots of CUPS defaults from Linux Mint 18.3 working as I want it to on Fossa :

Attachments
Screenshot_2023-03-10_09-23-13.png
Screenshot_2023-03-10_09-23-13.png (15.86 KiB) Viewed 271 times
Screenshot_2023-03-10_09-22-33.png
Screenshot_2023-03-10_09-22-33.png (42.28 KiB) Viewed 271 times
Screenshot_2023-03-10_09-20-16.png
Screenshot_2023-03-10_09-20-16.png (72 KiB) Viewed 271 times
ozsouth
Posts: 1570
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: Epson XP-245 working by wireless on Fossa64 9.5 but CUPS not storing printer defaults

Post by ozsouth »

@k1e3w5 - regarding A4 - an old fix was to make a text file in /etc named papersize. All it contained was a4 (yes, lowercase a). There is also a printer config file in libreoffice's share subfolder. Maybe psprint.conf?

k1e3w5
Posts: 43
Joined: Thu Mar 02, 2023 8:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Epson XP-245 working by wireless on Fossa64 9.5 but CUPS not storing printer defaults

Post by k1e3w5 »

ozsouth wrote: Sat Mar 11, 2023 11:33 am

@k1e3w5 - regarding A4 - an old fix was to make a text file in /etc named papersize. All it contained was a4 (yes, lowercase a). There is also a printer config file in libreoffice's share subfolder. Maybe psprint.conf?

:thumbup: Brilliant .... I'm getting there. papersize text file didnt work but in psprint.conf it had

; PPD_PageSize=A4

capital letter, so I changed it to small letter a4 and it now stores A4 as default. :thumbup:

Now getting it to store the Epson instead of CUPS-PDF, I'm not sure. I tried changing DefaultPrinter=1 to 2 and then 3 but it didn't work. The lines referring to printer are :

[Generic Printer]
; for every printer a group with at least the keys
; "Printer" and "Command" is required

; Printer: contains the base name of the PPD and the Printer name separated by /
Printer=SGENPRT/Generic Printer

; DefaultPrinter: marks the default printer
DefaultPrinter=1

:? I would have thought that changing it to 2 should work, but it stay as CUPS-PDF

Where is the setting that makes CUP-PDF the chosen default?

k1e3w5
Posts: 43
Joined: Thu Mar 02, 2023 8:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Epson XP-245 working by wireless on Fossa64 9.5 but CUPS not storing printer defaults

Post by k1e3w5 »

I found 2 other CUPS files, are they relevant? And there is also /usr/bin/lpoptions ... but I don't know how to edit what is in there.

/usr/share/cups/cups-files.conf.default

#
# File/directory/user/group configuration file for the CUPS scheduler.
# See "man cups-files.conf" for a complete description of this file.
#

# List of events that are considered fatal errors for the scheduler...
#FatalErrors config

# Do we call fsync() after writing configuration or status files?
#SyncOnClose Yes

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User lp
#Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup lpadmin

# User that is substituted for unauthenticated (remote) root accesses...
#RemoteRoot remroot

# Do we allow file: device URIs other than to /dev/null?
#FileDevice No

# Permissions for configuration and log files...
#ConfigFilePerm 0640
#LogFilePerm 00640

# Location of the file logging all access to the scheduler; may be the name
# "syslog". If not an absolute path, the value of ServerRoot is used as the
# root directory. Also see the "AccessLogLevel" directive in cupsd.conf.
AccessLog /var/log/cups/access_log

# Location of cache files used by the scheduler...
#CacheDir /var/cache/cups

# Location of data files used by the scheduler...
#DataDir /usr/share/cups

# Location of the static web content served by the scheduler...
#DocumentRoot /usr/share/cups/doc-root

# Location of the file logging all messages produced by the scheduler and any
# helper programs; may be the name "syslog". If not an absolute path, the value
# of ServerRoot is used as the root directory. Also see the "LogLevel"
# directive in cupsd.conf.
ErrorLog /var/log/cups/error_log

# Location of fonts used by older print filters...
#FontPath /usr/share/cups/fonts

# Location of LPD configuration
#LPDConfigFile

# Location of the file logging all pages printed by the scheduler and any
# helper programs; may be the name "syslog". If not an absolute path, the value
# of ServerRoot is used as the root directory. Also see the "PageLogFormat"
# directive in cupsd.conf.
PageLog /var/log/cups/page_log

# Location of the file listing all of the local printers...
#Printcap /run/cups/printcap

# Format of the Printcap file...
#PrintcapFormat bsd
#PrintcapFormat plist
#PrintcapFormat solaris

# Location of all spool files...
#RequestRoot /var/spool/cups

# Location of helper programs...
#ServerBin /usr/lib/cups

# SSL/TLS keychain for the scheduler...
#ServerKeychain ssl

# Location of other configuration files...
#ServerRoot /etc/cups

# Location of Samba configuration file...
#SMBConfigFile

# Location of scheduler state files...
#StateDir /run/cups

# Location of scheduler/helper temporary files. This directory is emptied on
# scheduler startup and cannot be one of the standard (public) temporary
# directory locations for security reasons...
#TempDir /var/spool/cups/tmp

/etc/cups/cupsd.conf

#
# ": cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
# playdayz advised these two... 110827 pemasu...
# SystemGroup root
SystemGroup lpadmin

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server... 110827 pemasu comment-out...
#<Location />
# Order deny,allow
#</Location>

# Restrict access to the admin pages... 110827 pemasu comment-out...
#<Location /admin>
# Order deny,allow
#</Location>

# Restrict access to configuration files... 110827 pemasu comment-out Require user...
<Location /admin/conf>
AuthType None
#Require user @SYSTEM
Order deny,allow
</Location>

# Set the default printer/job policies...
<Policy default>
<Limit All>
Order deny,allow
</Limit>
</Policy>

when in a terminal, I run /usr/bin/lpoptions I get this

copies=1 device-uri=pdf-writer:/export/share/pdf/ finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info=CUPS-PDF printer-is-accepting-jobs=true printer-is-shared=true printer-is-temporary=false printer-location printer-make-and-model=Ghostscript printer-state=3 printer-state-change-time=1678355416 printer-state-reasons=none printer-type=8581196 printer-uri-supported=ipp://localhost:631/printers/CUPS-PDF
Script completed hit RETURN to close window.

https://www.cups.org/doc/man-lpoptions.html

Post Reply

Return to “Users”