This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Screen (screen-4.6.2) | |
wget https://ftp.gnu.org/gnu/screen/screen-4.6.2.tar.gz | |
tar -xf <> | |
./autogen.sh | |
./configure --prefix=${HOME}/opt/screen-4.6.2 | |
make && make install | |
# Ncurses (ncurses-6.1) / for Htop | |
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz | |
tar -xf <> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GCC 8.2.0 build | |
# References: | |
# https://gcc.gnu.org/install/configure.html | |
# http://luiarthur.github.io/gccinstall | |
tar xzf gcc-8.2.0.tar.gz | |
cd gcc-8.2.0 | |
# edit <./contrib/download_prerequisites>, from ftp:// to http:// | |
./contrib/download_prerequisites | |
cd .. | |
mkdir objdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference for intel python repository | |
# https://software.intel.com/en-us/articles/using-intel-distribution-for-python-with-anaconda | |
conda config --add channels intel | |
conda create -n mkldnn -c conda-forge intelpython3_core python=3.6 cartopy numpy matplotlib scipy opencv cython seaborn pandas geopy scikit-learn scikit-image netcdf4 h5py | |
# reference for keras module dependency: | |
# https://github.com/tensorflow/tensorflow/issues/21518#issuecomment-411875069 | |
pip install keras_applications keras_preprocessing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for CUDA acceleration, | |
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
# for Intel MKL acceleration, | |
bazel build --config=opt --config=mkl //tensorflow/tools/pip_package:build_pip_package | |
bazel --server_javabase=$HOME/opt/jdk build --config=opt --config=mkl //tensorflow/tools/pip_package:build_pip_package | |
# for TensorFlow r1.11 w/ Intel nGraph acceleration, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get latest OpenJDK (10 at here) | |
# from: http://jdk.java.net/10/ | |
# | |
# Example (OpenJDK 10-10.0.2 / GA) | |
# https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz | |
# 0. Extract openjdk into shared directory | |
# sudo if needed | |
tar -xf <openjdk>.tar.gz -C /usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GitKraken refers library named libcurl. For bare execution, it gives an error of library not found. | |
# libcurl-gnutls.so.4: cannot open shared object file: No such file or directory | |
# | |
# However, your C7 installation may already have libcurl installation. | |
# Try, | |
sudo yum -y install libcurl | |
# You may see: Package libcurl-7.29.0-46.el7.x86_64 already installed and latest version | |
# Also, libcurl-so.4 is located in /usr/lib64/libcurl.so.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on QNAP TVS-1282T3 | |
# connect to NAS thru SSH (ssh -p <port> admin@<NAS IP>) | |
ROOTCA=<custom-rootca>.crt | |
cp /share/NFSv\=4/<somewhere>/<custom-rootca>.crt /usr/certs | |
ln -s /usr/certs/$ROOTCA /usr/certs/`openssl x509 -hash -noout -in /usr/certs/$ROOTCA`.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prerequisite | |
# OS: CentOS 7.5.1804 installation with 'minimal install' config | |
# 1. download most recent amdgpu-pro (currently 18.30) | |
# You can find binaries at: https://www.amd.com/en/support/kb/release-notes/rn-prorad-lin-18-30 (almost impossible to discover) | |
wget --referer http://support.amd.com https://www2.ati.com/drivers/linux/rhel7/amdgpu-pro-18.30-641594.tar.xz | |
tar -xf amdgpu-pro-18.30-641594.tar.xz | |
cd amdgpu-pro-18.30-641594 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prerequisite: | |
# OS: CentOS 7.5.1804 installation with 'minimal install' | |
# Filesystem: LVM Thin-provisioning of root (/) with lvm(xfs). | |
# 0. enable EPEL-Release Repo | |
sudo yum -y install epel-release | |
# 1. install snapper (dependencies may follow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Conda already have MKL | |
conda update mkl | |
# CMAKE, Boost | |
conda install -y cmake boost libboost | |
# OpenCV, Protobuf | |
conda install -y opencv libopencv protobuf libprotobuf snappy |