Category: Work related
qap installation
pip install –upgrade numpy scipy && pip install –upgrade nipype nibabel nitime pyyaml pandas cd qap python setup.py install
Mount cifs through ssh tunnel
on local: ssh -N -L 139:127.0.0.1:445 user@remote.host.name on local: mount -t cifs -o username=user,version=3 //localhost/user/ mountpoint
Installing CentOS 7
Estimated partition size/usage (off 223.5GB HD) / 63GB 18GB 28% swap 16GB /usr/local 127.75GB 33GB 26% /boot 765MB 201MB 21% /data/home0 16GB 34MB 1% Step 1: setup nfs to export CentOS7 full package and ks.cfg file, start the NFS server, do not forget to lift the firewall so that it will be seen by the […]
Linux animated GIF to MPEG
Package required: ffmpeg, gifview, mplayer. Randering gif: # gifview fn.gif Converting: # Convert fn.gif fn.mpg Examine result: mplayer fn.mpg
Running 32bit java program in 64bit Linux (jMRUI)
First, why? It is well known that 64 bit java platform can run java code compiled in 32 bit development environment. However, some java codes call C++ libraries. For example, if for some reason you will have to run a very old – stopped developing program, like jMRUI, which was programmed in the 32 bit […]
YABB and selinux
Remember to add read privilege to httpd_sys_script_t as of allow httpd_sys_script_t httpd_sys_script_exec_t:file { append create unlink write read }; allow httpd_sys_script_t httpd_sys_script_exec_t:dir { add_name write remove_name read };
install python nipype
make sure /usr/bin/as and /usr/bin/strip are the latest version. cd where_python_downloads_are. yum install python27-python-devel-2.7.5-7.el6.centos.alt.x86_64.rpm python27-python-libs-2.7.5-7.el6.centos.alt.x86_64.rpm python27-python-2.7.5-7.el6.centos.alt.x86_64.rpm python27-runtime-1-10.el6.centos.alt.x86_64.rpm python27-python-setuptools-0.6.28-7.el6.centos.alt.noarch.rpm export PATH=/usr/lib64/qt5/bin:/opt/rh/python27/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin export LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export MANPATH=/opt/rh/python27/root/usr/share/man:${MANPATH} yum install blas-devel lapack-devel easy_install-2.7 numpy easy_install-2.7 nibabel easy_install-2.7 networkx easy_install-2.7 mercurial easy_install-2.7 scipy easy_install-2.7 traits easy_install-2.7 nipype easy_install-2.7 pip pip install python-dateutil pip install configobj pip install nose cd [sip] […]
rpm queries
to list all installed packages in alphabetical order: rpm -qa –queryformat ‘%{NAME}.%{ARCH}\n’ | sort
rpm check all packages
rpm -V $(rpm -qa) > packagecheck
/usr/bin/xauth cannot lock .Xauthority?
It was reported as BUG 649550 on Redhat Bugzilla that some users complained that they could not establish a graphical connection to their servers since when they log in with ssh -X or ssh -Y, the terminal spitted out an error that it cannot lock ~/.Xauthority file. This issue has been out there for years […]