Category: Work related


How to recover a very large RAID6

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

RAID6 is supposed to have two sets of redundancy that could survive a simultaneous failure of two drives, and it can go directly on automatic rebuilding if you have hot swaps. However, you must have known that the RAID controller and the back plane are still playing dictatorship for a RAID group. It could happen […]

Breaking NFS’ 16 group membership limit

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

The 16 group limit with auth_sys is not tuneable. It is defined in RFC_5331 and cannot be adjusted or patched. However for linux running nfs-utils version over 1.0.12 and kernel version over 2.6.21, you can make rpc.mountd to manage gid to avoid this limitation. To do this: On all your nfs server, edit /etc/nfs.conf, add […]

ninja make

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

yum install -y ninja-build cmake -GNinja ../src ninja-build

Install LINDA for R

By: | Comments: 1 Comment

Posted in categories: Computer Tips, Work related

under su: mkdir ~/.R echo “CPPFLAGS=-fpermissive” >> ~/.R/Makevars ln -s /location/of/LINDA /usr/local/ R in “R”: install.packages(“Rcpp”) install.packages(“magrittr”) install.packages(“drat”) drat::addRepo(“ANTs-R”) install.packages(“ANTsR”) install.packages(“randomForest”) source(‘/usr/local/LINDA/linda_predict.R’) q()

Installing Melview on CentOS7

By: | Comments: No Comments

Posted in categories: Scientific Digest, Work related

git clone http://users.fmrib.ox.ac.uk/~flitney/melview.git wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora-secondary/releases/14/Everything/arm/os/Packages/python-EnthoughtBase-3.0.5-1.fc14.noarch.rpm yum install python-EnthoughtBase-3.0.5-1.fc14.noarch.rpm yum install python-matplotlib-qt4 python-matplotlib python-pyside python-configobj pip install -U pip pip install -U traits traitsui nibabel pyface cd melview python ./setup.py install

Linux create salted password

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

Method 1 openssl passwd -1 -salt xyz yourpass Method 2 makepasswd –clearfrom=- –crypt-md5 <<< YourPass Method 3 echo "username:password" | chpasswd Or you can use encrypted password with chpasswd first generate it using : perl -e 'print crypt("YourPasswd", "salt"),"\n"' then later you can use generated password to update echo "username:encryptedPassWd" | chpasswd -e this encrypted […]

Yum is not compatible with Matlab Runtime

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

So do not put matlab runtime into ld.so.conf.d. If yum broken, remove that file and do ldconfig.

du only local files

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

sudo find . -maxdepth 1 -type d ! -name . -exec du -sh ‘{}’ \; | sort -h

Matlab: libGL error: dlopen /usr/lib64/dri/swrast_dri.so failed

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

Starting Matlab R2015a or newer in CentOS7 or recent version of Fedora, the error libGL error: dlopen /usr/lib64/dri/swrast_dri.so failed will rise through does not affect the normal working of Matlab. This problem is caused by the libstdc++.so.6 coming with Matlab. Matlab carries statically linked libstdc++.so.6.0.17 in /matlab_folder/sys/os/glnxa64. When the system version of libstdc++.so.6 is lower […]

htdigest

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

htdigest [-c for create password file] password_file_name ‘realm name’ username it will prompt you twice for a password.