Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running a Google search by Alt F2 and then gg: [key words] is fantastic.
I would like to add new web shortcuts to Konqueror with my favorite web sites, for search purposes. I found a web page showing how to do it for Google Linux, but that is all.
Somewhere I read it has something to do with CGI scripts.
Could you please clue me in or send me a friendly link?
What your looking for is in the Settings for Konq, under Web ShortCuts, ( its also available through the Control Centre, under Internet & Network->Web Browser, Web Shortcuts )
Theirs no coding at all just three input strings. Take a look at gg and others, to see exactly what to put. You'll also see that Konq already comes with lots already set for you.
My question was based precisely on the option you mentioned (Internet & Network->Web Browser, Web Shortcuts ). I had edited some of the shortcuts . For instance, instead of "dict" to call the Merriam-Webster search, I set "dic".
However, I noticed that the third string (the one related to the website) does not only contain the web address, but also some additional variables, which seem necessary to run the search. I cannot show more examples right now (I'm not at my Linux box), but I'll get into this more in depth later, and let you know what I find (just for the sake of other naive users like me).
If you type a seach into google you'll see exactly where this is from. Its simply the URL that google uses for a search. The \{@} is replaced by the text of the search so
I simply replace hello with \{@} and put it into the shortcuts as dic, and voila it all works.
If you notice theirs an additional x & y component that isn't found in the shortcut provided by dict. This has been removed as its a bit of extra fluff not actually need for the search to work.
I can't see the word "virus" but, taking a wild guess, I assume it is the string that comes after "searchid", that is "3199601". So, I replace those digits with the expression \{@} on the web shortcut I'm building.
However, when I use the shortcut to search for "virus" again, I get a "no match" message, and this time the location shown is:
For this site the normal search uses a id rather than the search string, which makes it hard to create a search through a web shortcut. There is a google search for this site ( which I think would work), but you have to be a contributing member to use it.
You could use google to search by adding &as_sitesearch=linuxquestions.org to the google command to make
Actually, the string extracted from the Google shortcut did not work, but the one extracted from the Google Advanced Search did work, after changing the parameter "as_sitesearch" to www.linuxquestions.org, just as you suggested.
It gives results from Linux Questions in Goggle format though, but it's good enough for the time being. In any case, the whole CGI scripting looks like an interesting thing to look at in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.