Correspondent

Ken Fallon


website:
email: ken.fallon @@ gmail.com
episodes: 29

0562 - Introduction to bash scripting | 2010-08-11

http://en.wikipedia.org/wiki/Bourne_shell
http://en.wikipedia.org/wiki/Command-line_interface

A list of "Hello World" programs in many different computer languages: 
http://www.roesler-ac.de/wolfram/hello.htm 

For Windows:
Editor: http://notepad-plus-plus.org/
Bash (and more): http://x.cygwin.com/ 
(run setup, and selecting the 'xinit' package from the 'X11' category.)

$ echo '#!/bin/bash' > hello.bash
$ echo "echo hello world" >> hello.bash

$ cat hello.bash 
#!/bin/bash
echo hello world

$ chmod +x hello.bash

$ ./hello.bash
hello world

feedback-(a)-kenfallon.com
More information http://www.kenfallon.com

0558 - xscreensaver | 2010-07-21

Shownotes: http://www.kenfallon.com
xscreensaver howto: http://www.jwz.org/xscreensaver/man1.html#9

Commands:
vi .kde/Autostart/xscreensaver.desktop
sudo cp /usr/lib/kde4/libexec/kscreenlocker sudo vi /usr/lib/kde4/libexec/kscreenlocker
sudo chmod +x /usr/lib/kde4/libexec/kscreenlocker
sudo apt-get install xscreensaver xli xloadimage xfishtank qcam streamer

0546 - Shot of Hack – Changing the time offset of a series of photos | 2010-06-03

The problem: You have a series of photos where the time is offset from the correct time but is still correct in relation to each other.

Here are a few of the times that I’ve needed to do this:
- Changing the battery on my camera switched to a default date.
- I wanted to synchronize the time on my camera to a GPS track so the photos matched the timestamped coordinates.
- At a family event where images from different cameras were added together.

You can do edit the timestamp using a GUI and many photo manipulation applications like the GIMP support metadata editing. For example on KDE:

    gwenview -> plugins -> images -> metadata -> edit EXIF 

The problem is that this gets tiresome after a few images, and anyway the times are correct in relation to each other – I just need to add or subtract a time correction to them en masse.

The answer: exiv2 – Image metadata manipulation tool. It is a program to read and write Exif, IPTC and XMP image metadata and image comments.

user@pc:~$ exiv2 *.jpg
File name       : test.jpg
File size       : 323818 Bytes
MIME type       : image/jpeg
Image size      : 1280 x 960
Camera make     : FUJIFILM
Camera model    : MX-1200
Image timestamp : 2008:12:07 15:12:59
Image number    :
Exposure time   : 1/64 s
Aperture        : F4.5
Exposure bias   : 0 EV
Flash           : Fired
Flash bias      :
Focal length    : 5.8 mm
Subject distance:
ISO speed       : 160
Exposure mode   : Auto
Metering mode   : Multi-segment
Macro mode      :
Image quality   :
Exif Resolution : 1280 x 960
White balance   :
Thumbnail       : image/jpeg, 5950 Bytes
Copyright       :
Exif comment    :

The trick is to pick a image where you can that figure out what the time was and work out the time offset. In my case I needed to adjust the date forward by six months and four days while changing the time back by seven hours. I used the command exiv2 -O 6 -D 4 -a -7 *.jpg

-a time
    Time adjustment in the format [-]HH[:MM[:SS]].
    This option is only used with the 'adjust' action. Examples:
        1 adds one hour,
        1:01 adds one hour and one minute,
        -0:00:30 subtracts 30 seconds.
-Y yrs
    Time adjustment by a positive or negative number of years, for the 'adjust' action.
-O mon
    Time adjustment by a positive or negative number of months, for the 'adjust' action.
-D day
    Time adjustment by a positive or negative number of days, for the 'adjust' action.

When we run this we can see that the timestamp has now changed.

user@pc:~$ exiv2 *.jpg | grep timestamp
Image timestamp : 2009:06:11 08:12:59

That’s it. Remember this is the end of the conversation – to give feedback you can either record a show for the HPR network and email it to admin@hackerpublicradio.org or write it on a post-it note and attach it to the windscreen of Dave Yates’s car as he’s recording his next show.

http://www.hackerpublicradio.org
http://kenfallon.com/?cat=12

0544 - HPR: A private data cloud | 2010-05-28

LINKS:
Failure Trends in a Large Disk Drive Population http://labs.google.com/papers/disk_failures.pdf

Nas solutions
http://www.drobo.com/
http://en.wikipedia.org/wiki/Network-attached_storage

