Linyuan Shi
Linyuan Shi
Home
Posts
Publications
Contact
English
中文 (简体)
Posts
Linux Slurm
Screen command screen -S yourname # Create a new session called "yourname" screen -ls # list all current sessions scree -r yourname # return to the "yourname" session screen -d yourname # detach "yourname" session Salloc command salloc -p fat -N 1 -n 32 --gres=dcu:4 -t=168:00:00 # generate MPI needed machine file srun hostname -s | sort -n > slurm.hosts mpirun -np 32 -machinefile slurm.hosts hostname
Last updated on Mar 31, 2022
1 min read
Linux
Synology public network access settings
This post discusses how to set the public network access for Synology NAS.
Last updated on Mar 9, 2022
1 min read
Network
Enable Proxy in WSL2
Check the ip address of windows in the local network. Update proxy in the linux export all_proxy="socks5://192.168.0.104:7890" Check if the proxy works curl cip.cc
Last updated on Oct 6, 2021
1 min read
Don't let boost mangle your lib name
If you use conan to manage Boost libraries, the default boost lib name is libboostxxxx.lib. However, boost system links the lib with tags sometimes. It may cause the linker cannot find libs properly. So it may be necessary to specify the pre-definition to avoid boost mangling the names. BOOST_AUTO_LINK_NOMANGLE: Specifies that we should link to BOOST_LIB_NAME.lib, rather than a mangled-name version. BOOST_AUTO_LINK_TAGGED: Specifies that we link to libraries built with the –layout=tagged option.
Last updated on Jun 6, 2020
1 min read
Colored Output in Terminal
Change the color of text in terminal
Last updated on Mar 16, 2020
1 min read
C++
Change Powershell default language code
Avoid incorrect display of Chinese characters
Last updated on Mar 2, 2020
1 min read
Coding
Compiling LAMMPS
Download LAMMPS Download Zlib Install Zlib make distclean ./configure make make install Install dependencies like BLAS, LAPACK, GSL and Eigen. For Manjaro users, you could install these libraries by the pacman command: sudo pacman -Syu blas lapack gsl eigen Create a software folder in your home directory (ie. ‘mkdir ~/soft’) Untar the lammps tarball (ie. ‘tar -xvf lammps-stable.
Last updated on Oct 26, 2021
1 min read
LAMMPS
Making Powerline Work in Visual Studio Code Terminal
The integrated terminal of VScode will show garbled words if zsh is installed but PowerLine font is not set. In order to fix this problem: One of the patched fonts from Vim-Powerline for the special characters. (if you don’t have any one.) In your User Settings (Code | Preferences | Settings) add this: { "terminal.integrated.fontFamily": "Hack", }
Last updated on Mar 3, 2020
1 min read
Visual Studio
Installation of zsh and beautify
Zsh is a Unix shell, which has been developed since 1990.
Last updated on Mar 3, 2020
1 min read
Linux
CMake and Visual Studio Tips
Some tips about working with CMake and Visual Studio smoothly.
Last updated on Apr 8, 2021
1 min read
CMake
,
C++
»
Cite
×