<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best Location for Applications in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682437#M909097</link>
    <description>Thanks for the great answers. This is my first time installing a system.  I have always just administered systems that someone else set up so I am a little unsure of myself on some issues. On the applications that want a different location, I'm going to install them to /opt.&lt;BR /&gt;&lt;BR /&gt;The one thing I had not even considered was getting /opt out of the root volume group.  I am now investigating creating a second volume group to move /opt to.  I currently have it as part of vg00. I'm lucky in that I have a couple weeks to play with the machine before it has to go into production.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
    <pubDate>Wed, 13 Mar 2002 19:25:47 GMT</pubDate>
    <dc:creator>Jane Lecian</dc:creator>
    <dc:date>2002-03-13T19:25:47Z</dc:date>
    <item>
      <title>Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682429#M909089</link>
      <description>I am setting up a new system (11.0), and, seeing as I like things neat, I am wondering about the best locations for the application software I am installing. (These are applications that all users of the system should be able to run.) I would like to put all of them in /opt.  Most programs that I am installing agree with me, and put themselves in /opt, but I have run across a few applications that don't agree. As an example, one commerical applicaton wants to go in /usr/local. Could I be causing myself future trouble by over-riding a software default installation point, and choosing /opt instead? &lt;BR /&gt;&lt;BR /&gt;Also I am wondering about the best location to put links to the executables so that users can run the programs conveniently.  Some programs want to create links in /usr/local/bin while others use /usr/contrib/bin.  I have noticed that /usr/local/bin in not in the default /etc/PATH that is created with a new installation. Is it better to add /usr/local/bin to /etc/PATH or force all applications to use /usr/contrib/bin?  On a related issue, some applications don't set up links to executables at all.  Is it better to add the path to the program to /etc/PATH or create a link to the executable in /usr/contrib/bin? Unfortunately the installation instructions that came with the software don't provide any guidance.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Wed, 13 Mar 2002 18:12:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682429#M909089</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-03-13T18:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682430#M909090</link>
      <description>I would create a new volume group, new logical volume, new filesystem, new directory and install in something like /app/oracle or /"software name"</description>
      <pubDate>Wed, 13 Mar 2002 18:25:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682430#M909090</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-03-13T18:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682431#M909091</link>
      <description>Jane-&lt;BR /&gt;&lt;BR /&gt;Concerning the links, you can always accept the default and move them to what you want, or just override the defaults.  the links shouldn't affect anything with the program, as long as the permissions are correct. &lt;BR /&gt;&lt;BR /&gt;As far as I know, you can override the default locations without problems.  I have pulled a few programs out (where the software wanted to use /opt but I wanted it in /home due to space) without problems.  You might end up with more folders, though (the cifs server, which is samba, wants to be in /var, but samba likes /opt, so I have paths that now read like /etc/opt/....).  Doesn't affect my performance at all. &lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 13 Mar 2002 18:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682431#M909091</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2002-03-13T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682432#M909092</link>
      <description>Hi Jane,&lt;BR /&gt;&lt;BR /&gt;I would create a bigger filesystem and mount it on some directory under /opt, say app. So it will not effect /opt filesystem and you will get all the application under /opt/app.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 13 Mar 2002 18:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682432#M909092</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-03-13T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682433#M909093</link>
      <description>We put all applications on /opt/appl, their logs on /var/appl, and they are seperate mounted filesystems.&lt;BR /&gt;&lt;BR /&gt;Rule of good unix admins := keep all NON-root out of VG00, where NON-root means things that are really applications and data.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 13 Mar 2002 18:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682433#M909093</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-03-13T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682434#M909094</link>
      <description>As an example, one commerical applicaton wants to go in /usr/local. Could I be causing myself future trouble by over-riding a software default installation point, and choosing /opt instead?&lt;BR /&gt;==&amp;gt; I guess my question is when you install the application, does it gives you the option to install it in other location ? If the answer is yes, then you would be fine. If the application is well written it would capture the installation $HOME and would know how to setup the correct variable during install. A good thing to do (in my opinion) if you want to maintain consistency (ie all apps should be in /opt), you can create a symlink from /opt/appsA to say /usr/local/appsA, to handle cases whereby the appilication has to be loaded in /usr/local.</description>
      <pubDate>Wed, 13 Mar 2002 18:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682434#M909094</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-03-13T18:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682435#M909095</link>
      <description>I cannot tell what's the *best* directory for applications, but only where *I* install programms that aren't part of the Unix System Resources (i.e. /usr).&lt;BR /&gt;&lt;BR /&gt;For instance I install a lot of OpenSource stuff.&lt;BR /&gt;Since most of that comes from the FSF or is GNU (Gnu's Not Unix ;-) I usually create a separat logical volume (or even in a different volume group) that I mount under&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;/dev/vg01/lvol1   /opt/gnu&lt;BR /&gt;&lt;BR /&gt;Then I create subdirs for each application&lt;BR /&gt;&lt;BR /&gt;mkdir /opt/gnu/openssl-0.9.6c-source&lt;BR /&gt;&lt;BR /&gt;(the *source is to distinguish from precompiled versions)&lt;BR /&gt;&lt;BR /&gt;And because of  sometimes playing with different versions I do create symlinks &lt;BR /&gt;(gives you some flexibility)&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;cd /opt&lt;BR /&gt;ln -s /opt/gnu/openssl-0.9.6-source openssl&lt;BR /&gt;&lt;BR /&gt;After that I do the installation.&lt;BR /&gt;If it's a precompiled depot I usually read the description to find out the installation target (most times /opt/&lt;APPLICATIO&gt;).&lt;BR /&gt;Whereas when I install from source I am free to chose a --prefix=/opt/&lt;APPLICATION&gt; during the configure run.&lt;BR /&gt;&lt;BR /&gt;Most times I would think it's legitimate to set symlinks accross filesystems.&lt;BR /&gt;(when the filesystems they refer to aren't mounted they just become stale)&lt;BR /&gt;For instance I included in /etc/PATH the /usr/local/bin, and create symlinks of binaries from /opt/&lt;APPLICATION&gt;/bin/&lt;APPLICATION_EXE&gt;&lt;BR /&gt;&lt;BR /&gt;For the manpages, since it would be too cumbersome to manually create all symlinks, I do the following&lt;BR /&gt;&lt;BR /&gt;cd /usr/share/man&lt;BR /&gt;for d in /opt/*/man/man?; do cd ${d##*/}; ln -s $d/* .; cd ..; done&lt;BR /&gt;&lt;BR /&gt;But you can also append the man subdirs of the applications in /etc/MANPATH&lt;BR /&gt;as you like.&lt;BR /&gt;&lt;BR /&gt;Sometimes though, some precompiled binaries insist on being installed in distinct places (i.e. the --prefix option during their build).&lt;BR /&gt;Then it's probably wiser to give in ;-)&lt;BR /&gt;&lt;BR /&gt;&lt;/APPLICATION_EXE&gt;&lt;/APPLICATION&gt;&lt;/APPLICATION&gt;&lt;/APPLICATIO&gt;</description>
      <pubDate>Wed, 13 Mar 2002 18:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682435#M909095</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-03-13T18:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682436#M909096</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin was the old standard (more or less) location for applications. The new standard is /opt and I tend to install there.&lt;BR /&gt;For no particular reason, I do still use /usr/local/bin for utility scripts (shell, perl, awk) but it is very common to have a directory (e.g. /utils) for those. /opt does not have to be in vg00 and I suggest that you copy everything over to another filesystem in another volume group and rename the new file system as /opt. I really prefer to have a lean boot disk with /stand, /, primary swap, and /usr on it. The only things which must be on the boot disk are /stand, primary swap, and /.</description>
      <pubDate>Wed, 13 Mar 2002 18:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682436#M909096</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-13T18:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682437#M909097</link>
      <description>Thanks for the great answers. This is my first time installing a system.  I have always just administered systems that someone else set up so I am a little unsure of myself on some issues. On the applications that want a different location, I'm going to install them to /opt.&lt;BR /&gt;&lt;BR /&gt;The one thing I had not even considered was getting /opt out of the root volume group.  I am now investigating creating a second volume group to move /opt to.  I currently have it as part of vg00. I'm lucky in that I have a couple weeks to play with the machine before it has to go into production.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Wed, 13 Mar 2002 19:25:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682437#M909097</guid>
      <dc:creator>Jane Lecian</dc:creator>
      <dc:date>2002-03-13T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Best Location for Applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682438#M909098</link>
      <description>Jane,&lt;BR /&gt;&lt;BR /&gt;it's good idea to separate /opt even from the root vg00 altogether.&lt;BR /&gt;&lt;BR /&gt;Just one warning, should you run an MC/SG cluster on this box, that you shouldn't forget to list all non-cluster-shared volume groups (except vg00) in the custom_vg_activation() function in the file /etc/lvmrc.&lt;BR /&gt;I forgot this the first time, and was wondering why init hadn't mounted my /opt after a reboot, because the script /sbin/lvmrc hadn't activated the underlying volume group ;-)&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 12:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/best-location-for-applications/m-p/2682438#M909098</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-03-14T12:02:55Z</dc:date>
    </item>
  </channel>
</rss>

