cndaqiang / E5-PC-daily

服务器集群管理遇到的问题和总结
1 stars 0 forks source link

OPEN SUSE计算环境配置 #2

Open cndaqiang opened 5 years ago

cndaqiang commented 5 years ago

gcc编译器

 sudo zypper  up 
 sudo zypper  install gcc-fortran
 gfortran --version

其他同bolg

openmpi也可以用zypper

zypper search openmpi
zypper install openmpi openmpi-devel-static openmpi-libs

bashrx

MPIDIR=/usr/lib64/mpi/gcc/openmpi
export PATH=$MPIDIR/bin:$PATH
export LD_LIBRARY_PATH=$MPIDIR/lib64:$LD_LIBRARY_PATH
cndaqiang commented 5 years ago

密钥

ssh-keygen -t rsa -C "mom"
cndaqiang commented 5 years ago

最新版本的win10复制ssh的key到github会报错 老版本的win10不会 貌似是尾部的换行符的原因

cndaqiang commented 4 years ago

远程开发

#安装ssh
zypper install openssh
 ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
 ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

设置端口,避开win10的22

 vim /etc/ssh/sshd_config   
#也许还需要打开密码登录
PasswordAuthentication yes

添加入站规则 image 启动

 /usr/sbin/sshd

远程命令

ssh -p 1022 cndaqiang@10.127.1.27 "cd /Users/cndaqiang/code/TDQE/qe-6.4.1-devel.0.1 ; make pwall"
cndaqiang commented 4 years ago

ssh挂载

brew install sshfs
sshfs -o transform_symlinks -o follow_symlinks cndaqiang@mom:/home/cndaqiang ~/suse -p 1022
卸载
umount  ~/suse