Top Nav

Archive | Distributions

Fix Completion In Shell On Ubuntu

Sometimes with a new user on Ubuntu I find that filename auto-completion is missing in the shell. I found two issues that cause this:

1. Ubuntu sets new users to /bin/sh which is a very limited shell. So first step is to change the user to /bin/bash:

2. The /etc/bash.bashrc has filename completion disabled by default. Edit this file and un-comment the appropriate lines. Here’s what it looked like on one server:

So I changed to:

Upon login the new user should now have filename completion features.

Also note that by default “vi” is handicapped. Here’s how to upgrade to a full feature set:


Fix vi On Ubuntu

Some times I’ll run into an Ubuntu install where “vi” does not work as expected. For example the backspace and arrow keys will in insert mode will add characters. Turns out Ubuntu installs vim-tiny by default which is a stripped down (and historically compatible) version of vi. The solution is just to install the full version:


Manage Apache Modules On Ubuntu

Configuration for enable modules is stored in:


Available but inactive modules are stored in:


A module can be enabled with:

Where [modulename] is the module to be enabled.

For example:

will enable the rewrite module.

A module can be disabled in a similar fashion with:

Don’t forget to restart apache after making changes with:


Install WordPress on Ubuntu virtual server at Media Temple

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system.

The first step is to install packages:

Now set mysql service to start automatically:

Next create a database for wordpress:

Next we’ll download and install wordpress:

Now set the database credentials in /var/www/wp-config.php:

Finally point your web browser to the site and run the WordPress installer.


Remote access via ssh with RedHat Rescue Disk

  1. Insert Rescue Disk and boot server.
  2. At the first prompt type “linux rescue” and hit enter.
  3. Follow boot disk prompts to start networking. Enter the system’s ip address, netmask, gateway and name server.
  4. Continue with prompts until the root partition is mounted and you get a command prompt.
  5. Verify network configuration with ifconfig and route.
  6. Use the following commands to start sshd:

You should now be able to SSH into the server.