Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, May 18, 2014

NUC on Wood

NUC on Wood

By Bobby Neal Winters
A few years ago, I went through a period of building computers.  Built an Itty-bitty Ubuntu box and a media center, going through the process one piece at a time.  I liked the one piece at a time model.  You plan out your project; you order your piece for the week; you get it in the mail; then you order your next piece et cetera until it is done. Then you put it all together.
This was a great way to spread out both the expense and the joy.  And indeed as a big part of these projects are to keep my otherwise mischievous mind occupied, it was very effective. Something with four parts would take four weeks to complete and so keep me in a happy place for a whole month.
My path from computer building took me to Arduino and to Raspberry Pi. These categories are both amenable to the one piece at a time model.  
Then earlier this year I happened upon the NUC (Next Unit of Computing) computer.  This is a computer that has a tiny (four inch by four inch) motherboard but will support I3, I5, and I7 processors.  I thought that this would be great.  I could make one and put Ubuntu on it, I would have a Linux box small enough to sit alongside my Windows box but powerful enough to do something beyond the Raspberry Pi level.
And to cut to the chase, I’ve got something working. I got it all to work out today.  Let me go back to the beginning, though, and say some things that might (MIGHT) smooth the road for any of the rest of you who might want to trek down the same road.
The first thing is that I was not able to get the one piece at a time method to work out all that well. Let me explain. When you list out the pieces of a computer, what do you have:
  • Case
  • Power supply
  • Motherboard
  • CPU
  • Memory
  • Hard drive
I was not able to get those first four separately.  Actually, it’s not that simple. I bought the case. I have it sitting unused over to the side right now.  I wasn’t able to get a motherboard to fit it.  I looked my eyes out over the Internet, but the only ones I could find came in lots of 10.  I didn’t want 10. I wanted one.   Within my searches, I came upon a product that combined the first 4 of these.   This was a bit pricey, but it did include a lot.
Here is an opportunity to talk about the power supply.  When you make a computer--even an itty-bitty box with an ITX motherboard--you put the power supply inside.  With this type of machine it goes outside. You use the same sort of power supply that you use on your laptop, your printer, or on most of your peripherals. A mickey-mouse power cord (if you’ve seen one, no explanation is needed; if you haven’t none will do) goes into a transformer which will then connect to your computer with a jack.
Over the next couple of weeks I bought the memory and a solid state hard drive.  Okay, memory is boring.  The SSD is exciting and even--dare I say it--sexy. It was $75 for 120 GB which looks pricey if you compare it to the standard hard drive where the same money will get you 750 GB, but Lord have mercy this smokes.  You turn on your computer and your operating system is loaded.
In building computers these days, my observation has been that if it weren’t for the front-panel connections it would be as easy as putting Legos together.  This already had its equivalent of the front panel connected, so assembly was just snapping the memory cards and the solid state drive into place.
The challenge I had in putting my NUC box together came after the machine was totally assembled: installing the operating system.  As I said, the entire raison d’etre of this box was to run Linux. You can go to the Ubuntu page and download Ubuntu and even get instructions on how to install it from a USB stick. And it “installs” very quickly and easily.  The scare quotes are there because getting it to boot after you’ve gotten it installed is an issue.
I have succeeded in that.  I am not going to tell you the exact method because I am not sure it’s reproducible. It required Internet searches and fiddling with the BIOS.  Once I got it to boot, the fracking keyboard I have wouldn’t work.  I finally installed a wireless keyboard I have lying around and it worked.

I was able to get it to run headless by installing xrdp on it and using remote desktop from my windows machine to login.   At this point, I have no methodology to recommend more specific than some combination of stubbornness and patience.

Sunday, February 24, 2013

The Headless Pi-Man

The Headless Pi-Man

