western willow ventures inc.

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

Search

Home

linux

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
Franco's blog |  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

Franco's blog |  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!

Franco's blog |  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
Franco's blog |  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.

Franco's blog |  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

Franco's blog |  Login to post comments |  200 reads |  Tags: linux, open ports

Rename those *.JPG files to *.jpg files in linux

Tue, 2010-10-26 10:27 |  Franco

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

Franco's blog |  Login to post comments |  230 reads |  Tags: linux, ubuntu

Tame the flaky SFTP

Mon, 2010-08-02 11:07 |  Franco

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 yes

This solves many issues with timeouts.

Franco's blog |  Login to post comments |  244 reads |  Tags: keepalive, linux, sftp, ssh, timeout, ubuntu

Quick and dirty iso rip on Ubuntu or on any Linux

Fri, 2010-05-21 18:43 |  Franco

The trick here is to know what device file on linux is used as your cdrom/dvdrom drive, then its a simple matter of:

dd if=/dev/cdrom of=~/cdrom_image.iso

Franco's blog |  Login to post comments |  286 reads |  Tags: DVD, ISO, linux, rip, ubuntu

Sys admin tools on linux

Sun, 2010-05-09 18:54 |  Franco

I found this in the google cache and so I copied it, no author, sorry whoever you are. It used to be on the http://www.moolux.org/ website.

 

Read more
Franco's blog |  Login to post comments |  833 reads |  Tags: linux, sysadmin, utils
  • 1
  • 2
  • next ›
  • last »

Popular content

Today's:

  • Contact
  • ready for the oven
  • Alexandra Falls, NWT

All time:

  • Contact
  • Web
  • ARDi - Aerial Research Drone One

Last viewed:

  • Graphics
  • Contact
  • Web

Navigation

  • Login
  • Album photos
  • Contact form
  • Feed aggregator
© 2010 Western Willow Ventures Inc.

Designed by Heidi Selzler.