htdigest [-c for create password file] password_file_name ‘realm name’ username it will prompt you twice for a password.
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
R update packages
install.packages( lib = lib <- .libPaths()[1], pkgs = as.data.frame(installed.packages(lib), stringsAsFactors=FALSE)$Package, type = ‘source’ ) # store_packages.R # # stores a list of your currently installed packages tmp = installed.packages() installedpackages = as.vector(tmp[is.na(tmp[,”Priority”]), 1]) save(installedpackages, file=”~/Desktop/installed_packages.rda”) # restore_packages.R # # installs each package from the stored list of packages load(“~/Desktop/installed_packages.rda”) for (count in 1:length(installedpackages)) install.packages(installedpackages[count])
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