Turning Your Mac Into a Serial Console Server 60
chrisbw writes "Want to put that old VT100 terminal to use? Mac OS X Hits has a story on how to make a couple simple changes in OS X to enable login on a serial terminal (even over a USB serial adapter if you're on a newer mac). Cool trick for adding a text-based web surfing or email terminal in another room, or remote iTunes control!"
very usefull (Score:1, Informative)
Re:USB (Score:2, Informative)
Re:USB (Score:2)
Re:USB (Score:2)
Re:USB (Score:5, Informative)
Re:USB (Score:4, Informative)
Re:USB (Score:4, Informative)
At no time in Macintosh history did they have an industry-standard serial port, so you will need some kind of adapter to use a regular tty with any Macintosh.
Re:USB (Score:2, Interesting)
Actually, if we're getting pedantic (or historic in this case) the 128K [lowendmac.com], 512K [lowendmac.com], and 512KE [lowendmac.com] all sported DB-9 serial ports.
Re:USB (Score:1)
Re:USB (Score:2)
Re:USB (Score:1)
But they are shaped differently than what the PC world (and most terminals) use. Round instead of trapezoidal. That means an adapter will be needed.
Not much point (Score:2, Insightful)
Problem is, there just isn't much point. Computers are *cheap* these days, and finding a used computer from the masses out there made in the last twenty years is easy. You can use any x86 box ever *made* as a good terminal emulator, and get color and other goodies the VT doesn't provide.
There are lots of terminal emulation programs, though if you have 4 MB of memory on the thing or more, I'd probably r
Re:Not much point (Score:5, Insightful)
This also goes in with the story being mis-named. One of the nicer things about having serial console access to your machine is you have the ability to do things like if you were directly at the console... I don't think you're going to drop your system to single user mode while using the network. Or, if you're configureing something, and you accidentally mess up network connectivity, its a very nice backup. Also, on real hardware like suns, you can send serial breaks over the line, get into firmware, and do what is necessary, whether it be synching the machine due to crash, or whatever.
This story is also missnamed.. a serial console server is a server with a lot of serial ports on it
Now, I'm not entirely sure what the use of a serial console is under osx, but the impression I'm getting is that its getting a bit more useful each revision of that OS. But under any other unix, not having a serial console in a production enviroment is just asking for trouble.
David
Re:Not much point (Score:2, Informative)
1 used 486 = $0 to $25
1 home made null modem cable = ~$2
For about the same price [ebay.com], the 486 [ebay.com] is also capable of functioning as an X terminal with sound, etc, like he said.
Re:Not much point (Score:5, Interesting)
Right, but this is just another chink in the argument that "we can't let you work on a mac because we still need x86 to do "
The more it takes on the functionality of a regular *nix (and the fewer handrolled apps your company has) the more likely you can use a mac, if that's what you prefer.
Re:Not much point (Score:2, Interesting)
Re:Not much point (Score:2)
Oh, come *on*. This is mindless Apple fanaticism. I didn't say anything about replacing Macs with x86 boxes. My entire argument was simple -- (a) there are a lot of very cheap old x86 boxes floating around and (b) they make good terminal emulators. The old 286 or what have you is competing against the VT220 in this case, not the Mac. Surely you don't have a problem with replacin
Re:Not much point (Score:4, Insightful)
Wouldn't the same trick work nice with some older serial equipped Macs (i.e. the 68k cuties)?
Re:Not much point (Score:1)
Re:Not much point (Score:4, Insightful)
VT-terminals (220s; not 100s!) are perfect for email terminals around the house, and excellent as a secondary (or more) screen for using BitchX/irssi... So instead of being limited to a dual-head setup... you can have as many heads as you want, some of them even with keyboards
Re:Not much point (Score:5, Interesting)
We discovered that the PCs were sending a BREAK on the serial port, when they got rebooted. Once the came back up again, we'd find the Sun box sitting at the open firmware prompt:
ok>
Once we knew the problem, we could just unplug the PC before rebooting, but there were still lots of times someone forgot to do that.
It was VERY annoying
Re:Not much point (Score:2, Informative)
Want it persistant after a reboot? Modify the settings in /etc/default/kbd
Wheeling back on topic, Mac USB-serial adapters advertised as such are kind of pricey. However, you can also buy a less capable USB-serial adapter advertised for use with serial palms and so forth. Generally, they're not as good, but will still do the trick.
Yours truly,
Jeffrey Boulier
Hehe (Score:5, Funny)
Re:Hehe (Score:1, Funny)
Good dreams indeed. What is it you're doing in bed that you need a graphics-capable browser, you deve?
laptop (Score:2)
Palm terminal emulation? (Score:3, Interesting)
Because it would be nifty as hell to be able to control all 10GB's of my music through a nice little portable PDA acting as a sort of "remote". Anyone know of terminal emulation software for a Palm?
Re:Palm terminal emulation? (Score:4, Informative)
You might be able to cook something up with a Palm and a USB audio converter, but you wouldn't need a serial console to do it. However, here's a better idea:
Get the SliMP3 [slimdevices.com]. It connects to your stero system and has an ethernet port on the back. Grab a Linksys WET11 and it's wireless if you can't run ethernet to your stereo for some reason. It works with iTunes and you can keep all your music in one place.
Bluetooth (Score:1)
Re:Palm terminal emulation? (Score:4, Informative)
I havn't messed around with it enough; i've only used it in cases where i need to a little command line hacking from my Treo.
Re:Palm terminal emulation? (Score:2, Interesting)
Just wondering if there was any way to control my mac through the palm over the 802.11b connection. If I can, I'll get the Tungsten W because 802.11b is built into it, negating the need for 3rd party connectors that often have weird requirements or restrictions.
Re:Palm terminal emulation? (Score:1)
geez? (Score:1, Interesting)
You can get to your Mac console on ethernet via the firmware shell (I don't remember exactly how but it's there), so you don't need a serial console for that.
And as for surfing and listening to MP3s, I have Opera on my Zaurus with a wireless connection, talking to the SLiMP3 web server. From there I can control the music on ANY computer or SLiMP3 in the house (PS: the slimp3 software rocks and doesn't require the sl
Re:geez? (Score:5, Funny)
It would really be a story if you could do this without his knowledge. Hehehe... suddenly, Celine Dion plays through his speakers at top volume, and he can't turn it off....
Re:geez? (Score:3, Funny)
I don't think I'm ever getting a shell account again on one of my friend's machines because of that.
"Hey, look, a whole directory full of reggae MP3s. And he's got mpg123 installed. Ah, it's only 2am, I'm sure Steve's still up."
For the record, it's not something people find amusing.
--saint
Re:geez? (Score:2)
Re:geez? (Score:1)
GW: "WTF YO?!?"
You: "Chill. WTF you want biznatch!"
GW: "Heard you MOABed your homie next door with some WMD!"
You: "WMD?!? WHERE?"
GW: "Celine Dion's Christmas Album, yo. You coming to Guantanamo dude."
Re:geez? (Score:1)
Ah, the good old days... (Score:3, Funny)
If you really want old school... (Score:3, Insightful)
I don't mean to be a troll here, but I have to agree with other posters that, beyond saying "I can do that", there are limited uses for this outside of a server environment. And in the server environment, Apple has the XServe, which, IIRC, has a serial console port built in.
But you gotta love that someone has done it, I guess.
Re:If you really want old school... (Score:3, Interesting)
real serial console? (Score:5, Interesting)
For various reasons (mainly driver development in a cramped office), I like to run serial CONSOLES. This means I want to see the kernel messages on the serial port, not on a VGA monitor. This allows me to log all kernel messages, even messages from a machine which crashed (hence syslog is not running). Otherwise, its easy for important messages to scroll off screen and be lost when the system crashes.
When running linux, getting a serial console is as simple as passing some parameters to the kernel (console=ttyS0). Similar options exist for FreeBSD, Tru64, Solaris, etc. All of them will use a serial port for a console.
With OS-X, I've been able to enable some extra verbosity on the serial port, and I'm able to get
an openfirmware prompt on the serial port, but I can't figure out how to make the serial port the actual system console. I know it must be possible, because the X serves are supposed to be able to do it.
Does anybody know how to do this on a "normal" g4 with a serial port (g4port)??
Open Firmware boot to serial input (Score:5, Informative)
This might answer your questions (look at section 6):
http://www.netbsd.org/ [netbsd.org]
Short answer:
setenv input-device ttya
setenv output-device ttya
Re:Open Firmware boot to serial input (Score:1)
What I want is for OS-X to put all its messages on the serial port.
Re:Open Firmware boot to serial input (Score:2)
I recall that XPostFacto has a menu that can select the console device. However, I'm sure that it will only work under MacOS 9. Which means it won't be useful on anything with a FireWire 800 port.