Clowd Solutions
https://one.ubuntu.com/
https://www.dropbox.com/
http://www.carbonitepro.com/ProPricing.aspx

Rsync
http://samba.anu.edu.au/rsync/
http://rsync.samba.org/ftp/rsync/rsync.html
http://en.wikipedia.org/wiki/Sneaker_net

Setting up the sshkey
http://sial.org/howto/openssh/publickey-auth/

Getting a well known url for your changing home IP address
http://en.wikipedia.org/wiki/Dynamic_DNS

Cron howto
http://hackerpublicradio.org/eps.php?id=0507
http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/

Sponsored Podcast
http://screencasters.heathenx.org/

0531 - bash loops | 2010-03-24

user@pc:~$ for number in 1 2 3
> do
> echo my number is $number
> done
my number is 1
my number is 2
my number is 3

user@pc:~$ for number in 1 2 3 ; do echo my number is $number; done
my number is 1
my number is 2
my number is 3

user@pc:~$ cat x.txt|while read line;do echo $line;done
one-long-line-with-no-spaces
one ling line with spaces

user@pc:~$ for line in `cat x.txt`;do echo $line;done
one<-long-line-with-no-spaces
one
ling
line
with
spaces

0481 - Mashpodder | 2009-11-12

Ken Fallon talks about Mashpodder. Some useful links: baspodder homepage: http://lincgeek.org/bashpodder
mashpodder homepage: http://code.google.com/p/mashpodder/
Linux Reality Podcast: http://www.linuxreality.com/
Spudshow: http://spudshow.libsyn.com/

The Ogg Vorbis version of this show can be found courtesy The Bad Applez --> download hpr0481.ogg

0465 - Failsafe security | 2009-10-14

WARNING: It's easy to lock yourself out of a system implementing these changes so make sure you have physical access to the console of the system you are securing. To display all processes listening netstat -anp | grep -i listen Deny all connections to any port from any external IP address /etc/hosts.deny all:all /etc/hosts.allow sshd:192.168.1.54 # My other pc IPTables Tutorial: http://iptables-tutorial.frozentux.net/ A good starting point to block all except ssh: http://www.cyberciti.biz/tips/linux-iptables-4-block-all-incoming-traffic-but-allow-ssh.html Disable root login via ssh: http://www.howtogeek.com/howto/linux/security-tip-disable-root-ssh-login-on-linux/ Setting up ssh keys and disabling password logins. http://www.debuntu.org/ssh-key-based-authentication

0457 - automatic car | 2009-10-02

ken fallon talks about an automatic car

0431 - Logwatch | 2009-08-26

Ken talks about Logwatch, a customizable log analysis system. Logwatch parses through your system's logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is easy to use and will work right out of the package on most systems.

0401 - web2speech | 2009-07-14

web2speech http://kenfallon.com/wp-content/uploads/2009/06/web2speech.txt Converting wikipedia text to audio. http://kenfallon.com/?p=240

0386 - SSH config file | 2009-06-23

GSSAPIAuthentication no
ForwardAgent yes
EscapeChar none
ForwardX11 yes
Protocol 2

Host hometunnel
	User homeuser
	Hostname mymachine.dynamicdns.org
	LocalForward 8080 192.168.1.100:80
        Port 1234

Host home
	User homeuser
	Hostname mymachine.dynamicdns.org
        Port 1234

Host work
	User workuser
	Hostname mywork.mycompany.com
        IdentityFile ~/.ssh/work_id_dsa.pub

Host isp
        User ispuser
        Hostname isp.example.com
        IdentityFile ~/.ssh/isp_id_dsa.pub

0340 - RTFM | 2009-04-20

ken talks about the history behind RTFM

0298 - AutoNessus | 2009-02-19

Ken Fallon interviews the autonessus developer

0279 - cfengine | 2009-01-23

Ken talks to Ian Southam about using cfengine to manage your servers.
Overview of CFengine
http://en.wikipedia.org/wiki/Cfengine
The Promise of System Configuration: Google Tech Talks - November 5, 2008 http://www.youtube.com/watch?v=4CCXs4Om5pY
A simple overview of cfengine: Debian Administration http://www.debian-administration.org/articles/223
Centralized Host Configuration With Cfengine: Sun BigAdmin System Administration Portal http://www.sun.com/bigadmin/features/articles/cfengine_part1.html http://www.sun.com/bigadmin/features/articles/cfengine_part2.html
Ian Southam: http://www.schubergphilis.com/

0250 - What Ogg Player | 2008-12-15

Samsung YP-U3

Supporting without updating firmware


Where to look for a ogg player

MTP

