Chris Jean's Blog

Linux, WordPress, programming, anime, and other stuff.
twitter
rss

Archive for January, 2009

This is part one of what will likely turn into a long running series of posts on Why I Love Linux (WILL). The idea of WILL is to share little bits of what makes me love working with Linux. These could be small simple things such as a little feature here or there, the design concept behind Linux, or some other random thing.

I hope that by sharing what it is that I love about Linux, readers can learn a thing or two along the way.

To kick off this new series, I’m going to talk about one of the first command line tools that you should familiarize yourself with in Linux: grep.

Continue reading “grep – Why I Love Linux”

I have a large number of computers. At my desk at home, I have two computers, Lumiere and Samus. I’ll often set up my office laptop, Rommie, on my desk as well.

I have a KVM hooked up between Lumiere and Samus, but I don’t use the video switching part as Lumiere has a dedicated 24″ LCD and Samus has a dedicated 24″ and 19″ LCDs. So, I use the KVM to do nothing more than switch the keyboard and mouse back and forth.

Things get more complicated with the addition of the laptop. Now I have another keyboard and a trackpad instead of another mouse. Thus, I’m always switching the KVM over between the two systems as well as moving my hand from the keyboard and mouse to the laptop and back again. There has to be a better way. Fortunately, there is.

Continue reading “Using the Same Keyboard and Mouse for Multiple Computers”

Here’s a quick tip for those who may use VIM to edit files locally or remotely. If you are having problems getting your backspace to work (I.E. backspace doesn’t work at all in VIM), then the following tip is for you.

I found out that this is really easy to fix. When you edit a document, type in the following:

:set bs=2

Then hit enter. Now try to use your backspace key while in insert mode.

Once you confirmed that this works for you, add this option to your .vimrc file:

  1. vi ~/.vimrc
  2. Add
    set bs=2
  3. Save and close file

This will set your user to have that option set by default when you edit documents.

I wanted to be able to access my home network from outside the home. My internet connection has a dynamic IP. This means that my home’s IP address on the web can change at any time. So the question is how do you connect to something that is constantly changing location?

The answer is easy, use a Dynamic DNS service. There are a variety of these services: No-IP, DynDNS, zoneedit, FreeDNS, etc. Each of these sites that I’ve listed offers free Dynamic DNS service.

So what is Dynamic DNS? It would probably be best to first define what DNS is and then what makes Dynamic DNS different.

Continue reading “Accessing Your Home Network Away From Home”

I’m very new to running Linux as a desktop OS, but I am by no means new to running Linux itself. I’ve managed Linux servers in a professional capacity for more than five years, so I have a healthy foundation on how to work with it, but I don’t know how to use it day in and day out as my entire computing experience. That being the case, I started to look for books that would help me out.

I primarily limited my search to Ubuntu books (in hindsight, maybe that was my issue). Off to Barnes & Noble I went in search of a great book to bring me deeper into Ubuntu.

Continue reading “Intermediate Books on Linux are Lacking”

As a web developer, I’m always having to work with DNS. Anyone who has dealt with DNS will tell you that caching is simultaneously a great thing and a horrible thing.

Today, I made a mistake with the IP address of a new host, and I needed to flush my DNS cache so that my machine would go and grab the new IP address. I hadn’t done this in Ubuntu before, so I had to figure it out. Fortunately, it’s really easy.

  1. Load Terminal (Applications > Accessories > Terminal)
  2. Type in the following:
    sudo service networking restart
  3. Press the Enter key
  4. Put in your password

Done. Enjoy your newly flushed DNS cache.

Have you ever wanted to turn WordPress into a more powerful, CMS-style platform? The Pods plugin looks to be the first step toward achieving this goal.

In case you haven’t heard about Pods, here is a snippet from Pods’ site:

WordPress evolved.

Create more than just blog posts and pages. Add new content types with only the fields you need. Customize exactly how each content type’s list and detail pages appear. Automatic pagination, filtering, public forms and more are possible with the Pods CMS plugin.

Continue reading “Pods for WordPress – Content Beyond Posts and Pages”

As of today, it has been exactly two weeks since I started using Ubuntu as my OS at the office. Not only that, it’s been two weeks since my office computer (Dell Studio 17) has booted into Windows.

I left Windows on the system “just in case,” but much to my surprise, I haven’t needed it once. Running Ubuntu is different than running Windows, but it’s not any more difficult. In fact, Ubuntu is much more powerful and forgiving than Windows has been. I can work so much faster now that I’m running Ubuntu than I ever have been able to with Windows, and that’s without being able to use my favorite editor, Crimson Editor.

Continue reading “Week Two Running Ubuntu at the Office”

I just experienced a very odd behavior with Firefox on my system. Somehow, my titlebar had disappeared. I chose to ignore this as an odd glitch, figured it would go away when Firefox was restarted, and went about my work.

Eventually, it started to drive me nuts. Not only was the titlebar missing, but I could not resize Firefox, could not move Firefox, and it kept stealing focus from other applications and obscuring new windows.

Even at this point, I did not want to restart Firefox yet, so I kept just ignoring it. Then, Firefox froze entirely. It seems like I could still interact with Firefox via the keyboard (since the titles in the Window List panel kept changing), but the rendered image of Firefox never changed.

Restarting Firefox didn’t work. Restarting the system didn’t work. Changing from Emerald to Metacity (run “metacity –replace”) didn’t work. Uninstalling some new packages didn’t work. I was at a loss.

I settled back into just dealing with the problem, when I happened to accidentally switch Firefox to fullscreen (F11). Amazingly, when I switched back to normal, the problem went away.

So, the quick way to fix the problem of a missing titlebar in Firefox with Ubuntu (this problem may be present in other distros as well) is to switch to fullscreen and then back. Basically, you can press F11 twice to fix it.

This is going to turn into another one of my “I love package management” posts. When I first starting managing Linux servers with Apache, adding a new module to Apache required going back to the source code, remembering the configure parameters you compiled Apache with last time, configuring Apache again with the same parameters plus whatever changes need to be made, compiling, testing, and then installing. It took hours. Now, it takes a few minutes to add something like mod_ssl support to Apache without having to compile anything.

Continue reading “Adding SSL Support to Apache on CentOS”