Install Gnome 3 in Ubuntu 11.04

If you have Ubuntu 11.04, by now, you have messed around with Unity, the default desktop environment. Maybe, you like it or maybe you don’t. If you’re curious about how Gnome 3 looks like in Ubuntu 11.04, you can install it without much effort. All you need to do is fire up 4 quick commands in your Terminal to get you going.

Install Gnome 3

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gnome-shell

You need to log out of Unity, choose Gnome when logging back in, for the changes to take effect. By the way, Gnome 3 will break Unity. But, don’t fret. You can restore it easily. Just use the command below to get Unity back in your life.

Restore Unity

sudo ppa-purge ppa:gnome3-team/gnome3

Update Virtualbox on Ubuntu

This article documents how to install or update to the latest version of Virtualbox in any Ubuntu release. In my case, I’m still using Ubuntu 10.04 LTS. The current Virtualbox at the time of this writing is version 4.1.2. With my Ubuntu 10.04 Lucid Lucy install, my default Virtualbox version with the repository was 3.1.8 — which is pretty old. In Ubuntu 11.04, the default Virtualbox version is 4.0.6, which is rather new, but certainly not the latest.

The following instructions will walk you through how to install or update to the latest version of Virtualbox in any Ubuntu release.

  1. Make sure Virtualbox is powered off (if installed).
  2. From the Terminal, remove the old Virtualbox (if installed)
  3. sudo apt-get remove virtualbox-ose
    sudo apt-get remove virtualbox-4.0
  4. Download Virtualbox. Choose your Linux distro and CPU type.
  5. Open the deb file with GDebi Installer and install
  6. Once installed, start Virtualbox.

That’s it.

Firefox 6 Is 20% Faster

Mozilla is cranking out new versions of Firefox like its coming out of a copy machine. It seems like it  every two weeks, a new version of Firefox comes out. Speaking of the devil, Firefox 6 is now out.

You won’t see anything different because there are no UI changes, but it will be 20% faster. So they say. Firefox 6 is available on PC, Mac and Linux. As of this writing, Mozilla’s website still displays Firefox 5. You may have to wait a couple of hours until the official announcement.

If you’re an Ubuntu user, just follow the instructions I wrote here for Firefox 5. This will work with future versions as well. By the way, I just tried. It’s not quite there yet. Just wait a couple of hours until the ppa repository is updated.

Difficult Passwords

Hacking sites seems to be in vogue nowadays. One of the easiest ways of hacking a website is by brute force. Having difficult passwords is the only way to go. There is no excuse to having a password like “password, admin or 1234.” You’re just asking for trouble.

There are several programs online that are available for free that can generate difficult to guess passwords. Most people don’t use them because are difficult to remember. But, don’t underestimate yourself. With enough repetition, you will be able to remember them, just like lyrics of old songs stored in your head.

Within a week of repetitive use, you can master your newly minted password in no time. But, don’t stop there. It is recommended and a good security practice to change your password every six months or so. So lock up your accounts. Use difficult passwords.

Black-Letterhead 1.7

After a year and a half hiatus, I’m releasing a new version of the Black-Letterhead theme. As some of you already know, the Black-Letterhead is a WordPress theme that I released under the GPL license several years ago. The latest version is now available for download to anyone for free. So, what are the new features?

View Demo | Download Black-Letterhead 1.7

New Features

  • Compatible with the latest WordPress 3.2.1
  • Automatic Feed Links
  • Post Thumbnal support
  • Custom Menus support
  • Custom Headers
  • Rotating Header Images
  • Custom Backgrounds
  • Theme Toolkit
  • Choose right or left sidebar
  • Two widths: 760px or 960px
  • Ability to remove Title or Tagline
  • Turn on/off Single Pages with Sidebar
  • Display Page border/No border
  • Ability to Customize Fonts
  • Ability to change Text Colors

View Demo | Download Black-Letterhead 1.7

Git Archive Master vs Subversion Export

I have been using Subversion for years. Often, I refer to Subversion commands when I have questions with Git. Subversion has an “export” command when you want a copy of the repository without the .svn directories and files. The question is, does Git have an “export” function similar to Subversion? The answer is yes. It’s called “archive master.”

To export in Git, go to the root of your Git project. For example:

$ cd ~/git/project

Create a gzip file or a zip file.

$ git archive master | gzip > project.tgz

or

$ git archive master | zip > project.zip

That’s it. You now a have a compressed copy of your project.

Install AWN on Ubuntu

Avant Window Navigator or Awn is a dock-like bar which sits at the bottom of the screen. It has support for launchers, task lists, and third party applets. It’s similar to Apple’s Dock Menus. It can be customized to display size, style, behavior, themes as well as add an application of your liking. If you want to install AWN, just follow the following steps below. You can use the Synaptic Package Manager if you like. I like to install applications using the Terminal.

$ sudo apt-get install avant-window-navigator
$ sudo apt-get install awn-applets-python-extras
$ sudo apt-get install awn-applets-c-extras

Once the installation is done, access Applications > Accessories > Avant Window Navigator to start AWN. You can customize it to your own liking. You can set to start AWN automatically on boot up, add applications on the dock, install applets, choose themes, and many more. Here’s another install tutorial with screenshots.

Here’s a screenshot of AWN running on my Ubuntu desktop.

Indent Entire Paragraph Using CSS

One of the easiest ways to indent an entire paragraph in HTML is to use a class and some padding. Let me show an example. In this tutorial, I will indent a paragraph by 40px. I will use a class called “indent” and apply “padding-left” to it. I’m using inline styles in this example, but you can easily apply the same CSS styles to an external stylesheet if you want. First, a normal paragraph.

Normal Paragraph

A normal paragraph would look like this. There is no indentation. The entire paragraph is lined up with the rest of the article. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare hendrerit orci, a congue purus interdum a. Integer nisl risus, tristique a feugiat egestas, malesuada nec massa. Suspendisse dui risus, viverra sit amet posuere nec, sollicitudin et ipsum. Maecenas mollis dapibus nunc, eu pharetra dui pulvinar vel. Morbi convallis purus quis quam ultrices ultrices lobortis augue rutrum. Donec ipsum massa, ullamcorper vitae lacinia ut, adipiscing sed ipsum.

A Paragraph With CSS Styling

<div class=”indent” style=”padding-left:40px;”>

In this div class, I am simply applying padding-left of 40 pixels to the entire class called “indent.” This will indent the entire paragraph as you can see in the results below. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare hendrerit orci, a congue purus interdum a. Integer nisl risus, tristique a feugiat egestas, malesuada nec massa. Suspendisse dui risus, viverra sit amet posuere nec, sollicitudin et ipsum. Maecenas mollis dapibus nunc, eu pharetra dui pulvinar vel. Morbi convallis purus quis quam ultrices ultrices lobortis augue rutrum. Donec ipsum massa, ullamcorper vitae lacinia ut, adipiscing sed ipsum.

</div>

The Result

As you can see, the entire paragraph is indented by 40px. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare hendrerit orci, a congue purus interdum a. Integer nisl risus, tristique a feugiat egestas, malesuada nec massa. Suspendisse dui risus, viverra sit amet posuere nec, sollicitudin et ipsum. Maecenas mollis dapibus nunc, eu pharetra dui pulvinar vel. Morbi convallis purus quis quam ultrices ultrices lobortis augue rutrum. Donec ipsum massa, ullamcorper vitae lacinia ut, adipiscing sed ipsum.

The Perfect Desktop on Linux Mint 11

HowtoForge has a tutorial how to install a perfect desktop on Linux Mint 11. Mint is based on Ubuntu but contains proprietary drivers and programs such as multicodecs, Adobe Flash, Adobe Reader, Skype and Google Earth. In addition, the tutorial also instruct users to install a few more packages such as: filezilla, shotwell, chromium-browser, picasa, opera, evolution, amule, vuze, skype, googleearth and acroread just to name a few. If you’re an Ubuntu user and haven’t tried Linux Mint, you might want to consider it as an alternative. With Mint, you’ll have the familiarity of Ubuntu and the ease, flexibility and compatibility of Windows. Read the rest of tutorial.