Muffinresearch Labs by Stuart Colville

Ubuntu: add-apt-repository: command not found | 8 Comments

Posted in Snippets on 31st August 2011, 1:10 am by

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Post Tools

  • shailesh

    Thanks

  • louiz

    Thank you!

  • InnerPhoebeMoonBase

     Awesome, thanks.

  • bla

    Thanks broda!

  • Nuc134rB0t

    Gracias.

  • Jeroen

    Problem still exists in ubuntu 12.10 minimal, but the above solution doesn’t work anymore, now use:

    sudo apt-get install software-properties-common

  • Ville

    Thanks!

  • http://silodrome.com/ James McBride

    This worked for me, thanks!

Insert a tab character in vim when expand tabs is on|(0)

I have vim set-up to use spaces in place of tabs. Sometimes you need to use an actual tab e.g. editing a Makefile. Now whilst it’s possible to change settings so that tabs are used for specific files, a quick tip to remember is to simply type in insert mode:

Ctrl+v tab

That is Ctrl and “V” and hit the tab key, et voila you’ve entered an actual tab.

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Photos on Flickr

© Copyright 2004-13 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.474s.