How to set up new enviroment variables permanently for all users?

Hi.
I downloadad Apache Tomcat, and need to set enviromental variables for all users.
I tryed setenv commad, but it is not found.
for example # JAVA_HOME="/opt/jre1.6.0" Solaris remembers this variable only for one session and I need for all users permanently.
Thanks.

Thank you.
This file contains a script. Is there difference in putting that line in beginning or end of the file?
#ident     "@(#)profile     1.19     01/03/13 SMI"     /* SVr4.0 1.3     */
# The profile that all logins get before using their own .profile.
trap ""  2 3
export LOGNAME PATH
if [ "$TERM" = "" ]
then
     if /bin/i386
     then
          TERM=sun-color
     else
          TERM=sun
     fi
     export TERM
fi
#     Login and -su shells get /etc/profile services.
#     -rsh is given its environment in its .profile.
case "$0" in
-sh | -ksh | -jsh | -bash)
     if [ ! -f .hushlogin ]
     then
          /usr/sbin/quota
          #     Allow the user to break the Message-Of-The-Day only.
          trap "trap '' 2"  2
          /bin/cat -s /etc/motd
          trap "" 2
          /bin/mail -E
          case $? in
          0)
               echo "You have new mail."
          2)
               echo "You have mail."
          esac
     fi
