Author: leizhou


Website:

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

About this author:


bash script does not run command

Sometimes a bash script does not run the commands as cron or start up scripts that usually run when you debugging it. This may be caused by that the embedded running environment does not provide proper search path. To avoid this, always use full path to the executibles.

R upgrade all packages

update.packages(checkBuilt=TRUE, ask=FALSE)

Fedora copy paste not working

The convenient select copy, mouse middle click paste way does not work on some Fedora desktop environment. Even the Ctrl-C/Ctrl-V/Ctrl-X copy past and menu copy-paste does not work, forcing users to hand type in things that usually just a few mouse clicks away. This is identified as a buggy package called “clipit” To identify the […]

Avoid duplicates in $PATH

Linux search /etc/profile.d and ~/.bashrc, ~/.bash_profile for system and user defined environmental variables. One of the most manipulated variable is $PATH. You can see this by running $ echo $PATH In most cases, when a new 3rd party software is installed, and you want it to be in your default executable search path, you insert […]

Installing Lapack in CentOS 7-8

For CentOS7, ccmake -DCMAKE_INSTALL_PREFIX=/usr/local/lapack -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON -DLAPACKE=ON .. Then make, make install will get you a working version of liblapacke.so The current version 3.8.0 source has bugs that prevent the .so to work properly. Version 3.7.1 is the best to do. For CentOS8, the Fedora 29 version of Lapack works by dnf install.

Ganglia cannot display cluster view with certain version of php

This is related with a version compatibility issue. nano +26 /usr/share/ganglia/cluster_view.php change $context_metrics = “”; to $context_metrics = array(); will do the job.

kill zombies

A zombie is already dead, so you cannot kill it. To clean up a zombie, it must be waited on by its parent, so killing the parent should work to eliminate the zombie. An example of how you might send a signal to every process that is the parent of a zombie (note that this […]

Using lightdm + slick greeter

Linux default greeters list user names on log in screen. This is sort of a security risk. Using lightdm + slick greeter can avoid this, rendering it back to the key-in username type. To do so, dnf install lightdm slick-greeter systemctl stop gdm (or whatever dm you are using) systemctl disable gdm edit /etc/lightdm/lightdm,conf, change […]

Using MESA to render OpenGL > 1.4 remotely

When you are working on a remote server through nomachine or vnc, and there is no video card on the remote server that supports OpenGL > 1.4, the MESA in default render OpenGL version 1.4. This will cause the application to fail even if they do not really need to raise a GUI. Here is […]

Using Nomachine through ssh tunner

Nomachine uses port 4000, however, the server may not have that port opened to your local IP. However, as long as you can ssh the server, you can use the following ssh tunnel to use Nomachine – securely and fast: From a ssh client, do: ssh -L <port>:localhost:4000 -N -f <username>@<nomachine_server> From your nomachine client, […]