Linux Debian support - How to get Rute book onto the KMenu?

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > October 2005 > How to get Rute book onto the KMenu?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get Rute book onto the KMenu?
Chris

2005-10-12, 5:59 pm

Having, at last, got Debian installed, I've been trying out installing
things.

I used Synaptic to install frozen-bubble and it was automatically added
to the KMenu. Then I installed Rute book - and it wasn't added to the
said menu.

I tried all sorts of ways to add it - using the KMenu Editor - but
nothing worked. I could make Rute a bookmark in the web browser - so
not all is lost.

But how do you add it to the KMenu?
--
Chris
SINNER

2005-10-12, 5:59 pm

* Chris Wrote in alt.os.linux.debian:

> Having, at last, got Debian installed, I've been trying out
> installing things.
>
> I used Synaptic to install frozen-bubble and it was automatically
> added to the KMenu. Then I installed Rute book - and it wasn't
> added to the said menu.
>
> I tried all sorts of ways to add it - using the KMenu Editor - but
> nothing worked. I could make Rute a bookmark in the web browser -
> so not all is lost.
>
> But how do you add it to the KMenu?


Since it is really a bookmark you would have to setup a Kmenu item that
would execute your browser and open the page. You can use the one you
currently use to open your browser as a model to create the new one and
just add the location parameter.

--
David
Chris

2005-10-13, 5:54 pm

SINNER wrote:

> * Chris Wrote in alt.os.linux.debian:




[vbcol=seagreen]
> Since it is really a bookmark you would have to setup a Kmenu item
> that would execute your browser and open the page. You can use the one
> you currently use to open your browser as a model to create the new
> one and just add the location parameter.


I have experimented extensively - with no success as yet.
If you would be so kind, I wonder if you could give an example of the
kind of field entries for the KMenu item?

SINNER

2005-10-13, 5:54 pm

* Chris Wrote in alt.os.linux.debian:

> SINNER wrote:
>
>
>
>
>
>
> I have experimented extensively - with no success as yet.
> If you would be so kind, I wonder if you could give an example of
> the kind of field entries for the KMenu item?
>
>


Cant be specifc here (on my Windows box in the office) I will check
when I get home and if someone has not answered, I will post. Which
browser do you want to open it with?

--
David
Chris

2005-10-13, 5:54 pm

In article <Xns96EE708E4491BLouiscypherhellorg@140.99.99.130>, SINNER
<arcade.master@googlemail.net> writes
>* Chris Wrote in alt.os.linux.debian:
>
>Cant be specifc here (on my Windows box in the office) I will check
>when I get home and if someone has not answered, I will post. Which
>browser do you want to open it with?


Konqueror would be fine. And thankyou.
--
Chris
Chris

2005-10-13, 5:54 pm

In article <Ccwn+NEqUpTDFw+U@[127.0.0.1]>, Chris <nospam@[127.0.0.1]>
writes
>In article <Xns96EE708E4491BLouiscypherhellorg@140.99.99.130>, SINNER
><arcade.master@googlemail.net> writes
>
>Konqueror would be fine. And thankyou.


An afterthought: perhaps I should have been asking how one is supposed
to access Rute book after installing it with Synaptic?
Maybe there's a reason it hasn't been added to the KMenu?
What's the normal way of getting to it?
--
Chris
Alan Connor

2005-10-13, 5:54 pm

On alt.os.linux.debian, in <w9ZFreBaP+SDFwjC@[127.0.0.1]>, "Chris" wrote:
<body not downloaded>

Now that's brilliant: Trying to get a book about running linux
from the commandline onto the menu of a GIDE (Graphical Integrated
Desktop Environment).

Reminds me of all these people that drive around with bicycles on racks
on their cars.

This would make a lot more sense (and keep you from looking like a
phoney and an idiot):

alias ru='mozilla file:///home/you/rute.html/node1.html &'

Put that in your ~/.bashrc and run:

source .bashrc

That causes bash to re-read the file so you don't have to reboot.

Now, when you enter "ru" in an xterm the table of contents will
open in mozilla (or whatever browser you choose) in a seperate
window. The "&" will background the process, freeing up the
xterm for other uses.

To see whether "ru" has been already appropriated for an alias,
function, or executable name, do:

type -a ru


AC


--
If you are wondering why I didn't read your post,
see: http://home.earthlink.net/~alanconnor/posting.html
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
Robert Glueck

2005-10-24, 9:42 am

