You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Steven Coco (JIRA)" <ji...@apache.org> on 2007/09/04 17:20:45 UTC

[jira] Created: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment
-----------------------------------------------------------------------------------------------

                 Key: FOR-1047
                 URL: https://issues.apache.org/jira/browse/FOR-1047
             Project: Forrest
          Issue Type: New Feature
          Components: Documentation and website
    Affects Versions: 0.8
            Reporter: Steven Coco
            Priority: Minor


I believe that Forrest's documentation at:

Documentation current/Using Forrest/Installing Forrest/Setting up the Environment/In Unix/Linux

should contain a section for setting up using the update-alternatives system. I am new with Forrest, but it seems that it does not require any environment variables; this setup is only to achieve putting the executable on the path. The alternatives system would then be preferred for some, like myself, who do use it to administer these kinds of things.

The following may be viable to use in the (English) docs for this purpose:


* For systems the use the Debian update-alternatives system:

If your system uses the alternatives system to manage application binaries and their locations, you may use that to link Forrest into your system's binary directory, instead of explicitly exporting environment variables. To check if your system has the alternatives system installed, execute this command:

update-alternatives --version

Update-alternatives will print its version if it is installed. If so, you may then add an entry for Forrest. Installing an update-alternatives entry may need to be run with root privileges. On some systems, that can be achieved with the "sudo" command, which executes single commands as the super user: for example, Ubuntu's GNU/Linux system uses this feature. Or you may need to contact a system administrator to install.

To install a Forrest entry, first, gather the path to Forrest's executable, and also note its version. In this example, Forrest has been unpacked and placed into '/opt/Apache/apache-forrest-0.8' (the executable is at bin/forrest). Then execute this command (here we use sudo to execute update-alternatives with root privileges):

sudo update-alternatives --install /usr/bin/forrest forrest '/opt/Apache/apache-forrest-0.8/bin/forrest' 800

The arguments to this command include '/usr/bin/forrest' as the system's location for the binary link, 'forrest' as the update-alternatives short name for this entry, '/opt/Apache/apache-forrest-0.8/bin/forrest' as the actual binary's location, and '800' as the priority.

Alternatives entries have a priority because you may install other versions of Forrest, and switch among them using update-alternatives: the highest priority entry will be selected as the default until you explicitly select another one to become active. Here, we have chosen a number based on Forrest's version: version 0.8 is installed, and priority 800 leaves room for adding several other versions; for instance, 0.90 may use priority 900, and 1.0 may be 1000.

Forrest should now be available on your command line. Execute:

forrest --help

Forrest should print its help text. For more help with the alternatives system, use:

update-alternatives --help
or
man update-alternatives

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by "Gavin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin reassigned FOR-1047:
--------------------------

    Assignee: Gavin

> Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment
> -----------------------------------------------------------------------------------------------
>
>                 Key: FOR-1047
>                 URL: https://issues.apache.org/jira/browse/FOR-1047
>             Project: Forrest
>          Issue Type: New Feature
>          Components: Documentation and website
>    Affects Versions: 0.8
>            Reporter: Steven Coco
>            Assignee: Gavin
>            Priority: Minor
>
> I believe that Forrest's documentation at:
> Documentation current/Using Forrest/Installing Forrest/Setting up the Environment/In Unix/Linux
> should contain a section for setting up using the update-alternatives system. I am new with Forrest, but it seems that it does not require any environment variables; this setup is only to achieve putting the executable on the path. The alternatives system would then be preferred for some, like myself, who do use it to administer these kinds of things.
> The following may be viable to use in the (English) docs for this purpose:
> * For systems the use the Debian update-alternatives system:
> If your system uses the alternatives system to manage application binaries and their locations, you may use that to link Forrest into your system's binary directory, instead of explicitly exporting environment variables. To check if your system has the alternatives system installed, execute this command:
> update-alternatives --version
> Update-alternatives will print its version if it is installed. If so, you may then add an entry for Forrest. Installing an update-alternatives entry may need to be run with root privileges. On some systems, that can be achieved with the "sudo" command, which executes single commands as the super user: for example, Ubuntu's GNU/Linux system uses this feature. Or you may need to contact a system administrator to install.
> To install a Forrest entry, first, gather the path to Forrest's executable, and also note its version. In this example, Forrest has been unpacked and placed into '/opt/Apache/apache-forrest-0.8' (the executable is at bin/forrest). Then execute this command (here we use sudo to execute update-alternatives with root privileges):
> sudo update-alternatives --install /usr/bin/forrest forrest '/opt/Apache/apache-forrest-0.8/bin/forrest' 800
> The arguments to this command include '/usr/bin/forrest' as the system's location for the binary link, 'forrest' as the update-alternatives short name for this entry, '/opt/Apache/apache-forrest-0.8/bin/forrest' as the actual binary's location, and '800' as the priority.
> Alternatives entries have a priority because you may install other versions of Forrest, and switch among them using update-alternatives: the highest priority entry will be selected as the default until you explicitly select another one to become active. Here, we have chosen a number based on Forrest's version: version 0.8 is installed, and priority 800 leaves room for adding several other versions; for instance, 0.90 may use priority 900, and 1.0 may be 1000.
> Forrest should now be available on your command line. Execute:
> forrest --help
> Forrest should print its help text. For more help with the alternatives system, use:
> update-alternatives --help
> or
> man update-alternatives

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by "Gavin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin closed FOR-1047.
----------------------

    Resolution: Fixed
      Assignee:     (was: Gavin)

Patch Applied, thanks.

> Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment
> -----------------------------------------------------------------------------------------------
>
>                 Key: FOR-1047
>                 URL: https://issues.apache.org/jira/browse/FOR-1047
>             Project: Forrest
>          Issue Type: New Feature
>          Components: Documentation and website
>    Affects Versions: 0.8
>            Reporter: Steven Coco
>            Priority: Minor
>
> I believe that Forrest's documentation at:
> Documentation current/Using Forrest/Installing Forrest/Setting up the Environment/In Unix/Linux
> should contain a section for setting up using the update-alternatives system. I am new with Forrest, but it seems that it does not require any environment variables; this setup is only to achieve putting the executable on the path. The alternatives system would then be preferred for some, like myself, who do use it to administer these kinds of things.
> The following may be viable to use in the (English) docs for this purpose:
> * For systems the use the Debian update-alternatives system:
> If your system uses the alternatives system to manage application binaries and their locations, you may use that to link Forrest into your system's binary directory, instead of explicitly exporting environment variables. To check if your system has the alternatives system installed, execute this command:
> update-alternatives --version
> Update-alternatives will print its version if it is installed. If so, you may then add an entry for Forrest. Installing an update-alternatives entry may need to be run with root privileges. On some systems, that can be achieved with the "sudo" command, which executes single commands as the super user: for example, Ubuntu's GNU/Linux system uses this feature. Or you may need to contact a system administrator to install.
> To install a Forrest entry, first, gather the path to Forrest's executable, and also note its version. In this example, Forrest has been unpacked and placed into '/opt/Apache/apache-forrest-0.8' (the executable is at bin/forrest). Then execute this command (here we use sudo to execute update-alternatives with root privileges):
> sudo update-alternatives --install /usr/bin/forrest forrest '/opt/Apache/apache-forrest-0.8/bin/forrest' 800
> The arguments to this command include '/usr/bin/forrest' as the system's location for the binary link, 'forrest' as the update-alternatives short name for this entry, '/opt/Apache/apache-forrest-0.8/bin/forrest' as the actual binary's location, and '800' as the priority.
> Alternatives entries have a priority because you may install other versions of Forrest, and switch among them using update-alternatives: the highest priority entry will be selected as the default until you explicitly select another one to become active. Here, we have chosen a number based on Forrest's version: version 0.8 is installed, and priority 800 leaves room for adding several other versions; for instance, 0.90 may use priority 900, and 1.0 may be 1000.
> Forrest should now be available on your command line. Execute:
> forrest --help
> Forrest should print its help text. For more help with the alternatives system, use:
> update-alternatives --help
> or
> man update-alternatives

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by Brian M Dube <bd...@apache.org>.
Gav.... wrote:
>> Brian M Dube wrote:
>>> Gavin (JIRA) wrote:
>>>> This looks good thanks, I suspect maybe we do not have any devs using
>>>> Debian to confirm all this works so we might have to trust your
>>>> judgment on this. If no one objects in the meantime, I will add this
>>>> in a few days.
>>> I use Debian and I can confirm the Debian alternatives system exists.
>>>
>>> Do we need (to maintain) this? This is a Debian feature which is
>>> documented by Debian. It is beyond our control and it may change.
>> Perhaps a pointer to their docs would be better?
> 
> We have Forrest specific commands on that page for various OS's, just
> as likely to change and/or deprecation as the Debian one provided.