By Bobby Neal Winters
As those of you who have sampled this blog recently will be aware, lately I’ve been into building a robot.  I am progressing in that and will report on that shortly.  My account wouldn’t be complete if I didn’t share what got started on that was the Raspberry Pi.  I originally saw--was shown--Raspberry Pi on Facebook over Christmas Break.
I googled it.  Raspberry Pi was backordered, but the Arduino processor showed up on the search.  The rest is history, as they say.  
But I’m nothing if not stub..tenacious. I got my Raspberry Pi and have been trying to work it in amongst the Arduino/Robotics.  I may eventually try to marry them, but we have to see whether they get along first.
The Raspberry Pi is a computer based on an ARM chip...blah, blah, blah.  I’ve seen it described as the motherboard from a smartphone with some nice connectors glued to it.  They sell two varieties.  You want Model B and you can get it for $35 here.  You will also want to get the SD card with the operating system on it; that will cost you $13.
And you will need a TV at first.  It will have to have either an HDMI connector or a RCA jack connector.  These are the two ways that the Raspberry Pi connects directly with monitors.  The Pi was designed to appeal the the hacker mentality.  Since Christmas break, I’ve learned a lot about this psychology.  
There are folks who will spend hundreds of hours to find a way to do something outside of the constraints of the system.  (Be kind to them because you will want them to be your friends come the Zombie Apocalypse.) For these folks--and to make it as cheap as possible--the Pi has been designed so that you can make it work with things you might have laying around: keyboard, mouse, TV, ethernet hub, cell phone charger, etc.
I must confess that this peculiarity of working with anything BUT a computer monitor has cost me the most.  All of the TVs in my home are being watched by someone.  After a couple of misadventures with monitors designed for use with backup cameras and CCTV such as this. I got a cheap little TV for $100.  The bright side of this is that it can be used later for something else.  My youngest daughter is already lobbying for it.
This is all going to be filed under “I” for Irony in the Twilight Zone, however, because I believe I am going to be running my Pi headless.
That’s right, headless.
As it is a Linux box, you can use secure shell (SSH) to connect to it remotely.  As it is such a small little fellow, running a GUI on it makes it run slowly.  The light little browser that comes on it doesn’t do the things I like.
But it is a Linux box so I can put it on my network and set it up as a server.  The only thing I needed the monitor for was to get its IP address so I could connect to it remotely.
However, in the course of this, I have resurrected my Ubuntu box so I may put together a Linux network: A little computer farm in my own office.
There will be more entries as madness descends.

Thursday, February 21, 2013

Snow Day: Downton Abbey, Engineers, and a Chest Cold

Snow Day: Downton Abbey, Engineers, and a Chest Cold

By Bobby Neal Winters
You may recall the Multimedia PC I built one piece at a time.  I made a big deal about it.  I didn’t make such a big deal out of the fact that it suddenly stopped working.  (I now believe the power supply went out, but the truth of that remains to be seen.)  It turns out that building a video recorder isn’t such a big need when you’ve got Netflix.
In any case, it went out and I wasn’t in any hurry to get it fixed until a friend who’d loaned me the second season of Downton Abbey on DVD--before we discovered it was on Netflix--wanted his discs back.  It was then I remembered they were stuck in the Multimedia PC which couldn’t be opened because it was broken and which couldn’t be fixed because I didn’t have the time.  The solution at that point was to buy my friend a replacement set of DVDs and to wait until I had time to fix my Multimedia PC.
Summer came and went.  The wind whipped in flipping the days on my calendar.  Children dressed first in Halloween costumes and then as pilgrims came by.  A large man in a red suit struggled down a chimney and a naked baby in a top hat crawled by.
Then we got a snow day and I finally had time to mess with the computer.
It actually took less than half an hour to get the DVD out. All I had to do was take the DVD-Drive out of one and put it into another.  I pressed a button and out it popped.  I walked around the house with the DVD on my finger saying “Donna Noble has been saved.”  (It’s an obscure Dr. Who reference, okay, and not particularly germane to the event, but its obscurity covers that.)
Anyway, on the heels of that victory, I thought I would try to fix the Multimedia PC.  If I get it started, I think I might put Debian Linux on it so it can talk to my little Raspberry Pis.  The symptom that the PC exhibits is that you press the button and it won’t come on.  To me that suggests the power supply.  The reason I think this isn’t so much because I know a lot but because that would be the easiest and cheapest thing to fix.
In order to test this hypothesis, I thought I ought to plug it in. (Hey, I got a PhD, folks. The brilliance just flows.) I needed a power cord for that. (That PhD just keeps giving and giving.) I’d used the Multimedia PCs cord on another computer, so I borrowed one from my coffee pot.
Yes, you read that correctly. A computer uses the same power cord as a coffee pot. This is because good engineers, like Scotty said, are always just a wee bit conservative.  Wee bit, hell, once they have something that works they never change it.
I am old enough to remember the first printers for PCs.  You needed a screw-driver to hook them to the back of your computer.  It never occurred to the engineers who designed them that there would be offices without screwdrivers.  
Seriously.
Eventually we got the aptly named thumbscrews and those were around for years until they were replaced by USB printers.  This is because, like the coffee pot power cord, they worked.
I am sitting now at my Itty-bitty Ubuntu box tapping out this article after having fought with a chest cold for several days.  I am exhausted but my mind is somehow clear.  I am being battered by images around me.  USB printers, USB hard drives, USB thumb drives, my Arduino connected to the USB port, and a USB chargeable flashlight.  
The future is becoming clear to me.  I see it all.
One day I will awake to perk my coffee to a USB coffee pot.