Chris wrote:
> Having, at last, got Debian installed, I've been trying out installing
> things.
>
> I used Synaptic to install frozen-bubble and it was automatically added
> to the KMenu. Then I installed Rute book - and it wasn't added to the
> said menu.
>
> I tried all sorts of ways to add it - using the KMenu Editor - but
> nothing worked. I could make Rute a bookmark in the web browser - so
> not all is lost.
>
> But how do you add it to the KMenu?


I believe the Rute ebook is in html format, and a web
browser would be the natural application to read it with.
But I believe in one of my Linux installs (was it Knoppix?)
I once saw it included in the Help section. You may want to
explore that avenue, i.e. see whether you can access it via
the Help entry in the KDE Menu which may have a submenu (the
same one that holds the Unix man pages) with "Application
Manuals", all of which I believe are in html format. There
must be an easy way to add new application manuals to that menu.

Robert
Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <auWdndUvR48PcNPeRVn-sw@rcn.net>, "Robert Glueck" wrote:
<body not downloaded>

http://groups.google.com/advanced_group_search

Robert Glueck
Results 1 - 23 of 23 posts in the last year
7 alt.os.linux.debian
5 comp.os.linux.misc
1 comp.os.linux.portable
8 comp.os.linux.security
1 rec.birds
1 rec.food.sourdough

AC

--
If you are wondering why I didn't read your post,
see: http://home.earthlink.net/~alanconnor/posting.html
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
Robert Glueck

2005-10-24, 9:42 am

Chris wrote:
> Having, at last, got Debian installed, I've been trying out installing
> things.
>
> I used Synaptic to install frozen-bubble and it was automatically added
> to the KMenu. Then I installed Rute book - and it wasn't added to the
> said menu.
>
> I tried all sorts of ways to add it - using the KMenu Editor - but
> nothing worked. I could make Rute a bookmark in the web browser - so
> not all is lost.
>
> But how do you add it to the KMenu?


I've downloaded Paul Sheer's book in Xandros (a Debian
derivative) which put it into /usr/share/doc/rutebook/html/.
My preference would be to have it available as an instant
reference by being able to look at it in Links, a superfast
graphical browser, and I can do so by putting
file:///usr/share/doc/rutebook/html/rute.html in Links' URL
field. That opens the Contents page of the book in Links'
start up window, and I can navigate to all the links from there.

Now, if I could write a shell script that would start up
Links and pass the parameter
file:///usr/share/doc/rutebook/html/rute.html to Links' URL
parser and call that script, say, "rute" and make it
executable, then I could use the Kmenu editor to create a
new menu entry "Rute Book" and in the command field enter
the path and name of the script "rute". That, I think,
would do it. I could also put an icon in the bottom panel.
What I don't know is how to create that shell script
"rute", and whether that's feasible at all.

Does anyone know? The same principle would apply to Firefox
or Konqueror except they would be much slower. Can a URL be
passed to a Firefox startup script on the command line?

Robert
Robert Glueck

2005-10-24, 9:42 am

Chris wrote:
> Then I installed Rute book - and it wasn't added to the
> said menu.
>
> I tried all sorts of ways to add it - using the KMenu Editor - but
> nothing worked. I could make Rute a bookmark in the web browser - so
> not all is lost.
>
> But how do you add it to the KMenu?


Here's a speedy way of accessing the Rute ebook from the KDE
menu.

1. Install the rutebook deb package. Xandros installs it in
/usr/share/doc/rutebook/html.

2. Install the graphical web browser Links deb package. It
would probably be v.2.1pre16. Xandros installs it in
/usr/bin, and probably Debian does so too. Make sure it's
in your PATH, i.e. open a console and check with "echo
$PATH". After starting up Links, to bring up its main menu,
you need to hit ESC.

3. Using a simple text editor (e.g. Kwrite), create a bash
shell script "rute":

#!/bin/sh
links2 -g file:///usr/share/doc/rutebook/html/rute.html

4. Open a user console, navigate to the directory in which
the newly created script rute resides and make the script
executable:

chmod a+x rute

5. Execute the script

../rute

This should open the Contents page of the Rute ebook in a
Links window. If this works, good!

6. Open a root console and move rute from the pwd to /usr/bin:

mv rute /usr/bin/rute

7. Check whether the script is working in its new location
by hitting ALT-F2 and entering "rute" (w/o quotation marks).
Good, if that works.

