WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tinycore Parallel port printing problem  (Read 19300 times)

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #15 on: May 02, 2013, 11:48:43 AM »
one interesting fact which i noticed between tinycore os and ther os i which printer is working...

the output of ls -l /dev/lp0 in tiny core is
crw-rw----   1  root    staff     6,   0 May   2  21:00  /dev/lp0

Whereas in other OS
crw-rw----   1  root    lp     6,   0 May   2  21:00  /dev/lp0

Does staff/lp  makes any difference while accessing the port...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #16 on: May 02, 2013, 12:04:00 PM »
Hi Shyam24689
Quote
but the command prompt appeared to get hanged without giving the next command cursor
That sounds like the printer is not acknowledging that it received data. Power the printer down and back up and make
sure the the online light is lit. Then execute:
Code: [Select]
echo -ne \\f > /dev/lp0and see if you get a form feed.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #17 on: May 02, 2013, 12:14:19 PM »
Hi Shyam24689
Quote
Does staff/lp  makes any difference while accessing the port...
Staff is the group that lp0 belongs to. As user tc, you also belong to that group and have permission to access it.
By any chance, do you have more than one parallel port?

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #18 on: May 02, 2013, 12:18:35 PM »
Yesss i received a form feed.... :) but why is it not accepting text file through text2lp0

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #19 on: May 02, 2013, 12:23:58 PM »
Hi Shyam24689
If you enter:
Code: [Select]
text2lp0 .xsessiondoes it print anything?

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #20 on: May 02, 2013, 12:35:08 PM »
No i dont have any other parallel port.....

text2lp0 .xsession din't worked it hangs the command line

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #21 on: May 02, 2013, 12:40:38 PM »
Hi Shyam24689
OK, how about:
Code: [Select]
cat .xsession > /dev/lp0
echo -ne \\f > /dev/lp0

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #22 on: May 02, 2013, 02:44:02 PM »
It hangs... even for cat .xsession > /dev/lp0

aus9

  • Guest
Re: Tinycore Parallel port printing problem
« Reply #23 on: May 02, 2013, 08:11:11 PM »
Hi

If you like to try something a bit wilder?

load cups,  gutenprint and ghostscript......you may have to download these monsters first

create root passwd as per info file  $sudo passwd

http://localhost:631/admin  <<--- go to this page in web browser and click on add printers to see root login box

input root and your new passwd......its saved for this session only so if it does not work....you have no persistence for cups

after a short pause.....it may offer some printer makers

choose Epson 24 pin.......click add printer and then save the defaults