Saturday, May 21, 2011

Multimedia Computer: The Ubuntu Mindset

Last Monday I wrote in this space that I had succeeded in getting my Multimedia Computer running and that I had installed Ubuntu on it.  This was a great victory for me.  At the time, it gave me a great feeling of victory that I didn't want to dilute.  A few days have passed now, so I feel I can share more of the truth without spoiling that feeling of victory on my part.

It is still running and functioning fine as a computer, but I there are certain issues involved with making it function as a Multimedia computer.  One of these is the fan.  The original fan that it came with didn't have a plug to attach it to the fan plug on the motherboard.  I thought I'd fixed that by buying an adapter.  The adapter arrived; it is male.  I needed a female. (Insert joke about Ubuntu computer geeks here.)

No problem.  I had an old cheap fan purchased for an old project laying around.  I installed it.  I now remember reading a review of it with PROS--it is cheap, CONS--it is noisy.  That noisy part is being glossed more me even as I write this.  I currently have a female adapter on order.  Ten minutes of work will suffice to fix this.

The next issue is software.  Windows 7 comes with Windows Media Center installed.  You just sit down and run it.  The Ubuntu experience is different.  And it now becomes clear to me what the Ubuntu experience is all about.  To fully explain it, at least to my own satisfaction, I need to go back to the Bible.

In Genesis, when Jacob and Esau are introduced it says: And the boys grew: and Esau was a cunning hunter, a man of the field; and Jacob was a plain man, dwelling in tents. To me this says that Esau like to push the edges of existence and do things that were hard.  Jacob, on the other hand, liked to enjoy the fruits of what was then modernity.  Were this written today, the description of Esau would remain the same while Jacobs might be described as a man who like living in houses with beds and indoor plumbing.

Some of you may already be ahead of me in transferring this to the context of computers.  Esau would be pushing to that more challenging mode of existence with Linux while Jacob would use Windows 7.  (Macs would correspond to whatever they were using in the fleshpots of Egypt for those of you who wish to push this a little farther.)

I grew up on the frontier, starting with a TRS-80 and moving to an Apple IIe and then finally hitting the PC river, as it were, more than twenty years ago.  I've been watching the frontier disappear ever since as we've moved from floppies to hard disks and CDs and DVDs and USBs.  Then came the Internet and the Cloud may supersede it all.  I've gone through all of the contortions that we had to back in the good old days just to get something to print for Heaven's sake.

All of those contortions are why we developed things like Windows 7 and Snow-frickin-Leopard and all of those other things.  Friends, let me tell you, as much as we gripe about these OSs, they ain't so bad.  They beat the Hell out of walking three blocks across campus to access your e-mail from a Unix account and download the file that was sent you using Kermit.  I was younger then, everything did work right, but that rosy glow doesn't make me think I'd like to do it that way all over again.

That being said: This is a hobby.  We do hobbies to stretch ourselves in safe, controlled ways.  I can pretend that I am back on the Computer Frontier as it was in the days of old, but do it while safely living in the modern world.

In other words, I've moved out of the hardware faze and into the software faze which is presenting a new challenge to me.  I will keep you updated, but now the smell of the spring flowers is calling to me.

Friday, March 25, 2011

Multimedia Computer: Part 1, The Case



I've taken my first step to building an Multimedia Computer; I've purchased the case. This is the same case that I indicated in the blog entry wherein I laid out my plan.

I pledge that I will try to take my time with this. Really. This is a hobby and there is a level of expense one expects with a hobby. I shall try not to exceed that quantity as ambiguous as it is. Having preached to myself a bit, let me proceed to a discussing of the case.

I am not much of a photographer. I concede that immediately. Were I a better photographer there are two things on the front that you would notice. In addition to the usual USB ports and audio and video jacks, there is a Firewire port. I hadn't even considered Firewire in this construction. Now I will have to because I've been given a choice: either get a motherboard that supports Firewire or live with the idea that I've got a place to plug something into that doesn't work.

The second thing you would notice is that this has a handle that folds out. This reminds me of the old "portable" Rainbow computers that Tandy put out. They had a six-inch screen, they weighed nigh onto 40 pounds, but they had a handle with which you could carry them, ergo they were portable.

One thing that I had been wondering, given the dimensions of the case, on which side would the motherboard be mounted: the bottom or the left-hand side. I now know that it will go on the bottom. Installing it will be an interesting exercise as there are a lot of cables and a lot of brackets. I will, no doubt, have to enlist the services of Lydia my lithe-fingered assistant.

The cables are bundled and covered by cloth, which is something new for me. It makes me think of this as a high-end case. It might also make me wonder why I am getting it for a relatively inexpensive price. I didn't have to look very far to see the reason and this calmed my mind. There is only one SATA power connector. I will need two of these, at least, if I am going to install two drives. It doesn't take very much imagination to believe that this device was designed and built when hard drives had switched to SATA but optical drives were still IDE. There is no longer a market for such cases and it is cheaper to sell them to hobbyists than it is to stick another SATA power connector in there. At least this is the story I will tell myself until the ghost of a murdered Chinese worker emerges from the power supply seeking revenge.

So, having opened the box, I learned that I need to order a $2-part. I should also note at this point that I neglected an important consideration in my original plan: a TV PCI card. This is the sort of thing I mean. It goes for about $50.

Saturday, March 19, 2011

Proceeding into new ground

This morning I installed Ubuntu Linux onto the old laptop that Lydia had been using. It was so easy to do as to be silly. Insert CD (prepared using instructions from here) and follow simple directions.

The laptop had been barely going for a while. There had been a virus issue that had been dealt with in a manner that left the machine without a sound card. I don't know why. After I installed Ubuntu, suddenly the sound card worked. I am amazed.

The truth is, though, I don't know what I am going to do with this now fully functional laptop other than to tell people "Hey, I've got an Ubuntu laptop!" I've got laptops running out my ears. The truth is that I just needed my fix. I am a junkie now, having made a couple of computers. It's in my blood.

My next project is beginning to form within me. Currently, I have a desktop computer with Windows Vista Ultimate addition hooked to the TV in the family room. I have used it to
  1. Record and play TV;
  2. Run Netflix;
  3. Play DVDs.
It can do a lot of other things as well, but I can't do them there as it is in the family room and people would bug me. My idea is to build a linux-based media center computer. I had mentioned this earlier and a hang up there had been Linux not being able to Netflix, but I got around that by purchasing a Roku. The Roku handles Netflix and a number of other options well.

What I would need to make this would be
  1. A blu-ray drive for about $80;
  2. A huge hard drive to record movies on for about $80;
  3. A small form factor case for about $70.
  4. A micro-ATX motherboard for about $60.
  5. A CPU to go with the motherboard for about $70;
  6. And memory to match for about $60.
Surely I am forgetting something, but this totals to about $420. That is a bit on the pricey side at this point, but it is a start. I will think on this and do some shopping and see if I can do better.

Friday, March 04, 2011

One Piece at a time: Parts 4, 5, and 6

Once the motherboard is installed, as Lydia and I did on March 1, it is then possible to install everything else. This is where the "delay of gratification" thing becomes difficult for me. This is especially true when you know the remaining parts are not all that expensive even in the aggregate.


At this point we have the motherboard and the hard drive installed. In order to be a computer, this is actually all that is required, but most of us want a little more and there are technical issues. By technical issues, I mean that your are going to have to install the operating system in some way. I understand this can be done from a thumb drive if your BIOS is robust enough. As I have worked with this motherboard before, I know this is not the case. That means that an optical drive (CD, DVD, or blu-ray) will be required. I am not quite ready to play with the new technology of the blu-ray, so I decided to go DVD. As one of Lydia's heart-desires is to use this with her iPod, you have to figure this drive will be used even after the operating system is installed.


Oh, yeah, I guess the computer isn't exactly ready to run because it has no memory. On my itty-bitty Ubuntu box, I only used one gigabyte of memory. That only cost me $20. I couldn't find such a deal this time. In choosing memory, you have to be careful to get something that works with the motherboard. There are two things to look for. The first of these is the basic type DDR, DDR2, DDR3. As near as I have been able to figure, the speed and cost go up with the number after the R. Our motherboard requires DDR2 memory. There is more to it than this, however, as you also have to look at the speed of the memory. Our motherboard can handle either 667 or 800 speed memory. This lead me to the choice of memory made by Crucial. Crucial is a common brand and has a good reputation.


The final thing at this point is the connection to the Internet. This will be done from Lydia's room that doesn't have an Ethernet connection in it. Therefore she will need a wireless card that did not come on the motherboard. The motherboard does have one PCI expansion slot however so I have invested in a wireless PCI card. I'm a little worried about this for a couple of reasons. The inside of the computer is very small. Will it even fit? But more importantly, Newegg is trying to sell an extended warrantee on this for $7. It would have to have about a 1/3 chance of failure for this to make economic sense to me, but it is a great source of profit to them, no doubt.

In any case, the die is cast and those parts are ordered. Lydia is getting exited as she has already started bugging her big sister for her old monitor.

Sunday, February 13, 2011

My itty bitty Ubuntu Box