8. Using the KMenu editor, enter a new item, e.g. Manuals,
and underneath that another new item, e.g. Rute Book, and
then in the "Command" field enter "rute" (w/o quotation
marks). You can also pick an icon for this new entry. Exit
KMenu editor.

9. Now when you click on this new menu entry "Rute Book",
Links should open with the Contents page.

10. You can also put the chosen icon in the bottom panel:
Right-click on the panel and click on Add, etc. etc.

Robert



Robert Glueck

2005-10-24, 9:42 am

Robert Glueck wrote:

> Here's a speedy way of accessing the Rute ebook from the KDE menu.


Corrections:

re 2. the package name is Links2, and on the command line
the program is invoked with "links2".

re 6. change this to: mv rute /usr/bin
Chris

2005-10-24, 9:42 am

In article <tfWdnQgMdO_J8tLeRVn-ig@rcn.net>, Robert Glueck <rglk@web.de>
writes
>Chris wrote:
>
>Here's a speedy way of accessing the Rute ebook from the KDE menu.
>
>1. Install the rutebook deb package. Xandros installs it in
>/usr/share/doc/rutebook/html.
>
>2. Install the graphical web browser Links deb package. It would
>probably be v.2.1pre16. Xandros installs it in /usr/bin, and probably
>Debian does so too. Make sure it's in your PATH, i.e. open a console
>and check with "echo $PATH". After starting up Links, to bring up its
>main menu, you need to hit ESC.
>
>3. Using a simple text editor (e.g. Kwrite), create a bash shell script
>"rute":
>
>#!/bin/sh
>links2 -g file:///usr/share/doc/rutebook/html/rute.html
>
>4. Open a user console, navigate to the directory in which the newly
>created script rute resides and make the script executable:
>
>chmod a+x rute
>
>5. Execute the script
>
>./rute
>
>This should open the Contents page of the Rute ebook in a Links window.
>If this works, good!
>
>6. Open a root console and move rute from the pwd to /usr/bin:
>
>mv rute /usr/bin/rute
>
>7. Check whether the script is working in its new location by hitting
>ALT-F2 and entering "rute" (w/o quotation marks). Good, if that works.
>
>8. Using the KMenu editor, enter a new item, e.g. Manuals, and
>underneath that another new item, e.g. Rute Book, and then in the
>"Command" field enter "rute" (w/o quotation marks). You can also pick
>an icon for this new entry. Exit KMenu editor.
>
>9. Now when you click on this new menu entry "Rute Book", Links should
>open with the Contents page.
>
>10. You can also put the chosen icon in the bottom panel: Right-click
>on the panel and click on Add, etc. etc.


Phew!

First of all, let me thank you for all your research.
Even to do so much typing would have been a challenge for me!

But surely this cannot have been what was intended?
There must be an easier way.

Remember that I am new to Linux.

Whoever set up the rute book as something in apt must have had an
assumption about how people were going to access it once it had been
installed. And surely the presupposition would have been something
simple?

I am not surprised that I don't know the unwritten assumptions.
After all, why should I?

But it can't have been intended to be that convoluted!
Can it?
--
Chris
Neil Woods

2005-10-24, 9:42 am

>>>>> Robert Glueck writes:

> Robert Glueck wrote:
[vbcol=seagreen]
> Corrections:


> re 2. the package name is Links2, and on the command line
> the program is invoked with "links2".


> re 6. change this to: mv rute /usr/bin


Minor point. I would change this to

mv rute /usr/local/bin

/usr/bin is best kept for executables which are part of the system
(i.e. installed from packages).

/usr/local/bin is better for locally written programs and scripts
(indeed the whole /usr/local hierarchy is designed to be used in this
way, with e.g. /usr/local/lib being for locally created libraries, etc).

--
Neil.
No animals were injured.
Robert Glueck

2005-10-24, 9:42 am

Chris wrote:

> Whoever set up the rute book as something in apt must have had an
> assumption about how people were going to access it once it had been
> installed. And surely the presupposition would have been something simple?
> Can it?


I would have thought so too; hence I checked the contents of
the rutebook deb package. But it didn't include any
ready-made script for easily accessing the book through
selection from a menu.

Not every Deb package provides that service. For most of
them, if you want the GUI convenience, you have to set that
up yourself. Just imagine what the KDE menu would look like
if most of the hundreds of applications of a standard Debian
desktop install had menu entries as a default. You can see
the resulting clutter in the Knoppix live DVD.

