The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH doesn't pick up user's project from /etc/project kurgan SUN Solaris 2 05-21-2008 09:52 AM
Who know this project? Osawa UNIX for Dummies Questions & Answers 5 09-08-2007 10:08 PM
First Project help arjunjag High Level Programming 6 07-16-2007 04:10 AM
project nrusimha UNIX for Dummies Questions & Answers 1 02-07-2006 03:51 AM
Project Help vk85 UNIX for Dummies Questions & Answers 2 05-15-2005 11:11 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
tn5250 project

Goodmorning all,

as in subject: i'm involved in a project to replace old os400 terminals on twinax with linux/unix computers that run the tn5250 emulator.

at first we got an image of a german configured suse linux that as it runs in germany but we had more problems reconfiguring the suse then it helps us

so we deceided to begin with a new installation and choose for freebsd 4.5 because that the only unix/linux i ever worked with.

with solving some f13-f24 key problems we got the emulator up an running (exept for the backspace that simply returns and doesn't delete)

now we're at the point of printing
we need to install 2 local printers on it: a parallel brother 1660e
and a serial zebra label printer
both printers should be able to print data the os400 sends

but the point where we stand is that we can't make the printers speak.

for the brother (/dev/lpt0):
i recompiled the kernel so ppc0 is polling (wow :-)
it actualy says that when doing #dmesg | grep lpt0
lpt0: <printer> on ppbus0
lpt0: Polled port

ok?

that's all i know to configure on that port
me, being more a DOS man am used to c:\dir > lpt1 and actually getting a printout
in my unix, when i do #lptest > /dev/lpt0 i get 3 blank pages (no toner is not empty)
when i try #cat textfile > /dev/lpt0 i get 3 blank pages

this makes me think in the direction of drivers? or something i missed?

then i set up and lpd for the printer which actually works but the same printing result: blank pages
anyhow, i searched this forum and found some usefull info,
went to linuxprinting.org, downloaded a ppd file for brother 1660e but from there i'm blocked (i don't know what to do with the ppd file, i even don't know if i need that file, the doc on that site is somewhat blurry)

i wonder if someone could suggest me on how getting the parallel printer to printing data?

for the other printer, the serial one, it doesn't do anything at all, but first i want to print on the lpt0

thnx
Forum Sponsor
  #2 (permalink)  
Old 01-21-2004
jsilva's Avatar
Registered User
 

Join Date: Apr 2003
Posts: 169
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Hi,

Yes, the problem might be that you're using the wrong driver for your printer...
The .ppd driver is configured using lpadmin... Take a look at this great document http://www.itworld.com/Comp/2369/LWD001109geek1/ ...
  #3 (permalink)  
Old 01-21-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
ok guys,
i solved both printers!

how?
got on http://www.freebsddiary.org/apsfilter.php
after reading it, i deceided to begin a new setup on another pc with freebsd 5.2
there, in the /stand/sysinstall there are new entries which included printer utilities such as the apsfilter and cups, installed them both,
then it was simply run the SETUP from /usr/local/share/apsfilter
and there it was nice and easy, although for my brother 1660e, wasn't supported, installed the brother 1270 with the hl1250 driver, printed test page: ok!
for the serial zebra label printer, i installed generic ps driver an configured the serial port communiction with the data bits and bps...
didn't print a test page but, i found out zebra only respond to files beginning with ^Z or ^X, printed a txt file we use on as400
lpr -PRAW file.txt
printed ok! (RAW is name of que of that printer.

but now i have the following question for you guys:
what do i have to configure if i want to let the as400 print stuff on my local printers. according to our outsourcing firm the lpd deamon needs to be running and the queues of the printer must have the name that will be declared on the as400 like
name on as400: PRT01 and PRT02
then on the bsd it should be /var/spool/lpd/PRT01 and ..../PRT02
we tried to print from windows via lpr but didn't work, tried from as400, didn't work
personaly i think we need to install samba on the bsd?
or is it something else we need to take a look at?

thxn for your replies guys!
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix date command unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi select all vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 11:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101