It was scary because it was all so easy. First I ordered the parts:
Then they all came just as they said they would. First the motherboard and the memory, then the case, and finally the optical drive. At the same time, I had been working with Ubuntu. I had downloaded it back when I was working on my Windows Home Server. It was there on the hard drive on my laptop. I first put it on a thumb drive just because the possibility of booting from a thumb drive seemed so cool to me. Then I burned it on a CD just in case the BIOS on the motherboard wasn't up to it.
Then came Saturday morning. I woke up having slept like the righteous dead at approximately 6:30. The computer was together by 8. I didn't shower, but I did shave; I did make coffee and eat breakfast. I did put the previous day's dishes in the dishwasher. (We'd had a plumbing emergency on Thursday with the dishwasher.)
The point is that it all went together like a puzzle.
The case is the size of a 4-slice toaster. Seriously. It is red and as cute as a button. The mini-ITX board with the Atom CPU is square and a smidgen over six-and-a-half inches on a side. It all plugged in nicely with the various wires: power, SATA cables, USB cables, and front panel wires. Having learned previously the hard way, I took great care with the front panel wires, but there was a nice, color-coded schematic that came along with the motherboard.
Then I put in the hard drive, which I'd bought last September at Wal-Mart, and then the optical drive. This is where the smallness of the case and the strength of the design came into play. It all fit easily. I did stop to think it out; this is something else I have learned. But it all fit.
I'd thought ahead to put the SATA cables on before I even thought about the drives. There would've been no way my huge hands could've gotten in there to put them on with a hard drive in the way. If I ever put more memory in, I will have to take both of the drives out. This is just how it is going to be.
Anyway, the process was somewhere between stacking toast and the second round of Jenga in complexity.
Then I install Ubuntu Linux.
I'd never done this before. I didn't know what to expect. I stuck in the CD, turned it on, and it booted to the optical drive. It began installing. At various points it stopped to ask questions. Once I thought it was stuck but I was patient and it continued. Then it came time for the final restart and it did stick at the BIOS screen. I figure that was more of a function of the BIOS than Linux, so I just turned it off and turned it back on. (Having screwed-up and restarted a lot has given me an inner calm that allows me to do stuff like that.) It worked.
It has now been about 24 hours and I am happy. Ubuntu Linux looks a lot like MacOS on the front-end. I might just be saying this because I am a PC user, but it is my opinion.
Some issues that I've discovered that might matter:
  • it doesn't work with iTunes and
  • it doesn't do Netflix.
These are things I've discovered as I am now contemplating building a machine like this for my youngest daughter. Her iPod and TV are very important to her.
All said, it was a nice couple of hours, but those who've been inspired should read earlier in the blog about the failures.

Wednesday, February 09, 2011

The Challenge of the itty-bitty computer

Having successfully upgraded my wife’s old computer into a Windows Home Server and then, buoyed by my success in that area, having gone on to build a Windows 7 computer for my mother-in-law, my heart was at ease. I had conquered worlds. I had learned new curse words, words which had, up until that point, only had a shadowy theoretical sort of existence. I had been a successful computer builder.

But as with the rich fool in Luke 12 verses 16 through 21, who said, “I will tear down my barns and build bigger ones,” I keep pushing for something more. My eyes kept sweeping over the web sites of New Egg, Geeks.com, and TigerDirect. I was looking for trouble. Seek and ye shall find, as the Good Book says.

It all begins with a motherboard. And I will continue calling them motherboards. Calling them System boards dehumanizes further an already technical field. The Big Motherboards are denoted by ATX. This hearkens back to the old AT computers if you are old enough to remember them. The ATX motherboard represents the first step forward from them. These boards are somewhat largish at 12 inches by 9.6 inches. The motherboard I removed from my mother-in-law’s old IBM was an ATX. A micro-ATX (mATX) motherboard at 9.6 inches square is smaller and easier to deal with.

Imagine my joy when I discovered the mini-ITX motherboard which is 6.7 inches square. Imagine my joy as well when I discovered that I could get it from New Egg along with a CPU for $69. Extend your imagination to unbounded possibilities by thinking what I might do if I also came upon a mini-ITX case with a power supply for $49.99. Then, and you are NOT going to believe this, imagine me finding one gigabyte of compatible memory for $19. Put this together with the knowledge that I have a leftover one terabyte SATA hard drive that is just setting around.

Yes, you are there aren’t you? You know what is going to happen. It’s like in the teen horror flick when the scantily clad teenagers are alone in the boat house. Not only will they get naked, not only will they have sex, but they will also be pinned together with a harpoon while their bodies are still entwined.

I ordered all of the parts immediately because who could imagine making any sort of computer that cheap, and this one will be so small and cute to boot.

The question that the experienced will ask at this point is obvious. It is so obvious not only do they know to ask it, they know the solution. The questions is: what about the operating system. You forgot to include it in your calculations. It is easy to do and any of the versions of Windows floating around will likely cost more than all of these parts put together. But this is the beautiful part. Ubuntu Linux is free. Furthermore, all of the cool young Geeks worship at the throne of Linux.

If I build an Ubuntu box, then I will be young like them. My hair will turn once again dark. The aching in my joints will go away.

The case for this is red by the way. It all becomes rather clear that this computer building mania I am going through is a mid-life crisis. Better a computer than a Corvette; better Ubuntu than a blond.

I will keep you posted as matters develop.