The procedure I've posted is actually rather simple (it
would take 5-10 min to set up), and it relies on steps that
one executes routinely all the time. You can also stop
after step 6 and simply start up the book by typing "rute"
in a user console.

You can also skip installing Links and possibly go with the
much slower Firefox or Konqueror. There may well be a
command along the following lines:

firefox [option] URL

where URL=file:///usr/share/doc/rutebook/html/rute.html, and
you could embed that command in a simple shell script a la
step 3.

Robert
Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <87u0fjtxdn.fsf@phun.phasmic.org>, "Neil Woods" wrote:
<body not downloaded>

Neil Woods
Results 1 - 100 of 273 posts in the last year.
1 alt.free.newsservers
1 alt.os.linux
11 alt.os.linux.debian
1 alt.os.linux.mandrake
2 comp.emacs
13 comp.mail.misc
3 comp.os.linux.misc
1 comp.unix.admin
2 comp.unix.bsd.freebsd.misc
1 comp.unix.bsd.netbsd.misc
5 comp.unix.questions
5 comp.unix.shell
4 gnu.emacs.gnus
1 gnu.emacs.help
6 gnu.gnusenet.test
1 linux.debian.bugs.dist
2 news.admin.net-abuse.email
1 news.admin.net-abuse.policy
7 news.groups
2 news.newusers.questions
2 news.software.nntp
28 news.software.readers


That isn't the posting history of someone who posts less
than once a day.

AC

--
Homepage: http://home.earthlink.net/~alanconnor/
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
Bill Marcum

2005-10-24, 9:42 am

On Sat, 15 Oct 2005 05:07:43 GMT, Alan Connor
<i3x9mdw@j9n35c.invalid> wrote:
>
> That isn't the posting history of someone who posts less
> than once a day.
>

So?
Show me the RFC that says no one is allowed to post more than once a
day.


--
Marriage is low down, but you spend the rest of your life paying for it.
-- Baskins
Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <o3d723-lda.ln1@don.localnet>, "Bill Marcum" wrote:
--
<body not downloaded>

This allegedly grown man's stunningly accurate imititaions of
a snot-nosed teen-age XXXXX playing with her Mommy's computer
are tedious in the extreme.

AC

--
Homepage: http://home.earthlink.net/~alanconnor/
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
Chris

2005-10-24, 9:42 am

In article <JOydnZlXG8v46M3eRVn-hA@rcn.net>, Robert Glueck <rglk@web.de>
writes
>Chris wrote:
>
[vbcol=seagreen]
>I would have thought so too; hence I checked the contents of the
>rutebook deb package. But it didn't include any ready-made script for
>easily accessing the book through selection from a menu.


OK - I think I may have found it.

When KDE is first launched there is an icon that looks like a house,
with the tooltip "Personal Files".

That seems to be the easiest way to access downloaded documentation.
I have now installed lots of documentation, and found it pleasingly
well-written.

I am almost at the point of having a rudimentary understanding of a few
basic ideas!
(This is clearly going to take years rather than minutes!)
--
Chris
SINNER

2005-10-24, 9:42 am

* Alan Connor Wrote in alt.os.linux.debian:

> --
> <body not downloaded>
>
> This allegedly grown man's stunningly accurate imititaions of
> a snot-nosed teen-age XXXXX playing with her Mommy's computer
> are tedious in the extreme.


Please refrain from posting beneath the sig delimeter you moron. It
makes your completly useless articles difficult to read/quote.

--
David
Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <Xns96F29033EDE65Louiscypherhellorg@140.99.99.130>, "SINNER" wrote:
<body not downloaded>

One more time: I don't read your juvenile posts and I don't care
what you think or post, and just running your punk mouth while
you hide behind the Internet and that stupid alias of yours won'tever have the slightest meaningful effect on me.

And please get a new alias! Your only sin is polluting the Usenetwith your verbal farts.

You don't have the balls to do any actually sinning.

AC


--
Homepage: http://home.earthlink.net/~alanconnor/
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
SINNER

2005-10-24, 9:42 am

* Alan Connor Wrote in alt.os.linux.debian:

> On alt.os.linux.debian, in
> <Xns96F29033EDE65Louiscypherhellorg@140.99.99.130>, "SINNER"
> wrote: <body not downloaded>
>
> One more time:


Can I quote you on that?

> I don't read your juvenile posts and I don't care
> what you think or post,


Then why comment?

> and just running your punk mouth while
> you hide behind the Internet and that stupid alias of yours