here is a peek of the PPD  in a code box for display purposes only......your will differ as I am testing 1.6.2 vesion
Code: [Select]
*PPD-Adobe: "4.3"
*%%%% PPD file for 24-Pin Series with CUPS.
*%%%% Created by the CUPS PPD Compiler CUPS v1.6.2.
*% Copyright 2007-2012 by Apple Inc.
*% Copyright 1997-2007 by Easy Software Products.
*%
*% These coded instructions, statements, and computer programs are the
*% property of Apple Inc. and are protected by Federal copyright
*% law.  Distribution and use rights are outlined in the file "LICENSE.txt"
*% which should have been included with this file.  If this file is
*% file is missing or damaged, see the license at "http://www.cups.org/".
*FormatVersion: "4.3"
*FileVersion: "1.5"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "epson24.ppd"
*Product: "(24-Pin Series)"
*Manufacturer: "Epson"
*ModelName: "Epson 24-Pin Series"
*ShortNickName: "Epson 24-Pin Series"
*NickName: "Epson 24-Pin Series"
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42
*% Driver-defined attributes...
*cupsVersion: 1.6
*cupsModelNumber: 1
*cupsManualCopies: True
*cupsFilter: "application/vnd.cups-raster 50 rastertoepson"
*cupsLanguages: "en"
*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize: A4
*PageSize Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageSize Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
*PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageSize FanFoldUS/Fanfold US: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize
*OpenUI *PageRegion/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion: A4
*PageRegion Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageRegion Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
*PageRegion A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageRegion FanFoldUS/Fanfold US: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion
*DefaultImageableArea: A4
*ImageableArea Letter/US Letter: "18 18 594 774"
*ImageableArea Legal/US Legal: "18 18 594 990"
*ImageableArea A4/A4: "18 18 577 824"
*ImageableArea FanFoldUS/Fanfold US: "18 18 1053 774"
*DefaultPaperDimension: A4
*PaperDimension Letter/US Letter: "612 792"
*PaperDimension Legal/US Legal: "612 1008"
*PaperDimension A4/A4: "595 842"
*PaperDimension FanFoldUS/Fanfold US: "1071 792"
*MaxMediaWidth: "1080"
*MaxMediaHeight: "86400"
*HWMargins: 18 18 18 18
*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
*ParamCustomPageSize Width: 1 points 36 1080
*ParamCustomPageSize Height: 2 points 36 86400
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 0 0
*OpenUI *Resolution/Resolution: PickOne
*OrderDependency: 10 AnySetup *Resolution
*DefaultResolution: 120x60dpi
*Resolution 60dpi/60dpi: "<</HWResolution[60 60]/cupsBitsPerColor 1/cupsRowCount 8/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 120x60dpi/120x60dpi: "<</HWResolution[120 60]/cupsBitsPerColor 1/cupsRowCount 8/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 180dpi/180dpi: "<</HWResolution[180 180]/cupsBitsPerColor 1/cupsRowCount 24/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 360x180dpi/360x180dpi: "<</HWResolution[360 180]/cupsBitsPerColor 1/cupsRowCount 24/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 360dpi/360dpi: "<</HWResolution[360 360]/cupsBitsPerColor 1/cupsRowCount 48/cupsRowFeed 0/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*CloseUI: *Resolution
*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(1.05)" Standard ROM
*Font AvantGarde-BookOblique: Standard "(1.05)" Standard ROM
*Font AvantGarde-Demi: Standard "(1.05)" Standard ROM
*Font AvantGarde-DemiOblique: Standard "(1.05)" Standard ROM
*Font Bookman-Demi: Standard "(1.05)" Standard ROM
*Font Bookman-DemiItalic: Standard "(1.05)" Standard ROM
*Font Bookman-Light: Standard "(1.05)" Standard ROM
*Font Bookman-LightItalic: Standard "(1.05)" Standard ROM
*Font Courier: Standard "(1.05)" Standard ROM
*Font Courier-Bold: Standard "(1.05)" Standard ROM
*Font Courier-BoldOblique: Standard "(1.05)" Standard ROM
*Font Courier-Oblique: Standard "(1.05)" Standard ROM
*Font Helvetica: Standard "(1.05)" Standard ROM
*Font Helvetica-Bold: Standard "(1.05)" Standard ROM
*Font Helvetica-BoldOblique: Standard "(1.05)" Standard ROM
*Font Helvetica-Narrow: Standard "(1.05)" Standard ROM
*Font Helvetica-Narrow-Bold: Standard "(1.05)" Standard ROM
*Font Helvetica-Narrow-BoldOblique: Standard "(1.05)" Standard ROM
*Font Helvetica-Narrow-Oblique: Standard "(1.05)" Standard ROM
*Font Helvetica-Oblique: Standard "(1.05)" Standard ROM
*Font NewCenturySchlbk-Bold: Standard "(1.05)" Standard ROM
*Font NewCenturySchlbk-BoldItalic: Standard "(1.05)" Standard ROM
*Font NewCenturySchlbk-Italic: Standard "(1.05)" Standard ROM
*Font NewCenturySchlbk-Roman: Standard "(1.05)" Standard ROM
*Font Palatino-Bold: Standard "(1.05)" Standard ROM
*Font Palatino-BoldItalic: Standard "(1.05)" Standard ROM
*Font Palatino-Italic: Standard "(1.05)" Standard ROM
*Font Palatino-Roman: Standard "(1.05)" Standard ROM
*Font Symbol: Special "(001.005)" Special ROM
*Font Times-Bold: Standard "(1.05)" Standard ROM
*Font Times-BoldItalic: Standard "(1.05)" Standard ROM
*Font Times-Italic: Standard "(1.05)" Standard ROM
*Font Times-Roman: Standard "(1.05)" Standard ROM
*Font ZapfChancery-MediumItalic: Standard "(1.05)" Standard ROM
*Font ZapfDingbats: Special "(001.005)" Special ROM
*% End of epson24.ppd, 05814 bytes.

Note I am in aussie land with locale set to A4 paper......if you have your locale set, paper default will differ

then see if it prints

if not go back to admin page and Edit the config to almost top line to
LogLevel debug

Next saving it......will restart cups

try to print and if no good.....post your debug file if you feel like it

###########

Much harder is to create your own PPD using ppdc  but I am not sure it was designed for 24 pins

good luck
« Last Edit: May 02, 2013, 08:15:03 PM by aus9 »

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #24 on: May 02, 2013, 09:36:28 PM »
Still no luck  :(

Error_log

Code: [Select]
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /printers/Test HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] [CGI] argv[0] = "/usr/local/lib/cups/cgi-bin/printers.cgi"
D [03/May/2013:07:02:08 +0000] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[1] = "CUPS_DATADIR=/usr/local/share/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[2] = "CUPS_DOCROOT=/usr/local/share/doc/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[3] = "CUPS_FONTPATH=/usr/local/share/ghostscript/fonts"
D [03/May/2013:07:02:08 +0000] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/local/lib/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[6] = "CUPS_SERVERROOT=/usr/local/etc/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [03/May/2013:07:02:08 +0000] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [03/May/2013:07:02:08 +0000] [CGI] envp[9] = "PATH=/usr/local/lib/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [03/May/2013:07:02:08 +0000] [CGI] envp[10] = "SERVER_ADMIN=root@box"
D [03/May/2013:07:02:08 +0000] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.8"
D [03/May/2013:07:02:08 +0000] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [03/May/2013:07:02:08 +0000] [CGI] envp[13] = "USER=root"
D [03/May/2013:07:02:08 +0000] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [03/May/2013:07:02:08 +0000] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [03/May/2013:07:02:08 +0000] [CGI] envp[16] = "IPP_PORT=631"
D [03/May/2013:07:02:08 +0000] [CGI] envp[17] = "AUTH_TYPE=Basic"
D [03/May/2013:07:02:08 +0000] [CGI] envp[18] = "LANG=en_US.UTF8"
D [03/May/2013:07:02:08 +0000] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [03/May/2013:07:02:08 +0000] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [03/May/2013:07:02:08 +0000] [CGI] envp[21] = "SERVER_NAME=localhost"
D [03/May/2013:07:02:08 +0000] [CGI] envp[22] = "SERVER_PORT=631"
D [03/May/2013:07:02:08 +0000] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [03/May/2013:07:02:08 +0000] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [03/May/2013:07:02:08 +0000] [CGI] envp[25] = "SCRIPT_NAME=/printers/Test"
D [03/May/2013:07:02:08 +0000] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/local/share/doc/cups/printers/Test"
D [03/May/2013:07:02:08 +0000] [CGI] envp[27] = "PATH_INFO=/Test"
D [03/May/2013:07:02:08 +0000] [CGI] envp[28] = "REMOTE_USER=root"
D [03/May/2013:07:02:08 +0000] [CGI] envp[29] = "SERVER_PROTOCOL=HTTP/1.1"
D [03/May/2013:07:02:08 +0000] [CGI] envp[30] = "HTTP_COOKIE=org.cups.sid=29e9320bd97f1e966030c83e05c7466a"
D [03/May/2013:07:02:08 +0000] [CGI] envp[31] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0"
D [03/May/2013:07:02:08 +0000] [CGI] envp[32] = "REQUEST_METHOD=GET"
D [03/May/2013:07:02:08 +0000] [CGI] envp[33] = "QUERY_STRING="
D [03/May/2013:07:02:08 +0000] [CGI] Started /usr/local/lib/cups/cgi-bin/printers.cgi (PID 10849)
I [03/May/2013:07:02:08 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=10849)
D [03/May/2013:07:02:08 +0000] cupsdSendCommand: 9 file=12
D [03/May/2013:07:02:08 +0000] Report: clients=1
D [03/May/2013:07:02:08 +0000] Report: jobs=2
D [03/May/2013:07:02:08 +0000] Report: jobs-active=1
D [03/May/2013:07:02:08 +0000] Report: printers=2
D [03/May/2013:07:02:08 +0000] Report: printers-implicit=0
D [03/May/2013:07:02:08 +0000] Report: stringpool-string-count=507
D [03/May/2013:07:02:08 +0000] Report: stringpool-alloc-bytes=7656
D [03/May/2013:07:02:08 +0000] Report: stringpool-total-bytes=11064
D [03/May/2013:07:02:08 +0000] [CGI] org.cups.sid cookie is "29e9320bd97f1e966030c83e05c7466a"
D [03/May/2013:07:02:08 +0000] cupsdAcceptClient: 15 from localhost (Domain)
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 POST / HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: No authentication data provided.
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 1.1 CUPS-Get-Default 1
D [03/May/2013:07:02:08 +0000] CUPS-Get-Default
D [03/May/2013:07:02:08 +0000] CUPS-Get-Default client-error-not-found: No default printer
D [03/May/2013:07:02:08 +0000] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost
D [03/May/2013:07:02:08 +0000] [CGI] show_printer(http=0xb8593a58, printer="Test")
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 POST / HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: No authentication data provided.
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 1.1 Get-Printer-Attributes 1
D [03/May/2013:07:02:08 +0000] Get-Printer-Attributes ipp://localhost/printers/Test
D [03/May/2013:07:02:08 +0000] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/Test) from localhost
D [03/May/2013:07:02:08 +0000] Script header: Content-Type: text/html;charset=utf-8
D [03/May/2013:07:02:08 +0000] Script header:
D [03/May/2013:07:02:08 +0000] [CGI] Regular expression ".*Clean.*"
D [03/May/2013:07:02:08 +0000] [CGI] Regular expression ".*PrintSelfTestPage.*"
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 POST / HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: No authentication data provided.
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 1.1 Get-Jobs 1
D [03/May/2013:07:02:08 +0000] Get-Jobs ipp://localhost:631/printers/Test
D [03/May/2013:07:02:08 +0000] Returning IPP successful-ok for Get-Jobs (ipp://localhost:631/printers/Test) from localhost
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 15 WAITING Closing on EOF
D [03/May/2013:07:02:08 +0000] cupsdCloseClient: 15
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:08 +0000] PID 10849 (/usr/local/lib/cups/cgi-bin/printers.cgi) exited with no errors.
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /cups.css HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /images/left.gif HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /images/right.gif HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /images/unsel.gif HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:08 +0000] cupsdReadClient: 9 GET /images/sel.gif HTTP/1.1
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:08 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:08 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:10 +0000] cupsdReadClient: 9 GET /admin HTTP/1.1
D [03/May/2013:07:02:10 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:10 +0000] cupsdAuthorize: Authorized as root using Basic
D [03/May/2013:07:02:10 +0000] [CGI] argv[0] = "/usr/local/lib/cups/cgi-bin/admin.cgi"
D [03/May/2013:07:02:10 +0000] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[1] = "CUPS_DATADIR=/usr/local/share/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[2] = "CUPS_DOCROOT=/usr/local/share/doc/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[3] = "CUPS_FONTPATH=/usr/local/share/ghostscript/fonts"
D [03/May/2013:07:02:10 +0000] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/local/lib/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[6] = "CUPS_SERVERROOT=/usr/local/etc/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [03/May/2013:07:02:10 +0000] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [03/May/2013:07:02:10 +0000] [CGI] envp[9] = "PATH=/usr/local/lib/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [03/May/2013:07:02:10 +0000] [CGI] envp[10] = "SERVER_ADMIN=root@box"
D [03/May/2013:07:02:10 +0000] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.8"
D [03/May/2013:07:02:10 +0000] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [03/May/2013:07:02:10 +0000] [CGI] envp[13] = "USER=root"
D [03/May/2013:07:02:10 +0000] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [03/May/2013:07:02:10 +0000] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [03/May/2013:07:02:10 +0000] [CGI] envp[16] = "IPP_PORT=631"
D [03/May/2013:07:02:10 +0000] [CGI] envp[17] = "AUTH_TYPE=Basic"
D [03/May/2013:07:02:10 +0000] [CGI] envp[18] = "LANG=en_US.UTF8"
D [03/May/2013:07:02:10 +0000] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [03/May/2013:07:02:10 +0000] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [03/May/2013:07:02:10 +0000] [CGI] envp[21] = "SERVER_NAME=localhost"
D [03/May/2013:07:02:10 +0000] [CGI] envp[22] = "SERVER_PORT=631"
D [03/May/2013:07:02:10 +0000] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [03/May/2013:07:02:10 +0000] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [03/May/2013:07:02:10 +0000] [CGI] envp[25] = "SCRIPT_NAME=/admin"
D [03/May/2013:07:02:10 +0000] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/local/share/doc/cups/admin"
D [03/May/2013:07:02:10 +0000] [CGI] envp[27] = "REMOTE_USER=root"
D [03/May/2013:07:02:10 +0000] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [03/May/2013:07:02:10 +0000] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=29e9320bd97f1e966030c83e05c7466a"
D [03/May/2013:07:02:10 +0000] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0"
D [03/May/2013:07:02:10 +0000] [CGI] envp[31] = "HTTP_REFERER=http://localhost:631/printers/Test"
D [03/May/2013:07:02:10 +0000] [CGI] envp[32] = "REQUEST_METHOD=GET"
D [03/May/2013:07:02:10 +0000] [CGI] envp[33] = "QUERY_STRING="
D [03/May/2013:07:02:10 +0000] [CGI] Started /usr/local/lib/cups/cgi-bin/admin.cgi (PID 10850)
I [03/May/2013:07:02:10 +0000] Started "/usr/local/lib/cups/cgi-bin/admin.cgi" (pid=10850)
D [03/May/2013:07:02:10 +0000] cupsdSendCommand: 9 file=12
D [03/May/2013:07:02:10 +0000] [CGI] admin.cgi started...
D [03/May/2013:07:02:10 +0000] cupsdAcceptClient: 15 from localhost (Domain)
D [03/May/2013:07:02:10 +0000] [CGI] http=0xb81f9948
D [03/May/2013:07:02:10 +0000] [CGI] org.cups.sid cookie is "29e9320bd97f1e966030c83e05c7466a"
D [03/May/2013:07:02:10 +0000] [CGI] No form data, showing main menu...
E [03/May/2013:07:02:10 +0000] [CGI] smbclient not found!
E [03/May/2013:07:02:10 +0000] [CGI] rpcclient not found!
D [03/May/2013:07:02:10 +0000] cupsdReadClient: 15 POST / HTTP/1.1
D [03/May/2013:07:02:10 +0000] cupsdAuthorize: No authentication data provided.
D [03/May/2013:07:02:10 +0000] cupsdReadClient: 15 1.1 Get-Subscriptions 1
D [03/May/2013:07:02:10 +0000] Get-Subscriptions ipp://localhost/
D [03/May/2013:07:02:10 +0000] Get-Subscriptions client-error-not-found: No subscriptions found.
D [03/May/2013:07:02:10 +0000] Returning IPP client-error-not-found for Get-Subscriptions (ipp://localhost/) from localhost
D [03/May/2013:07:02:10 +0000] Script header: Content-Type: text/html;charset=utf-8
D [03/May/2013:07:02:10 +0000] Script header:
D [03/May/2013:07:02:10 +0000] cupsdReadClient: 15 WAITING Closing on EOF
D [03/May/2013:07:02:10 +0000] cupsdCloseClient: 15
D [03/May/2013:07:02:10 +0000] cupsdSetBusyState: Printing jobs and dirty files
D [03/May/2013:07:02:10 +0000] PID 10850 (/usr/local/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [03/May/2013:07:02:13 +0000] cupsdReadClient: 9 GET /admin/log/error_log HTTP/1.1
D [03/May/2013:07:02:13 +0000] cupsdSetBusyState: Active clients, printing jobs, and dirty files
D [03/May/2013:07:02:13 +0000] cupsdAuthorize: Authorized as root using Basic

    [EDIT]:  Added code tags.  Rich
« Last Edit: May 02, 2013, 10:20:11 PM by Rich »

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #25 on: May 02, 2013, 09:49:34 PM »
text2lp0 requires no drivers... what could be the reason if it is not working?

Should i change the system and try to install in other PC

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #26 on: May 02, 2013, 10:18:27 PM »
Hi Shyam24689
You've verified that the printer responds to a line feed with:
Code: [Select]
echo -ne \\f > /dev/lp0If you execute it twice, does it respond the second time?
If it does, try:
Code: [Select]
cat - /dev/lp0then type some text, press enter, and Ctrl Z. Did it print what you typed?

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #27 on: May 02, 2013, 10:25:22 PM »
Executing line feed twice or thrice responds every time..
But cat - /dev/lp0 "text"      Enter and ctrl Z gives no print...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Tinycore Parallel port printing problem
« Reply #28 on: May 02, 2013, 10:44:09 PM »
Hi Shyam24689
Maybe your printer wants a CR/LF sequence:
Code: [Select]
cp .xsession testfile
unix2dos testfile
cat testfile > /dev/lp0

Offline Shyam24689

  • Newbie
  • *
  • Posts: 25
  • Programmer
Re: Tinycore Parallel port printing problem
« Reply #29 on: May 02, 2013, 10:58:46 PM »
It hanged... then ctrl Z sudo echo -ne \\f > /dev/lp0 gives device or resource busy