新机器安装部署

1、先安装ntfs的识别程序:

yum -y install wget

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 

yum clean all

yum makecache

yum -y install ntfs-3g

2、安装界面

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

3、安装teamviewer                      

teamviewer info

yum -y install teamviewer_12.0.85001.i686.rpm

编辑/opt/teamviewer/config/global.conf末尾添加:

EulaAccepted = 1

EulaAcceptedRevision = 6

4、安装vmware

yum -y install mlocate*

updatedb

locate libpk-gtk-module.so

locate libcanberra-gtk-module.so

vim /etc/ld.so.conf.d/gtk-2.0.conf

/usr/lib64/gtk-2.0/modules 

/usr/lib64/gtk-3.0/modules

Ldconfig     重新加载

 

yum update kernel -y

yum install kernel-headers kernel-devel gcc make -y

然后就可以安装vmware了

卸载 vmware-installer --uninstall-product vmware-workstation

 

5、同步

yum install -y rsync

vim /etc/rsyncd.conf

 

#/etc/rsyncd.conf

motd file = /etc/rsyncd.motd

transfer logging = yes

log file = /var/log/rsyncd.log

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsync.lock

port = 873

uid = root

gid = root

use chroot = no

read only = yes

max connections = 10

 

[common]

comment = qhfile

path = /data/tomcat/webapps/

ignore errors

auth users = qh

secrets file =  /etc/rsyncd.secrets

hosts allow = IP1,IP2

hosts deny = *

list = false

 

 

echo "yonghu:mima">/etc/rsyncd.secrets

chmod 600 rsyncd.secrets

echo "hello,文件同步开始">/etc/rsyncd.motd

rsync --daemon

 

posted @ 2018-07-16 20:42  NLBSN  阅读(218)  评论(0编辑  收藏  举报