分类目录

How to backup linux system

生成密钥

在Frontend机器上生成密钥:

1. cd ~/.ssh/ 2. ssh-keygen 3. ls -l

total 32 -rw——- 1 root root 1671 Jul 31 11:27 id_rsa -rw——- 1 root root 395 Jul 31 11:27 id_rsa.pub -rw-r–r– 1 root root 10323 Jul 31 16:07 known_hosts

复制密钥

将公共密钥复制到需要同步的服务器上:

1. scp id_rsa.pub root@ondosrv:/root/.ssh/authorized_keys2

测试ssh

在Frontend机器上测试:

1. ssh root@ondosrv

注释:应该不需要输入密码。

编写同步程序

在Frontend机器上编写同步程序:

1. [...]

HowTo: Solaris 9 configuration

1. Config DNS server and domain name

/etc/resolv.conf:

nameserver 192.168.100.7

search pcms.utstar.com

Note: (1) Test beds machines need to do all of the steps. (2) R&D environment machines only need the steps marked with red words. (3) You can also find this article in fronted /home/utstar/installation_doc/

2. If cannot get host’s name from hosts then [...]

Howto: Solaris 10 configuration

1. Set hostname of this machine

/etc/nodename: The new hostname of the machine, e.g. telusmmu1

2. config net interface and hosts

/etc/hostname.eri0: The interface name, e.g. telusmmu1

Note: eri0 is interface name, if the machine has second net interface, the second hostname file should be configed, e.g. /etc/hostname.eri1:

telusmmu1_1

3. Set hosts

/etc/hosts, e.g.: 192.168.102.14 [...]