western willow ventures inc.

eye on the net
  • Home
  • Contact
  • Web
  • Graphics
  • ARDi
  • Samples
  • Terms of Service
  • Fun
  • Privacy

Search

Home | Blogs

Franco's blog

Quickly fixing SSH when the remote key changes!

Thu, 2011-03-17 08:32 |  Franco

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

Read more
Login to post comments |  430 reads |  Tags: command line, linux, ssh, ubuntu

Easy batch renaming in Ubuntu (and other debian systems)

Thu, 2011-03-17 08:27 |  Franco

Ever want to rename 300 .foo files to .bar? wish you could do this:

mv *.foo *.bar

Here is the answer: Debian Rename included in ubuntu.
this example renames all .php5 files to .php

rename ‘s/\.php5/.php/’ *.php5

Login to post comments |  906 reads |  Tags: command line, debian, linux, ubuntu

SCITE: Make those line number show every time

Mon, 2011-02-21 13:44 |  Franco

first, open scite from a terminal as root using:

sudo scite

When the editor is open choose : "Open Global Option File" from the Options Menu

uncomment or enter these lines:

line.margin.visible=1
line.margin.width=4

Next time you open scite, the line numbers should be there already.
Cheers!

Login to post comments |  481 reads |  Tags: line numbers, linux, scite

Turn a folder full of pictures into a timelapse video

Sun, 2011-02-20 12:02 |  Franco

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:

Read more
Login to post comments |  633 reads |  Tags: linux, mencoder, timelapse, ubuntu

Recursive search for files with specific content using GREP

Fri, 2011-02-18 13:03 |  Franco

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.

Login to post comments |  782 reads |  Tags: command line, grep, linux, ubuntu

What ports are open on my Linux box?

Mon, 2010-11-29 11:08 |  Franco

Running the following code shows what opports are open on yourtr linux system:

netstat -anp --tcp --udp | grep LISTEN

Login to post comments |  200 reads |  Tags: linux, open ports

How do I know what version of PostGreSQL I am running?

Mon, 2010-11-29 09:32 |  Franco

Run this simple query on any database in the server:

SELECT version();

you should see a result something like:

"PostgreSQL 8.3.9 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Ubuntu 4.3.2-1ubuntu11) 4.3.2"

The next question will logically be, how do I determine the version of PostGIS running on PostGreSQL?

query any DB with this code:

select postgis_full_version();

will give a result like:

"POSTGIS="1.5.1" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.6.1, 21 August 2008" LIBXML="2.7.5" USE_STATS"

Login to post comments |  382 reads |  Tags: PostGIS, PostGreSQL, version

Fix for Ubuntu GPG error related to PPAs

Mon, 2010-11-29 09:01 |  Franco

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

Read more
Login to post comments |  219 reads |  Tags: error, gpg, ppa, repository, ubuntu

Wrangling your bash shell into line

Tue, 2010-11-23 11:27 |  Franco

While I love my hosting provider, they have some issues, ones I have learned to live with.

to configure your bash shell to show you a nice prompt do this:

PS1='\u@yourdomain.com [\w]# '

to make and use a local bin directory try this:

PATH=$PATH:~/bin

Login to post comments |  209 reads |  Tags: hosting

Fort Smith RC Club site goes online

Sat, 2010-10-30 10:53 |  Franco

The Fort Smith RC Club website is online, and open to local RC hobby enthusiasts. Sponsored by Western Willow Ventures Inc.
Find it here:
http://rc.westernwillow.com

Login to post comments |  260 reads |  Tags: Hobby, New, RC, Website
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • next ›
  • last »

Tags in Blog Tags

digital art hosting howto TAR ssh ubuntu graphics linux free and open sourced software command line drupal the gimp
more tags

Popular content

Today's:

  • ready for the oven
  • Alexandra Falls, NWT
  • graphicsScreenCap.jpg

All time:

  • Contact
  • Web
  • ARDi - Aerial Research Drone One

Last viewed:

  • Open source video editing? You betcha.
  • Quick and dirty iso rip on Ubuntu or on any Linux
  • Installing FLASH in Ubuntu 64

Noteworthy News

  • EPIC Hexacopter HEAVY Lift Test!! 15lbs of BEER??
  • Amazing Video: 'Jet Man' stunts alongside fighter jets over Alps
  • RoboKopter Policja bieg
  • The Man Who Made Things Fly - Avios (official version)
  • My Guitar Gently Weeps - Tom Petty & Prince Tribute
  • 11-15-11 4 - Special Comment - Mayor Bloomberg - Countdown with Keith Olbermann
  • Let There Be Light...
  • Quardino VC-450 MAS Prop Test
more
© 2010 Western Willow Ventures Inc.

Designed by Heidi Selzler.