Thursday Nov 15, 2007

nautlius meet ssh://cr.opensolaris.org

I blogged a while back about nautilus being able to browse and access file systems via ssh using ssh://foo.bar but pointed out no real geek would use it. Well I now have a real situation where it is actually easier than using the command line. ssh://cr.opensolaris.org is that place. For manipulating your webrevs or even uploading them even easier than rsync.

Pity about nautilus crashing more than occasionally but still impressive.

Thursday Sep 06, 2007

nautilus meets zfs snapshots

After ZFS saved the day earlier in the week I wanted to get to the stage where the email to me was not required, at least if the user is on the a Solaris system.

So I've updated my zfs_versions script which you will recall prints out all the versions of a file that exist on a zfs file system. The new script has an additional flag so that it can better support a nautilus script that allows you to highlight a file, then it will list all the versions of that file, not all the snapshots, but all the distinct versions of the file.




Choose the show_versions script. In a fit of recursion you can see the example is for the show_versions script




Finally select the version you want:




It will then open a nautilus window in the directory that contains the version of the file. What is more it even works over NFS.

You need 2 scripts:

  1. zfs_versions, this must be in your path without the .tcl postfix.

  2. show_versions. This has to be stored in the .gnome2/nautilus-scripts directory in your home directory.

Make both scripts mode 755 and then run “nautilus -q”.

Things to note.

It considers the file to be the path to the file. So if you rename a file you will not see revisions with the old name. It would be really cool if there was a way to get all the versions of a file without resorting to doing an exhaustive search of the file system, but there is not.

I don't know how to make the available to all users without messing in each ~/.gnome2 directory. If you do then add a comment.

Hat tip to Sandip for alerting me to nautilus scripts.

Monday Feb 26, 2007

nautilus ssh://foo.com

I know no real geek would dream of using nautlius or any file browser, after all the pinnacle of UI design was the screen on the vt220, however this is so cool as to make it worth it. If only for your “friends” so that they will stop using ftp. I know this is not new news to many but I was surprised to discover a few people who I expected to know this did not. I'll not name names.

The nautilus file browser will allow you to browse files over ssh. If you have a system “foo.com” into which you can ssh, with or without a password then enter this URI into the nautlius location bar: “ssh://foo.bar” If you can't see the location bar hit the pencil symbol it allows you to type it in.

I did this on a system running Nevada build 58 and it then proceeded to ask me if I wished to store my passwords in the gnome keyring and then popped up a window displaying the root file system of my remote system.

Now if you bookmark that you can easily copy data from one place to another using a secure and if you have set up ssh to do it, compressed channel.

Very cool on a laptop and you need to copy files onto your server or if you want to browse your home server from work.

Tags:

About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« July 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today