📄 profile.client
字号:
#!/usr/bin/ksh#### Name: profile.client#### Usage: ## 1) copy this file into the desired $HOME and rename it as .profile## 2) edit the profile by following the customization instructions below. #### Purpose:## To setup all the environment variables needed to work with ## a CMVC V4 client.## It uses the Korn shell. #### Customization instructions:## * Review this profile and change the appropriate values for the ## following mandatory environment variables:## CMVC_HOME, CMVC_FAMILY, CMVC_AUTH_METHOD## * Also, you need to customize the configuration variables that affect ## the prerequisites:## JAVA_HOME, MOZILLA_HOME (Netscape) ## * The lines that begin with double ## are comments.## * The lines that begin with single # are not comments, ## but are statements that you may decide to uncomment in order ## to activate them.## * For explanation on the CMVC environment variables, see the ## Server section in the CMVC InfoCenter at:## http://w3.sdwb.ibm.com/cmvc/4.0/infocenter/htdocs/help/index.html#### Miscellaneous notes:## * Starting with CMVC V4.0, there are some changes in which the message## catalog is handled:## - The NLSPATH and CMVC_CATALOG variables are no longer needed for ## the server nor the client.## - The new CMVC_CLIENT_CMC variable is optional and is only needed## for the CMVC client line commands.## * If using CDE (Common Desktop Environment), add the following ## line (uncommented, of course), at the end of $HOME/.dtprofile ## in order to invoke this profile:## DTSOURCEPROFILE=true ####----------------------------------------------------------------------## Determine the operating system## Some valid values are: AIX Linuxraw=`uname -a`export OPSYS=`echo $raw | cut -f1 -d' '`echo "OPSYS=$OPSYS"if [ "$OPSYS" = "AIX" ]then ##---------------------------------------------------------------------- ## AIX ## ## The following is the default PATH when a userid is created: PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin ## Java Development Kit or Java Runtime Environment. export JAVA_HOME=/usr/java131 export PATH=$JAVA_HOME/bin:$PATH ## Netscape Communicator export MOZILLA_HOME=/usr/netscape export PATH=$PATH:$MOZILLA_HOME ## Find out the host name export SITE=`/usr/bin/hostname -s`fiif [ "$OPSYS" = "Linux" ]then ##---------------------------------------------------------------------- ## Linux ## ## NOTE: This default profile sets the environment variables for AIX. ## If you want to work with Linux, then you must COMMENT OUT the ## variables in the AIX section and UNCOMMENT the variables in ## this section for the appropriate version of Linux. ## The following is based on a default PATH when a userid is created: PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/opt/gnome/bin PATH=$PATH:/opt/kde2/bin:/opt/kde/bin ## Java Development Kit or Java Runtime Environment. export JAVA_HOME=/usr/java/jdk1.3.1_04 export PATH=$JAVA_HOME/bin:$PATH ## Netscape Communicator export MOZILLA_HOME=/usr/netscape export PATH=$PATH:$MOZILLA_HOME ## Find out the host name export SITE=`/bin/hostname -s`fi##----------------------------------------------------------------------## CMVC: Required variables#### Location of the CMVC code export CMVC_HOME=/usr/cmvc ## The following variables are needed to use the CMVC client to interact## with the CMVC server.export CMVC_FAMILY=cmvcFamilyexport CMVC_BECOME=$LOGNAME## The following variable indicates the server and the client which## authentication method(s) to use.## The most common setup is to use both the HOST list entries and then## the Password, in that order:export CMVC_AUTH_METHOD=HOSTPW####----------------------------------------------------------------------## CMVC: Optional variables#### The following CMVC variables are optional, but are helpful if ## the user plans to use the CMVC line commands frequently.# export CMVC_RELEASE=myRelease# export CMVC_COMPONENT=myComponent# export CMVC_TOP=$HOME## Specify the location of the CMVC Client Message Catalog file:export CMVC_CLIENT_CMC=$CMVC_HOME/bin##----------------------------------------------------------------------## Additional setup of system variables##PATH=$PATH:$CMVC_HOME/bin:$CMVC_HOME/samplesPATH=$PATH:$HOME/bin:.export PATH ##----------------------------------------------------------------------## Other variables that are optional, but make the system easier to use.## ## PS1 is the command prompt. The following uses 2 lines, the first one## has the userid, the hostname and the current working directory, and## the second is the number that can be used with the 'history' command.export PS1='$USER@$SITE:$PWD(!) '## ## If you do not like the split command prompt, then you can comment out## the previous 2 lines and uncommet the following one:# export PS1='$USER@$SITE:$PWD (!) 'export FCEDIT='/usr/bin/vi' # Using "vi" as the default editorexport EDITOR='/usr/bin/vi' # Using "vi" as the default editorexport SHELL='/usr/bin/ksh' # Using Korn shellset -o vi # use 'vi' as command editor (only for ksh) ## Ensure to have only one uncommented line for DISPLAY, ## to specify the X-server to be used for the Motif CMVC GUI. export DISPLAY=:0.0 # From local host, using shared memory (faster) # export DISPLAY=hostName:0.0 # From remote hosts, using socketsif [ -s "$MAIL" ] # This is at Shell startup. In normalthen # In normal operation, echo "$MAILMSG" # the Shell checks periodicallyfi # end of profile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -