How to mount a USB drive in Turnkey Linux

I like Turnkey Linux, which is a collection of pre-built server appliances based on Ubuntu. When you need a server fifteen minutes from now, it’s about the only way you can make it happen.

But as far as I can tell, it doesn’t mount USB drives automatically. That’s fine; these servers are designed to have the minimum necessary for their stated purpose in life and nothing more. Here’s how I mount a USB drive to use for making backups.

Read more

Nginx, a leaner, meaner web server

Arstechnica posted a nice writeup on Nginx, a cut-down webserver that does less than Apache does, but does the few things it does much faster. That’s nothing particularly new, as smaller and faster webservers have existed for as long as I can remember.

What makes Nginx different is that it can work with PHP. And therefore, it can run WordPress.

Read more

Windows 8 on a VM

If you’re looking to play around with the Windows 8 developer build that Microsoft pushed out this week, be aware that it won’t run on VMware player or any version of VMware Workstation prior to version 8.

It does, however, reportedly work on Virtualbox if you use the Windows XP compatibility settings. Read more

PC Magazine’s sub-$200 PC

PC Magazine has reprised its sub-$200 PC. I think it’s a good guide, and a savvy shopper can potentially do a little bit better with some care and some luck. At that price, it’s running Linux, but it also serves as a good guide for upgraders looking to upgrade an existing PC inexpensively. If you have a case and hard drive you can reuse, you can either buy better parts, or just pocket the savings.

Here’s my take on their selections.

Read more

Firefox needs to adopt the Ubuntu model

Firefox has an identity crisis.

Used to being the #2 browser and eroding share from IE, Firefox sees its share eroding slightly–or not growing as fast as it used to, depending on who you ask–and the upstart Chrome gaining.

What Firefox has done is tantamount to panic.

Read more

More on the new Intel 320 SSD

A few weeks ago, my security go-to guy, Rich P., bought a new Intel 320 SSD for his netbook.  With my encouragement, of course. It finally arrived this weekend, and he installed it. Rich reports not only faster speed, but also a 30-minute improvement in battery life over the WD Scorpio Black it replaced.

He told me the secure erase function, to enable AES, had a snag. But he solved it. I’m documenting it here in case you ran into the same thing he did.
Read more

I have seen the future, and it’s cheap

The computer of the future costs $25.

Its specs aren’t overwhelming–700 MHz ARM CPU, 128 MB RAM, Ubuntu Linux–but it could be a general-purpose computer for some people. Or a thin client. It could also be a tinkerer’s delight, which I think was the developer’s idea.

Read more

How I fixed a maddening Code 43 in Windows 7 (no firearms involved)

Gatermann talked me into trying one last time to re-install Windows 7, and if it didn’t work, he’d help me go Office Space on it.

Those of you who’ve been following me for the past week will know I started installing and trying to use Windows 7 on Saturday, and it didn’t go well. Among other things, my video driver constantly died with a Code 43, and I could print anywhere from 0-1 documents in between reboots. Basically, the computer became less useful to me than a Commodore 64. And given all the hype about how this was the best Windows ever, I wasn’t happy.

Read more

Contingency. Or how I escaped from Windows 0.7

I thought I traced my Windows 0.7 printing problem to the presence of a USB bluetooth adapter, but it turned out that was wrong. My wife called about mid-day to say the machine wasn’t printing anymore.

Fortunately, I’d never gotten around to downgrading my netbook from Windows XP to Windows 0.7. It saved the day.

Read more

How I changed servers midstream

When upgrading this site, I replaced the underlying hardware as well. The old server was just a dead end in too many regards to be worth upgrading in place, and besides, being able to run new and old side by side for a time is helpful.

This type of maneuver is routine work for a professional sysadmin. But it’s been at least two years since I’ve done a similar maneuver at all, and at least five years since I did it with Linux.

When I built the new machine, I gave it a unique IP address. Turnkey Linux makes getting an operational LAMP stack trivial, and depending on what you want to run on that stack, you may even be able to get that installed for you too.

Unfortunately for me, the Geeklog migration tool doesn’t seem to work with WordPress 3.0.1. So I had to get WordPress running on my old hardware in order to migrate. I chose WordPress 2.0.11 because the 2.0 branch appeared to be the current branch when Justdave wrote his migration tool, and 2.0.11 ran without complaint on the dated versions of PHP and MySQL that were on my old server.

After importing the content, I used mysqldump to export my databases. Specifically:

mysqldump --opt -u [mysql username] -p [database name, probably wordpress] > wordpress.sql

I should have gzipped the file, but I didn’t.

gzip wordpress.sql

I then connected to the old server via FTP and transferred the file. Use your favorite file transfer method; I happened to have FTP set up for my internal network.

Uncompress the file if you compressed it:

gunzip wordpress.sql.gz

Then restore the file:

mysql -u [mysql username] -p [database name] < wordpress.sql

Or, if the database already exists, like in my case:

mysqlimport -u [uname] -p [database name] wordpress.sql

Then I connected to the webserver via my web browser. WordPress 3.0.1 saw the WordPress 2.0.11 database and informed me that it needed to be upgraded. So I let it do its thing, and a few minutes later, I had a functioning WordPress site with 10 years’ worth of legacy entries.

I messed around with it for a while. Finally, I decided to go live. And at this point, I should have physically moved the new server into its permanent home. I didn’t do that, so now when I decide to move the server, I’m going to have some downtime.

To flip the IP addresses, you need to know where your Linux box stores its IP address. Debian and Ubuntu both store it in /etc/network/interfaces. As far as I can tell, Red Hat and derivatives like CentOS store it in /etc/sysconfig/network-scripts/ifcfg-eth0, but I haven’t used Red Hat or a derivative in a long time, perhaps 2003.

If worse comes to worse, try something like this to determine where it’s stored:

grep -r [ip address] /etc/

I edited the appropriate file on both boxes, changing the IP address while leaving all of the other parameters unchanged.

I then issued the command ifdown eth0 on both machines.

On my new production server, I then issued the command ifup eth0. Depending on the Linux distribution, it might also be necessary to re-issue a default route command. I didn’t have to do that.

Depending on how much Linux/Unix cred you have at stake, you could just do it the Windows way and reboot the box. Or both of them.

Once I was satisfied everything was working, I powered down the old server and celebrated.