Categories
Command Line HowTo Linux Ubuntu

HowTo: Restore Your Default .bashrc File in Ubuntu

If you’ve managed to find yourself deleting, overwriting or generally messing up your profiles .bashrc file there’s a really easy way to fix it. A default version of the file can be found under “/etc/skel/.bashrc”, simply coping that over your profiles one (found in your home directory) will restore it to default. Make sure to also source the file if you want to continue using it under that terminal or close and re-open the terminal.

I managed to have a blank bashrc after upgrading Ubuntu with a separate /home partition, while deleting all the old config files I must have also removed this.

The following commands should do this for you, be sure to make a back up of your current .bashrc file too, just to be safe.

cp ~/.bashrc ~/.bashrc.bkup
cp /etc/skel/.bashrc ~/
source .bashrc

You should be now back to a default terminal experience and continue to customise it how you like!

Categories
Posts Web

HowTo: Make WordPress 3.0 Default Theme (Twenty Ten) Single Column Full Width

The new WordPress default theme, Twenty Ten, is awesome but one thing that annoys me about it was the fact it’s single column template isn’t full width but instead just removing the sidebar and centering the content. It’s really easy to change that though so here’s how I did it:

  1. Under Appearance click Editor to open the theme editor
  2. If it isn’t already click on “Stylesheet (style.css)” on the right hand side (somewhere near the bottom)
  3. Now look for the following section of code (Ctrl+F will come in helpful here to find it) and change the width here from 640px to 900px then hit the Update File button:
/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
*/

.one-column #content {
	margin: 0 auto;
	width: 640px;
}

Now when you view pages which use the one column template they should fill the same amount of space that both the content and sidebar usually do.