Slashdot Mirror


iPhone Can Now Run Apache, Python, Vim

An anonymous reader writes "After the first Hello World application, hacker NerveGas and the people at #iphone-shell have built Apache, Python and other Open Source apps for the iPhone using NightWatch's toolchain. Yes, your iPhone can now be a Web Server and do all sort of 1337 things. This also means that third-party applications for iPhone will happen no matter what. People, iPhone Doom could be just around the corner." It's fairly thin on information but if true, this will lead to good things. Like hopefully permission from apple.

38 of 312 comments (clear)

  1. Disappointing by niceone · · Score: 5, Funny

    Really disappointing, why couldn't we have had a link to the story on a server running on an iPhone? Then maybe a video of it catching fire.

    1. Re:Disappointing by vivaoporto · · Score: 3, Funny

      Actually, we could mimic the success of Will it blend and create its counterpart, Will it melt (tm), displaying different pieces of machinery running a webserver while being slashdotted. Guaranteed laughter for all family!

    2. Re:Disappointing by alienmole · · Score: 4, Funny

      That's what it used to be like, back in the good old days (i.e., 1999). We even had links to web servers running on PIC chips, which makes an iPhone look like a ridiculously oversized muscle car by comparison. But for some reason people are less willing to roast their iPhones than a PIC chip and a couple of resistors.

      I put it down to the kids these days, they're just not as adventurous as when I was a lad (i.e., 1999) and used to walk to work in the snow, uphill, both ways, with only a roasting Slashdotted PIC-based webserver for warmth.

    3. Re:Disappointing by phoenix321 · · Score: 4, Insightful

      Please don't confuse any "webserver" with a potentially full-blow apache. Answering GET requests by streaming out plaintext html files is accomplished by freshman's programming examples - having a real webserver is much much more.

      Given that the iPhone is running some variety of MacOS X, it's highly likely that we see the full potential of this thing unlocked pretty soon. Having a fairly standardized environment, a fairly powerful CPU and a sleek form factor is good.

      Being turing-complete isn't good enough for the real world of computing. Any PCL printer is, but do you see anyone here breaking out the champagne over that?

    4. Re:Disappointing by Com2Kid · · Score: 3, Funny

      Cell phones each have a unique identifier. Unless you have a prepaid account and paid for your iPhone with cash, this unique identifier is easily traced to your credit card + billing address.

      Thus, you win the Worst Pirating Idea EVER award.

  2. How about Applescript or Fscript? by argent · · Score: 3, Interesting

    Something that's got good Cocoa bindings, anyway, so you can write native apps in them...

    1. Re:How about Applescript or Fscript? by wicks0r · · Score: 3, Insightful

      How about SSH?

      Might be time to bite the $600 bullet.

  3. my thoughts by catwh0re · · Score: 3, Insightful
    I think the demand for a SDK caught apple by surprise (possibly because the iPod didn't have many people hollering for a SDK, and since it's easy to see the iPhone as an iPod + phone functionality I can see how this was given a low priority.)

    I do however believe that apple will now release a SDK for the iPhone (apple pretty much do anything the consumers want these days, even managed some drm music, something i thought would never come while the RIAA existed.)

    I also believe apple stated ajax/web apps as the SDK because they didn't want to give people any reason to think the iPhone was incomplete (and hence to put off the purchase.)

    1. Re:my thoughts by Anonymous Coward · · Score: 5, Informative
      I think the demand for a SDK caught apple by surprise (possibly because the iPod didn't have many people hollering for a SDK, and since it's easy to see the iPhone as an iPod + phone functionality I can see how this was given a low priority.)

      There is plenty of demand for an iPod SDK, and has been since day 1:

      http://www.alteringtime.com/log/archives/96
      http://www.macworld.com/news/2006/09/21/macgamesip od/index.php
      http://www.ipodhacks.com/modules.php?op=modload&na me=Forum&file=viewtopic&forum=2&topic=1806
      http://lists.apple.com/archives/studentdev/2001/Oc t/msg00437.html
      ...and so on.

      Apple has their reasons for not releasing an iPhone SDK, same as they have their reasons for not releasing an iPod SDK. I assure you that not knowing the demand has nothing to do with it.

    2. Re:my thoughts by toleraen · · Score: 3, Insightful

      How could they be caught off guard? 90%+ of the operating systems in the smartphone/pda phone market have SDKs. They obviously did a little poking around in the market before deciding to make the thing...and if it really is based on OSX, it shouldn't have been terribly difficult to provide one.

    3. Re:my thoughts by tji · · Score: 5, Informative

      Sure, some were asking for an iPod SDK.. But, for something with a wheel as an input device, your development options are pretty limited.

      The iPhone is much different, because

      - It has full input capabilities -- pointer, selection, keyboard input and more.

      - It's a much more powerful device (cpu/ram) than the iPods

      - Apple positioned it as a "smart phone", directly comparing it to the competitive smartphones, which do offer SDKs.

      - Apple represented it as running "True OS X". They even mentioned it supporting Cocoa. Why the hell would you talk about the programming interface if you don't intend to give your developers access?

      After watching the initial iPhone introduction, I just assumed developers would have access (based on the OS X / Cocoa stuff). Just after that annoyance of finding they were NOT making an SDK wore off, Apple came back with the "you don't need an SDK, just write web pages" bullshit, which re-opened the wound. That episode was the farthest off I have seen Apple in understanding their developers/customers. Hopefully they remedy it soon.

    4. Re:my thoughts by phoenix321 · · Score: 4, Insightful

      Apples claims of only wanting to "ensure the best possible user experience" by locking out SDK and user created software, they're no more credible than HP when they say the same about the chips and DMCA-spiked firmware in their ink cartridges.

      This is because foreign code may not only affect stability and "user experience" but the monopoly you have on that hardware. And reducing the monopoly means commodization of some sort and that's what Apple hates more than anything: fixed, exclusive, expensive 2-year contracts, secrecy around new products, higher-than-expected prices, strict limits on the user (changing the battery? a memory card?) - it's all oriented around their central marketing aim of being in THE special position among all hard- and software manufacturers.

      People are buying it, Apple is profitable like nothing and has a crowd of fans silencing all critics - it seems to work, I admit.

      I have quite some respect for their marketing and product strategy - they are doing everything right from a shareholder's perspective. (Stock inflation for unreal expectations is not that important)

      But don't make the mistake to consider Apple a corporation totally different from its arch rival Microsoft. They're following a different path, but their goal is comparable. If Apple's and MSFT's market shares were reversed, we had the same problems with Mac OS than we have with Windows right now, except their design and safety record wouldn't suck half as bad. But concerning anti-competitive maneuvers, vendor lock-in amd user restrictions, they'd be just the same.

    5. Re:my thoughts by iamdrscience · · Score: 3, Informative

      Yeah, they sure didn't understand the 700,000 (!) customers who bought the phone on the first weekend.
      Too bad that number's made up because Apple hasn't released how many phones they sold in the first weekend. AT&T, however, just recently said that only activated 146,000 iPhones during it's first two days on sale.

      While we still don't know how many phones they sold in the first weekend, this is the first hard number we have to estimate it. It obviously doesn't take into account any people who had trouble activating their phones at first, nor anybody who bought the phone on Sunday July 1st, but it gives us an idea. Adding in those people, it's entirely possible that your estimate 700,000 is more than twice as many as were actually sold. At best, I doubt they sold even 400,000.
  4. First Application . . by donaggie03 · · Score: 5, Insightful

    Instant Messaging!

    --
    Three days from now?? Thats tomorrow!! ~Peter Griffin
    1. Re:First Application . . by Anonymous Coward · · Score: 4, Informative

      http://www.meebo.com/ - Meebo works with my iPhone. Supports AIM, Yahoo, GTalk, MSN.

  5. Question by weaponx86 · · Score: 3, Funny

    Will it blend...a web server / development platform / gaming system? Yes.

  6. s/permission/official blessing/ by ajlitt · · Score: 3, Insightful

    Since when do we ask permission to bend our gadgets to our will?

    1. Re:s/permission/official blessing/ by Klaidas · · Score: 5, Insightful

      When we still want to be able to use the warranty.

    2. Re:s/permission/official blessing/ by Lumpy · · Score: 3, Informative

      Fools ask for warranty work when the phone is modded. Simply reinstall the OS and play stupid. works great, they have no idea, and you get that critical flaw that everyone discovers in two weeks fixed for free.

      Did it with many electronic items in the past. reload stock firmware and play stupid. works great, get replacement reload custom setup/firmware/unlock/etc and life is good again.

      I though all geeks knew that simple tidbit.

      --
      Do not look at laser with remaining good eye.
    3. Re:s/permission/official blessing/ by ookabooka · · Score: 3, Informative

      Exactly, I'm pretty sure bending the iPhone (or any gadget for that matter) would void the warranty. Then again no warranty can limit the reasonable life-expectancy of something. Check out the better business bureau for a better idea of what actually voids warranties (most of the time the company is just spouting BS because they don't want to pay for a replacement/repair even though they should; it is either fraud or they just don't want to get on the bad side of the BBB). I think the BBB says the warranty for most consumer electronics is 3 years or so, so don't be afraid to say no to that extended warranty, nothing gets you customer service like opening a claim with the BBB for binding arbitration. My roomate had his mp3 player replaced after 2.5 years even though the warranty expired after 1 after I suggested he check out the BBB.

      Wow I started off with a joke and then made a decent comment. . I must need some sleep.

      --
      If you are about to mod me down, keep in mind that this post was most likely sarcastic.
  7. No way Apple will go for it by JeremyGNJ · · Score: 5, Insightful

    I see voided warranties in people's futures! There's no way Apple (or AT&T for that matter) is going to give the "OK" on 3rd party applications. Apache web servers and python scripts? If people really wanted to try to get acceptance they would have started with a diet-calculator or bowling-score manager. Forget it now, I can see AT&T and Apply's lawyers scrambling for ways to avoid the maelstorm of hacks and scripts that could threaten their good name. Windows based phones have allowed 3rd part apps since their inception, but somehow it seems much less ominous. Perhaps because they're mostly used in corporate deployments, and pure geek-types?

  8. no complaints by toQDuj · · Score: 3, Interesting

    They didn't complain about the hacks of the iTV, so I haardly expect them to throw a tantrum over these few geeks willing to turn their iPhone into a webserver...

    B.

    --
    Every experiment which ends in a big bang is a good experiment.
  9. Jamie Zawinski said... by simong · · Score: 4, Insightful

    'Every program attempts to expand until it can read mail'. In that case every platform evolves until it can run Doom...

  10. AIM instead of SMS? by Oink · · Score: 4, Interesting

    I think AT&T is going to force Apple to lock this down. From what I hear (maybe I'm mistaken, I don't have one yet), the only texting available on the iPhone is SMS, and not iChat. If you were free to install AIM on your phone, there goes a large portion of AT&T's income from text messages. Again, I don't know the details of the forced AT&T plans . . . are unlimited text messages forced on you? If not then I suspect I'm right. =)

    Is this something that can be patched in a forced software update?

    --
    ----------------- Oink. Moo. rarr! -----------------
  11. Apple be praised! by 0xdeadbeef · · Score: 4, Funny

    It's fairly thin on information but if true, this will lead to good things. Like hopefully permission from Apple.

    Ah, the blind faith of a True Believer. I suppose the crippled nature of the device is a test, and by defeating it you are found worthy in Jobs' eyes? And the next time you plug it into iTunes, instead of silently patching these "flaws", it will release everyone's phone from bondage!

  12. iPhone Doom? by martyb · · Score: 3, Funny
    FTFS:

    People, iPhone Doom could be just around the corner.

    Pshaw!! *I* am waiting for iDuke iNuke'm iForever! <grin>

  13. First cool app for apache by Lumpy · · Score: 5, Insightful

    iphone webcam. See the world from someone's hip or side of their head.

    honestly though, how long before AT&T starts deactivating phone accounts for "data plan abuse" because people are actually using their data plan with these hacks and apps? they already try their hardest to scam their customers into buying the full data plan for their smartphone instead of the cheaper smartphone plan.

    I had a AT&T rep threaten me that if I dont change my plan he will have my service shut off.

    cingular and now AT&T pride themselves in the absolute crappiest customer service they can give. Threaten customers, scamming them into getting service plans they do not need (All I want is email, websurfing on a phone sucks and who cares about MTV videos on a phone)

    --
    Do not look at laser with remaining good eye.
    1. Re:First cool app for apache by Mattintosh · · Score: 3, Insightful

      a decent SMS plan

      I think we differ in what this part means.

      Your definition seems to be: "I send SMS messages frequently enough to use 100 to 150 of them a month. It doesn't bother me to pay extra money on my plan to get these."

      My definition is: "SMS messages are annoying and I've never sent one, though I have recieved a few of them. I don't want to pay for crap I know I won't use, especially overpriced crap. Cut them out of the plan and save me some $$$."

      See? Those of us complaining about the plan aren't unreasonable either, we just have different needs. Needs that aren't being catered to by AT&T. That's why there's so much bitching. One size does not fit all.

  14. Vim? Phhtttt by $RANDOMLUSER · · Score: 3, Funny

    Call me when it can run Emacs.

    Oh... Only 8Gb RAM. Never mind.

    --
    No folly is more costly than the folly of intolerant idealism. - Winston Churchill
  15. Re:iPhone as a server by *weasel · · Score: 4, Interesting

    Put the wifi in a peering mode and suddenly it makes a lot more sense.

    Simple mobile myspace-type sites would be pretty huge for a mososo.
    Particularly if it's integrated with file/stream sharing and a decent discovery app.

    --
    // "Can't clowns and pirates just -try- to get along?"
  16. Just what I needed! by oneandoneis2 · · Score: 4, Funny

    My all-time favourite text editor, with its plethora of keyboard shortcuts, on a device with no keyboard!

    How have I lived so long without one?

    When they come out in the UK, I'll buy an iPhone for sure now!

    --
    So.. it has come to this
  17. Not Quite There by DylanQ · · Score: 5, Informative

    People are completely misunderstanding what's going on with iPhone development. We have no means of writing apps for the iPhone with a GUI, or even apps that handle user input. We CAN access the iPhone via SSH and run things remotely; that's about it. Some people are working hard on reverse-engineering current apps and frameworks (myself included) so that we may be able to compile a GUI app, but at this point, there is no Doom "just around the corner". For a while, the main focus of the iPhone hacking efforts has been unlocking. Hopefully this will change, but while people are focused on unlocking, not much else is getting accomplished (aside from what Nightwatch is doing with his toolchain).

  18. Also design process by alexhmit01 · · Score: 3, Insightful

    Every analyst figured out that MP3-player Cel Phones were a threat to the iPod, obviously Apple knew that as well. The iPhone no doubt started simply as an iPod/Phone combo, and some basic Internet features probably evolved into the beautiful little device that you see now.

    There negotiations with Cingular/AT&T probably focused on getting iTunes activation, and AT&T focused on controlling the feature set.. The first phone I had with an AIM client was back in 2001, it's not a rare feature, but Apple probably yielded on iChat because AT&T was yielding on WiFi and didn't want people to avoid paying SMS fees.

    I think that Apple wanted to move product first, then aim for smartphone competition. If they move millions, then Apple, not AT&T, has the power in a renegotiation. Apple wanted to get the iPod-Phone out there and prove demand, then they can go after the pocket computer market.

  19. Paris Hilton? by twoboxen · · Score: 3, Funny

    Good gravy. When did the iPhone become the Paris Hilton of gadgets? I don't want to hear about it every day, either. Just think back... how many "iPhone spotted at _____" stories have their been in the past 9 months?
    Pretty soon we'll be seeing the iPhone being locked up and sent to rehab to get a fully functional SDK. Or maybe it will be hanging out with OLPC (Lohan).
    Unavoidable and becoming just as painful....

    --
    TODO - Insert Creative/Witty Signature
  20. The toolchain means nothing... by Chief+Typist · · Score: 4, Informative

    The hard part about developing apps for the iPhone is working with a completely new environment.

    For example, here are some of the problems with building a SSH client for the iPhone:

    http://furbo.org/2007/07/02/beyond-sweet/

    -ch

  21. Re:I work for Apple. This is all wrong. by Anonymous Coward · · Score: 3, Funny

    At last the debate is settled...
    Apache beat IIS
    Python beat Ruby
    VI(m) beat Emacs

    I am finally going to get a good nights sleep...

  22. great! by oohshiny · · Score: 3, Insightful

    I can now run Apache on a phone that's more expensive than my desktop system, and void my warranty and likely have it bricked on the next sync.

    Folks, if you want to have iPhone-like features with a programmable device, invest your time and effort into helping with one of the actually open phone platforms, don't waste it on trying to battle with Apple's DRM. Apple doesn't want you to run apps on the iPhone, period.

    Of course, recompiling Apache requires so much less smarts than actually creating a nice phone app.

  23. What about SSH? by argent · · Score: 3, Funny

    SSH is easy. You can run SSH on *Windows* for god's sake.