CUPS

From Indie IT Wiki
Revision as of 10:40, 24 August 2015 by imported>Indieit (→‎Accessing The Web Interface)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Ricoh / Nashuatec MP C4000

http://www.ricoh-support.com/enduser/support/supporturl.asp?url=https://www.my-ricoh.com/enduser/AD3063EB-90E2-4BC7-A6DC-ACB1547D9655/brand/BF120732-CE83-453E-AAEE-7DAC0A646E6F/language/9f50f866-33ee-4584-be51-5ba95d44734f

Canon iRC2380 Save Department ID Printing Job Accounting Options

File > Print > Under Presets > Copies & Pages > Special Features > Settings > Department ID > untick Confirm

https://discussions.apple.com/thread/3584784?start=0&tstart=0

cups_page_log_rsync

#!/bin/bash
#
# script to join all the cups page log files together then rsync a copy to the server
#
HOSTNAME=(`/bin/hostname`)
> /root/page_log_$HOSTNAME
if [ -f /var/log/cups/page_log.1.gz ]; then
   zcat /var/log/cups/page_log*.gz >> /root/page_log_$HOSTNAME
fi
cat /var/log/cups/page_log >> /root/page_log_$HOSTNAME
rsync -a /root/page_log_$HOSTNAME server.domain.com::cups-page-logs

Save it in /etc/init.d then follow the instructions on how to run a script on powerup or shutdown on this page.

HOWTO:

RESTART

sudo service cups restart

ACCESS THE WEB INTERFACE

In a web browser of your choice:

http://localhost:631

your.ip.address.here:631

Adding Admin User

lppasswd -a yourusername
/etc/init.d/cupsd restart

Changing The Page Log Format

Edit the file /etc/cups/cupsd.conf...

Default

PageLogFormat %p %j %u %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}

To work wiith CUPS Page Log Analyzer

PageLogFormat %p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}

Migrating CUPS Configuration To New Install

CUPS configuration is stored in /etc/cups directory, all that is required is to copy /etc/cups to a new computer. Open terminal and type the commands on old Linux computer:

tar -cvzf /tmp/cups-$(hostname).tar.gz /etc/cups

Copy /tmp/cups* to new system using SCP or use USB pen driver:

scp /tmp/cups* new.linux.server.com:/tmp

On the new system and type the following commands:

mv /etc/cups /etc/cups.backup
cd /
tar -zcvf /tmp/cups*

Restart the cups service:

/etc/init.d/cupsys restart

Software Repository for Ubuntu

See here for details.

Top Of Page Missing/Not Printing

I was experiencing this issue with my DCP-560CN which was consistently missing off the first inch or so of anything it was asked to print. Some software would offend worse than others, for instance Evince would print less of a page than Foxit Reader. One solution looked at was to turn off 'Scale to fit' found under the printers 'Job Options', however mine was already disabled and enabling it on actually helped!

I decided to see what files there were relating to my printer just by searching on 'Brother' and then opening up any files bearing the actual printer model. Within these files I would then look for anything relating to the page size, finally I came across the following:

/usr/Brother/Printer/dcp560cn/inf/brdcp560cnrc

The seventh line down is 'PaperType=' and was set to 'Letter' instead of 'A4', changing the setting seems to have cured my printing issues. To change the settings:

Disable CUPS:

Linux Terminal:~$

cupsdisable

sudo gedit /usr/Brother/Printer/dcp560cn/inf/brdcp560cnrc

Your file should look similar to this:

[DCP560CN]
Media=Plain
Resolution=600
RResolution=Normal
BiDirPrint=ON
MirrorPrint=OFF
PaperType=Letter
PaperThick=Regular
PaperSource=AUTO
Copies=1
ColorOrMono=Color
Collate=OFF
Document=Photo
ColorMatch=Natural
HalfTone=Diffusion
ColorEnhance=OFF
SlowDrying=OFF
Brightness=0
Contrast=0
RedKey=0
GreenKey=0
BlueKey=0
Language=us

Edit the 'PaperType=' line to match the paper size you are using.

Finally restart CUPS

Linux Terminal:~$

cupsenable