Currently browsing category

Linux, Page 10

安裝 lustre with dkms

# yum install -y expect libyaml-devel # rpm -ivh dkms-2.6.1-1.el7.noarch.rpm # rpm -ivh lustre-client-2.12.2-1.el7.x86_64.rpm lustre-client-dkms-2.12.2-1.el7.noarch.rpm Preparing… ################################# [100%] Updating / installing… 1:dkms-2.6.1-1.el7 …

useradd 改變預設home路徑

# vi /etc/default/useradd# useradd defaults file GROUP=100 HOME=/data/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes

OpenSSH Host-based Authentication

# vi /etc/ssh/ssh_configHost * HostbasedAuthentication yes EnableSSHKeysign yes # vi /etc/ssh/sshd_configHostbasedAuthentication yes # cat /etc/ssh/shosts.equivh1c1192.168.1.100192.168.1.101 # cat ssh_hostsh1,192.168.1.100c1,192.168.1.101# ssh-keyscan -t rsa -f …

列出 getent passwd

# vi /etc/sssd/sssd.conf autofs_provider = ldap cache_credentials = True ldap_search_base = dc=liho,dc=tw krb5_realm = LIHO.TW krb5_server = kerberos.liho.tw id_provider = ldap auth_provider …

產生 environment-modules 模組

$ /usr/share/Modules/bin/createmodule.py “/opt/intel/composer_xe/2019/bin/compilervars.sh intel64 -platform linux” 用上面的指令產生模組描述檔案