Convention for Configure an OS: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 199: Line 199:
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
export ACADEMIA_WSS="$HOME/chorke/academia"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$INSTALL4J_HOME/bin:$PATH"
export PATH="$INSTALL4J_HOME/bin:$PATH"
Line 228: Line 229:
export PATH=$PATH:$M2_HOME/bin:$ANT_HOME/bin:$GRADLE_HOME/bin
export PATH=$PATH:$M2_HOME/bin:$ANT_HOME/bin:$GRADLE_HOME/bin
export PATH=$PATH:$LD_LIBRARY_PATH:$SENCHA_HOME
export PATH=$PATH:$LD_LIBRARY_PATH:$SENCHA_HOME
export ACADEMIA_WSS="$HOME/chorke/academia"
</source>
</source>



Revision as of 23:22, 22 October 2020

Windows
───────────────────────────────────
C:\Users\
   ├─ academia_1000\ (Standard)
   └─ academia\ (Administrator)
───────────────────────────────────
C:\Users\
   ├─ software_1000\ (Standard)
   └─ software\ (Administrator)
Linux
───────────────────────────────────
/home
   ├─ academia_1000\ (Standard)
   └─ academia\ (Administrator)
───────────────────────────────────
/home
   ├─ software_1000\ (Standard)
   └─ software\ (Administrator)
MacOS
───────────────────────────────────
/Users
   ├─ academia_1000\ (Standard)
   └─ academia\ (Administrator)
───────────────────────────────────
/Users
   ├─ software_1000\ (Standard)
   └─ software\ (Administrator)

Structure

Windows

sys(c:)
───────────────────────
  ├─ bkp     [optional]
  ├─ dev     [optional]
  ├─ etc     [optional]
  ├─ lib     [optional]
  ├─ opt
  ├─ pro     [optional]
  ├─ usr     [optional]
  └─ var     [optional]
opt(d:)
───────────────────────
  ├─ bkp     [optional]
  ├─ dev     [optional]
  ├─ etc     [optional]
  ├─ lib
  ├─ opt
  ├─ pro
  ├─ usr     [optional]
  └─ var
dev(e:)
───────────────────────
  ├─ dev
  └─ usr     [optional]
var(f:)
───────────────────────
  ├─ bkp
  ├─ tmp
  ├─ usr
  └─ var
sys(c:)\opt
───────────────────────
  ├─ apache-ant-1.9.15
  ├─ apache-karaf-4.2.0
  ├─ apache-maven-3.3.9
  ├─ gradle
  ├─ Python39
  ├─ Ruby27
  ├─ Sencha
  └─ Xampp

Linux

/opt
───────────────────────
  ├─ cli
  ├─ dev
  ├─ ide
  ├─ lib
  ├─ pro
  ├─ sdk
  └─ var
/opt/cli
────────────────────────────────────
  ├─ apache-ant-1.9.15
  ├─ apache-karaf-4.2.0
  ├─ apache-maven-3.3.9
  ├─ asp.netcore-runtime-3.0.0
  ├─ flutter_macos_v1.9.1
  ├─ oracle
  └─ sencha
/opt/ide
────────────────────────────────────
  ├─ eclipse-cpp-neon-2
  ├─ eclipse-jee-neon-2
  ├─ eclipse-php-neon-3
  ├─ eclipse-reporting-neon-2
  ├─ eclipse-testing-neon-2
  ├─
  └─

Environment

Windows

NPP_HOME=C:\Program Files\Notepad++
GRAILS_HOME=C:\opt\cli\grails-2.4.3
GRADLE_HOME=C:\opt\cli\gradle-2.0
SENCHA_CMD=C:\opt\Sencha\Cmd
NODEJS_HOME=C:\opt\cli\npm
RUBY_HOME=C:\opt\Ruby27
PY_HOME=C:\opt\Python39
PHP_HOME=C:\xampp\php
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_261
JRE_HOME=C:\Program Files\Java\jre1.8.0_261
JBOSS_HOME=C:\opt\wildfly-21.0.0.Final
M2_HOME=C:\opt\cli\apache-maven-3.3.3
ANT_HOME=C:\opt\cli\apache-ant-1.9.4
ACADEMIA_HOME=C:\opt\pro\academia
COMPOSER_HOME=C:\opt\cli\composer
MYSQL_HOME=C:\xampp\mysql
CHORKE_END_PATH=%PY_HOME%;%NPP_HOME%;%ANT_HOME%\bin;%M2_HOME%\bin;%GRADLE_HOME%\bin;%GRAILS_HOME%\bin;%NODEJS_HOME%;%PHP_HOME%;%COMPOSER_HOME%\bin
CHORKE_PRE_PATH=%SENCHA_CMD%;%RUBY_HOME%\bin;%JAVA_HOME%\bin;%JRE_HOME%\bin;%JBOSS_HOME%\bin;%MYSQL_HOME%\bin;%ACADEMIA_HOME%\bin
JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled
PATH=%CHORKE_PRE_PATH%;%PATH%;%CHORKE_END_PATH%;
ACADEMIA_WSS=%USERPROFILE%\chorke\academia

