brot / gnome-shell-extension-sshsearch Goto Github PK
View Code? Open in Web Editor NEWGnome Shell Extension: Provide SSH search results in overview
Gnome Shell Extension: Provide SSH search results in overview
Hi,
first of all thanks for this really helpful shell extension. I found two "problems", I will create another issue for the secound problem.
System: Ubuntu 11.10 64bit with gnome-shell 3.2.1-0ubuntu1 (from proposed), installed your extension from extension.gnome.org
If the the keyword "host" in .ssh/config begins with a small h, then the entry is not parsed and therefore doesnt show up in the search provider. Here an example:
host gnome-test
User test
Hostname test.tld
Changing the shell version in json doesn't help...
Looking Glass claims "Search.SearchProvider" is not defined.
Hi,
System: Ubuntu 11.10 64bit with gnome-shell 3.2.1-0ubuntu1 (from proposed), installed your extension from extension.gnome.org
When several hostnames are defined in a single rule, the search provider will take the whole name and wont recognize each hostname seperately:
Example
Host 192.168.11.11 192.168.11.13 192.168.11.15 192.168.11.16
User root
ProxyCommand ssh -q -a -x gateway nc %h 22
Trough the shell I can connect to each machine seperately via ssh 192.168.11.11, the search provider unfortunately gets "192.168.11.11 192.168.11.13 192.168.11.15 192.168.11.16" as a single machine.
I only get 1 line but I do have more results which didn't get viewed - is this limited by the extension or just a gnome setting somewhere?
Hi, first of all, nice extension, thanks!
I noticed that when number of results does not fit one "line" in overview, exceeding results will not be shown...
If I narrow the search, the fewer results will then show up.
Ex:
192.168.1. - some results will not be shown. No enough place for all results.
192.168.1.10 - results in fewer matches, there fore the missing results will can be seen.
Is it a problem in my overview configuration, or a issue in the extensions?!
Thank you in advance.
BR, careca
Hello :)
this one of the best extension for the gnome-shell. I love it. It is possible to update it for gnome 3.12? I change the versionnumber in metadata.json, but it does not work. So i think it's more advanced. Maybe a lot of things in gome-shell where changed. I'am no a developer, please excuse me ;)
Best Regards
boospy
Thanks for great extension!
As triggering the overview is quite slow, I was thinking if the search mechanism could be also used when pressing Alt+F2
in gnome-shell to trigger the run dialog. So after pressing Alt+F2
the run dialog shows up very quickly where I can start commands in my $PATH
, but it would be cool if the hostnames would be found too.
This questions is rather a gnome-shell
question I suppose, but I would be really thankful if anyone could point me to a good direction. Is it possible?
Just want to know is there anyway I can make it work with my xfce terminal?
Ubuntu 13.10 with Gnome Shell 3.8.4:
Entries within SSH config are found, but no icons are displayed, only text.
If an entry is chosen, a terminal starts but with local ~ as directory. SSH command is not executed, but no error occurs.
gnome-terminal --command "ssh host" works, however, when issued from the command line.
I tried to add some logging to give more information, but failed miserably. Sorry for that.
My ~/.ssh/config
mentions several hosts by name. Each of these generally appears in ~/.ssh/known_hosts
as well. The extension finds both mentions, includes both in its search results, and therefore the same host appears twice when I search in GNOME Shell. That is not very useful, since selecting either will do exactly the same thing.
Perhaps GNOME Shell should be removing duplicates? It isn’t, and I don’t know if it ever promised that it would. Barring a change there, this extension should filter out duplicates itself. Presumably this would happen somewhere near the end of _getResultSet
, by modifying the results
array just before calling setResults
.
Is there a way to select a terminal profile per destination?
I like to have one terminal profile for local and miscellaneous shell account terminals and another (visually different) profile for e.g. production web servers. That helps me avoid doing stupid things on the wrong hosts ... :-)
So either if gnome-term can be made to recognize the commands this extension uses and select different profiles by itself (maybe an existing feature in gnome-terminal that I just don't know about?) or if gnome-shell-extension-sshsearch can be made to tell the terminal what profile to use, maybe based on directives / comments in .ssh/config?
I often put a bunch of known hosts in /etc/ssh/ssh_known_hosts
. It would be useful for the extension to look there as well. Note that some systems name this file /etc/ssh_known_hosts
instead.
Given is a SSH configuration like this:
Host foobar
HostName foo.bar
Port 123
User justTheUser
When I open the GNOME Dash
and type in the search the name "foobar"
and press Enter or choose the upcoming SSH-Connection,
then it should open the terminal
and login at the server.
The last step fails.
The terminal is being opened but there is no action taken to login at the given SSH-config.
What information to you need to track down this issue?
I have quite a few hosts commented out in my ~/ssh/config
file which are not needed most of the time. Once a year I enable those for a week or so.
Would it require much coding to skip the commented out lines in the config
file? If so, I would keep this simple by removing those lines and keeping just in a backup dir, so pls feel free to close this, if you think this would not make much sense.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.