ubuntu server

Ubuntu Missing add-apt-repository command

command line

Problem: apt-get-repository Command is Missing I was trying to install the latest version of git from the Ubuntu Git Maintainers Team and I needed to add a Personal Package Archive (PPA) to the Software Sources. But when I tried to do this, I got an error: Solution: Install the software-properties-common Package To get the add-apt-repository [...]

Read the full article →

Upgrading Ubuntu to Use the Latest Git Version

command line

Problem: Ubuntu Won’t Upgrade to the Latest Git Version I was running script that clone some git archives from GitHub and I got the following error: But when I tried to upgrade git, Ubuntu told me I already had the latest version: But I didn’t actually have the latest version. Solution: Add the Software Source [...]

Read the full article →

Tar Errors: Ignoring unknown extended header keyword

backups

Problem: Unknown Tar Extraction Warnings/Errors I was running a script on Ubuntu Linux that extracted a tar archive, and I noticed many of the following errors whizzing by my console: I was concerned that the the extraction might not be working properly and that I might run into unexpected errors. Explanation: Mac OS X Issue [...]

Read the full article →

Failed Ubuntu apt-get upgrade corrupts the available file

ubuntu server

I was upgrading Ubuntu packages with The upgrade failed with a segmentation fault. I tried again, but found I had a corrupted /var/lib/dpkg/available file. I first go this error: I edited the available file and fixed the problem. But then I got this: I made more edits and got more errors. It then realized that [...]

Read the full article →

Setting Ubunutu 10.04 Raid with Dell PowerEdge T310 and PERC S100

file commands

It turns out that Dell PowerEdge servers (like the T310) with PERC S100 do not support RAID on Ubuntu. Bummer. But here is how I got Ubunutu software RAID 1 to work with my Dell PowerEdge T310, PERC S100 and Ubuntu 10.04 LTS… The main trick was to turn re-initialize the PERC Controller to use [...]

Read the full article →

Setup WordPress or WPMU to make an atomic version switch — AND allow you to revert

apache

I have a new WordPress MU (WPMU) install and I am ready for my first upgrade. I couldn’t get automatic upgrade to work, and all the forums said: do it by hand manually. This is fine, but I didn’t want my site to be in flux with some old an some new files as I [...]

Read the full article →

How to keep the existing file attributes (owner, timestamp, etc) when copying files or directories

command line

When copying files and especially directories, sometimes you want to keep the existing file attributes. For example, you may likely want to keep the same owner, group, timestamp, etc. You can keep the attributes by using the preserve argument. preserve=all will keep everything: You can use the -p version of preserve to keep the default [...]

Read the full article →

How to Check the Ubuntu Version.

command line

How do you know which version of Ubuntu you are running? This will return something like this:

Read the full article →

Configuring Log Rotation of Apache2 and Other Logs

apache

I went to check out my apache2 logs and I noticed that they were being automatically rotated (access.log, access.log.1, etc.) and compressed with gzip (access.log.2.gz, etc.). This seems to be the default Ubuntu configuration. I wanted to make find out more, and I found this helpful article about Ubuntu logs, including Apache2 Log info and [...]

Read the full article →

How to change your password from the command line

command line

To change your own password from the command line: To change the password for another user, you must use sudo:

Read the full article →