How To

How to install or upgrade WordPress via SSH

If you know how to log in via SSH (Secure Shell Access), then you will be able to upgrade your WordPress site in three minutes or less by using the following lines of code.

I have to admit right away that I’m highly indebted to this pre-existing tutorial from Techtites. But that tutorial is a little dated for the newer versions of Linux, and one of the commands given there no longer works on my web server, because it’s been deprecated (I use 1and1). I thought it useful to provide the right commands in this post, and to keep it updated in case something changes.

A few words of CAUTION:

  1. BACK UP all of your site files and your site database before running the upgrade. Take the time to do both, or you may deeply regret it later. As a matter of fact, it’s a great idea to back up your site files and database on a weekly basis, if not more often, just in case you get hacked or the web server crashes, etc.
  2. I’m not a Linux expert. I’m just glad I found these commands and that they’ve made the upgrade process easier for me. Don’t ask me to help you configure this for your web server. If the commands don’t work there, or something gets screwed up, you’re on your own.
  3. Should you use the WP-Cache plugin, disable it and delete any cached files BEFORE running the upgrade process. Even better, disable ALL your plugins before the upgrade process. If you don’t do this, you may get a big, fat 500 error afterwards.

Now, initiate a SSH session to your web server (I use Putty). Your web host should have the directions on how to do this. Go to the root level of your site/WP install folder (this is NOT the same as the root level of your SSH login).

Once you’re at the root level of your WordPress install (the one where you can see the wp-config.php file), enter the following Bash commands, in the order they appear. Wait for each of them to execute successfully before proceeding to the next one.

This will download the latest version of WP directly from WordPress.org:

wget http://wordpress.org/latest.tar.gz

This will unzip it, creating a directory called wordpress:

tar xfz latest.tar.gz

This will delete the wp-includes and wp-admin folders:

rm -rf ./wp-includes/
rm -rf ./wp-admin/

This will take you inside the wordpress folder:

cd wordpress/

This will copy everything inside the wordpress folder to the root level of your site, overwriting any existing files and directories. This line is the only line that’s changed from the Techtites tutorial:

cp -rpf -f * ../

This will take you back out to the root of your WordPress install:

cd ..

This will delete the wordpress directory and the downloaded WP archive, since they’re not needed any more:

rm -rf ./wordpress/
rm -f latest.tar.gz

Hope this helps!

Standard
Reviews

Pepco fails to fix store's electrical panel after 6 months

Updated 5/27/2008: It has now been a month since I wrote this post, and Pepco still HAS NOT fixed the electrical panel. This makes it 7 months, which is simply unacceptable. I am going to write to Chris Van Hollen, our Congressman, to see if he’d like to get involved in the matter.

Updated 6/09/2008: We received a reply from Congressman Van Hollen on 5/28/2008, just a day after I wrote to him via email, assuring us that he would look into the matter, and putting us in touch with one of his staffers, Miti Figueredo. Today, on 6/09/2008, Pepco showed up with a team of about seven people and got the electricity working again in a matter of hours. I know this wouldn’t have happened without Congressman Van Hollen’s intervention. Congressman, we are deeply grateful and thank you from the bottom of our hearts!

Piano Place, the store where Ligia has her studio, experienced a power outage on November 2, 2007 (over 6 months ago). It was caused by a badly wired electrical panel outside the store, which caught on fire. Pepco, the local (and only) electrical company, has failed to fix that panel ever since, in spite of having the luxury of over 6 months to do it.

When the panel caught fire, the fire department and the police evacuated all of the stores for a day out of bureaucratic zeal, even though the fire didn’t spread inside the building. Then the store was without power for a few days until a generator was installed outside and connected to the electrical panels.

That same generator has sat outside the building since it was installed in November of last year (for over 6 months), waiting for Pepco to get off their lazy bums and fix the electrical panel. You’d think a job like this is of epic proportions, and that’s why it’s taking so long, but as you’ll be able to see from the photos, it’s something that could be done in a day or less with the proper crew.

The smoke on the wall mark the extent of the fire caused by the faulty panels. The wires that carry electricity inside the buildings weren’t damaged, because the generator is connected to them, and the store is able to feed off the generator to get part of its power. Pepco would simply need to fix the panels themselves, but they have offered up excuse after excuse during each of these six months. Appeals to their executives have not helped. The Washington Post has refused to get involved by publishing news of this complete failure in customer service.

