Convention for Configure an OS: Difference between revisions
Jump to navigation
Jump to search
(40 intermediate revisions by the same user not shown) | |||
Line 76: | Line 76: | ||
sys(c:)\opt | sys(c:)\opt | ||
──────────────────────────── | ──────────────────────────── | ||
├─ cli\apache- | ├─ cli\apache-karaf-4.2.11 | ||
├─ cli\apache- | ├─ cli\apache-maven-3.8.1 | ||
├─ cli\apache- | ├─ cli\apache-ant-1.10.10 | ||
├─ cli\gradle | ├─ cli\gradle | ||
├─ Python39 | ├─ Python39 | ||
Line 102: | Line 102: | ||
/opt/cli | /opt/cli | ||
──────────────────────────────────── | ──────────────────────────────────── | ||
├─ asp.netcore-runtime-3.1.16 | |||
├─ asp.netcore-runtime-3. | |||
├─ flutter_macos_v1.9.1 | ├─ flutter_macos_v1.9.1 | ||
├─ apache-karaf-4.2.11 | |||
├─ apache-maven-3.8.1 | |||
├─ apache-ant-1.10.10 | |||
├─ oracle | ├─ oracle | ||
└─ sencha | └─ sencha | ||
Line 113: | Line 113: | ||
/opt/ide | /opt/ide | ||
──────────────────────────────────── | ──────────────────────────────────── | ||
├─ eclipse-reporting-neon-2 | |||
├─ eclipse-testing-neon-2 | |||
├─ eclipse-cpp-neon-2 | ├─ eclipse-cpp-neon-2 | ||
├─ eclipse-jee-neon-2 | ├─ eclipse-jee-neon-2 | ||
├─ eclipse-php-neon-3 | ├─ eclipse-php-neon-3 | ||
├─ | ├─ | ||
└─ | └─ | ||
Line 127: | Line 127: | ||
| valign="top" | | | valign="top" | | ||
<source lang="bat"> | <source lang="bat"> | ||
set JAVA11_HOME=C:\Program Files\Java\jdk-11.0.11 | |||
set JAVA8_HOME=C:\Program Files\Java\jdk1.8.0_291 | |||
set PG_HOME=C:\Program Files\PostgreSQL\13 | |||
set GRAILS_HOME=C:\opt\cli\grails-4.0.10 | |||
set NPP_HOME=C:\Program Files\Notepad++ | set NPP_HOME=C:\Program Files\Notepad++ | ||
set | set GRADLE_HOME=C:\opt\cli\gradle-7.1 | ||
set | set NODEJS_HOME=C:\opt\cli\nodejs | ||
set SENCHA_CMD=C:\opt\Sencha\Cmd | set SENCHA_CMD=C:\opt\Sencha\Cmd | ||
set RUBY_HOME=C:\opt\Ruby27 | set RUBY_HOME=C:\opt\Ruby27 | ||
set PY_HOME=C:\opt\Python39 | set PY_HOME=C:\opt\Python39 | ||
Line 139: | Line 144: | ||
| valign="top" | | | valign="top" | | ||
<source lang="bat"> | <source lang="bat"> | ||
set | set JRE11_HOME=C:\Program Files\Java\jdk-11.0.11 | ||
set | set JRE8_HOME=C:\Program Files\Java\jre1.8.0_291 | ||
set JBOSS_HOME=C:\opt\wildfly- | |||
set | set JMETER_HOME=C:\opt\cli\apache-jmeter-5.4.1 | ||
set ANT_HOME=C:\opt\cli\apache-ant-1. | set JBOSS_HOME=C:\opt\cli\wildfly-24.0.0.Final | ||
set | set KARAF_HOME=C:\opt\cli\apache-karaf-4.2.11 | ||
set ANT_HOME=C:\opt\cli\apache-ant-1.10.10 | |||
set M2_HOME=C:\opt\cli\apache-maven-3.8.1 | |||
set COMPOSER_HOME=C:\opt\cli\composer | set COMPOSER_HOME=C:\opt\cli\composer | ||
set MYSQL_HOME=C:\xampp\mysql | set MYSQL_HOME=C:\xampp\mysql | ||
set PG_DATA=%PG_HOME%\data | |||
set JAVA_HOME=%JAVA8_HOME% | |||
set JRE_HOME=%JRE8_HOME% | |||
</source> | </source> | ||
|} | |} | ||
<source lang="bat"> | <source lang="bat"> | ||
set 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 | set CHORKE_END_PATH=%PY_HOME%;%NPP_HOME%;%ANT_HOME%\bin;%M2_HOME%\bin;%GRADLE_HOME%\bin;%GRAILS_HOME%\bin;%KARAF_HOME%\bin;%NODEJS_HOME%;%PHP_HOME%;%COMPOSER_HOME%\bin | ||
set CHORKE_PRE_PATH=%SENCHA_CMD%;%RUBY_HOME%\bin;%JAVA_HOME%\bin;%JRE_HOME%\bin;%JBOSS_HOME%\bin;%MYSQL_HOME%\bin;%ACADEMIA_HOME%\bin | set CHORKE_PRE_PATH=%SENCHA_CMD%;%RUBY_HOME%\bin;%JAVA_HOME%\bin;%JRE_HOME%\bin;%JBOSS_HOME%\bin;%MYSQL_HOME%\bin;%PG_HOME%\bin;%ACADEMIA_HOME%\bin | ||
set JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled | set JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled | ||
set PATH=%CHORKE_PRE_PATH%;%PATH%;%CHORKE_END_PATH% | set PATH=%CHORKE_PRE_PATH%;%PATH%;%CHORKE_END_PATH% | ||
set | set ACADEMIA_HOME=%USERPROFILE%\.chorke\academia | ||
set SOFTWARE_HOME=%USERPROFILE%\.chorke\software | |||
set MEDISYS_HOME=%USERPROFILE%\.medisys\medisys | |||
set RAIYAN_HOME=%USERPROFILE%\.shahed\raiyan | |||
</source> | |||
{| | |||
| valign="top" | | |||
1. Press '''⊞ + R''' | |||
2. Type in '''C:\Program Files\Git\git-bash.exe''' | |||
'''run as standard user''' | |||
3. Press '''Enter''' | |||
'''--OR--''' | |||
'''run as administrator user''' | |||
3. Press '''Ctrl + Shift + Enter''' | |||
4. Choose '''Yes''' and Press '''Enter''' | |||
| valign="top" | | |||
<source lang="bash"> | |||
touch ~/.bashrc | |||
touch ~/.profile | |||
cat ~/.bash_profile | |||
:<<EOF | |||
# generated by Git for Windows | |||
test -f ~/.profile && . ~/.profile | |||
test -f ~/.bashrc && . ~/.bashrc | |||
EOF | |||
</source> | |||
|} | |||
<source lang="bash"> | |||
cat <<EOF >> ~/.bashrc | |||
export JAVA11_HOME=/c/Program\ Files/Java/jdk-11.0.11 | |||
export JAVA8_HOME=/c/Program\ Files/Java/jdk1.8.0_291 | |||
export JRE11_HOME=/c/Program\ Files/Java/jdk-11.0.11 | |||
export JRE8_HOME=/c/Program\ Files/Java/jre1.8.0_291 | |||
export JMETER_HOME=/c/opt/cli/apache-jmeter-5.4.1 | |||
export JBOSS_HOME=/c/opt/cli/wildfly-24.0.0.Final | |||
export KARAF_HOME=/c/opt/cli/apache-karaf-4.2.11 | |||
export PG_HOME=/c/Program\ Files/PostgreSQL/13 | |||
export ANT_HOME=/c/opt/cli/apache-ant-1.10.10 | |||
export M2_HOME=/c/opt/cli/apache-maven-3.8.1 | |||
export GRAILS_HOME=/c/opt/cli/grails-4.0.10 | |||
export ACADEMIA_HOME=\$HOME/.chorke/academia | |||
export SOFTWARE_HOME=\$HOME/.chorke/software | |||
export RUFAIDA_HOME=\$HOME/.medisys/rufaida | |||
export MEDISYS_HOME=\$HOME/.medisys/medisys | |||
export RAIYAN_HOME=\$HOME/.shahed/raiyan | |||
export NPP_HOME=/c/Program\ Files/Notepad++ | |||
export COMPOSER_HOME=/c/opt/cli/composer | |||
export GRADLE_HOME=/c/opt/cli/gradle-7.1 | |||
export NODEJS_HOME=/c/opt/cli/nodejs | |||
export SENCHA_CMD=/c/opt/Sencha/Cmd | |||
export MYSQL_HOME=/c/xampp/mysql | |||
export RUBY_HOME=/d/opt/Ruby27 | |||
export PY_HOME=/d/opt/Python39 | |||
export JAVA_HOME=\$JAVA8_HOME | |||
export PG_DATA=\$PG_HOME/data | |||
export PHP_HOME=/c/xampp/php | |||
export JRE_HOME=\$JRE8_HOME | |||
export CHORKE_END_PATH=\$PY_HOME:\$NPP_HOME:\$ANT_HOME/bin:\$M2_HOME/bin:\$GRADLE_HOME/bin:\$GRAILS_HOME/bin:\$KARAF_HOME/bin:\$NODEJS_HOME:\$PHP_HOME:\$COMPOSER_HOME/bin | |||
export CHORKE_PRE_PATH=\$SENCHA_CMD:\$RUBY_HOME/bin:\$JAVA_HOME/bin:\$JRE_HOME/bin:\$JBOSS_HOME/bin:\$MYSQL_HOME/bin:\$PG_HOME/bin:\$ACADEMIA_HOME/bin | |||
export JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled | |||
export PATH=\$CHORKE_PRE_PATH:\$PATH:\$CHORKE_END_PATH | |||
EOF | |||
</source> | </source> | ||
Line 180: | Line 264: | ||
export M2_HOME="/opt/cli/apache-maven-3.3.9" | export M2_HOME="/opt/cli/apache-maven-3.3.9" | ||
export ANT_HOME="/opt/cli/apache-ant-1.9.9" | export ANT_HOME="/opt/cli/apache-ant-1.9.9" | ||
export | export ACADEMIA_HOME="$HOME/.chorke/academia" | ||
export MW_HOME="/opt/cli/oracle/middleware" | export MW_HOME="/opt/cli/oracle/middleware" | ||
export SENCHA_CMD="/opt/cli/sencha/cmd" | export SENCHA_CMD="/opt/cli/sencha/cmd" | ||
Line 199: | Line 283: | ||
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 PATH="$PATH:$ANDROID_HOME/emulator" | export PATH="$PATH:$ANDROID_HOME/emulator" | ||
export PATH="$INSTALL4J_HOME/bin:$PATH" | export PATH="$INSTALL4J_HOME/bin:$PATH" | ||
Line 205: | Line 288: | ||
export PATH="$FLUTTER_HOME/bin:$PATH" | export PATH="$FLUTTER_HOME/bin:$PATH" | ||
export PATH="$ORACLE_HOME:$PATH" | export PATH="$ORACLE_HOME:$PATH" | ||
export ACADEMIA_HOME="$HOME/.chorke/academia" | |||
export SOFTWARE_HOME="$HOME/.chorke/software" | |||
export MEDISYS_HOME="$HOME/.medisys/medisys" | |||
export RAIYAN_HOME="$HOME/.shahed/raiyan" | |||
</source> | </source> | ||
Line 229: | Line 317: | ||
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 | export ACADEMIA_HOME="$HOME/.chorke/academia" | ||
export SOFTWARE_HOME="$HOME/.chorke/software" | |||
export MEDISYS_HOME="$HOME/.medisys/medisys" | |||
export RAIYAN_HOME="$HOME/.shahed/raiyan" | |||
</source> | </source> | ||
Line 238: | Line 329: | ||
@rem windows os user's set the environment variable | @rem windows os user's set the environment variable | ||
──────────────────────────────────────────────────────────────── | ──────────────────────────────────────────────────────────────── | ||
set ACADEMIA_WSS=% | rem set ACADEMIA_WSS=%ACADEMIA_HOME%\wss | ||
rem set SOFTWARE_WSS=%SOFTWARE_HOME%\wss | |||
rem set MEDISYS_WSS=%MEDISYS_HOME%\wss | |||
rem set RAIYAN_WSS=%RAIYAN_HOME%\wss | |||
</source> | </source> | ||
Line 244: | Line 338: | ||
@rem start » command prompt » run as administrator | @rem start » command prompt » run as administrator | ||
──────────────────────────────────────────────────────────────── | ──────────────────────────────────────────────────────────────── | ||
mkdir % | mkdir %ACADEMIA_HOME% | ||
mkdir C:\opt\dev\chorke\academia\% | mkdir C:\opt\dev\%USERNAME%\chorke\academia | ||
mklink /D % | mklink /D %ACADEMIA_HOME%\wss C:\opt\dev\%USERNAME%\chorke\academia | ||
dir % | dir %ACADEMIA_HOME% | ||
</source> | |||
'''Example: 01''' | |||
<source lang="bat"> | |||
@rem start » command prompt » run as administrator | |||
──────────────────────────────────────────────────────────────── | |||
mkdir %ACADEMIA_HOME% | |||
mkdir C:\opt\dev\shahed\chorke\academia | |||
mklink /D %ACADEMIA_HOME%\wss C:\opt\dev\shahed\chorke\academia | |||
dir %ACADEMIA_HOME% | |||
</source> | |||
'''Example: 02''' | |||
<source lang="bat"> | |||
@rem start » command prompt » run as administrator | |||
──────────────────────────────────────────────────────────────── | |||
mkdir %SOFTWARE_HOME% | |||
mkdir C:\opt\dev\shahed\chorke\software | |||
mklink /D %SOFTWARE_HOME%\wss C:\opt\dev\shahed\chorke\software | |||
dir %SOFTWARE_HOME% | |||
</source> | |||
'''Example: 03''' | |||
<source lang="bat"> | |||
@rem start » command prompt » run as administrator | |||
──────────────────────────────────────────────────────────────── | |||
mkdir %MEDISYS_HOME% | |||
mkdir C:\opt\dev\shahed\medisys\medisys | |||
mklink /D %MEDISYS_HOME%\wss C:\opt\dev\shahed\medisys\medisys | |||
dir %MEDISYS_HOME% | |||
</source> | |||
'''Example: 04''' | |||
<source lang="bat"> | |||
@rem start » command prompt » run as administrator | |||
──────────────────────────────────────────────────────────────── | |||
mkdir %RAIYAN_HOME% | |||
mkdir C:\opt\dev\shahed\shahed\raiyan | |||
mklink /D %RAIYAN_HOME%\wss C:\opt\dev\shahed\shahed\raiyan | |||
dir %RAIYAN_HOME% | |||
</source> | </source> | ||
Line 254: | Line 384: | ||
# linux|unix os user's update the bash profile | # linux|unix os user's update the bash profile | ||
────────────────────────────────────────────────────── | ────────────────────────────────────────────────────── | ||
export ACADEMIA_WSS="$ | # export ACADEMIA_WSS="$ACADEMIA_HOME/wss" | ||
# export SOFTWARE_WSS="$SOFTWARE_HOME/wss" | |||
# export MEDISYS_WSS="$MEDISYS_HOME/wss" | |||
# export RAIYAN_WSS="$RAIYAN_HOME/wss" | |||
</source> | </source> | ||
Line 260: | Line 393: | ||
# linux|unix » login » dashboard » terminal | # linux|unix » login » dashboard » terminal | ||
────────────────────────────────────────────────────── | ────────────────────────────────────────────────────── | ||
mkdir -p $ | mkdir -p $ACADEMIA_HOME | ||
mkdir -p /opt/dev/chorke/academia/$ | mkdir -p /opt/dev/$USER/chorke/academia | ||
ln -s /opt/dev/chorke/ | ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_HOME/wss | ||
ls -lah $ | ls -lah $ACADEMIA_HOME | ||
</source> | |||
'''Example: 01''' | |||
<source lang="bash"> | |||
# linux|unix » login » dashboard » terminal | |||
────────────────────────────────────────────────────── | |||
mkdir -p $ACADEMIA_HOME | |||
mkdir -p /opt/dev/shahed/chorke/academia | |||
ln -s /opt/dev/shahed/chorke/academia $ACADEMIA_HOME/wss | |||
ls -lah $ACADEMIA_HOME | |||
</source> | |||
'''Example: 02''' | |||
<source lang="bash"> | |||
# linux|unix » login » dashboard » terminal | |||
────────────────────────────────────────────────────── | |||
mkdir -p $SOFTWARE_HOME | |||
mkdir -p /opt/dev/shahed/chorke/software | |||
ln -s /opt/dev/shahed/chorke/software $SOFTWARE_HOME/wss | |||
ls -lah $SOFTWARE_HOME | |||
</source> | |||
'''Example: 03''' | |||
<source lang="bash"> | |||
# linux|unix » login » dashboard » terminal | |||
────────────────────────────────────────────────────── | |||
mkdir -p $MEDISYS_HOME | |||
mkdir -p /opt/dev/shahed/medisys/medisys | |||
ln -s /opt/dev/shahed/medisys/medisys $MEDISYS_HOME/wss | |||
ls -lah $MEDISYS_HOME | |||
</source> | |||
'''Example: 04''' | |||
<source lang="bash"> | |||
# linux|unix » login » dashboard » terminal | |||
────────────────────────────────────────────────────── | |||
mkdir -p $RAIYAN_HOME | |||
mkdir -p /opt/dev/shahed/shahed/raiyan | |||
ln -s /opt/dev/shahed/shahed/raiyan $RAIYAN_HOME/wss | |||
ls -lah $RAIYAN_HOME | |||
</source> | </source> | ||
|} | |} | ||
==References== | ==References== | ||
* [https://superuser.com/questions/704749/ <code>%USERPROFILE%</code> redirected to <code>System32\config\systemprofile</code>] | |||
* [https://askubuntu.com/questions/1329928/ Ubuntu brightness control of Legion 5 pro] | |||
* [https://peen.dev/2021/06/08/ubuntu-on-the-legion-5-pro-2021/ Ubuntu on the Legion 5 Pro] | |||
* [[Convention for Workspaces]] | * [[Convention for Workspaces]] | ||
* [[Convention for Projects]] | |||
* [[Premises]] | |||
* [[Manifest]] |
Latest revision as of 07:10, 3 September 2021
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 ──────────────────────────── ├─ cli\apache-karaf-4.2.11 ├─ cli\apache-maven-3.8.1 ├─ cli\apache-ant-1.10.10 ├─ cli\gradle ├─ Python39 ├─ Ruby27 ├─ Sencha └─ Xampp |
Linux
/opt ─────────────────────── ├─ cli ├─ dev ├─ ide ├─ lib ├─ pro ├─ sdk └─ var |
/opt/cli ──────────────────────────────────── ├─ asp.netcore-runtime-3.1.16 ├─ flutter_macos_v1.9.1 ├─ apache-karaf-4.2.11 ├─ apache-maven-3.8.1 ├─ apache-ant-1.10.10 ├─ oracle └─ sencha |
/opt/ide ──────────────────────────────────── ├─ eclipse-reporting-neon-2 ├─ eclipse-testing-neon-2 ├─ eclipse-cpp-neon-2 ├─ eclipse-jee-neon-2 ├─ eclipse-php-neon-3 ├─ └─ |
Environment
Windows
set JAVA11_HOME=C:\Program Files\Java\jdk-11.0.11
set JAVA8_HOME=C:\Program Files\Java\jdk1.8.0_291
set PG_HOME=C:\Program Files\PostgreSQL\13
set GRAILS_HOME=C:\opt\cli\grails-4.0.10
set NPP_HOME=C:\Program Files\Notepad++
set GRADLE_HOME=C:\opt\cli\gradle-7.1
set NODEJS_HOME=C:\opt\cli\nodejs
set SENCHA_CMD=C:\opt\Sencha\Cmd
set RUBY_HOME=C:\opt\Ruby27
set PY_HOME=C:\opt\Python39
set PHP_HOME=C:\xampp\php
|
set JRE11_HOME=C:\Program Files\Java\jdk-11.0.11
set JRE8_HOME=C:\Program Files\Java\jre1.8.0_291
set JMETER_HOME=C:\opt\cli\apache-jmeter-5.4.1
set JBOSS_HOME=C:\opt\cli\wildfly-24.0.0.Final
set KARAF_HOME=C:\opt\cli\apache-karaf-4.2.11
set ANT_HOME=C:\opt\cli\apache-ant-1.10.10
set M2_HOME=C:\opt\cli\apache-maven-3.8.1
set COMPOSER_HOME=C:\opt\cli\composer
set MYSQL_HOME=C:\xampp\mysql
set PG_DATA=%PG_HOME%\data
set JAVA_HOME=%JAVA8_HOME%
set JRE_HOME=%JRE8_HOME%
|
set CHORKE_END_PATH=%PY_HOME%;%NPP_HOME%;%ANT_HOME%\bin;%M2_HOME%\bin;%GRADLE_HOME%\bin;%GRAILS_HOME%\bin;%KARAF_HOME%\bin;%NODEJS_HOME%;%PHP_HOME%;%COMPOSER_HOME%\bin
set CHORKE_PRE_PATH=%SENCHA_CMD%;%RUBY_HOME%\bin;%JAVA_HOME%\bin;%JRE_HOME%\bin;%JBOSS_HOME%\bin;%MYSQL_HOME%\bin;%PG_HOME%\bin;%ACADEMIA_HOME%\bin
set JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled
set PATH=%CHORKE_PRE_PATH%;%PATH%;%CHORKE_END_PATH%
set ACADEMIA_HOME=%USERPROFILE%\.chorke\academia
set SOFTWARE_HOME=%USERPROFILE%\.chorke\software
set MEDISYS_HOME=%USERPROFILE%\.medisys\medisys
set RAIYAN_HOME=%USERPROFILE%\.shahed\raiyan
1. Press ⊞ + R 2. Type in C:\Program Files\Git\git-bash.exe run as standard user 3. Press Enter --OR-- run as administrator user 3. Press Ctrl + Shift + Enter 4. Choose Yes and Press Enter |
touch ~/.bashrc
touch ~/.profile
cat ~/.bash_profile
:<<EOF
# generated by Git for Windows
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
EOF
|
cat <<EOF >> ~/.bashrc
export JAVA11_HOME=/c/Program\ Files/Java/jdk-11.0.11
export JAVA8_HOME=/c/Program\ Files/Java/jdk1.8.0_291
export JRE11_HOME=/c/Program\ Files/Java/jdk-11.0.11
export JRE8_HOME=/c/Program\ Files/Java/jre1.8.0_291
export JMETER_HOME=/c/opt/cli/apache-jmeter-5.4.1
export JBOSS_HOME=/c/opt/cli/wildfly-24.0.0.Final
export KARAF_HOME=/c/opt/cli/apache-karaf-4.2.11
export PG_HOME=/c/Program\ Files/PostgreSQL/13
export ANT_HOME=/c/opt/cli/apache-ant-1.10.10
export M2_HOME=/c/opt/cli/apache-maven-3.8.1
export GRAILS_HOME=/c/opt/cli/grails-4.0.10
export ACADEMIA_HOME=\$HOME/.chorke/academia
export SOFTWARE_HOME=\$HOME/.chorke/software
export RUFAIDA_HOME=\$HOME/.medisys/rufaida
export MEDISYS_HOME=\$HOME/.medisys/medisys
export RAIYAN_HOME=\$HOME/.shahed/raiyan
export NPP_HOME=/c/Program\ Files/Notepad++
export COMPOSER_HOME=/c/opt/cli/composer
export GRADLE_HOME=/c/opt/cli/gradle-7.1
export NODEJS_HOME=/c/opt/cli/nodejs
export SENCHA_CMD=/c/opt/Sencha/Cmd
export MYSQL_HOME=/c/xampp/mysql
export RUBY_HOME=/d/opt/Ruby27
export PY_HOME=/d/opt/Python39
export JAVA_HOME=\$JAVA8_HOME
export PG_DATA=\$PG_HOME/data
export PHP_HOME=/c/xampp/php
export JRE_HOME=\$JRE8_HOME
export CHORKE_END_PATH=\$PY_HOME:\$NPP_HOME:\$ANT_HOME/bin:\$M2_HOME/bin:\$GRADLE_HOME/bin:\$GRAILS_HOME/bin:\$KARAF_HOME/bin:\$NODEJS_HOME:\$PHP_HOME:\$COMPOSER_HOME/bin
export CHORKE_PRE_PATH=\$SENCHA_CMD:\$RUBY_HOME/bin:\$JAVA_HOME/bin:\$JRE_HOME/bin:\$JBOSS_HOME/bin:\$MYSQL_HOME/bin:\$PG_HOME/bin:\$ACADEMIA_HOME/bin
export JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled
export PATH=\$CHORKE_PRE_PATH:\$PATH:\$CHORKE_END_PATH
EOF
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_HOME="$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 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"
export ACADEMIA_HOME="$HOME/.chorke/academia"
export SOFTWARE_HOME="$HOME/.chorke/software"
export MEDISYS_HOME="$HOME/.medisys/medisys"
export RAIYAN_HOME="$HOME/.shahed/raiyan"
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_HOME="$HOME/.chorke/academia"
export SOFTWARE_HOME="$HOME/.chorke/software"
export MEDISYS_HOME="$HOME/.medisys/medisys"
export RAIYAN_HOME="$HOME/.shahed/raiyan"
Workspace
@rem windows os user's set the environment variable
────────────────────────────────────────────────────────────────
rem set ACADEMIA_WSS=%ACADEMIA_HOME%\wss
rem set SOFTWARE_WSS=%SOFTWARE_HOME%\wss
rem set MEDISYS_WSS=%MEDISYS_HOME%\wss
rem set RAIYAN_WSS=%RAIYAN_HOME%\wss
@rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %ACADEMIA_HOME%
mkdir C:\opt\dev\%USERNAME%\chorke\academia
mklink /D %ACADEMIA_HOME%\wss C:\opt\dev\%USERNAME%\chorke\academia
dir %ACADEMIA_HOME%
Example: 01 @rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %ACADEMIA_HOME%
mkdir C:\opt\dev\shahed\chorke\academia
mklink /D %ACADEMIA_HOME%\wss C:\opt\dev\shahed\chorke\academia
dir %ACADEMIA_HOME%
Example: 02 @rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %SOFTWARE_HOME%
mkdir C:\opt\dev\shahed\chorke\software
mklink /D %SOFTWARE_HOME%\wss C:\opt\dev\shahed\chorke\software
dir %SOFTWARE_HOME%
Example: 03 @rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %MEDISYS_HOME%
mkdir C:\opt\dev\shahed\medisys\medisys
mklink /D %MEDISYS_HOME%\wss C:\opt\dev\shahed\medisys\medisys
dir %MEDISYS_HOME%
Example: 04 @rem start » command prompt » run as administrator
────────────────────────────────────────────────────────────────
mkdir %RAIYAN_HOME%
mkdir C:\opt\dev\shahed\shahed\raiyan
mklink /D %RAIYAN_HOME%\wss C:\opt\dev\shahed\shahed\raiyan
dir %RAIYAN_HOME%
|
# linux|unix os user's update the bash profile
──────────────────────────────────────────────────────
# export ACADEMIA_WSS="$ACADEMIA_HOME/wss"
# export SOFTWARE_WSS="$SOFTWARE_HOME/wss"
# export MEDISYS_WSS="$MEDISYS_HOME/wss"
# export RAIYAN_WSS="$RAIYAN_HOME/wss"
# linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $ACADEMIA_HOME
mkdir -p /opt/dev/$USER/chorke/academia
ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_HOME/wss
ls -lah $ACADEMIA_HOME
Example: 01 # linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $ACADEMIA_HOME
mkdir -p /opt/dev/shahed/chorke/academia
ln -s /opt/dev/shahed/chorke/academia $ACADEMIA_HOME/wss
ls -lah $ACADEMIA_HOME
Example: 02 # linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $SOFTWARE_HOME
mkdir -p /opt/dev/shahed/chorke/software
ln -s /opt/dev/shahed/chorke/software $SOFTWARE_HOME/wss
ls -lah $SOFTWARE_HOME
Example: 03 # linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $MEDISYS_HOME
mkdir -p /opt/dev/shahed/medisys/medisys
ln -s /opt/dev/shahed/medisys/medisys $MEDISYS_HOME/wss
ls -lah $MEDISYS_HOME
Example: 04 # linux|unix » login » dashboard » terminal
──────────────────────────────────────────────────────
mkdir -p $RAIYAN_HOME
mkdir -p /opt/dev/shahed/shahed/raiyan
ln -s /opt/dev/shahed/shahed/raiyan $RAIYAN_HOME/wss
ls -lah $RAIYAN_HOME
|