~bernd-sch/onehundredscopes/sshsearch

« back to all changes in this revision

Viewing changes to README

  • Committer: Bernd Schlapsi
  • Date: 2011-12-30 19:23:16 UTC
  • Revision ID: brot@gmx.info-20111230192316-qoyspkdft8qtrk2w
renamed some files and created setup.py (not tested yet)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SSHSearch Unity Lens Daemon written in Python
2
 
-----------------------------------------------
3
 
 
4
 
Credits
5
 
-------
6
 
This lens is based on the gdocs sample lens writen by njpatel which can 
7
 
be found on launchpad.
8
 
http://bazaar.launchpad.net/~njpatel/unity-lens-gdocs/trunk/files
9
 
 
10
 
Dependencies
11
 
------------
12
 
Introspection data for libunity, libdee, and libdbusmenu-glib
13
 
 
14
 
gir1.2-unity-4.0
15
 
gir1.2-dee-0.5
16
 
gir1.2-dbusmenu-glib-0.4
 
1
#Depends
17
2
python-paramiko
18
3
 
19
 
Trying out the lens
20
 
-------------------
21
 
 
22
 
There is no installation script for this so to get Unity to pick
23
 
this up you need to:
24
 
 
25
 
  sudo mkdir /usr/share/unity/lenses/sshsearch
26
 
  sudo cp sshsearch.lens /usr/share/unity/lenses/sshsearch/
27
 
  sudo cp unity-lens-sshsearch.png /usr/share/unity/lenses/sshsearch/
28
 
 
29
 
Then run the daemon with:
30
 
 
31
 
  ./unity-lens-sshsearch.py
32
 
 
33
 
And from another terminal restart Unity like this:
34
 
 
35
 
  setsid unity
36
 
 
37
 
[the setsid ^^ is a small trick to detach the unity process from the terminal
38
 
 so you can close it if you want. A bit like 'unity &' just better ;-) ]
39
 
 
40
 
Past this step you can freely Control-C the lens daemon to stop it,
41
 
do some changes, and restart it. No need to restart Unity, it will find
42
 
the newly started daemon automatically.
43
 
 
44
 
Getting rid of the Lens
45
 
-------------------------------
46
 
Just remove the sshsearch.lens file. Fx, by issuing:
47
 
 
48
 
  sudo rm /usr/share/unity/lenses/sshsearch/sshsearch.lens
49
 
 
50
 
You may want to remove the icon as well, but that's no issue if you don't:
51
 
 
52
 
  sudo rm /usr/share/unity/lenses/sshsearch/unity-lens-sshsearch.png
53
 
 
54
 
With that done, restart Unity once again with 'setsid unity' and all should
55
 
be back to normal.
 
4
#Install
 
5
sudo mkdir /usr/share/unity/lenses/sshsearch
 
6
sudo cp sshsearch.lens /usr/share/unity/lenses/sshsearch
 
7
sudo cp sshsearch-lens.png /usr/share/unity/lenses/sshsearch
 
8
setsid unity
 
9
 
 
10
#Run
 
11
python sshsearch-lens
56
12