记录每个学习心得
[心得] centos7安装VNC
yum install tigervnc-server tigervnc vnc vnc-servercp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.servicevim /etc/systemd/system/vncserver@:1.service    找到这一行    ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"    PIDFile=/home/<USER>/.vnc/%H%i.pid    这里直接用root 用户登录,所以我替换成    ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"    PIDFile=/root/.vnc/%H%i.pidsystemctl daemon-reloadvncpasswd    Would you like to enter a view-only password (y/n)? n             #注意表示"是否输入一个只能查看的密码,选择否",否则连接vnc会出现黑屏systemctl daemon-reloadsystemctl enable vncserver@:1.servicesystemctl start vncserver@:1.servicesystemctl stop vncserver@:1.servicesystemctl status vncserver@:1.servicelocale -a|grep zh_CN #查看语言支持vim /etc/locale.conf  #修改为zh-CN.utf-8reboot
11:15:49点击查看
[心得] centos7安装图形界面
cat /etc/redhat-release #检查系统版本yum grouplist #查看可安装组件 //安装图形界面yum groupinstall "X Window System"yum groupinstall "GNOME Desktop"//yum groupinstall "Input Methods" 安装输入法//Yum groupinstall "Chinese support" 安装中文支持//Im-chooser 打开输入法管理工具//然后选项 Use Ibus - > Input Methods Preferences -> Input Methods -> Chinese选择要安装的输入法
11:14:08点击查看
首页 所有 登录