You are correct.

> I think a link to the docs at
> http://www.debian.org/doc/FAQ/ch-customizing.en.html (Debian does not have
> good docs it seems) and a
> mention of the specific Forrest command is a good compromise, will leave
> out the rest that can be gleaned from Debian docs.

Feel free to include it all. I responded before looking over the rest of 
the page, and the Debian bit no longer feels out of place. I was rushing.

Brian

RE: [jira] Commented: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: Ross Gardler [mailto:rgardler@apache.org]
> Sent: Wednesday, 3 October 2007 6:05 PM
> To: dev@forrest.apache.org
> Subject: Re: [jira] Commented: (FOR-1047) Add Documentation For Using
> Debian Update Alternatives System To Set Up The Forrest Environment
> 
> Brian M Dube wrote:
> > Gavin (JIRA) wrote:
> >>     [
> >> https://issues.apache.org/jira/browse/FOR-
> 1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-
> tabpanel#action_12530310
> >> ]
> >> Gavin commented on FOR-1047:
> >> ----------------------------
> >>
> >> This looks good thanks, I suspect maybe we do not have any devs using
> >> Debian to confirm all this works so we might have to trust your
> >> judgment on this. If no one objects in the meantime, I will add this
> >> in a few days.
> >
> > I use Debian and I can confirm the Debian alternatives system exists.
> >
> > Do we need (to maintain) this? This is a Debian feature which is
> > documented by Debian. It is beyond our control and it may change.
> 
> Perhaps a pointer to their docs would be better?

We have Forrest specific commands on that page for various OS's, just
as likely to change and/or deprecation as the Debian one provided.

I think a link to the docs at
http://www.debian.org/doc/FAQ/ch-customizing.en.html (Debian does not have
good docs it seems) and a
mention of the specific Forrest command is a good compromise, will leave
out the rest that can be gleaned from Debian docs.

Something like :

* For systems that use the Debian update-alternatives system:

To install a Forrest entry, first, gather the path to Forrest's executable,
and also note its version. In this example, Forrest has been unpacked and
placed into '/opt/Apache/apache-forrest-0.8' (the executable is at
bin/forrest). Then execute this command (here we use sudo to execute
update-alternatives with root privileges):

sudo update-alternatives --install /usr/bin/forrest forrest
'/opt/Apache/apache-forrest-0.8/bin/forrest' 800

For more specific documentation on Debian's update-alternatives see
http://www.debian.org/doc/FAQ/ch-customizing.en.html



Gav...

> 
> Ross
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.487 / Virus Database: 269.13.22 - Release Date: 9/17/2007
> 12:00 AM

Re: [jira] Commented: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by Ross Gardler <rg...@apache.org>.
Brian M Dube wrote:
> Gavin (JIRA) wrote:
>>     [ 
>> https://issues.apache.org/jira/browse/FOR-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530310 
>> ]
>> Gavin commented on FOR-1047:
>> ----------------------------
>>
>> This looks good thanks, I suspect maybe we do not have any devs using 
>> Debian to confirm all this works so we might have to trust your 
>> judgment on this. If no one objects in the meantime, I will add this 
>> in a few days.
> 
> I use Debian and I can confirm the Debian alternatives system exists.
> 
> Do we need (to maintain) this? This is a Debian feature which is 
> documented by Debian. It is beyond our control and it may change.