MacOS

export HOMEBREW_GITHUB_API_TOKEN="14746c7ac42a92282ca12ddabc571a4a98ff4a79"
export INSTALL4J_HOME="/Applications/install4j.app/Contents/Resources/app"
export LD_LIBRARY_PATH="/opt/cli/oracle/oracle_12c/instantclient_12_1"
export JEKYLL_GITHUB_TOKEN="2c12ff662da9aa8f5b7a15dccf77681aa8879a1b"
export ORACLE_HOME="/opt/cli/oracle/oracle12c/instantclient_12_1"
export DOMAIN_HOME="$MW_HOME/user_projects/domains/base_domain"
export DOTNET_ROOT="/opt/cli/asp.netcore-runtime-3.0.0"
export JBOSS_HOME="/usr/local/opt/wildfly-as/libexec"
export FLUTTER_HOME="/opt/cli/flutter_macos_v1.9.1"
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export KARAF_BASE="/opt/cli/apache-karaf-4.2.0"
export ANDROID_HOME=$"HOME/Library/Android/sdk"
export M2_HOME="/opt/cli/apache-maven-3.3.9"
export ANT_HOME="/opt/cli/apache-ant-1.9.9"
export ACADEMIA_WSS="$HOME/chorke/academia"
export MW_HOME="/opt/cli/oracle/middleware"
export SENCHA_CMD="/opt/cli/sencha/cmd"
export MYSQL_HOME="/usr/local/mysql"
export PEAR_HOME="/usr/local/pear"
export EBIS_HOME="/opt/pro/ebis"
export TEMP="$TMPDIR"
export TMP="$TMPDIR"
export PATH="$PATH:$M2_HOME/bin:$ANT_HOME/bin:$LD_LIBRARY_PATH"
export PATH="/opt/local/bin:/opt/local/sbin:$SENCHA_CMD:$PATH"
export PATH="/usr/local/sbin:$PATH:$JBOSS_HOME/bin"
export PATH="$MYSQL_HOME/bin:$PATH:$KARAF_BASE/bin"
export PATH="$PATH:$PEAR_HOME/bin:$EBIS_HOME/bin"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
export ACADEMIA_WSS="$HOME/chorke/academia"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$INSTALL4J_HOME/bin:$PATH"
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$FLUTTER_HOME/bin:$PATH"
export PATH="$ORACLE_HOME:$PATH"

Linux

export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ '
export LD_LIBRARY_PATH=/opt/cli/oracle/oracle_12c/instantclient_12_2
export ORACLE_HOME=/opt/cli/oracle/oracle_12c/instantclient_12_2
export M2_HOME=/opt/cli/maven/apache-maven-3.3.9
export JRE_HOME=/opt/cli/java/jdk1.8.0_261/jre
export ANT_HOME=/opt/cli/ant/apache-ant-1.9.9
export GRADLE_HOME=/opt/cli/gradle/gradle-4.6
export JAVA_HOME=/opt/cli/java/jdk1.8.0_261
export RUBY_HOME=/opt/rubies/ruby-2.3.0
export SENCHA_HOME=/opt/cli/sencha/Cmd
export JENKINS_HOME=/srv/jenkins
export GITLAB_HOME=/srv/gitlab
export JFROG_HOME=/srv/jfrog
export NEXUS_HOME=/srv/nexus
export PATH=$RUBY_HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export PATH=$PATH:$M2_HOME/bin:$ANT_HOME/bin:$GRADLE_HOME/bin
export PATH=$PATH:$LD_LIBRARY_PATH:$SENCHA_HOME
export ACADEMIA_WSS="$HOME/chorke/academia"

Workspace

@rem windows os user's set the environment variable
────────────────────────────────────────────────────────────────
set ACADEMIA_WSS=%USERPROFILE%\chorke\academia
@rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %USERPROFILE%\chorke
mkdir C:\opt\dev\chorke\academia\%USERNAME%
mklink /D %ACADEMIA_WSS% C:\opt\dev\chorke\academia\%USERNAME%
dir %USERPROFILE%\chorke
# linux|unix os user's update the bash profile
──────────────────────────────────────────────────────
export ACADEMIA_WSS="$HOME/chorke/academia"
# linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $HOME/chorke
mkdir -p /opt/dev/chorke/academia/$USER
ln -s /opt/dev/chorke/academia/$USER $ACADEMIA_WSS
ls -lah $HOME/chorke

References