Posts tagged ‘fluxbox’

ArchLinux via 2GB MicroSD Card

I recently re-discovered a laptop left for dead a few years ago. Originally I couldn’t figure out the problem and it sat on my shelf for a few years. With my knee surgery leaving it painful to sit in a chair for very long I decided now would be a great time to get that old laptop working so I can use it while laying down.

After booting it up for the first time in years, the problem was apparent. The hard drive was on it’s way out, and also sounded strangely in need of an exorcism. Immediately when the drive began to spin up I heard a horrible combination of ripping, screeching along to a series of clicks and clacks not quite like anything I’ve heard before. Removing the drive to save my ears from the beast, I decided an Ubuntu LiveCD would be the best environment until I could get a new drive for the machine. I was using an extra USB key I have as a holding point for any storage I may need. At some point I rebooted the computer, forgetting to remove the USB key. Sure enough, the laptop gave me disk errors as it tried to boot off of USB. This set the wheels in my head in gear.

Knowing that I could boot off of USB, I needed to find some form of storage to use for such a purpose. The original USB key would be off limits, I didn’t feel 512mb would be enough for an ArchLinux install with Xorg and Fluxbox installed. Looking through my closet of parts, I came across an unopened 2GB MicroSD card. It was almost as if it was waiting for this moment. Coupled with a USB adapter, I booted into the Arch LiveCD and saw it picked up as /dev/sda. I was good to go!

Starting up the install process I went through like normal, setting the time and so on. Once I got to the disk setup stage I attempted to create only a 32MB /boot partition and the remaining space for /, root. I decided to go against swap space just because it seems highly¬†unpractical for such a minimal system. Once I attempted to write the partitions, cfdisk error’ed out saying something along the lines of the drive didn’t exist. Doing a bit of Googling, I couldn’t turn out a definite answer, so I attempted to manually create the partitions in fdisk. I was successful in creating them via fdisk, and re-entered setup to finish things up.

This time cfdisk actually opened up with no problem, I’m going to assume the MicroSD may have had some sort of weird partition that caused cfdisk to choke until I formatted the drive myself. Having the disks set up, I selected my packages and let the install begin. The install finished in maybe twenty minutes, so I was about to begin configuring the system when out of nowhere the laptop died.

Oh that’s right, I had forgot to leave it plugged in and during my lengthy install the battery must have died. Luckily by this time I had worked out all the kinks and just did a quick re-install followed by the configuration and and initial boot-up. Following is the standard ArchLinux install process. Adding users, updating pacman, etc. I did spend a bit of trouble tracking down the right firmware version for the wireless card, a Broadcom of some sort using the b43 driver.

That all finished, I installed Xorg, the open-source ATI drivers, Flubox and Chromium. Not one hiccup has been felt since. After checking the disk space, it looks like the whole thing fits into 1.6GB of space. Not bad at all, I’m actually very impressed by the fact that I have my entire system contained on a MicroSD card. The access speed seems to be a little slow, and Chromium runs out of memory if I get too crazy on the tabs, but it works. Amazing what can be done with technology these days.

All my computer does anymore is fold proteins

The last month has been fairly painful for me. My leg currently sits wrapped in several layers of gauze with an immobilizer surrounding it all to keep me from moving it. This is because of the surgery I recently went through to repair a torn meniscus. For the last few days it has felt like there is hot lava pouring out of my leg through the incisions and my arms feel like they’re going to fall off from walking on crutches. But the worst (I think) is now over. I’m very thankful to say everything feels like it’s healing properly, I’m just waiting for the doctor to see it tomorrow and tell me exactly how long I’ll be like this.

Due to the fact that I cannot at all bend my left knee, it gets very painful to sit at my computer for more than about fifteen minutes at a time. About all that I’ve done on my computer recently is watch my computer bust out Folding@Home workunits and mess around with Google+. ¬†I’ve also decided to move on from xmonad in search of something a little more casual. I’ve since fallen in love with Fluxbox & conky. I like the more casual approach to computing. It almost feels more fun. It almost feels more natural to size and place windows all over the desktop, as opposed to the tiling I’ve done over the last few months.

Aside from all of that, I’ve been thinking I want to get back into programming. I don’t really want to learn something new, just expand my current knowledge. I figure let’s go back to the basics, my first real interest in programming was with C++. I already have a great grasp over the basics and a decent understanding up to pointers and object oriented programming, so why not go for broke? I want to master C++ by the time I recover from this injury.

I’d like to ask you, reader, what are your favorite C++ programming resources? I would like to do some touch-ups to my basic skill set and then delve into more advanced articles and examples. Do you have any recommendations for projects, articles, chat rooms, anything? Does anyone have some words of wisdom for staying on track with projects? I’ve noticed in the past many times I would start off a project great and just burn-out or lose interest. How do you combat that?