Author: leizhou


Website:

http://bitc.bme.emory.edu/Members/lzhou.html

About this author:


AWS: How to mount S3 bucket on your EC2 instance if your role allows it

s3fs -o iam_role=auto <your_bucket_name> <your_mounting_point>

How to recover a very large RAID6

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

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

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

Install LINDA for R

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()

Restore Firefox scrollbar arrow buttons in Centos 7.4

Change the value of the following lines GtkScrollbar::has-backward-stepper = 1 GtkScrollbar::has-forward-stepper = 1 GtkScrollbar::stepper-size = 13 GtkScrollbar::slider-width = 13 in /usr/share/themes/Adwaita/gtk-2.0/main.rc and comment off # Disable arrows for qt in scrollbars # image { # function = ARROW # detail = “vscrollbar” # } # image { # function = ARROW # detail = “hscrollbar” […]

run fsleyes remotely

startxwin — +iglx -nowgl & in cygwin window, then export DISPLAY=:0.0 ssh -XYC @ then ssh to a node, start fsleyes This works for me.

Matlab parpool in GUI

Matlab R2017a can start parpool in text mode but will crash in GUI. The problem is that it is trying to modify a few files in the local toolbox to accommodate the computer specs. If the directory %MATLAB/toolbox/local is readonly, the updated profile will fail writing, and the parpool will still attempt to start on […]

Build Mrtrix3 in CentOS7

CentOS 7 comes with gcc 4.8.5 but MrTrix needs 4.9+, also it needs Qt-qtsvg To do this, addition to the mrtrix install instruction: yum install qt5-qtsvg qt5-qtsvg-devel qt5-qtbase-devel devtoolset-3-gcc.x86_64 devtoolset-3-gcc-c++.x86_64 export QTDIR=/usr/lib64/qt5;export PATH=/usr/lib64/qt5/bin/:$PATH; export CXX=/opt/rh/devtoolset-3/root/usr/bin/g++; ./configure ./build Then you get it.

Enable OpenGL forwarding in cygwin and linux

In cygwin, if you start X server using command: $ X -multiwindow -nowgl +iglx & and $ export LIBGL_ALWAYS_INDIRECT=1 $ export DISPLAY=:0.0 you will have a GLX functionality over ssh through indirect software rendering if you start X server using command: $ X -multiwindow -wgl +iglx & and $ export LIBGL_ALWAYS_INDIRECT=1 $ export DISPLAY=:0.0 you […]