Slashdot Mirror


Running Old Desktops Headless?

CajunArson writes "I recently dug up an old P4 that is in fine working order and did what any self-respecting Slashdotter would do: I slapped Linux on it to experiment with making an NFSv4 server. One other thing I did was to remove the old AGP video card to save on power, since this is a headless machine. Now, I removed the video card after the installation, and I'm doing just fine as long as the machine will boot to a state where networking works and I can SSH to it. My question: Is there a good solution to allow me to log into this box if it cannot get on the network? I'm looking for solutions other than slapping a video card back in. In my case, I will have physical access to the machine. A few caveats to make it interesting: This question is for plain old desktop/laptop systems, not network servers designed to run headless. Also, I am aware of the serial console, but even 'old' machines may only have USB, and I have not seen any good documentation on how and whether USB works as a substitute. Finally, if there is any way to access the BIOS settings without needing a video card, that would be an extra bonus, but I'm satisfied with just local OS access starting from the GRUB prompt."

54 of 347 comments (clear)

  1. Serial console by timeOday · · Score: 4, Informative
    A serial console. As far as I know, this is what serial ports were actually put into computers for in the first place.

    The question about bios settings is a good one though, and I don't know.

    1. Re:Serial console by tverbeek · · Score: 5, Funny

      Yes, he added several conditions, effectively saying "No, I don't want to do this the easy or logical way; I want to make this unnecessarily difficult, by disabling every form of I/O built into the machine except one (the NIC), but still having a way to interact with it (other than that one)." I recommend clairvoyance and telekinesis. :)

      --
      http://alternatives.rzero.com/
    2. Re:Serial console by value_added · · Score: 5, Informative

      A serial console. As far as I know, this is what serial ports were actually put into computers for in the first place.

      Sigh. I wish more people (the home user Slashdot types) would just go buy a serial cable (and/or serial+USB adapter) and see for themselves how trivial it is to set up, and how valuable that setup can be. There's plenty of reasons why one would *want* to rely on serial, aside from the usual "What if the network is down?" scenario.

      For added fun (when there's more than one computer involved), consider something like this

      The question about bios settings is a good one though, and I don't know.

      For the OP and most of us, that's a noop. What I would have suggested instead of a powerhungry P4 (or even PIII), is a soekris box. There's no VGA at all, so the BIOS (and everything else) is accessible via serial only. My "headless" VIA boxes are a PIA by comparison.

      Granted, Soekris boxes are typically used to perform networking functions, but setting one up with a hard drive (laptop or SSD ideally) and running a web, IMAP, NFS, Samba, etc. server is common enough and performance is perfectly adequate. A few bucks more, but hey, they're rackmountable so you can impress your friends and neighbours. :-)

    3. Re:Serial console by merreborn · · Score: 4, Interesting

      I actually worked on a small project that involved deploying headless desktop-based Debian servers to locations all over the continental US.

      We'd fed-ex the boxes, and most of the time, they'd show up with a hard drive detached, or worse (one fedex ground shipment from CA to FL knocked the RAM right out of the slots on one box). What was worse, we didn't have any technical expertise on site to speak of, so even simple problems were hard to diagnose.

      The ASUS motherboards we were using happened to have serial ports, and the BIOS also happened to natively support pumping text-mode input/output over said serial interface -- so you could edit BIOS settings, tweak bootloader settings, put the machine in single user mode and fsck the whole disk, etc. etc. all over serial.

      We experimented with plugging these things into serial-over-ip devices; specifically, one like this one -- although I think we paid about $60 each. Results were mixed. For one, it was pretty painful getting things operating at a reasonable serial bitrate (especially for curses-esque interfaces like the BIOS settings interface -- characters were getting lost), and making them reliably accessible over IP wasn't easy either. You could configure these things to "phone home" when they were powered on, but the configuration interface and documentation was pretty bad.

      If I recall correctly, KVM over IP devices were a bit more pricey.

      So, long story short, when it comes to low-cost remote server management, in my experience, there's something of a lack of quality offerings.

    4. Re:Serial console by schon · · Score: 5, Funny

      I recommend clairvoyance and telekinesis.

      Now, now, there's no need for snarkiness. We can accommodate the specs without resorting to hocus-pocus and imaginary abilities.

      The solution is quite simple - he just needs to get a lemon (although lemon juice might suffice, it's not optimal, as I'll explain further.)

      How it works is simple - you put a 1/2" slice of the lemon in your mouth, then stick in the end of the ethernet cable. The juice from the lemon reacts with your metal fillings and the copper from the network cable, generating electricity, which can then be used to set up an ethernet link by humming at the correct frequencies.

      Once slice of lemon will provide approximately 8 to 10 minutes of power for this - be careful not to slice the lemon too thick or thin - too thin and you'll run out of power too soon, and too thick and you'll be wasting the juice in the center (This is why lemon juice is suboptimal - it washes away too quickly, so you'll be needing to "recharge" every 20-30 seconds.)

    5. Re:Serial console by NotBornYesterday · · Score: 2, Funny

      Well, helpdesk personnel are often expected to be psychic in order to diagnose problems where the end user has no clue, so if he's been in Tech Support, I really don't see a problem with the clairvoyance part.

      --
      I prefer rogues to imbeciles because they sometimes take a rest.
    6. Re:Serial console by 1s44c · · Score: 4, Informative

      Did you even read the summary? He specifically mentioned that he knows about serial console and many of these machines might not have serial ports.

      Some machines don't have serial ports. The easy solution is to buy a serial card for these machines.

      Everything else is more expensive and more complex.

    7. Re:Serial console by Almonday · · Score: 2, Funny

      If only ESP was a supported protocol... ;-)

      --
      Posterity, my posterior.
    8. Re:Serial console by icebike · · Score: 2, Insightful

      > The easy solution is to buy a serial card for these machines.

      No.

      By far the easiest solution is to leave the VGA card in the machine.

      Removing it to save power is a pointless exercise. As long as you don't have a monitor running removing the card saves virtually nothing.

      Unpower floppys, CD readers, and all the fans you can get away with, but yanking video cards just silly.

      What makes this post especially silly is that many older machines have on-board video anyway.

      --
      Sig Battery depleted. Reverting to safe mode.
    9. Re:Serial console by Sique · · Score: 3, Informative

      .. which need an already loaded OS to work... so what if GRUB is fucked up for some reason and the USB driver is not loaded yet to operate the serial console?

      --
      .sig: Sique *sigh*
    10. Re:Serial console by geekprime · · Score: 2, Informative

      The Intel DP965LT has a serial port header right on the motherboard, check the manual, page 11 labeled P described on page 12.
      pdf of the manual at
      http://www.intel.com/support/motherboards/desktop/dp965lt/sb/CS-022910.htm

      The Asus M4A78 Plus ALSO has a com1 port on the motherboard, you can look at the pretty pictures on newegg, it's in the lower right corner labeled com1, it's a light blue header.

      So we still don't have any motherboards without serial ports...

      I will concede however that they seem to have done away with them on many laptops (although I can't buy one that dosen't have one, configuring real routers & etc requires serial)

      Oh, and I just want to say that the EEE is more a netbook type device than a laptop type device.

      Question, are the USB serial adapters properly supported in linux (and windows) yet? The last time I tried one the drivers were crap and it wouldn't work above 1200 baud.

    11. Re:Serial console by aled · · Score: 2, Funny

      No luck; my motherboard only supports the MS ESP 1.0 protocol which is incompatible with most minds...

      --

      "I think this line is mostly filler"
    12. Re:Serial console by multiplexo · · Score: 2, Funny

      Well at least MS ESP isn't as bad as Vista, ESP edition. You want to know how bad that was? Well remember that movie Scanners. Yeah, it was kind of like that.

      --
      cheap labor conservatives - they want to keep you hungry enough to be thankful for minimum wage.
    13. Re:Serial console by icebike · · Score: 2, Informative

      A vga card just does not draw that much.

      Running headless, there would be a static image or black screen shown. Why would anything be drawing to the screen?

      (There is no reason any sane person would run a screen saver on a headless system, or even use runlevel 5).

      If he wanted to do Folding At home with his GPU he wouldn't be yanking out the AGP card now would he!?!??

      Substituting a trash-bin VGA card, (which every harware hacker has 8 or 10 of in the back room) saves power over anything with a smart GPU, and saves all the power that is worth saving while still preserving a monitor hook-up capability for emergencies.

      Leaving the current AGP cards in place running at the run-level 3 black screen saves just about as much. The card is not doing anything.

      --
      Sig Battery depleted. Reverting to safe mode.
  2. Just put the vid card back? by Anonymous Coward · · Score: 5, Insightful

    Maybe I'm way off base here, but putting in an old low memory (2-32MB) APG card isn't going to draw that much power. I totally understand your issues with wanting to run a headless machine, I have a few myself. But honestly I've found it's just a LOT easier to leave a cheapo card in the rig so that if something comes up I don't have to crack open a case.

    1. Re:Just put the vid card back? by AmiMoJo · · Score: 2, Informative

      The Rage Pro 8MB is the ultimate low power card, and comes in PCI format. Less than 1W power use at idle, and supported by Linux and Windows with built-in drivers. Until 2007 many Intel servers had them on the motherboard, before ATI introduced a new line and Intel moved to their own chips.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    2. Re:Just put the vid card back? by fm6 · · Score: 2, Interesting

      Which brings us to the fundamental mistake in the question:

      This question is for plain old desktop/laptop systems, not network servers designed to run headless.

      There's actually no such thing as a "server designed to run headless", at least not in the x86 world. All the widely used server designs evolved out of desktop PCs.

      Until recently, my job was documenting Sun x64 servers. Every single system I worked with at Sun had an embedded video adapter. A system might go through its entire working life without a monitor being plugged into that adapter, but it was always there. And these were all "green" systems, designed to minimize energy consumption. Indeed, we sometimes lost a few sales because our PCI slots didn't provide enough power to handle high-end video adapters. Yes, people do buy servers and then use them as workstations!

      I didn't work with SPARC systems at all, but I know the low- and medium-end Sun systems all come with embedded video adapters as well. It just doesn't add anything to the manufacturing or operating cost of the system, and although it's rarely needed, working around it's absence can be a real pain.

      I think maybe the high-end SPARC servers lack any kind of video port. But not to save power! I imagine these are the last remnants of the days when Sun relied on proprietary tech a lot more than they do now. I do know that these are the only Sun products that are still manufactured in Sun factories, instead of being outsourced.

  3. Control Card? by malevolentjelly · · Score: 4, Insightful

    I know there's a type of card that will push the serial interface through the network, if having a serial console (like running HyperTerminal in windows with a Null Modem cable plugged in) is not sufficient. That should allow you to get to the bios without having the monitor plugged in-- that's the theory, at least.

    Also, if you're using this system as the lowest wrung sort of server, you might want to look into simply buying some Via Nano or Intel Atom hardware and just creating an ultra low-wattage server. Older desks were not renowned for their power efficiency, so over a few months, if its running 24/7, more efficient hardware might actually pay for itself in terms of energy costs, especially if you're somewhere with expensive power like California. It might be clever to cannibalize your old systems for hard disks and such and use them in this low power system, since the power usage of the hard disk will be largely a software problem, etc.

    1. Re:Control Card? by Sponge+Bath · · Score: 3, Insightful

      That's a reasonable suggestion.

      If he truly needs a light weight, always on server then a new mini is a good idea. Modern, low power with a built in console. He can get just as much technical fun from setup and tweaking. If he is so impoverished he can't afford the $200-$300 then he probably does not need to be upgrading the old box and running it around the clock.

      Personally, I've lost fascination with dinking around with old hardware. If I have a specific solution to implement or new skill to learn, I prefer a more forward looking approach with things that are new.

  4. Good luck by gravos · · Score: 2, Informative

    Most of the Dell and IBM servers I've used will let you get to the BIOS/GRUB over a serial console with some configuration, but I've never seen a desktop motherboard that would do it. If you really care about power consumption the easiest route is probably to buy a cheap, low-power itx board that has VGA built in and skip the console altogether. Plus, that way you don't need a laptop to talk to the box, just an old monitor.

    Anyone know some tricks to get serial console to work with grub on a desktop mobo?

    1. Re:Good luck by Bert64 · · Score: 2

      You would need a lights out management card, many servers have them built in but they're not usually found on desktops.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    2. Re:Good luck by mariushm · · Score: 3, Interesting

      Even easier, go to eBay and get a PCI video card for a couple of dollars. I got an ATI Rage with 8MB of memory for something like 2$ plus about 4$ shipping. It's only a few watts, which if you really freak out about power usage, you can recover by lowering the CPU voltage and the frequency to a bit lower than the normal. Well, anyways you'll make it more economic simply by replacing the power supply with a 80-85+ certified one, but it's probably more expensive than the whole computer, or the money saved in 2-3 years.

    3. Re:Good luck by Useful+Wheat · · Score: 5, Insightful

      You're all putting WAY too much thought into this. The easiest way to do this is to take a magnet and manually adjust your hard drive until it has the SSH capability you're looking for. Everyone has at least 1 or 2 good magnets laying around, and with a steady hand this could become a great do it yourself project. Plus, you get epeen bragging rights when people start talking about how they used to code in assembly. You coded with a magnet and a HD.

      Wait? That would be a pain in the ass? Almost impossible?

      The AGP card is rated for 63 watts, maximum. Over a year that's 552 kWh. Paying for electricity at $0.15 a kWh you run into an additional $6.90 a month to run the AGP card.

      1. Find a quarter in your couch cushions.

      2. Plug the damn thing in for the 10 minutes it would take to setup a remote SSH connection using the suggestions people have put in this thread.

      3. Pay the additional power bill with the quarter.

      4. Move on with your life

      5.....

      6. Profit!

    4. Re:Good luck by Anonymous Coward · · Score: 5, Informative

      Grub works just fine with serial console. Add the following lines to your grub.conf:

          serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1
          terminal --timeout=10 serial console

      Also, make sure to add:

          console=tty1 console=ttyS0,38400n8

      to your "kernel" line for linux boot images so the kernel will send console messages to the console. Of course the kernel itself must be configured to support serial console too!

    5. Re:Good luck by KillerBob · · Score: 2, Interesting

      Even easier, go to eBay and get a PCI video card for a couple of dollars. I got an ATI Rage with 8MB of memory for something like 2$ plus about 4$ shipping. It's only a few watts, which if you really freak out about power usage, you can recover by lowering the CPU voltage and the frequency to a bit lower than the normal. Well, anyways you'll make it more economic simply by replacing the power supply with a 80-85+ certified one, but it's probably more expensive than the whole computer, or the money saved in 2-3 years.

      I'd agree with buying a cheap video card from e-bay. A few years ago, my local 2nd hand computer supplier put out a bin of old video cards, and I picked up about 20 ATI Mach64's with 512k-1mb of memory each... :) they work great in servers. :)

      As to the OP's question... whatever happened to using a KVM? They're pretty inexpensive, and really easy to get your hands on. If it's just a play server, set it on the floor next to your regular computer, and use your existing keyboard/mouse/display. Most modern KVM's will emulate a connected display and input devices so that the computer will never know that it's not connected, meaning you don't have to tweak/configure anything in the computer to get it to run headless.

      --
      If you believe everything you read, you'd better not read. - Japanese proverb
    6. Re:Good luck by BrokenHalo · · Score: 2, Interesting

      Most motherboards come with some sort of on-board GPU. Since this situation is a server machine, there's no reason to run an X server, so there's no reason to install any more sophisticated graphics card. Even the crappiest on-board GPU I have come across on PC hardware (which incidentally happens to be a SiS unit back in 1996) can cope with text-mode I/O in a TTY.

      But if the server is to run headless, all you need is a good syslog system (which should be set up by default) and ssh.

    7. Re:Good luck by dotancohen · · Score: 4, Funny

      You're all putting WAY too much thought into this. The easiest way to do this is to take a magnet and manually adjust your hard drive until it has the SSH capability you're looking for.

      Butterflies. What the OP needs are butterflies.
      http://xkcd.com/378/

      --
      It is dangerous to be right when the government is wrong.
    8. Re:Good luck by iamhassi · · Score: 2, Interesting

      "As to the OP's question... whatever happened to using a KVM?"

      Still requires a video card.

      My question is has he tested the motherboard to see if it'll boot without a video card? I've seen many a board that would error if a card wasn't found. If a card is required then just deal with the $6 a month, or if you really wanna do something get a 9 watt Geforce 7300 for under $20 on ebay which would use $8 in electricity a year at 10 cents/kw-hr.

      But according to this chart even the greatest 3D video cards of 2006 only used 30 watts at idle, which is $26 a year, and if this is a old P4 then it's probably not even using a 3D card as modern as that. I'd say just leave the card in there and not worry about it, it's probably costing a dollar or two a month at most.

      --
      my karma will be here long after I'm gone
    9. Re:Good luck by hairyfeet · · Score: 5, Informative

      Actually there is an even cheaper and easier way to do it.....go talk to your friendly neighborhood local mom and pop repair shop. We are the biggest packrats there is and often have drawers filled with old PCI cards of all shapes and sizes. We are also usually quite bored and will happily sell you parts cheap, especially if you are doing something cool with them like a server, instead of dealing with the usual "I got a bug looking at pron again. Here fix it" which is what our days usually consist of. I personally have everything from a 2Mb Matrox card up to a 64Mb MX400 lying in my GPU drawer.

      So go talk to your local repair shop. you'll find if you BS with us a little we're happy to let you go through the goodie drawers and will sell you cheap anything you want. Think of it like a cheap flea market for PC parts. We just really hate throwing working hardware away when we might find a use for it someday. And before somebody goes "WTF you gonna do with those old crappy GPUs?" I would point not only to this article, but point out the fact I just sold a 12Mb S3 graphics card to a guy for a whole $5 including popping it in for him. It was supposed to be just to get him through until we could get him an AGP card (which I was out of at the time) but the S3 worked great on his Win2K office PC so he said "if it ain't broke, why fix it?".

      Those old PCI cards with 8-16Mb of RAM really didn't use hardly any juice at all, probably less than the average IGP does today. 20 minutes worth of BSing with your local repair guy and I'm sure you'll get one for a couple of bucks, with no shipping or waiting. Then if you want to get fancy you can pick up one of the cheapo KVM switches at Newegg, and if you have a problem with your server just "clicky clicky" on the keyboard shortcut and you are good to go. I paid a whole $30 for mine but Newegg has the same model for $26 or $16 for a 2 port. Since you already have the P4 this would be the easiest way to go headless and still have access if something goes wrong.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    10. Re:Good luck by emilper · · Score: 4, Insightful

      the processor is a P4 ... why worry about the power consumption of the AGP card ?

    11. Re:Good luck by KillerBob · · Score: 2, Informative

      Most low-end motherboards come with some sort of on-board GPU.

      Fixed that for you. :) Most high-end motherboards don't have an on-board GPU, because most people who'd be willing to spend $250 on a motherboard (when you can get one for $60) probably won't balk at buying a discrete graphics card, and in fact, probably plan on buying a discrete graphics card anyway, because integrated graphics tend to be a generation or two out of date.

      If I were building my own server, I'd make sure to get a motherboard that had on-board graphics (as long as chipset and I/O were up to snuff). If I were re-tooling old hardware, it's a coin toss as to whether I'd have on-board graphics. Point of fact, the only systems I have ever bought that had onboard graphics were purpose built for something that doesn't require gaming. They're both HTPCs, and they're both still in use.

      --
      If you believe everything you read, you'd better not read. - Japanese proverb
    12. Re:Good luck by hairyfeet · · Score: 3, Interesting

      And THAT sir is why we PC repair guys are packrats and never throw anything working away. You just never know when somebody is gonna desperately need that old crap!

      My story like that is I had a guy practically in tears walk into the last shop I was hired gunning for, holding an old ISA card and asking for a PC that would fit it. I thought the guy was gonna cry when the boss said "I don't think we got anything that will take that" as he had hit every shop between his work and us, and all had told him a minimum of 2 weeks to get something that would work. I said "I got a couple of old gamer rigs in my closet at home that'll take that" and thought the guy was gonna kiss me.

      It turned out that old card was a CNC controller for a lathe that made custom scroll work on columns, that he was the owners son who had FINALLY trusted the guy enough to put him in charge while he went on vacation, and naturally the lathe controller chose that week to go tits up and he had a $50k job due in 3 days and without the columns he would lose the job. he ended up paying me $300 for a pair of old boxes that weren't worth $100 together PLUS a full days pay at time and a half PLUS paying Doug to let me off for the day PLUS paying me to drop everything and spend the day setting it up for him. It turned out this lathe was made in like 86, the company went tits up in 89, and so naturally it would ONLY run in DOS 3. Lucky for him I still knew all my old DOS commands and the HDD (which was a 40Mb, IIRC) was still good so I could clone it.

      All told I made close to $1000 for a single day's work, and he got not only the lathe up and running, but a spare 233MHz so the next time it happened he would be ready to go and not have any downtime. I set the 233Mhz up in the office in the corner and showed him how to boot once a month to keep the HDD spinning, and when his dad came back the man was so impressed he gave his kid a raise and more responsibility. So it just goes to show that you never know when that old POS you are hanging onto might be worth money. And if you ever need an old part your local mom and pop shop is a wealth of old hardware at cheap prices. So go talk to your local PC repair shop guy, you'll find a wealth of hardware cheap, and a great source for the DIY builder.

      --
      ACs don't waste your time replying, your posts are never seen by me.
  5. serial tty by SgtChaireBourne · · Score: 2, Informative

    If that box and another both have serial connections, then use the serial console: Get a null-modem cable. Connect that to another box. Make sure the you add console=ttyS0,19200n8 or some variation to the append line in your grub entries. On the client side use cu aka tip, minicom or PuTTY to make the serial connection, making sure that bps, parity and stop bits match.

    --
    Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
  6. Serial header on the motherboard by blakeyez · · Score: 5, Interesting

    As many others have mentioned, the serial console is the way to go. Even if there's no DB9/DB25 serial port out the back, there's likely at least one serial port header on the motherboard. The header/pinout is generally standard, so go digging in that 'really old parts' box that we all have and see if you can dig up a DB9 port mounted on a plate to mount where a card would normally go. It will have a ribbon cable to attach it to the motherboard...

    1. Re:Serial header on the motherboard by SgtChaireBourne · · Score: 3, Informative

      As many others have mentioned, the serial console is the way to go. Even if there's no DB9/DB25 serial port out the back, there's likely at least one serial port header on the motherboard. The header/pinout is generally standard, so go digging in that 'really old parts' box that we all have and see if you can dig up a DB9 port mounted on a plate to mount where a card would normally go. It will have a ribbon cable to attach it to the motherboard...

      Very good point. The cables are easy to find, too: e.g. http://www.pccables.com/07120.htm (That's a random cable picture and not an endorsement of the company. YMMV, Caveat Emptor, etc.)

      --
      Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
  7. You can still buy SP add-in cards by Anonymous Coward · · Score: 2, Interesting

    They ARE still available, and for as little as $15. USB/serial port adapters do work for outgoing connections from a laptop or PC, but you will probably need an adapter card for the 'server' if it does not have a serial port.

  8. KVM over IP by fishthegeek · · Score: 3, Interesting

    KVM over IP might be what you're looking for.

    KVM over IP Network Card

    I've never done business with this company. I just googled and took the first link.

    --
    load "$",8,1
  9. Video card may be the least of your power worries by CSMatt · · Score: 3, Interesting

    I have no idea how much power your AGP card used, but unless it was a gaming rig in its glory days, the CPU probably absorbs most of the power, especially since you mentioned that it is a Pentium 4. I would see if there are any power-saving features in your BIOS and enable them, undervolt your processor to just the speed that you need, and get a cheap PCI video card for when problems occur. I've never used the serial port for diagnostics, but I don't think it will help much if you ever run into a situation where your system won't boot.

  10. iLO by Crudely_Indecent · · Score: 2

    Have a look on ebay for a compaq iLo PCI card. This is a network-attached video card (also providing keyboard and mouse) allowing an administrator to get an actual screen (like VNC) over a network connection.

    You'll have access to bios as well!

    --


    "Lame" - Galaxar
    1. Re:iLO by Slashcrap · · Score: 2, Informative

      Have a look on ebay for a compaq iLo PCI card. This is a network-attached video card (also providing keyboard and mouse) allowing an administrator to get an actual screen (like VNC) over a network connection.

      You'll have access to bios as well!

      This would be a good idea if the machine was an HP server and literally the worst fucking idea I've ever heard if it isn't. An iLO card will work in certain HP servers, an RSA card will work in certain IBM servers and a DRAC card will work in certain Dell servers. A generic card which will work in anything does not exist. These things aren't generic peripherals.

  11. Didn't find a good solution by gweihir · · Score: 3, Interesting

    I have been doing something similar for half a decade now, in a firewall/storage/NAT server running Debian stable. I found that the only really critical operation is changing the kernel, and for that I have a vido card handy (by now I use a low-power board with integrated graphics). For other things, including updates, I just cross my fingers.

    The options that are there to do without the spare video card are basically IPMI (expensive, needs special mainboard), virtualisation and a serial console + remote reset capability. A serial console needs for your kernel to come up, and in fairness, also needs remote reset capability. It also needs a second computer to connect the serial line to. I used that for a test machine in a computer cluster with good results for several years.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  12. Or shut it down. by AndGodSed · · Score: 2, Funny

    True story - I was working late one night and was busy shutting down everything in my office before going home. One by one I closed terminals on my laptop until typing 'shutdown now' in the last one.

    I was still packing stuff and reached over to put my laptop in my bag and blinked at the terminal message 'connection to servername lost.'

    With horror I realised that I had shut down our main mailserver! I had forgotten that I was still in an SSH session after reading through exim logfiles trying to find a missing e-mail that a client had insisted was stuck in our server.

    This machine is an hour's drive from the office, and the support techs at the IDC took almost 30minutes to get up from their desks and walk down the corridor to push the power button. Talk about service. It is literally a five minute job!

    When I phoned my colleague who was responsible for the server I said "Guess what I just did!?"

    He laughed and joked "Probably shut down the mailserver?"

    When I confirmed he responded "*groan* I forgot to alias that command! Sure I aliased poweroff, but not shutdown!"

    Good Times.

    1. Re:Or shut it down. by raddan · · Score: 2, Informative

      Save yourself some pain and put something like this in your /etc/profile:

      export PS1="${USER}@`hostname -s`:\w$ "

      That particular one is for ksh; it might work for bash, too. I don't really use bash.

      You could even make the machine name flash red if you wanted to.

    2. Re:Or shut it down. by xaxa · · Score: 2, Informative

      You might be interested in molly-guard (available in Debian/Ubuntu, and presumably others):

      The package installs a shell script that overrides the existing shutdown/reboot/halt/poweroff commands and first runs a set of scripts, which all have to exit
        successfully, before molly-guard invokes the real command.

        One of the scripts checks for existing SSH sessions. If any of the four commands are called interactively over an SSH session, the shell script prompts you to enter the name of the host you wish to shut down. This should adequately prevent you from accidental shutdowns and reboots.

        This shell script passes through the commands to the respective binaries in /sbin and should thus not get in the way if called non-interactively, or locally.

      22:56:13 rock:~ > sudo shutdown -r 5
      W: molly-guard: SSH session detected!
      Please type in hostname of the machine to shutdown: box
      Good thing I asked; I won't shutdown rock ...
      W: aborting shutdown due to 30-query-hostname exiting with code 1.

      (I only have it installed on my server, so getting the question is enough to make me hit ^C. Also, my prompt is yellow on my home PC, red on my work PC, cyan on servers, and includes the hostname, so I'd need to be really tired to make a mistake.)

  13. Recycle your computer by Bob+Esponja · · Score: 2, Interesting

    And buy one Sheeva Plug Computer http://www.marvell.com/featured/plugcomputing.jsp. I bought one and now I save about 245 W per hour. I love this wonderful machine. I have an apache/mysql/webcam, mldonkey, bittorrent, ssh, samba, print server and nfs services and run fine!

    1. Re:Recycle your computer by hansamurai · · Score: 2

      Sheeva dev kits have a great wiki:

      http://www.openplug.org/plugwiki/index.php/Getting_the_Plug_Computer_Running_with_an_Operating_System

      Mine's due to arrive on the 11th, can't wait.

  14. RTFLDP by itomato · · Score: 5, Informative
    From the Remote Serial Console HOWTO http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-boot-loader-grub.html
    GRUB:

    Define the serial port and configure GRUB to use the serial port, as shown in Figure 4-6. Figure 4-6. GRUB configuration for serial console

    serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
    terminal serial

    --unit is the number of the serial port, counting from zero, unit 0 being COM1. Note that the values of --parity are spelt out in full: no, even and odd. The common abbreviations n, e and o are not accepted. If there is mysteriously no output on the serial port then suspect a syntax error in the serial or terminal commands. If you also want to use and attached monitor and keyboard as well as the serial port to control the GRUB boot loader then use the alternative configuration in Figure 4-7.

    Kernel:

    The Linux kernel is configured to select the console by passing it the console parameter. The console parameter can be given repeatedly, but the parameter can only be given once for each console technology. So console=tty0 console=lp0 console=ttyS0 is acceptable but console=ttyS0 console=ttyS1 will not work. When multiple consoles are listed output is sent to all consoles and input is taken from the last listed console. The last console is the one Linux uses as the /dev/console device. The syntax of the console parameter is given in Figure 5-1. Figure 5-1. Kernel console syntax, in EBNF

    console=ttyS<serial_port>[,<mode>]
    console=tty<virtual_terminal>
    console=lp<parallel_port>
    console=ttyUSB[<usb_port>[,<mode>]

    Quite a bit more info at tdlp.org..

    1. Re:RTFLDP by CajunArson · · Score: 2, Interesting

      Hi, original question-poster here. Thanks for the information, but I was wondering if GRUB would work over a USB serial console as well. I've heard that serial console support works fine after the kernel is up and the USB drivers are in place, but can GRUB run over a USB serial adapter as well?

      --
      AntiFA: An abbreviation for Anti First Amendment.
  15. Will it pass POST? by JImbob0i0 · · Score: 2, Interesting

    It's a P4 desktop.... so presumably it isn't designed for headless use on the mobo/BIOS behaviour.... Haven't seen this mentioned yet - but part of the POST sequence is initialising video and most boards will fail POST with no video interface... even if it was an old ISA/PCI card... which pretty much makes all this moot.

  16. "Real" servers can do it by billcopc · · Score: 2, Insightful

    Many server-class machines have something called IPMI (IP Management Interface), sometimes called LOM (Lights-Out Management). It is essentially KVM over IP, but built into the motherboard, sometimes via a small add-on card.

    If you're playing around with desktop equipment, you should know that most boards will refuse to boot if a video card isn't detected. If you're trying to do this the cheap way, pop in the simplest video card you can find, hook it up to a KVM and get on with your life.

    I run a bunch of headless machines here, they're all fully-functional PCs. When something breaks, I just whip out a USB keyboard and a VGA extension cord, and deal with it. The rest of the time it's all SSH and/or serial.

    --
    -Billco, Fnarg.com
  17. You've still got a keyboard, right? by jonadab · · Score: 2, Interesting

    Assuming the PS/2 interface still works, you can still log in locally and work blind. It's a little slower, because you have to stop and think more about what you're doing (e.g., tab completion is a good deal less useful), but if you know what you're doing you CAN make it work. Back in the days *before* convenient networking, I used to occasionally have to work blind when a monitor was out for some reason, most commonly to copy files to a floppy disk so I could take them to another computer. Like I said, you have to stop and think, but if you know the system you *can* do it. You don't need to see the output. You can mostly predict what the output is going to be, and if you *do* need to verify some command's output for some reason you can pipe it into a very short Perl script and make it beep once for yes or twice for no, or if worst comes to worst cat the output onto a floppy disk and take it to another computer to analyze.

    HTH.HAND.

    --
    Cut that out, or I will ship you to Norilsk in a box.
  18. USB Serial Ports Windows Drivers by Cassini2 · · Score: 2, Informative

    Question, are the USB serial adapters properly supported in linux (or Windows) yet? The last time I tried one the drivers were crap and it wouldn't work above 1200 baud.

    In general, USB Serial under Windows is horrible. Windows XP has many USB serial ports with buggy drivers. Most devices that I tested had either data corruption issues, or simply wouldn't do high baud rates, or both. If you use the FTDI chipset based devices, then at least no data corruption occurs at high baud rates. All of the drivers that I used would fail if the USB device was disconnected while RS-232 communication was occurring, and then reconnected again. To recover, Windows XP either had to be rebooted, or the USB port reassigned to a different COM port number. A reboot for a USB driver???

    Also, many older specialty programs won't work with USB serial ports. Essentially, Microsoft slightly changed the behavior of the polled mode ReadFile/WriteFile calls, so USB serial ports behave differently than built-in serial ports. This breaks old software.

    USB serial ports under Windows for antiquated embedded / real-time applications can be a real nightmare. The only success I had at high baud rates was with the FTDI chipset and drivers. Even they, broke old software, and required a reboot if the USB device was unplugged during communications.

    And you are worried about Linux driver support? I'm pretty sure that this is one of those cases where Linux works better than Windows.

  19. Pentium 4 power saving by Cato · · Score: 2, Informative

    For P4s and Celeron Prescott/Northwood using same technology, just install cpufreqd and make sure it's using the ondemand governor. cpufrequtils is also useful and doesn't clash. The actual work is done by the kernel module p4_clockmod, must be in /etc/modules.

    This makes some difference to power consumption. As for temperature, the best thing I did was to remove the old thermal paste on the CPU/cooler and apply some new Zaward paste - CPU temperature dropped by 20 degrees C (something like 30F).

  20. PC Weasel by Marauder2 · · Score: 2, Interesting

    The closest thing to a Consumer Desktop Remote Management card I've found is a "PC Weasel" which I saw back in 2000... http://www.realweasel.com/intro.html

    That said, the website hasn't been updated since ~2000, it's expensive, but is the closest thing to what you're asking for, "Headless BIOS access" without going with real server hardware. Personally, I'd just keep a video card in the thing and hook it to a KVM switch... It's not going to pull that much extra power.