Meanwhile, the store is paying $15,000 each month to rent the generator (with fuel charges extra), and still is not up to full power. It has had no air conditioning (only lights) all winter. That means they’ve had to do with space heaters here and there, and Ligia has frozen on many an occasion inside the studio because of Pepco’s utter laziness and unresponsiveness.

Now that summer is approaching and temperatures are climbing into the 80s, the store gets stiflingly hot (understandably so) on those days, because it has no air conditioning. Who’s to blame? Pepco, that’s who!

As if all this is not enough, the store has had the generator stolen once (the entire thing!), and on a separate occasion, it has even had the fuel siphoned off from the generator.

I have to wonder when Pepco will get their act together and fix the damned electrical panel. What will it take to get them to move on this?!

I see this as the strongest possible argument for competition in the marketplace. Pepco has a monopoly on the local power market. There is no other electrical company here, so Pepco can do whatever it pleases and get away with it. There is no one to hold them responsible. The lazy hacks can get away with treating customers like this for months and months, and no one from the local governments seems to care.

I find this outrageous, and I’m fed up with it. So the next time I hear one of Pepco’s hypocritical ads that say “We’re connected to you by more than power lines”, I’ll have to ask what they’re connected with: laziness, lies, inefficiency, procrastination, lack of customer service, monopoly, irresponsibility?

And when I see one of their trucks, I’ll know what sort of people drive them: the sort that would have people freeze in the middle of winter and bake in the summer heat rather than do their jobs.

Standard
Events

Photos from TECH cocktail DC 2

This past Thursday evening, Ligia and I attended the 2nd DC TECH cocktail mixer/conference, and it was a lot of fun. It was held at MCCXXIII, a club on Connecticut Ave. Frank Gruber and Eric Olson, the TC co-founders, hosted their first TC DC event at the same venue last year. They invited me to take photos at that time, and it looks like they were happy with the results, because they called me back this year.

I was glad to see how the event has grown in just one year. With 400 people in attendance, the club was literally packed, as you’ll see from the photos. There was no room to move — I had to squeeze between bodies and do a lot of shoulder tapping to get from spot to spot, all the while trying not to shove my camera in anyone’s face.

Selected photos from the event are enclosed below. The full set is available on the TC website, or in TC’s Flickr account. I tried a few new things this year, mainly different angles and a few movement/blur type experiments. You’ll see as you look through the photos.

It looks like Frank and Eric will need to find a new location for next year, given TECH cocktail’s growing popularity. I wish them all the best! They’re doing a great service to startups by making it free for them to attend and show their products to the audience.

Standard
Reviews

Hardware review: Rolodex laptop stand

What I find interesting about this Rolodex laptop stand is its modularity. A few years or so after it launched, it’s still on the market. I’ve been using it for two of those years with my Windows laptop, and while it doesn’t look cool or feel cool, it’s sturdy, and it works just fine.

The stand is made of metal mesh and reinforced with rounded steel frames at the edges. Its tilt level can be adjusted as needed, and — here’s where the modular part comes in — it can be fitted with a wire organizer and a USB hub. The wire organizer comes with the stand and attaches as seen above, and the 4-port USB hub is sold separately. Once purchased, the hub slides into a slot on the back of the stand and is secured there by two metal arms on each side.

It’s best suited for 15-inch laptops like the one you see in my photos. Its design would make a 17-inch laptop feel oversized, and I’m not sure that it could support the weight of some of the heavier 17-inch laptops I see on the market nowadays.

The stand works best with an external keyboard and mouse. Although you can type comfortably on the laptop while it’s positioned on the stand, you’ll get tired pretty soon of the sound that the stand makes as you type on the laptop’s keyboard. Remember, it’s made of metal mesh, and it will resonate with each key click.

Once you position it at your eye level and plug in an external keyboard and mouse set, this stand will perform just fine for your needs, and at an affordable price, too.

Because it holds the laptop in place with the aid of two raised metal lips on each side, you need to make sure it doesn’t block any ports on your laptop. For example, it would definitely not work with any MacBook Pro laptops, which have the CD/DVD slot in the front. The placement of my audio line out/line in ports on my Averatec Windows laptop meant that it blocked those ports with the right support lip, as you can see below.

