Ubuntu 12.04 LTS installation(July 06 2012)
(一)Ubuntu Client configuration
(1)install ssh.
$ apt-get install openssh-server
$ps -e | grep ssh
如果看到sshd那说明ssh-server已经启动了。
(2)#apt-get install vim
(3) #apt-get install vnc4server
(4)# vim /etc/hosts
nis server ip adress nis server hostname
(5)Install NIS Packages
# apt-get update
#apt-get install nis
/etc/init.d/ypbind start #Ubuntu 12.04 用这个来管理nis服务器和之前的版本不一样,请注意。
(6)You will be asked for the name of your NIS domain. Enter 'swamp'. If you entered wrongly or want to change the defaultdomain of NIS change it in the file /etc/defaultdomain.
#vim /etc/defaultdomain
#vim /etc/passwd
+:::::
#vim /etc/group
+:::
# vim /etc/shadow
+ ::::::::
This sets up those services to include NIS entries if a match isn't found in the file. You could change other services to use NIS by using the NIS service in /etc/nsswitch.conf, but these are the important ones.
#vim /etc/yp.conf
Domain swamp server nis serveer
Edit '/etc/nsswitch.conf'
Restart NIS:
remove NetworkManager as below n
#apt-get remove network-manager
#vim /etc/network/interfaces
#DHCP setting
auto eth0
iface eth0 inet dhcp
#Static IP address setting
auto eth0
iface eth0 inet static
address ***.***.***
netmask ***.***.***
gateway ***.***.***
11. #vi /etc/resolv.conf
nameserver ***.***.***
nameserver ***.***.***
search company domain name
(二)Ubuntu Automount configuration
# apt-get install autofs
#apt-get install nfs-common
#vi /etc/auto.master
#+auto.master # Comment this line
/localadmin yp:auto.localadmin #Add this line
#vi /etc/nsswitch.conf
automount: files nis
#/etc/init.d/autofs restart