I'd gladly come out of 'hiding' for you sweetie, name the time and
place.

> won'tever have the slightest meaningful effect on me.


But I do, I have and I will as seen clearly by your post responding
to my post. See how that works?

>
> And please get a new alias! Your only sin is polluting the
> Usenetwith your verbal farts.


No, my only Sin is continually egging you on.

>
> You don't have the balls to do any actually sinning.


I will rest them on your chin just to show you how big they are
amigo.


--
David
A. Ben Hmeda

2005-10-24, 9:42 am

Alan Connor wrote:
> On alt.os.linux.debian, in <Xns96F29033EDE65Louiscypherhellorg@140.99.99.130>, "SINNER" wrote:
> <body not downloaded>
>
> One more time: I don't read your juvenile posts and I don't care


Obviously have read his post, one more time and obviously you cared
enough to add more to the mix.

> what you think or post, and just running your punk mouth while
> you hide behind the Internet and that stupid alias of yours won'tever have the slightest meaningful effect on me.
>
> And please get a new alias! Your only sin is polluting the Usenetwith your verbal farts.
>

....and who the XXXX gave you a license to pullue USENET with your
useless drivel and meaningless news stats?

> You don't have the balls to do any actually sinning.
>

XXXX off, kid
> AC
>
>

Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <beGdnRLztLhV8sneRVn-og@rogers.com>, "A. Ben Hmeda" wrote:
<body not downloaded>

A. Ben Hmeda
Results 1 - 24 of 24 posts in the last year
9 alt.os.linux
6 alt.os.linux.debian
1 comp.os.linux
2 comp.os.linux.advocacy
5 comp.os.linux.hardware
1 rec.music.arabic

Killscored yet another one of your aliases.

How incredibly clever! Of course we all believe that someone
with an Arabic-looking name in the headers is actually Arabic.

Of course, you are posting through rogers.com from Ontario,
Canada.

(I won't believe that you can find your own butthole with a map
and a pack of hunting dogs until I see it with my own eyes. And
you can bet that it is a BIG butt.)

One more time: You wear a gag when you are in my newsreader.

It isn't optional.

And no windoze-weenie playing with his Mommy's computer has
a chance in hell of ever getting me to read one of his articles.

(any responses to killscored posts are killscored too)

I can check the posting history of any alias with a single
keystroke. See the slrn directory on my website for details.

(Not limited to slrn.)

It's a great way to clean the sh?t out of your downloads.

Run along, Junior. Go watch some porn. Maybe you'll get lucky
and be able to find your dick this time.

And Junior? My newsreader only brings down the headers of posts
unless I specifically tell it to do otherwise.

AC

--
Homepage: http://home.earthlink.net/~alanconnor/
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
William Tasso

2005-10-24, 9:42 am

Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

> On alt.os.linux.debian, in <beGdnRLztLhV8sneRVn-og@rogers.com>, "A. Ben
> Hmeda" wrote:
> <body not downloaded>


Then what is the purpose of this reply?

> ...
> Killscored yet another ...


Is that notice really worthy of publicity or in some way on-topic for this
group?

> ...
> I can check the posting history of any alias with a single
> keystroke.
> ...
> My newsreader only brings down the headers of posts
> unless I specifically tell it to do otherwise.


Perhaps a group where usenet is the topic may be a more appropriate
showcase for your announcements.

~ ~ ~ ~ ~ ~

Many thanks to the many knowledgable contributors to this group. I've
been using Debian since the beginning of this year and learned plenty here.

<back to lurk mode />
--
William Tasso
Alan Connor

2005-10-24, 9:42 am

On alt.os.linux.debian, in <op.syues7su3jnr2w-wnt@tbdata.com>, "William Tasso" wrote:
<body not downloaded>

Killscored.

AC

--
Homepage: http://home.earthlink.net/~alanconnor/
Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
A. Ben Hmeda

2005-10-24, 9:42 am

William Tasso wrote:
> Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>
>
> Then what is the purpose of this reply?
>
>
>
> Is that notice really worthy of publicity or in some way on-topic for
> this group?
>
>
>
> Perhaps a group where usenet is the topic may be a more appropriate
> showcase for your announcements.
>
> ~ ~ ~ ~ ~ ~
>
> Many thanks to the many knowledgable contributors to this group. I've
> been using Debian since the beginning of this year and learned plenty here.
>
> <back to lurk mode />

Morons come in all shapes and sizes and in this case, species.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com