International Firmware:
Use the U3J MTS mode use it

0227 - Local Squid | 2008-11-12

Ken Fallon talks about Squid for local use

0206 - This Runs Linux | 2008-10-14

ken fallon talks about thisrunslinux.org

0185 - 3 tips | 2008-09-15

More info
Tip 1: while [ "x" = "x" ]; do ls -al ; sleep 5; done
Tip 2: sox in.mp3 out.ogg tempo 1.5
Tip 3: tar -cf - . | ( cd /media/backupdisk; tar -xvf - )

0160 - DVgrab | 2008-08-11

http://kenfallon.com/?p=51
http://torrez.us/archives/2007/05/14/530/
http://www.ibm.com/developerworks/linux/library/l-job-terminating/index.html

0145 - Stop smoking | 2008-07-21

The one step plan to stopping smoking: Don't smoke another one. Audio for the record scratch by Halleck http://www.freesound.org/samplesViewSingle.php?id=29938
http://creativecommons.org/licenses/sampling+/1.0

0140 - LPI Certification Part 6 Device Configuration | 2008-07-15

Part 6 of the LPI series by ken fallon

0135 - LPI Ceritification Part 5 PCI Cards | 2008-07-08

GNU Free Documentation License
elpicx Live-CD/DVD
Leading Edge Training Notes

Commands Used:
lspci -h|less
lspci -n|less
locate pci.ids | less
less 'locate pci.ids | head -1
` lspci | less
lspci -s 00:1d -v |less
less /proc/pci
echo "Read http://www.rt.com/man/pnpdump.8.html"
less /proc/interupts less /proc/ioports less /proc/iomem less /proc/dma

0115 - Promoting Linux | 2008-06-09

Ken Fallon discusses ways to promote linux

0102 - Linux Professional Institute Certifications Part 4 | 2008-05-21

Ken continues his series on LPI Certifications

0078 - Interview Tips | 2008-04-17

Ken Fallon gives some interview tips for job seekers

0057 - LPI Certifications Part 3 | 2008-03-19

http://www.kenfallon.com
http://www.acsdata.com/how-a-hard-drive-works.htm
http://tldp.org/HOWTO/Large-Disk-HOWTO-4.html
http://www.storagereview.com/guide2000/ref/hdd/bios/sizeMB504.html

0056 - Open Street Map | 2008-03-18

openstreetmap.org

0036 - LPI Certifications Part 2 | 2008-02-19

Continuing his journey toward LPI certification, Ken covers computer buses and system resources. Please note, there is a minute and a half, gap in this recording – your player's battery didn't die.
http://computer.howstuffworks.com/pci.htm/printable

Shownotes by: diggsit

0013 - LPI Certifications Part 1 | 2008-01-17

Ken Fallon, wants his 'Linux Professional Institute Certification' (LPIC). He must be serious, because he's publicly preparing for it on HPR – no pressure, Ken. In this first episode of the series, he explains the certification process, sets up his practice system, and begins covering study material, for the 101 exam. He's using a detailed study guide, provided by IBM developerWorks.
IBM Developer Works: (LPI) exam prep
The Booting Process of the PC
System Boot Sequence
ttp://www.pcguide.com/ref/mbsys/bios/boot_Sequence.htm
http://en.wikipedia.org/wiki/Booting
http://en.wikipedia.org/wiki/Bootstrapping_%28computing%29
----------------------------------------------
Other Links:
----------------------------------------------
LPI Certification Self-Study Guide
ttp://www.happy-monkey.net/LPI/
Wiki Book: LPI Certification
http://en.wikibooks.org/wiki/LPI_Linux_Certification
----------------------------------------------
Software:
----------------------------------------------
Vmware Server
http://www.vmware.com/download/server/ VMware-server-1.0.4-56528.tar.gz
CentOS
http://isoredirect.centos.org/centos/5/isos/i386/ CentOS-5.1-i386-netinstall.iso
Select FTP Site from mirror list
http://www.centos.org/modules/tinycontent/index.php?id=13 ./5.1/os/i386/
E.g for ftp location:
ftp.tudelft.nl
pub/Linux/centos.org/5.1/os/i386/images
Debian Netinstall
http://cdimage.debian.org/debian-cd/4.0_r1/i386/iso-cd/ debian-40r1-i386-netinst.iso
----------------------------------------------
Online Assesment
----------------------------------------------
https://www.redhat.com/apps/training/assess/
http://www.linux-praxis.de/lpisim/lpi101sim/index.html

Shownotes by: diggsit

Become a Correspondent












linkboxes

Affiliates:


Hosting for HPR is provided by...








l