DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lp
parport
parport_pc all built as modules and loaded
i downloaded the driver from samsung, but the print server is a headless machine with no X, so i couldn't run the gui installer. i just copied the ppd to /usr/share/cups/model (tried both ML-1740 and 1710), and some other "filter" file it was complaining about (ppmtospl2) to /usr/lib/cups/filter/, and with that configuration it says job completed, but nothing prints out (yes, there is paper in the printer ).
the error log said it couldn't parse the XML of /etc/linuxprint.cfg, which i didn't have, so i started over following this method for another samsung printer that someone posted on linuxprinting.org (changing the ppd name in the .cfg file, etc.):
Quote:
Set up the printer without Samsung's shit setup tool!
The setup-tool that Samsung had offered doesn't work on my Debian GNU/Linux Sarge.
But I have found a Way to setup the printer without it. It's even better to do
it this way:
get the driver package from the samsung website.
unpack it:
tar zxvf 20050425144636875_lpp-1.1.7-27-i386.tar.gz
Make a directory somwhere in the system:
mkdir /usr/local/samsung
Copy the ppd directory:
cp -R image/ppd /usr/local/samsung
The directory image/bin/Linux/x86/filters contains the various
proprietary "printer drivers"
For the CLP-500 you need only ppmtosplc and pscms
You have to copy them to /usr/local/samsung/filters
and symlink them into /usr/lib/cups/filter
this quirks seems to be needed by the drivers:
mkdir /usr/local/samsung/filters
cd image/bin/Linux/x86/filters
cp ppmtosplc pscms /usr/local/samsung/filters
cd /usr/local/samsung/filters
ln -s ppmtosplc pscms /usr/lib/cups/filter
Now you have to set up a config file /etc/linuxprint.cfg needed by ppmtosplc:
write in /etc/linuxprint.cfg this:
now it totally aborts the printing job, and besides something about needing fonts (?) there's nothing obvious that i can see in the error log. i'll post it in case i'm missing something:
Code:
I [04/Jun/2006:15:33:50 -0400] New printer 'printer' added by 'root'.
D [04/Jun/2006:15:33:50 -0400] ProcessIPPRequest: 7 status_code=0
D [04/Jun/2006:15:33:50 -0400] CloseClient: 7
D [04/Jun/2006:15:34:21 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4363
I [04/Jun/2006:15:34:21 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 3)
D [04/Jun/2006:15:34:21 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:21 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] CloseClient: 7
D [04/Jun/2006:15:34:23 -0400] ReadClient: 5 GET /printers/printer?op=print-test-pag e HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4364
I [04/Jun/2006:15:34:23 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 4)
D [04/Jun/2006:15:34:23 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:23 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:23 -0400] ReadClient: 7 POST /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] print_job: request file type is application/postscrip t.
D [04/Jun/2006:15:34:23 -0400] check_quotas: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] print_job: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] Adding default job-sheets values "none,none"...
I [04/Jun/2006:15:34:23 -0400] Adding start banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Adding end banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Job 4 queued on 'printer' by 'root'.
D [04/Jun/2006:15:34:23 -0400] Job 4 hold_until = 0
D [04/Jun/2006:15:34:23 -0400] StartJob(4, 0x80cc0b8)
D [04/Jun/2006:15:34:23 -0400] StartJob() id = 4, file = 0/1
D [04/Jun/2006:15:34:23 -0400] job-sheets=none,none
D [04/Jun/2006:15:34:23 -0400] banner_page = 0
D [04/Jun/2006:15:34:23 -0400] StartJob: argv = "printer","4","root","Test Page","1" ,"","/var/spool/cups/d00004-001"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/us r/bin"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[2]="USER=root"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[3]="CHARSET=utf-8"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[4]="LANG=en_US"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[5]="TZ=US/Eastern"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[6]="PPD=/etc/cups/ppd/printer.ppd"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[10]="CONTENT_TYPE=application/postscri pt"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[12]="PRINTER=printer"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fon ts"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[15]="CUPS_SERVER=localhost"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[16]="IPP_PORT=631"
D [04/Jun/2006:15:34:23 -0400] StartJob: statusfds = [ 9 10 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 -1 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ 12 14 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/pstops", 0xbf8c59 80, 0xbf8c4ef8, 11, 14, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/pstops (PID 4365) for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/ppmtospl2"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 15 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/ppmtospl2", 0xbf8 c5980, 0xbf8c4ef8, 12, 15, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/ppmtospl2 (PID 43 66) for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: backend = "/usr/lib/cups/backend/parallel"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ -1 12 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/backend/parallel", 0xbf8 c5980, 0xbf8c4ef8, 11, 12, 10)
I [04/Jun/2006:15:34:23 -0400] Started backend /usr/lib/cups/backend/parallel (PID 4 367) for job 4.
D [04/Jun/2006:15:34:23 -0400] ProcessIPPRequest: 7 status_code=0
E [04/Jun/2006:15:34:23 -0400] PID 4366 stopped with status 22!
D [04/Jun/2006:15:34:23 -0400] [Job 4] /usr/lib/cups/filter/ppmtospl2: Too many leve ls of symbolic links
D [04/Jun/2006:15:34:23 -0400] [Job 4] Page = 612x792; 12,12 to 600,780
D [04/Jun/2006:15:34:23 -0400] [Job 4] slowcollate=0, slowduplex=0, sloworder=0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BoundingBox: 0 0 612 792
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Pages: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%LanguageLevel: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentData: Clean7Bit
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentSuppliedResources: procset testpr int/1.1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentNeededResources: font Helvetica H elvetica-Bold Times-Roman
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Creator: Michael Sweet, Easy Software Pro ducts
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%CreationDate: May 11, 1999
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Title: Test Page
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndComments
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginResource procset testprint 1.1 0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndResource
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] pw = 587.0, pl = 767.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageLeft = 12.5, PageRight = 599.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageTop = 779.5, PageBottom = 12.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageWidth = 612.0, PageLength = 792.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EOF
D [04/Jun/2006:15:34:23 -0400] [Job 4] Saw EOF!
D [04/Jun/2006:15:34:23 -0400] UpdateJob: job 4, file 0 is complete.
D [04/Jun/2006:15:34:23 -0400] CancelJob: id = 4
D [04/Jun/2006:15:34:23 -0400] StopJob: id = 4, force = 0
D [04/Jun/2006:15:34:23 -0400] StopJob: printer state is 3
D [04/Jun/2006:15:34:23 -0400] CloseClient: 7
D [04/Jun/2006:15:34:25 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4368
I [04/Jun/2006:15:34:25 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 8)
D [04/Jun/2006:15:34:25 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:25 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:25 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] CloseClient: 7
D [04/Jun/2006:15:34:28 -0400] ReadClient: 5 GET /printers/printer?which_jobs=comple ted HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 4369
I [04/Jun/2006:15:34:28 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436 9)
D [04/Jun/2006:15:34:28 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:28 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:28 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] CloseClient: 7
[code]
i've read that a lot of people have this printer working even on debian, pretty much out of the box, so i don't know what i'm doing wrong. appreciate any help, thanks.
yep, that post by nathanbullock was the first one i followed. i tried apsfilter with the generic PS/gs driver, but also got no results. i'll try it again with samsunggdi. right now i'm rebuiding the kernel with the parallel port options built in instead of modules in case something is getting missed on boot. i notice the printer is also not powering down into powersaving mode, so maybe it's just not being detected as a /dev properly. will post back with update, thanks.
no luck with the samsunggdi. it's almost like the printer isn't even hooked up, but is just sitting there. i had this printer working perfectly in arch, slack, winxp, and win2k over the network, hooked up to winxp. now that it's on debian, it's just turning into a nightmare. i'm totally stumped.
this is what /dev/lp0 is listed as, does that look right?
It's difficult to fix problems remotely, but as we say here: "if you don't shoot you've always missed"
Are you sure that:
a) Cups is talking to the right port?
b) Cups is talking the same langauge as the printer understands? (Ghostscript and such)
c) the printer is powered (duh ) and all cables are ok and connected correctly?
You might want to try installing the printer remotely via Webmin. At least you've got a GUI to work on
On the "crw-rw----": that means that the owner (root) and group (most likely also root) have rights to read and write to that 'file' (Linux sees basicly everything as a file ) but nobody else has access. Dunno what that c means though...
GOT IT!!! man, what a hassle! i was getting that /etc/linuxprint.cfg error again, so i went back to trying the first method i quoted. this time i noticed an error about "too many levels of symbolic links" (huh? there was only one), so i removed the symlink and just put the actual ppmtospl2 file in the /usr/lib/cups/filter directory. success.
now i've to get it working in samba, that should be fun. </verbal irony>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.