esac
umask 022
trap  2 3
# Intel Server Control - The following lines
# let the LRA daemon access the X server
if [ -f /usr/bin/X11/xhost -a -f //isc/lra ]
then
     ttyname=`tty`
     ttyname=`basename $ttyname`
     ttykind=`tty | egrep "console|vt"`
     whereami=`finger -s | grep $ttyname | cut -c61-`
     if [ "$whereami" = "" -a "$ttykind" = ""  ]
     then
          CURDIS=$DISPLAY
          DISPLAY=unix:0.0
          export DISPLAY
          /usr/X/bin/xhost +unknown 2>/dev/null 1>/dev/null
          DISPLAY=$CURDIS
     fi
fi

Similar Messages

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • How to set Password expiration at 45 days for all users (new or existing)

    Hey all please suggest suitable way to set password expiration at 45 days of all application users.
    i am using APPS R -12.1.3 ...

    reply with possible ways.
    URGENT...

  • How to set a new session variable?

    Hi all,
    Can anybody say how to set a new session variable in istore?

    Hi,
    you can use either
    pageContext.getAttribute(VAR, PageContext.REQUEST_SCOPE);
    or
    <%@page session="true" %>
    session.putValue
    session.getValue
    Hope this will help.
    Thanks
    Gurjeet

  • How can I deploy the setting of clear cache on exit for all users?

    How can I deploy the setting of clear cache on exit for all users?

    Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.
    *browser.cache.disk.enable
    *privacy.clearOnShutdown.cache
    *privacy.sanitize.sanitizeOnShutdown
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    See also:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
    *http://mike.kaply.com/2014/01/08/can-firefox-do-this/

  • How to set public even show detail to to all users

    How to set public even to show detail to all users or group. By default the public event only show "Busy" on calendar.

    Change the calendar's "everybody" permissions to include "Read" permisssion

  • How to set up 2 separate iPhoto libraries for two users

    My wife and I have a macbook air, she being one user and me the other. We both have iphones and recently upgraded to the 5s. She had not ever openned itunes or iphoto on the computer as she used the it mainly for word processing, email and surfing the web. I, on the other hand, would play around in iphoto and ensure photo streaming was working and have a large itunes music collection.
    When I openned up her iphoto, all my photos from my account downloaded into hers. I forget what I did to make this happen but it might have done so automatically.
    My question is: how can I set up her own iphoto account when she is logged into her user account on the computer? We don't wish to share iphoto libraries as now is the case.
    And, this might not be the correct forum to bring this up, but when I take pictures on my iphone 5s, they stream to her iphoto library as well as mine. But, her pictures taken on her iphone don't stream/backup to either of our computer iphoto libraries even though she has an icloud account and photo streaming turned on on her phone. 
    I hope this makes sense as there are really 2 questions: setting up a separate iphoto library for each user on one computer, and, how to get photo streaming from her phone to her library
    Thanks in advance for any help

    First you both have to have your own user accounts on the MBA and separate iCloud accounts.  From there it's relatively simple to create you own libraries and have your respective iPhones link to those library when both devices are logged into the same iCloud account.
    OT

  • How to set an screen variant as default for my user?

    Hello,
    For example in t-code FB50 we have 4 screen variants.  The default screen variant is 1.  How can I change the default sreen variant for my user only ?
    Thanks,
    Alexandre

    Hi
    Use T.code FB00 and in the document entry tab in screen templates and line layout variant for doc entry enter necassary details
    For further details, the following link may be useful:
    http://www.r3.duke.edu/stepbystep/journal/3.pdf
    Regards
    Aravind
    Assign points if useful

  • How do I install a Thunderbird add-on for all users? Putting the XPI file into Extensions folder didn't work.

    I'm trying to install Enigmail 1.8.2 for all users. I thought I read somewhere that you don't need to unpack the XPI file.
    Whilst writing this, I did some experimenting and found a solution, but it's messy (see below). Is there an easier way?
    Fresh install of Thunderbird 31.6 on Windows 7 x64. Have observed the following:
    1. If I install the extension for one user via the Add-Ons GUI (from the marketplace, not from a local file), it does work. The Appdata\Roaming\Mozilla\Extensions folder is empty. Folder {847b3a00-7ab1-11d4-8f02-006008948af5} is created in Appdata\Roaming\Thunderbird\Profiles\xxxxxxxx.default\extensions\staged\ and moved from staged to extensions when TB is restarted.
    2. If I download the XPI file from Enigmail site and copy it to Program Files(x86)\Mozilla Thunderbird\Extensions folder, then Thunderbird's Extensions screen says "You don't have any add-ons of this type installed".
    3a. If I rename the xpi to zip (e.g. enigmail-1.8.2-tb+sm.xpi.zip) then I can open it and see that the contents are similar to what was created at point (1). If I unzip the contents, then Thunderbird doesn't recognise the add-on, unless I rename the folder to the GUID above (which could be found in install.rdf or chrome.manifest, once you know what you're looking for).
    Presumably I could also have done a per-user install, copied the folder from the profile, removed the extension, then pasted the copy into the program folder. That would save looking up the GUID but is only a little less fiddly.
    3b. After renaming the folder and restarting TB, it gives me a new tab "Install Add-on" which says "Another program on your computer would like to modify Thunderbird with the following add-on: ... Location: C:\Program Files (x86)". Once I allow the add-on, it is listed in Profiles\xxxxxxxx.default\extensions.ini.
    Aside: Disabling the add-on simply removes the line from extensions.ini, so how does TB distinguish between an unapproved add-on and a disabled one? It seems to be in extensions.json.

    Is Thunderbird already installed in the computers? If so, you could download the .xpi file and drag and drop it into the extensions window (after opening that) to install it in all the computers, following which you click the Install buttons when they become enabled, and you might have to restart Tbird afterwards.

  • Task List URL (to FR Report) opens in new window, but not for all users!

    Hi all,
    I am not sure if this is the correct forum to ask the question (for me it looks like an IE topic), but perhaps anybody can help me anyway...
    In one of our Planning apps (9.3.1) we defined several task lists and tasks that link to relevant FR Reports (URL Tasks). If I open the URL task in basic view the relevant FR Report opens in the same IE Window (in the main frame of the planning app). If my colleague opens the same task the FR Reports opens in a new IE Window.
    My problem is that I dont have any ideas where I can set the relevant property. Is that a planning property, a workspace property or an IE property setting??? Where can I adjust the settings that for ALL users the URL opens the Report in the same window??????
    Thanks in advance!!!!
    Kind Regards
    André
    P.S.: We are on IE8.

    Have you both got the same settings in Tools > Internet Options > Tabs Settings
    There was also a bug though I can't say if it is related to your issue
    9549216 - Instead of a new tab, a new window is displayed after you create a Financial Reporting task in Workspace.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Want to set Reader option in Internet Preferences for all users that login to the workstation

    How can I do this? Is there a config file to edit or a policy object to maintain the perferences settings for all users.  Right now this has to be set manually for each users that would use the system.  Thank you!

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • Setting visible lines and blank rows for all users

    At Item Level for Shopping Cart, Confirmation and Invoice Creation there are settings for Number of Visible Rows and Number of Blank Lines (In Settings/Advanced Settings).
    How can this be changed for all users?

    Hi
    This is a user specific settings to be performed. in SRM 7.0
    Please prepare a document and educate the user to do. This is  the best solution
    Second Solution
    In Setting tabs there are two tabs -Basic Setting and Advance Setting
    check the webdynpro components and hide this for all users
    Regards
    G.Ganesh Kumar

  • How can I disable javascript in Firefox 30 for all users on my Solaris 10 x86 box?

    I have a Solaris 10 box in a secure environment (no Internet) with Firefox 30 installed. I need to lock javascript in a disabled state for all users. I realize each individual user can toggle javascript with about:config, but that is only a per/user activity. I want to set the value of javascript.enabled to false for all users. Additionally, no user should be able to modify this setting.
    Is there a location with a config or prefs file that will affect all users?

    Try: http://kb.mozillazine.org/Locking_preferences

  • Powershell 4.0 How to use Add-Printer to add printer for all users (machine)

    Is there a way I can use Powershell 4.0 Add-Printer cmdlet to add a printer for all users (machine)?  I tried from an admin account but it only adds a printer for the currently logged on user.
    thanks.

    Adding a printer for all users requires having access to their profiles (and registry hive for user) to save the mapped printer information. Your best bet is to either use Group Policy Preferences or write a user logon script that ones when they log in and
    maps the printer if not already mapped. 
    Group Policy Preferences Example
    I wrote an article a while back that shows how to use a GPO logon script to map a printer. It doesn't use V4, but the process would be the same as far as a GPO goes.
    http://learn-powershell.net/2012/11/15/use-powershell-logon-script-to-update-printer-mappings/
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How to set the zoom out or in for all pages permanently?

    I wish to set my page size one size smaller than the default.
    The result of ctr - (zoom out) is exactly what I want (it decreases the size of text AND images). However this effect only lasts for the page I am currently on, as soon as I navigate to a different page (or just refresh the page I am at), it reverts back to the default size.
    I looked at Tools->Options->Content, however that deals only with text size (besides it looks only certain pages are affected by this setting anyway).
    In other words, how (or where) do I set my browser to automatically decrease size or 'Zoom Out' for all the pages I visit in order not to set it manually for every page every time.
    Regards
    PS.
    If this setting can be applied for individual users (I have a multi user PC) that would be even better, although I would be very grateful if I could just set it.
    PPS.
    Additional information. I just discovered it seems to be working now in normal browsing but not in private browsing, my apologies for the omission.

    Default FullZoom Level extension:
    https://addons.mozilla.org/en-US/firefox/addon/6965

Maybe you are looking for