The USB hub that can be bought along with the stand is not self-powered (it does not have its own power supply cable), and that means it’ll draw power from the laptop’s USB port. This means you’ll likely experience power surges if you should plug in a USB drive that also does not have its own power supply. See my Logitech Alto Connect review for more details on this particular issue.

If interested, you can buy the stand and the USB hub to go along with it from Amazon. There’s even a variation on the hub which has only 2 USB ports but features a grounded, three-prong plug.

Standard
Thoughts

Migratory state of being

Every single day, I go around with a little pain in my heart. It’s the sort of pain that only certain people can understand. These people are called immigrants.

Sometime this month, a familiar date will pass, and I’ll know that I’ve been in the States for 17 years. I’ve been a naturalized citizen for a number of those years. Born and raised in Romania, I came here when I was almost 15. I’ve lived the better part of my life in this country, and yet I still do not feel entirely at home. The States feels familiar, but not familial; it feels like I belong, but I don’t entirely fit in; it feels like home, but I don’t feel at home.

I envy Americans born here, I really do. In some ways, they’re better off than me. They feel something, every day, which I cannot feel; they may not realize it, and they may not even appreciate it, but they feel at home. It’s a priceless sort of feeling, and you don’t understand its true value unless you’re away from home.

It’s a painful way to live. I look around me, at those fortunate enough to have been born here, and they haven’t got my problem. They are at home no matter what part of this great big country they happen to live in — especially those that have been born, raised, and now work in the same cities or regions. They benefit from familiarity with customs, habits, lifestyles, places, people, language, traditions — all those things that make home feel like home. If they’ve moved to another part of the country, no matter how different they think it is, it’s still the USA, and it’s still the same country. Some things still apply, and the overall feeling of home is there.

Although I live in the DC area now, and have done so for the last 4 years, I spent most of my years here in the States in Florida. Still, it doesn’t feel like home. Sure, I know the streets and the neighborhoods. I know the cities and the beaches. When I walk or drive down a certain street, memories from my life there evoke certain emotions that make it familiar. The best word to describe that kind of a feeling is comfortable. When I step into my parents’ home down there, I get the closest feeling of home I can get here in the States. It’s relaxing and peaceful, that’s true. But it’s still not home. And I think my parents understand what I mean, since all three of us came to the States as a family back in 1991.

It would be logical to assume that Romania would feel more like home, since it’s where I was born and raised. You’d only be partly correct. Yes, when I go back there, I feel more at home than here. The strings of my heart vibrate at the same frequency as my birthplace. When I’m there, the air is sweeter, the food tastes better, interactions with people are more meaningful, every sensation is accentuated by the vibrancy of my home land. Sleep is more restful, and life takes on a new, familial rhythm. I feel a peace that I cannot feel here. Yet I do not feel at peace.

There’s the awful rub. In the words of Charles Laughton from the movie “It Started With Eve” (1941), “I’ve been tampered with!” I’ve spent so much time in the States that I’ve grown accustomed to the way of living over here. Not the comfort and abundance of products, though that’s part of it, but the way of life, of doing business, of approaching situations. I no longer fit in, in Romania, and I still do not completely fit in over here, after 17 whole years.

I can function just about anywhere, but am at home nowhere. I’ve got a mongrel heart, a split state of being, and it’s a sad, painful way to go through life, at least for me. A piece of me exists in each country, and I’m forever torn between the two.

It must be even worse for Ligia. She’s only been here for 4 years. She spent her entire life in the same region of the country, in a very close-knit family, among friends and relatives, and the only reason she left all of that was to be with me. It’s probably safe to describe the way she feels every day as home sick. At least she’s lived enough in one country to know which one feels more like home. Although the more time she spends here, the more she’ll bond with this country, till she’ll be just like me, a mongrel spirit.

I think of the pilgrims that came to the new continent from Europe, hundreds of years ago. I wonder how they must have felt, knowing that the likelihood of ever going back to their home lands was next to nothing, and having to face the rough conditions that awaited them in untamed territories. Perhaps the tough lives they led, and the blood, sweat and tears they put into eking out an existence bonded them more to their new homes. Or maybe they sat down on quiet evenings and silently bore pangs of sorrow over the distance that separated them from their birthplaces and ancestral homes.

Then I envy their children, who didn’t (and don’t) have to worry about any of those things. And I yearn for the normalcy and peace which I don’t think I’ll ever reach.

Standard