ubuntu
Quickly fixing SSH when the remote key changes!
So, you cloned your virtual machine and made sure it has the same MAC addresses so that it would pull the same IP from the DHCP server lease. but the next time you click on your SSH icon, it fails.
Does this look familiar?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Well this is the magic line:
Offending key in /home/someuser/.ssh/known_hosts:19
Easy batch renaming in Ubuntu (and other debian systems)
Ever want to rename 300 .foo files to .bar? wish you could do this:
mv *.foo *.barHere is the answer: Debian Rename included in ubuntu.
this example renames all .php5 files to .php
rename ‘s/\.php5/.php/’ *.php5
Turn a folder full of pictures into a timelapse video
So I like to build things, I also like to set up a GoPro camera above my desk to capture timed photos of my builds, but the results are usually 5 - 8 gigabytes of pictures that need to be turned into movies, so here is what I do:
ASSUMPTIONS: your pics all end in .JPG and the are all numbered sequentially. and that your system can handle video as big as your fotos.
I run this line of code from the folder where the pictures are:
Recursive search for files with specific content using GREP
So you know that somewhere in your source folder (/source) that there is a script that uses the foo() function but you cant remember which one and there are thousands of files, what do you do?
You grep them!
grep -R -i -n 'foo()' *
Lets break it down, first we are grepping files, the -R indicates to search recursively, -i indicates we want to ignore case, and -n indicates we want to know which line of the file grep finds our search string on. then the search string in single quotes and lastly, a finame wildcard, in this case, search through every file.
Fix for Ubuntu GPG error related to PPAs
Problem
When you try to access ubuntu extras you might see following GPG error
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
GPG error: http://extras.ubuntu.com maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/maverick/Release
Solution
Open the terminal and run the following commands
gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
Rename those *.JPG files to *.jpg files in linux
This simple line of code, when executed from within the directory will rename all picture files with the .JPG extension to have the .jpg extension
for x in *.JPG; do mv "$x" "${x%.JPG}.jpg"; done
Find what foolib-dev package needs to be installed when foo not found.
First do this:
sudo apt-get install apt-fileThen when you get any
apt-file search <filename>
where you replace
UNR Auto-maximise madness
I love UNR but I dont always use my netbook like a netbook, I lke to run it at home on a big monitor and an external keyboard and mouse, so many of the netbook features are wasted and some are downright difficult to work with on a big monitor, one example is the auto maximize feature of a tool called maximus, using the code below you can disable this behavior.
gconftool-2 --set /apps/maximus/no_maximize --type BOOL true
Tame the flaky SFTP
a big thanks to Beau Henderson, Technical Manager over at Site5 for reminding me to put the following in my personal .ssh/config file:
ServerAliveInterval 180
TCPKeepAlive yesThis solves many issues with timeouts.
Open source video editing? You betcha.
Well at last I am doing full DV HD video editing on my linux desktop. It is *NOT* adobe premier pro, but it works for me. YMMV!
On my spanky Ubuntu Lucid 10.4 64bit,(and on Karmic too) I installed a bunch of great stuff:
First, lets install Openshot. It is weak on compositing or frame by frame editing, but it does some pretty awsome effects and makes inskcape your title editor. Also if you master out wuith it, will do Vimeo, youtube and flicker and picas video al in HD, yup, very nice, but you need some extras
sudo apt-get install inkscape libavformat-unstripped-52Popular content
All time:
Last viewed: