Category: Work related
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 […]
How to use WD RE4 Serial ATA600 hard drives on controller that supports only SATA300?
When Serial ATA600 hard drives are plugged in a RAID controller that supports only SATA150 and SATA300, since the controller cannot understand what SATA600 is, to be defensive, it automatically default the communication ratio down to its low margin, SATA150. However, given the performance drop, now-a-day SATA600 drives are no longer backward compatible with SATA150. […]
Virtualbox “failed to create XIM input context”
When using Fedora installed in a virtualbox VM to remote connect to a linux host, some applications may crush when opening a menu with the error “failed to create XIM input context”. This is because VirtualBox does not handle scim well. A simple workaround is to put in a line export QT_IM_MODULE=gcin in the .bashrc […]
Solution for “_X11TransSocketINETConnect: Can’t get address for localhost”
To the public knowledge, this is caused by missing 127.0.0.1 localhost line in your /etc/hosts file. However, for some applications, even if you have that line, you will still get this error. Or what if you do not have access/privilege to modify the /etc/hosts file? There is still a work around: Suppose the affected program […]
DHCP get back your old IP when you switch computer or network card
Modern DHCP server will identify clients using its MAC address, such that if you are offline (shutdown the client computer) for a short period, like a few hours, up to a few days, depends on the load of the dhcp server and the pool size, when you are back online again, you will get the […]