Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Run an IBM 3270 emulator in XDarwin UNIX
Need a TN3270 emulator, but are tired of waiting for a native app (or waiting for Classic to launch) while an impatient operator/user sits on the line? I use XDarwin (rootless), OroborOSX, and x3270. Read the rest of the article for the how-to...

After you've installed XDarwin and your window manager, get the x3270 sources.

Extract them and make the following changes:
% diff x3270-3.1.1-orig/Imakefile x3270-3.1.1/Imakefile
107c107
< $(BINDIR)/$(MKFONTDIR) $(DESTDIR)$(FONTINSTDIR)
---
> $(MKFONTDIR) $(DESTDIR)$(FONTINSTDIR)

% diff x3270-3.1.1-orig/popups.c x3270-3.1.1/popups.c
502c502
< #if !defined(__FreeBSD__)
---
> #if !defined(__FreeBSD__) && !defined(__DARWIN__)

% diff x3270-3.1.1-orig/util.c x3270-3.1.1/util.c
589c589
< #if !defined(__FreeBSD__)
---
> #if !defined(__FreeBSD__) && !defined(__DARWIN__)
Follow the build instructions (as detailed in the build docs) and make install it. I use the ibmhosts at /usr/X11R6/lib/X11/x3270/ibm_hosts. Set up .x3270pro in your home directory; I use [at least in part]:
! model
x3270.model: 3279-4-E
! name to transmit
x3270.termName: IBM-3278-4-E
for 43 lines and you're good to go.

Disclaimer: I don't know what if any prerequisite packages are required - this is just what worked for me. You can mail me, but don't expect very in depth answers - I'm an old mainframe jock, dabbing a toe in unix for the first time.

[Editor's note: Completely untested locally, as I have no need for a 3270 emulator...]
    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,732 views]  

Run an IBM 3270 emulator in XDarwin | 2 comments | Create New Account
Click here to return to the 'Run an IBM 3270 emulator in XDarwin' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No Problems
Authored by: unxmaal on Apr 02, '02 03:13:49PM

My x3270 compiled just fine "out of the box". I did have to change the platform type to 'Darwin', but made no other changes. I don't think it installed the fonts in the proper location, but that's never been a real problem.



[ Reply to This | # ]
No Problems
Authored by: varase on Oct 06, '02 07:06:14PM

Of course, this is all obsolete as TN3270 X has been released, and the new version of X3270 (3.2) compiles cleanly under 10.2.1.

If anyone's interested though, I may post a hint on how to get SSL 3270 working using stunnel though ...



[ Reply to This | # ]