Skip to content

Instantly share code, notes, and snippets.

@wangxianhe
wangxianhe / Could not open display because no X server is running.问题.md
Created May 3, 2018 12:44
Could not open display because no X server is running. 问题

安装GNOME图形环境 yum groupinstall "GNOME Desktop"

@wangxianhe
wangxianhe / maui同时设置某个class和某个user无效.md
Created May 3, 2018 11:33
maui同时设置某个class和某个user无效

maui.cfg

CLASSCFG[fast] MAXPROC[USER:steve]=50 参数无效

@wangxianhe
wangxianhe / 关于集群作业管理系统 Maui,PBS和Torque.md
Last active May 3, 2018 11:53
关于集群作业管理系统 Maui,PBS和Torque
@wangxianhe
wangxianhe / 自己的gist内容检索方法
Last active May 2, 2018 07:41
自己的gist内容检索方法
user:myusername #tag
例如:
user:wangxianhe #torque
参考资料:
https://stackoverflow.com/questions/2082723/how-do-you-manage-your-gists-on-github
@wangxianhe
wangxianhe / gist:d9bb9a4006bc0ec456c0ddb62d69a1a8
Last active September 13, 2018 02:31
CentOS7 ssh免密码访问
操作比较简单,不详细说了,参考下面命令:
HOME=/home/wxh #对应用户账号家目录,此处以/home/wxh为例
ssh-keygen -t dsa -N "" -f "$HOME/.ssh/id_dsa"
cp -r $HOME/.ssh/id_dsa.pub $HOME/.ssh/authorized_keys
echo "StrictHostKeyChecking no" >> $HOME/.ssh/config
chmod 600 $HOME/.ssh/config
chmod 600 $HOME/.ssh/authorized_keys
# nfs服务端
## 1、安装软件包
yum -y install nfs-utils
## 2、启动服务
systemctl start rpcbind
systemctl start nfs
systemctl enable rpcbind
systemctl enable nfs
@wangxianhe
wangxianhe / 在CentOS7上搭建NIS服务.md
Last active September 12, 2019 01:58
CentOS7 NIS服务

在CentOS7上搭建NIS服务

NIS服务端

1、安装nis相关软件包

yum -y install ypserv
yum -y install ypbind
yum -y install yp-tools
yum -y install portreserve

2、设置NIS域名

刚安装的CentOS7自带的yum源不好使,需要换。
# 修改默认yum源为网易的mirrors.163.com
1、首先备份系统自带yum源配置文件。
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载163的yum源配置文件到/etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
3、运行yum makecache生成缓存,然后就可以使用了。
@wangxianhe
wangxianhe / CentOS 7 高性能计算(HPC)集群搭建过程.md
Last active May 4, 2023 03:32
CentOS 7 高性能计算(HPC)集群搭建过程

文档说明

此文档内容:在CentOS7系统上搭建高性能计算HPC集群。

准备条件

  1. 至少两台服务器或者电脑(没有的,使用VMware虚拟机代替也行。此文档为了操作方便,使用VMware虚拟机代替做示范。)  

  2. CentOS7操作系统软件镜像

  3. torque+maui 作业调度系统软件

@wangxianhe
wangxianhe / Ubuntu安装shadowsocksR客户端
Created April 11, 2018 10:06
Ubuntu安装shadowsocksR客户端
参考资料:
https://dcamero.azurewebsites.net/shadowsocksr.html#linux