Blog / Linux

How to change the hostname of your Ubuntu server

November 9, 2011

This post is really more of a note to myself as I’m sure I’ll be doing this again. But hopefully someone else will stumble upon this and find it useful :).

I have a VPS hosted on Rackspace running Ubuntu 10.04 LTS server edition. I wanted to change the hostname as I originally named it the name of the application I was working on, but I’m now planning on using it for multiple things. I …

Errors when installing the Python ‘lxml’ library using pip on Ubuntu

August 28, 2011

I thought I’d post this here, this is the second time I ran into this issue on Ubuntu and forgot what I did the first time.

If you get errors about things missing when you do ‘sudo pip install lxml’ on Ubuntu, you’ll probably need to install the following development packages (source):

  • sudo apt-get install python-dev
  • sudo apt-get install libxml2-dev
  • sudo apt-get install libxslt1-dev

You may also want to do ‘sudo pip …

How to sync the date and time to a time server in Ubuntu Linux (command line)

June 16, 2011

I just logged in to my Rackspace hosted virtual server running Ubuntu Linux 10.04 and noticed that the time drifted almost a couple of minutes.

Type in the command below to sync your server’s date and time to a time server (where ntp.ubuntu.com is the time server):

sudo ntpdate ntp.ubuntu.com

To automatically correct the time drifting issue in the future, you could also install the ntp daemon:

sudo apt-get install ntp

VirtualBox: USB devices grayed out on Ubuntu 10.04 LTS

April 24, 2011

I bought a new GPS recently (Garmin nuvi 1350LMT) and wanted to upload new maps to it using Garmin’s MapSource software. However, the software only supports Windows and Mac so I had no choice but to do it on Windows. Since I already have a Windows XP virtual machine running on VirtualBox (which I use for work as our company’s remote access software doesn’t support Linux either) I figured I could probably just …

How to send syslog messages to a remote syslog server in Fedora 9

December 7, 2008

I have a virtual machine set up running Fedora 9 on my home network which I mainly use for SSH tunneling and I just realized that this version of Fedora now uses rsyslog as its default syslog daemon.

I wanted to send a copy of the syslog messages for SSH to my central syslog server so I can easily keep track of login attempts to my server from the outside.

Here are the steps:

  1. Open …