Home

How to Duplicate Wordpress Site

Created on: 10/19/18 Last update: 10/19/18 This post describes how to duplicate Wordpress site. For example, duplicate the site http://localhost/wordpress to http://localhost/wordpress_backup. Two sites have separate database. Copy website and grant permission: cp -r /var/www/html/wordpress /var/www/html/wordpress_backup cd /var/www/html/wor...

Read more

Setting Python environment for GEE

Created on: 2/20/18 Last update: 2/20/18 Installing required packages OpenSSL On Ubuntu: sudo apt-get install openssl On Mac: brew install openssl Verify the installation: openssl version Setting GEE Python Environment Create a new conda environment: conda create --name py364_gee python=3.6.4 source activate py364_gee Install de...

Read more

TensorFlow CPU Installation

Created on: 2/9/18 Last update: 2/9/18 Set up Python Environment Create and activate the conda virtual environment for TensorFlow: conda create --name py364_tf python=3.6.4 source activate py364_tf In this case, we use Python 3.6.4 as the base version of Python. The environment is located at: ~/anaconda3/envs/py364_tf Install TensorFlow ...

Read more

PyCSW Installation

Installation Set up Python Environment Create and activate the conda virtual environment for PyCSW: conda create --name py364_pycsw python=3.6.4 source activate py364_pycsw In this case, we use Python 3.6.4 as the base version of Python. The environment is located at: ~/anaconda3/envs/py364_pycsw Install PyCSW git clone git@github.com:geo...

Read more

Anaconda Installation

Created on: 2/7/18 Last update: 2/7/18 Quick Start Install Anaconda on Mac: brew cask install anaconda Install Anaconda on Ubuntu: The url of the latest Anaconda distribution can be found at: https://repo.continuum.io/archive/ wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh sh Anaconda3-5.0.1-Linux-x86_64.sh Veri...

Read more

Testing CMAQ model on Linux

Created on: 10/24/17 Last update: 4/16/18 Preliminary It is recommended to add the variables in .bashrc: nano ~/.bashrc M3HOME=/usr/local/app/CMAQv5.1 M3SCRIPT=/usr/local/app/CMAQv5.1/scripts M3MODEL=/usr/local/app/CMAQv5.1/models M3DATA=/usr/local/app/CMAQv5.1/data M3LIB=/usr/local/app/CMAQv5.1/lib/x86_64/gcc source ~/.bashrc ...

Read more

Installing CMAQ on Linux

Created on: 10/24/17 Last update: 4/16/18 Preliminary Essential Packages sudo apt-get update sudo apt-get install g++ vim make csh tcsh MPICH Install MPICH: sudo apt-get install libcr-dev mpich2 mpich2-doc Test MPICH: nano hello.c Copy and paste the test code: /* C Example */ #include <mpi.h> #include <stdio.h> int mai...

Read more

Gitlab Installation

Created on: 10/13/17 Last update: 5/12/19 Installing Gitlab Install Gitlab on Ubuntu: curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash sudo apt-get install gitlab-ee Configuration nano /etc/gitlab/gitlab.rb external_url "http://chenzhang.xyz/gitlab" unicorn['worker_timeout'] = 600 unic...

Read more