Using An Android As A Webserver

In the latest episode of XDA TV [Adam Outler] turned his Android phone into a webserver. At first this might sound comical, but the ever-increasing power of our handhelds makes it a pretty legitimate option. It’s hard to come up with concrete uses off the top of our head, but we’re sure there’s value in being able to pull the phone out of your pocket and serve some content.

The app BotBrew Basil makes the installation process nearly automatic. It gives you point-and-click access to install the lighttpd webserver package and set the daemon to run automatically at boot time. That’s it! Of course you need to supply your own HTML to be served. [Adam] used an HTML5 website template for this.

Next you also need a way to resolve the address of the phone. In this case it’s assigned a static IP from the router, and a dynamic DNS service provides a link that maps to the router’s location. But since these phones are running Linux (at least on the lowest level) it should be pretty easy to add a cron job which will send IP address updates to the service if you want to take the ‘webserver’ out in the world with you. You can watch the entire video after the break.

Ironically this is a big hardware upgrade for [Adam’s] webserver. The previous version was running from an Evalbot.

Continue reading “Using An Android As A Webserver”

Resurrecting A Mac LC For Server Duties

It might just be a case mod, but we love [Eduard]’s take on a modern Macintosh LC (translation). The donor motherboard came from a disused home server, and the LC came from [Eduard]’s childhood memories of playing Glider and The Incredible Machine.

The case was donated from a venerable Macintosh LC, manufactured circa 1990. The original LC had a Motorola 68020 CPU, which [Eduard] upgraded to an Intel Atom board. It was a somewhat tricky build – he adapted a 90 Watt power supply from a piece of old office equipment to power the new Intel board. With a great deal of very careful Dremel work, the old-school Apple logo was modified into a power button for the new computer.

For frequent readers of Hack a Day, it’s no surprise that we’ll grab up any old Apple or Mac build. [Kevin] built a weather station and analog joypad for his Apple IIc, We’ve seen custom Mac ROM SIMMS, and of course [Sprite_tm]’s amazing SE/30 emulation. If you’ve got something that will send our 68k senses tingling, send it on into the tip line.

Hacking Old Server Hardware For New Home Use

[Arnuschky] was looking for a network storage solution that included redundancy. He could have gone with a new NAS box, but didn’t want to shell out full price. Instead, he picked up a Dell PowerEdge 2800 and hacked it for SATA drives and quiet operation.

It’s not surprising that this hardware can be had second-hand at a low price. The backplane for it requires SCSI drives, and it’s cheaper to upgrade to new server hardware than it is to keep replacing those drives. This didn’t help out [Arnuschky’s] any, so he started out by removing the SCSI connectors. While he was at it, he soldered wires to the HDD activity light pads on the PCB. These will be connected to the RAID controller for status indication. The image above shows the server with eight SATA drives installed (but no backplane); note that all of the power connectors in each column are chained together for a total of two drive power connectors. He then applied glue to each of these connectors, then screwed the backplane in place until the glue dried. Now the device has swappable SATA drives!

His server conversion spans several posts. The link at the top is a round-up so make sure you click through to see how he did the fan speed hack in addition to the SATA conversion.

If your tolerances don’t allow you to glue the connectors like this, check out this other hack that uses shims for spacing.

Rebuilding A Mac SE As A Server Again

Around this time last year, [Sprite_TM] took a 1980’s-era Macintosh SE and rebuilt it as a home file server. He used a Seagate Dockstar as the new motherboard, but over the past year he’s been annoyed with the fact that the Dockstar doesn’t have real SATA ports. Using USB to SATA converters on a server is a slow way of doing things, so [Sprite_TM] rebuilt his SE using an HP thin client. To do this, he had to break out the onboard SATA and PCIE; not an easy task, but that’s why [Sprite_TM] is around.

The first order of business was installing a pair of SATA ports. The stock thin client had two NAND-flash chips serving as the drive, both connected to a SATA controller. All [Sprite_tm] had to do was desolder the flash chips and wire up the new SATA connections. Easy enough.

Because the HP thin client only had 100Mbps Ethernet, [Sprite_tm] wasn’t looking forward to the order of magnitude difference between his expected rsync speeds and what he would get with a 1Gbps connection. The only problem is the thin client didn’t have a spare PCIE connection for an Ethernet card. That’s really no problem for [Sprite_tm], though: just desolder the GPU and run a few wires.

Just like last year’s work on his SE, [Sprite_tm] ended up with a functional and very cool home server. The old-school System 7 is still there, and of course he can still play Beyond Dark Castle. Awesome work, in our humble opinion.

Sustainability Hacks: Thin Client Server

It’s not environmentally friendly, but most of us run a small home server 24 hours a day. A small server is a useful tool to have that unfortunately wastes a lot of energy. [kekszumquadrat]’s thin client home server is actually a passable LAMP box that doesn’t draw a ton of power.

[kekszumquadrat] started looking at the SheevaPlug when beginning his quest but was a little concerned about the power supply failing. Looking for alternatives, he ran across a lot of cheap thin clients on eBay. The price was right and everything runs Linux, so a few days later he had an HP t5710 thin client on his doorstep.

This little computer came a copy of an embedded version of XP on a flash drive connected to the IDE port. Ditching that “operating system”, [kekszumquadrat] connected a USB hard drive and installed Arch Linux. After a few updates and package installations, he had a useful machine connected to the Internet.

Compared to the 7 Watts the SheevaPlug draws, the 15 W thin client is an energy hog. Compared to our improvised servers, [kekszumquadrat] is doing a remarkable job. Recycling old hardware never hurt anyone, either.

Stoplight Indicator System Signals When Your Servers Are In Distress

stoplight_server_monitoring_system

At [mkanoap’s] office, they have a software package that monitors their various servers’ health, but they wanted a separate indicator to display the status of their most critical systems. They put together a simple list of criteria for their display, including the ability to view the status without a computer, and that it share the same red/yellow/green indicators that their monitoring software utilizes. With those needs in mind (and a few hundred dollars to spare), [mkanoap] and crew rushed out to buy a stoplight, then got to building.

Their status system is self-contained, utilizing an Arduino and Ethernet shield to control the stoplight. The Arduino was programmed to act as a web server, and responds to GET requests by toggling any of the three mains-powered lamps using relays. [mkanoap] then created a handful of scripts that check the status of the critical servers every 5 minutes, updating the stoplight accordingly. The whole setup was tucked neatly inside the light’s housing, before being mounted on the wall in their office.

[mkanoap] says that the reaction to the stoplight as been great, though they had to install dimmer bulbs so those people sitting near it were not blinded. His writeup is incredibly detailed should anyone want to construct one of their own, and who wouldn’t?

Server Room Light And Temperature Monitoring

environ_monitoring

[Jaren] is occasionally forgetful, and frequently wonders if he’s left the lights on in his server room. Not knowing if the lights have been left on drives him nuts until he returns to work the next morning, so he decided he had to do something. He figured it would be easy enough to build a small sensor that would allow him to monitor the status of the overhead lights, but he didn’t want to have his micro controller’s abilities go to waste by performing one simple task. Instead, he laid out plans to add an array of other sensors which will allow him to monitor the room’s temperature, sound levels, as well as the current draw of the servers.

Right now the project is in the beginning stages, but he already has part of his sensor network established. He hooked up a TMP421-based temperature module along with a TEMT6000 ambient light sensor to his Arduino, which displays the data on a small LCD screen he purchased. More sensors are on order, so we should expect to see more progress in the coming weeks.

Hopefully when everything is completed we will see a full set of schematics and code so that anyone can buld their own server room monitoring network from his designs.