Perhaps a pointer to their docs would be better?

Ross

Re: [jira] Commented: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by Brian M Dube <bd...@apache.org>.
Gavin (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/FOR-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530310 ] 
> 
> Gavin commented on FOR-1047:
> ----------------------------
> 
> This looks good thanks, I suspect maybe we do not have any devs using Debian to confirm all this works so we might have to trust your judgment on this. If no one objects in the meantime, I will add this in a few days.

I use Debian and I can confirm the Debian alternatives system exists.

Do we need (to maintain) this? This is a Debian feature which is 
documented by Debian. It is beyond our control and it may change.

Brian

[jira] Commented: (FOR-1047) Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment

Posted by "Gavin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530310 ] 

Gavin commented on FOR-1047:
----------------------------

This looks good thanks, I suspect maybe we do not have any devs using Debian to confirm all this works so we might have to trust your judgment on this. If no one objects in the meantime, I will add this in a few days.

Thanks for the patch.

> Add Documentation For Using Debian Update Alternatives System To Set Up The Forrest Environment
> -----------------------------------------------------------------------------------------------
>
>                 Key: FOR-1047
>                 URL: https://issues.apache.org/jira/browse/FOR-1047
>             Project: Forrest
>          Issue Type: New Feature
>          Components: Documentation and website
>    Affects Versions: 0.8
>            Reporter: Steven Coco
>            Priority: Minor
>
> I believe that Forrest's documentation at:
> Documentation current/Using Forrest/Installing Forrest/Setting up the Environment/In Unix/Linux
> should contain a section for setting up using the update-alternatives system. I am new with Forrest, but it seems that it does not require any environment variables; this setup is only to achieve putting the executable on the path. The alternatives system would then be preferred for some, like myself, who do use it to administer these kinds of things.
> The following may be viable to use in the (English) docs for this purpose:
> * For systems the use the Debian update-alternatives system:
> If your system uses the alternatives system to manage application binaries and their locations, you may use that to link Forrest into your system's binary directory, instead of explicitly exporting environment variables. To check if your system has the alternatives system installed, execute this command:
> update-alternatives --version
> Update-alternatives will print its version if it is installed. If so, you may then add an entry for Forrest. Installing an update-alternatives entry may need to be run with root privileges. On some systems, that can be achieved with the "sudo" command, which executes single commands as the super user: for example, Ubuntu's GNU/Linux system uses this feature. Or you may need to contact a system administrator to install.
> To install a Forrest entry, first, gather the path to Forrest's executable, and also note its version. In this example, Forrest has been unpacked and placed into '/opt/Apache/apache-forrest-0.8' (the executable is at bin/forrest). Then execute this command (here we use sudo to execute update-alternatives with root privileges):
> sudo update-alternatives --install /usr/bin/forrest forrest '/opt/Apache/apache-forrest-0.8/bin/forrest' 800
> The arguments to this command include '/usr/bin/forrest' as the system's location for the binary link, 'forrest' as the update-alternatives short name for this entry, '/opt/Apache/apache-forrest-0.8/bin/forrest' as the actual binary's location, and '800' as the priority.
> Alternatives entries have a priority because you may install other versions of Forrest, and switch among them using update-alternatives: the highest priority entry will be selected as the default until you explicitly select another one to become active. Here, we have chosen a number based on Forrest's version: version 0.8 is installed, and priority 800 leaves room for adding several other versions; for instance, 0.90 may use priority 900, and 1.0 may be 1000.
> Forrest should now be available on your command line. Execute:
> forrest --help
> Forrest should print its help text. For more help with the alternatives system, use:
> update-alternatives --help
> or
> man update-alternatives

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.