The Home Office

Categories

SSH login without password

A flowchart describing the process of generati...
Image via Wikipedia

From Mathias Kettner

I use this often and so much so that I have recently decide to repost it here so that I can find it more easily.  I am not going to rewrite it as I really do use it step by step and Kettner has done a great job simplifying the entire explanation.

Continue reading SSH login without password

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

42 of the Best Free Linux Scientific Software

Continue reading 42 of the Best Free Linux Scientific Software

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Wally: Automatic Wallpaper Changer

My thanks to W8 for this tip.
Wally is a Qt4 wallpaper changer, using multiple sources like files, folders, FTP remote folders, Flickr, Yahoo!, Panoramio, Pikeo, Ipernity, Photobucket, Buzznet, Picasa and Smugmug images. Not only that, but it also works on Windows, Linux and Mac OSX. Ubuntu users will be glad to know that it even comes with pre-build .deb packages for both 32 and 64bit versions (download link at the end of the post).
wally wallpaper changer

Wally features:

· History support
· Many wallpaper layouts available on all platforms
· EXIF data available over picture and in system tray tooltip
· Save downloaded photos
· Run-time folder change detection in “Folder” mode
· Proxy support

· It supports KDE3, KDE4, Gnome, XFCE4, Fluxbox, Blackbox, FVWM (unstable), WindowMaker window managers.
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

OpenShot 1.0 Has Arrived!

OpenShot Video Editor 1.0 has just been released!

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Geek Clock

From GeekCook comes this clock for Geeks.  If you haven’t used Google Translate, install the Google Toolbar, turn on Translate and translate this Chinese site into English.  The translation will get you through a purchase; however, you will spot the challenges in translating a web page.  Think what ThinkGeek would look like translated by Google into Chinese.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Hacking an HP Media Vault Pro for RSYNC

OpenSSH
Image via Wikipedia

I have a number of HP Media Vault Pro, MV5150s, which I purchased to provide classroom storage at a low cost.  These are MV2, Series 2 Media Vault servers, and the instructions that follow are specific to this series only.  They work great, and I have begun to use them daily with all my classes.  Out of the box they don’t support using rsync and that is one of my critical needs for a variety of functions.

If you can’t open it, you don’t own it.  And it was my first opportunity is a great while to see what embedded Linux systems are about in recent times.  So time to hack.

To start hacking a Media Vault means starting with Lee Devlin’s great website http://www.k0lee.com/hpmediavault/.  It is a great respository for the HP Media Vault community and Lee led me to the two User Support Groups on Yahoo!:

User Support Group

There is an 3300+ member Media Vault user group at Yahoo set up specifically to discuss the HP Media Vault and share information with other users.    You can join the group and ask questions or search its archive of more than 8500 messages if you want to learn more about the HP Media Vault or can’t find the answer to your question in this FAQ.    For hacking purposes, there is another group called Hacking the HP Mediavault.

And both of these led me to installing the ipkg packager.  These instructions work fine:

Download ipkginstall.zip

1. Extract the file.
2. Copy the file (ipkginstall.sh) and the dir (ipkgsetup) to a share on the Media Vault
3. SSH in, and cp the file, and dir to “/”
4. # sh ./ipkginstall.sh

Ipkg is now installed in /opt/bin and I modified /etc/profile to include that in the path.

Then one simply runs “ipkg update” to install the file database and “ipkg install rsync” to install the new version of rsync.  Ipkg installs rsync in /opt/bin and to make it work with remote rsync hosts I added a symbolic link in /sbin to /opt/bin/rsync.

The HP MV2 series uses Busybox linux.  Busybox comes with Dropbear SSH which is compatible with OpenSSH ~/.ssh/authorized_keys public key authentication, so use these simple instructions from Mathias Kettner

SSH login without password

Your aim

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don’t want to enter any passwords, because you want to call ssh from a within a shell script.

How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:

a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory ‘/home/a/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):

a@A:~> ssh b@B mkdir -p .ssh
b@B’s password:

Finally append a’s new public key to b@B:.ssh/authorized_keys and enter b’s password one last time:

a@A:~> cat .ssh/id_rsa.pub | ssh b@B ‘cat >> .ssh/authorized_keys’
b@B’s password:

From now on you can log into B as b from A as a without password:

a@A:~> ssh b@B hostname
B

And that was all there is to it.  Follow the caveats.  Know your abilities.  As always your mileage may vary.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

The Art of Community

Jono Bacon
Image via Wikipedia

The Art of Community by Jono Bacon


Art of Community Image

Bacon is the Community Manager for Ubuntu (Ubuntu), one of the largest open source software projects on the planet. In this book he talks about the ins and outs of building, cultivating and managing a community from the ground up. This is a must-read for anyone interested in community development. In a truly community-friendly effort, you can download the entire book for free and share and modify it under the Creative Commons Attribution Share-Alike Non-Commercial license.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Marty Stepp, UWs Rapping Lecturer

Aerial view of the University of Washington ca...
Image via Wikipedia

Monica Guzman Geek of the Week: Marty Stepp, UW’s rapping lecturer

After a brief hiatus, Geek of the Week is back with a rapping computer science lecturer from the University of Washington.

Read the full article HERE

Related articles

Continue reading Marty Stepp, UWs Rapping Lecturer

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Git in One Hour

This event was watched and reviewed by one of my favorite techies and it was their opinion that this was a useful webcast instead of the more pedantic variety which appear more like a reference manual to a product than a hands-on “howto” type.  Highly recommended!


Date: This event took place live on August 20 2009
Presented by: Scott Chacon
Duration: Approximately 60 minutes.

In this webcast, Git evangelist Scott Chacon covers the basics of the Git source control system. He’ll introduce the audience to Git basics: staging and committing snapshots, viewing the commit log, pushing to and pulling from servers, and creating, switching between, and merging branches.  Finally he’ll quickly cover a few more advanced features – code annotation, advanced log options and possibly more, time permitting.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter

Wordpress Programming Visual Cheat Sheet

Thanks to Antonio Lupetti

WordPress Visual Cheat Sheet is the new document, of the Visual Cheat Sheet family, that contains a practical reference guide to WordPress 2.8. This cheat sheet (5 pages) contains the full reference guide to WP Template Tags with detailed descriptions and sample code.

WordPress-Visual-Cheat-Sheet
WordPress 2.8 Visual Cheat Sheet

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Diigo
  • Twitter