Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 11
  1. #1
    kilowatt's Avatar
    kilowatt is offline mach-o mach-o man
    Join Date
    Mar 2001
    Posts
    983
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Hey, on my linux box I've got this line in my /etc/inittab
    S2:12345:respawn:/sbin/getty ttyS0 DT19200 vt300

    Now, I know mac os x is a bit different, but here's what I've figured out:
    /sbin/getty in linux is like /usr/libexec/getty
    (except that I can't figure out how to use it)
    and, /etc/inittab is kinda like /etc/ttys
    (except I can't figure it out, either).

    Basically, I want a login prompt on my dumb terminal hooked up to my /dev/tty.modem port (via a null-modem cable). Does anyone know how to do this on mac os x? I don't mind if it doesn't start osx with that, I guess I really just want the correct useage for /usr/libexec/getty (yeah, I read the man page, etc etc)

    Thanks!

  2. #2
    scruffy's Avatar
    scruffy is offline Notorious Olive Counter
    Join Date
    Dec 2000
    Location
    Soviet Canuckistan
    Posts
    1,725
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know how to do this, but take a look at macaddict - Brian Sammis has got some sort of terminal connected to an OS X box.

    I sure would love to get an old vt100 and do this for the geek value, but I have a post-serial-port mac, and no modem on it...

  3. #3
    kilowatt's Avatar
    kilowatt is offline mach-o mach-o man
    Join Date
    Mar 2001
    Posts
    983
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks

    Did you mean the article at this location:

    http://www.macaddict.com/content/news/2001/04/03/29468

    I read it, and now I have confidence! Thanks.


    PS: My terminal is a Motorola TM3100, form 1978, I think. I got it for $10 at the surplus store at the university of cincinnati. I've had it connected to my intel redhat linux computer for a long time, but, seeing how os x doesn't appear to have 'virtural consoles' (on rh, I can press ctl-alt-Fn where n is 1 to 7, and get a new 'screen' of either cli or gui), I guess I'll be moving the terminal. (I think you can use modems, too... that could be interesting). When I get it hooked up, I'll send in a photo.


  4. #4
    kilowatt's Avatar
    kilowatt is offline mach-o mach-o man
    Join Date
    Mar 2001
    Posts
    983
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Got it!!!

    Well, I got the serial console up and running! Here's how:

    become root (su)
    go to /etc (cd /etc)
    edit the file "ttys" (pico ttys)
    You'll see a line "tty07 "/usr/libexec/getty std.9600" unknown off secure""
    Add this line under it "tty.printer "/usr/libexec/getty t9600" vt100 on secure"

    the tty.printer is the printer port (you can use tty.modem) and the t9600 part refers to a description found in /etc/gettytab (it sets the speed and such). the vt100 part tells it you have a vt100 or compatable (vt220, vt300, etc should work, too). The 'on' part enables the console. And 'secure' means that it will only be activated in 'secure' mode (ie; non-single-user modes).

    Of course, you do need a null-modem cable for this to work. And, I had to reboot.
    BTW, if you are having trouble with all this try this stuff:

    stty -f /dev/tty.modem that will tell you the speed and parity of the port. See 'man stty' for information on how to use it.
    If you want to test your null-modem cable and port speed, become root and type something like this:
    ls > /dev/tty.modem (that prints the output of 'ls' to the port /dev/tty.modem)

    Now, the real question: will making those tty0x lines (top of the /etc/ttys file) from 'off' to 'on' allow you to press ctrl-alt-fn to switch between consoles as on other linux systems?

    I hope yall enjoy this!

  5. #5
    fletch is offline Registered User
    Join Date
    Feb 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Any luck with Keyspan USB-Serial?

    I have tried your method with my Keyspan USb-Serial but have had no luck.

    In /Dev it lists the ports as tty.KeyUSA281822.1 and .2.

    Thanks,

    Pete

  6. #6
    kilowatt's Avatar
    kilowatt is offline mach-o mach-o man
    Join Date
    Mar 2001
    Posts
    983
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, I don't have any usb to serial adaptors to test this with, but here are a few ideas I have:

    1) make certain you are using a Null-Modem cable. These cables switch the transmit and revieve wires, as well as handshaking. Without one, its pretty much useless.

    2) Check to see that you have the right speed selected on the dumb terminal or terminal-emmulating pc. Offten you will simply see nothing unless it is correct

    3) Here's an easy way to check your null modem cable:
    Code:
    %date > /dev/tty.KeyUSA281822.1
    %date > /dev/tty.KeyUSA281822.2
    As you may have guessed, this echo's the date to each serial port.

    4) Check your console logs, dmesg, and /var/log/system.log for any getty errors. Also, I believe that in 'top' you should see some process like getty using the tty's you assigned it to.

    Good luck dude, I hope you get it working because it is VERY cool once you do. Oh, and its also possable to use a modem in this fassion so you can dial in and use a shell. Cool, huh?

  7. #7
    Join Date
    Sep 2001
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use GUI App "ZTerm" ! It rocks. I use it to configure Switches and Cisco Routers.
    Gabriel Camiro de la Guerra

  8. #8
    fletch is offline Registered User
    Join Date
    Feb 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It works! Well Sorta.

    I was unable to get it work with the Keyspan Adapter, but I installed the CubePort from Griffin in my Cube and now my Circa 1979 Atari 800 can connect to Darwin. The only issue I seem to be having is with screen size.

    The old Atari is only able to display 40 columns x 23 rows (I think). Is there away to set Darwin's output to 40 column mode? If not I can live with it, but man is this cool!

    Pete

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Serial port emulation
    By stefan hansson in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: November 27th, 2002, 02:13 AM
  2. OSX/PB G3/266 serial port printing
    By Bill Hoffine in forum Mac OS X System & Mac Software
    Replies: 1
    Last Post: October 28th, 2002, 09:12 AM
  3. AppleTalk to serial port?
    By evildan in forum Unix & X11
    Replies: 6
    Last Post: September 21st, 2002, 08:23 PM
  4. terminal app for USB serial port
    By tyc in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: March 5th, 2002, 10:40 PM
  5. What about Serial Port identification
    By BeigeG3Master in forum Mac OS X System & Mac Software
    Replies: 8
    Last Post: April 19th, 2001, 08:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •