Skip to content

Instantly share code, notes, and snippets.

@jingmian
Created July 25, 2017 14:47
Show Gist options
  • Save jingmian/9303e032655f553815fccf79a84e9464 to your computer and use it in GitHub Desktop.
Save jingmian/9303e032655f553815fccf79a84e9464 to your computer and use it in GitHub Desktop.
安装VNC界面,包含中文语言包
yum install nano -y; yum update -y; yum upgrade -y; yum install tigervnc-server -y; yum groupinstall "Desktop" -y; yum install firefox -y; rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux; yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl -y; echo 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf; ' >> /etc/rc.local; echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/sysconfig/vncservers; vncpasswd; chkconfig vncserver on --level 345; reboot;
//安装word文档工具
yum install libreoffice
//安装中文语言
yum groupinstall "Chinese Support"
vi /etc/sysconfig/i18n
//把LANG=”XXXXX”内容替换成LANG=”zh_CN.UTF-8
//清除防火墙规则
iptables -F
//重启后依然失效
iptables规则配置保存:
(1) 方法一:
# service iptables save
(2) 方法二:
# iptables-save > /etc/sysconfig/iptables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment