JXLIU Blog

「离开世界之前 一切都是过程」

Slurm node unexpectedly rebooted

Slurm

After the Slurm computing node is manually restarted, the management node will set the status of the computing node to DOWN You can use the following command on the Slurm management node to restor...

Roche potential

Binary Stars

Roche potential \[\Phi_R(\vec{r})=-\frac{G M_1 M_{\odot}}{\left|\vec{r}-\vec{r}_1\right|}-\frac{G M_2 M_{\odot}}{\left|\vec{r}-\vec{r}_2\right|}-\frac{1}{2}(\vec{\omega} \times \vec{r})^2\] \[\ve...

Plot stream line using Paraview

txt file

Plot stream line using Paraview Load txt file 不勾选 “Have headers” Field Delimiter Characters 填入 " " Apply 添加 Filter:TableToPoints2 选择相应的 X,Y,Z 轴 这里选择二维数据,勾选上 2D Points Apply 添加 F...

Upgrade nextcloud and install onlyoffice

docker

备份数据 至少备份 /var/www/html/data 和 /var/www/html/config 文件夹,其余文件可不备份 升级 nextcloud 修改 docker-compose.yml 中 nextcloud 版本,然后 docker-compose up,等待升级完成即可。 注意不能跨版本升级,不能 downgrade。 如果不小心跨版本升级,需要从官网 下载升...

Install AUR software

manjaro/arch

Install AUR software Using yay Using git and pacman reference:archlinux wiki 1 2 3 4 5 cd ~/build git clone https://aur.archlinux.org/package_name.git cd package_name makepkg pacman -U package_n...

docker large log file

docker

remove useless log file 1 2 ls /var/lib/docker/containers/*/*-json.log -lh|awk '{print $9}' echo > *.log

Chinese input method in Gentoo OS

ibus

Compile ibus and dependencies 1 root #emerge --ask app-i18n/ibus ibus-libpinyin Add use flag to /etc/portage/package.use/ibus 1 2 dev-qt/qtgui ibus kde-plasma/plasma-desktop ibus 1 root #emerg...

rsync server

mirrors

rsyncd configuration /etc/rsyncd.conf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # /etc/rsyncd.conf # Minimal configuration file for rsync daemon # See rsync(1) and rsyncd.conf(5) ...

ssh tunnel

rsync

transter data between two servers which are not directly connected. 1 ssh -f -L 1233:<target IP>:[ssh port] username@<transit server IP> sleep 10; rsync -auvzP -e 'ssh -p 1233' jxliu@1...

Rubygems: Temporary failure in name resolution

Gentoo

Problem A “Temporary failure in name resolution” error appeared when I upgrade Gentoo linux system. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 >>> Downloading 'https://rubygems.org/gems/psyc...