0
 

home
news
wu-tang clan
bio's
media
store
blogs
forum
contact

Go Back   Wu-Tang Corp. - Official Site of the Wu-Tang Clan > The Elements > Digital Underground

Reply
 
Thread Tools Display Modes
Old 12-16-2013, 09:31 PM   #1
check two
N.I.
 
check two's Avatar
 
Join Date: Jan 2002
Location: Pennsylvania
Posts: 33,873
Rep Power: 10
check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)
Default Can a 27-year-old Mac Plus browse the web?





It’s a lowly machine, my Mac. The specs pale in comparison to even my Kindle: 8 MHz CPU, 4 MB RAM, 50 MB hard drive, and 512 x 384 512 x 342 pixel black-and-white screen. My current desktop PC is on the order of 200,000 times faster – not even including the GPU. Still, that Mac Plus was where I cut my computing teeth as a child. It introduced me to C, hard drives, modems, and the internet.

Yes, in a certain sense, my Mac has already been on the internet, first via BBSes and later via Lynx through a dial-up shell sessions. (There’s nothing quite like erotic literature at 2400 bps when you’re 13 years old.) What it never did was run a TCP/IP stack of its own. It was always just a dumb terminal on the ‘net, never a full-fledged member.

How hard could it be to right that wrong?

Everything went smoothly at first. I had my mom ship the computer to me. It arrived in good condition, having been stored undisturbed in her basement since the mid-1990s. I plugged it and its external hard drive in, flipped the power switches, and watched the happy Mac glow to life on the tiny CRT. Sure, the hard drive gave a groan of protest when it first spun up, but that quieted down, and everything seemed stable with the data intact. At least for the first few minutes.

I was far down nostalgia lane playing a game of Glider when all of a sudden there was a loud *POP* and the smell of smoke. Panicked, I slammed the power switches off and pulled the plugs. It didn’t take much sniffing to find the source of the acrid odor: the external hard drive. The stress of current after years of disuse had proved too much for one of the filter caps in the external drive’s power supply.





Fortunately, Digikey still sold those exact caps(!), and I’m handy with a soldering iron, so a few days later I was back in business. On to the networking!

To accomplish my goal, I needed a web browser, a TCP/IP stack, and some way to connect the Mac to my home network.

The web browser was relatively easy to find thanks to guys running long-forgotten FTP sites in the dusty corners of the internet. MacWeb 2.0 was both old enough to run on my Plus and new enough to render HTML and speak HTTP. Sort of. But we’ll get to that in a minute.





Likewise, MacTCP existed in a version just barely able to run on System 7.0. It didn’t support niceties like DHCP, but MacWeb was happy to use it, and it installed without problems, so there was the TCP/IP stack.

Getting the Mac physically hooked to the network was a bigger challenge. The Mac Plus didn’t have an Ethernet port, and things like WiFi were years from being invented when it was manufactured. A couple of companies made SCSI-to-Ethernet adapters about 15 years ago, but those were rare and expensive. I thought about the problem for a while, and it occurred to me that I could channel the early days again: I could use the serial port and PPP or SLIP to bridge to the outside world. Like dialup without the modem.

I set up my Raspberry Pi and ran some Cat-5 to it from the router. Using a level shifter and a variety of old adapters, I managed to get a serial cable working between the Pi and the Mac. That took care of the hardware.

On the software side, I scrounged around and after several failed attempts found a PPP client that would run on the Plus and a super-simple PPP server called SLiRP for the Pi. Documentation for the combination of MacTCP, MacPPP, and SLiRP was, surprisingly, still available. After a bit of tinkering with the configuration, I was able to get the MacTCP to talk to MacPPP, MacPPP to talk to SLiRP, SLiRP to use the Ethernet connection, and so on through my router and out to the internet. Since serial I/O on the Mac Plus was processor-intensive, throughput was limited to about 19 kbits/s, but 19 was a lot higher than 0.




Now, you might be wondering, “Wait, how did you get all of that abandonware on there in the first place?” Good question! The Mac’s floppy drive was old enough to be fundamentally incompatible with PC drives, and I didn’t have any floppy drives in any of my modern computers anyway.

I tried going down the avenue of 100 MB ZIP disks, since ZIP drives were made in both USB and SCSI-1 versions. While I did manage to get the Mac to use the ZIP disks (and in fact switched to one for the primary boot drive), and even got my Windows PC reading the HFS formatted disks using some nifty tools, every attempt to move data from the PC to the Plus resulted in nothing but corrupted files on the Zip disk.

That left the serial port. I happened to have an old terminal emulator called Microphone already installed on the Mac. Microphone supported ZMODEM for file transfers, which you’re probably nodding your head about if you remember BBSes. Thus, to transfer files to the Mac, I SFTPed the questionably legal files I needed from my PC onto the Raspberry Pi, plugged the Pi into the serial port, fired up Microphone on the Mac as a terminal, and launched Minicom on the Pi from the Mac. I nervously struck the keys to initiate a ZMODEM transfer from Minicom, selected the files, and hit enter. Minicom obliged, there was a BEEP! and a “Save incoming file?” dialog popped up on the Mac. Some un-binhexing later, I found myself running new software on my old Plus. Huzzah!

