Category: Uncategorized
6020095 · 2^6972593 – 1 is prime
It has 2098967 decimal digits. See record page here.
Seagate NAS make no_root_squash
Seagate NAS create NFS shares as root_squash. This makes is inconvenient to use it as linux backup device. By remounting / as rw, editing /usr/lib/python2.7/site-packages/unicorn/sharing/nfs.py, change root_squash to no_root_squash, reboot, problem saved.
Rename an ethernet port
ip link set <name> down ip link set <name> name <newname> ip link set <newname > up
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 […]
LDAPS authentication for GALAXY when you use self-signed certificate
The current version of GALAXY (https://usegalaxy.org/) will run into error when using ldaps authentication mechanics. The error is Traceback (most recent call last): File “/home/galaxy/galaxy-dist/lib/galaxy/auth/providers/ldap_ad.py”, line 117, in authenticate ldap.set_option(_opt) File “/home/galaxy/galaxy-dist/.venv/local/lib/python2.7/site-packages/ldap/functions.py”, line 135, in set_option return _ldap_function_call(None,_ldap.set_option,option,invalue) File “/home/galaxy/galaxy-dist/.venv/local/lib/python2.7/site-packages/ldap/functions.py”, line 66, in _ldap_function_call result = func(_args,**kwargs) ValueError: option error The function in Python LDAP […]
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])