So, with the Raspberry Pi, MacTCP, and MacWeb all in place, it was time to surf the web! Right? Right?!

No. No surfing yet.

The MacWeb developers apparently took a look at the HTTP 1.0 spec, decided, “Who would ever need name-based virtual hosting?” and left out the feature that 99% of the sites on the modern web relied on. No support for virtual hostnames meant you got whatever you saw when you used the server’s IP address alone in the HTTP request, and for most sites, that was jack squat. Oh, and HTTPS, cookies, and CSS hadn’t been invented yet.

AAARGH!!!

I vented about the problems to Tyler, mentioned that I was in for a long stretch of coding to solve it, and was surprised when he whipped up a filtering proxy solution in about 20 minutes using Python, Requests, Flask, and Beautiful Soup. (Update 12/16: here’s the code from Tyler.) The key to it all was that MacWeb would include the full URL, with the hostname, when making a proxy request. Requests fetched the URL, stripping SSL and managing any cookies. BeautifulSoup stripped out things that MacWeb couldn’t understand, like CSS, Javascript, images, and DIVs. Flask pulled proxy duties, reading the request and sending the filtered result back to the Mac.

And that, friends, was sufficient to surf the web. It even looked surprisingly decent, almost like a mobile browser:







Sure, it was slow as hell, but it worked! Data loaded, pages rendered, and links were clickable. Even forms sort of worked.


__________________


check two is offline   Reply With Quote
Old 12-16-2013, 11:40 PM   #2
diggy
The ABBOTT
 
Join Date: Mar 2004
Location: O-Block
Posts: 10,974
Blog Entries: 4
Rep Power: 50
diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)diggy Iron Lungs (Fists of Legend)
Default

cool
__________________







Quote:
Believe it or not, lobster and crabs are crustaceans and are a part of the arthropod family, which include caterpillars, cockroaches, and spiders!

A Galactic Funking Hunt Wit Not Wont
diggy is offline   Reply With Quote
Old 12-17-2013, 04:05 AM   #3
EAGLE EYE
0110111101110000011001010111001001100001011101000110100101101111011011100010000001100111011101010110100101101100011011000110111101110100011010010110111001100101
 
EAGLE EYE's Avatar
 
Join Date: Feb 2006
Location: Quantum Computer
Posts: 40,193
Rep Power: 10
EAGLE EYE has disabled reputation
Default

Adding BeautifulSoup and Flask to my collection of tools
__________________




Quote:
Originally Posted by Tony Bandana View Post
you dont want me coming around dressed in black homie
Quote:
Originally Posted by TSA View Post
Honestly dude, this is why I want to go to hell. Hell is crackin.
Quote:
Originally Posted by Crump Diddy View Post
Did I scare you?
EAGLE EYE is offline   Reply With Quote
Old 12-17-2013, 10:36 AM   #4
APOLLO STASH
Bag 40s like cougar town
 
APOLLO STASH's Avatar
 
Join Date: Dec 2010
Location: Borough Q
Age: 22
Posts: 1,206
Rep Power: 11
APOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venomsAPOLLO STASH five deadly venoms
Default

I used to love when keyboard keys sounded like that...like there was power being pumped into those letters that were being typed
__________________

APOLLO STASH is offline   Reply With Quote
Old 12-17-2013, 03:50 PM   #5
KERZO
☀☀☀☀☀☀☀☀☀☀
 
KERZO's Avatar
 
Join Date: Nov 2007
Location: ⌛
Posts: 8,292
Rep Power: 44
KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)KERZO Iron Lungs (Fists of Legend)
Default

That dude is on his way to some heavy duty ASCII porn right bout now...
__________________





KERZO is offline   Reply With Quote
Old 12-19-2013, 06:14 AM   #6
hectis
Vic
 
hectis's Avatar
 
Join Date: Oct 2005
Age: 31
Posts: 11,606
Rep Power: 44
hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)
Default

Check Two is that your 27-year-old Mac Plus?
__________________


Banner appears courtesy of the craft of Bobby_Digital72
hectis is offline   Reply With Quote
Old 12-19-2013, 11:59 AM   #7
check two
N.I.
 
check two's Avatar
 
Join Date: Jan 2002
Location: Pennsylvania
Posts: 33,873
Rep Power: 10
check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)check two King of Kings (Five Pointed Palm Exploding Heart Technique)
Default

Yes
__________________


check two is offline   Reply With Quote
Old 12-19-2013, 12:47 PM   #8
hectis
Vic
 
hectis's Avatar
 
Join Date: Oct 2005
Age: 31
Posts: 11,606
Rep Power: 44
hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)hectis Iron Lungs (Fists of Legend)
Default

Why just not get a new computer?
__________________


Banner appears courtesy of the craft of Bobby_Digital72
hectis is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:09 AM.


Copyright ©2000 - 2013 The Wu-Tang Corp. & shift-one