Aliyun centos6.8 installation visual interface and remote link

Centos 6.8 how to configure and install graphical interface
yum -y groupinstall "X Window System" "Chinese Support" "Desktop"


1. First check whether
[root@]# is installed rpm -qa | grep tigervnc
yum install tigervnc-server*
yum install tigervnc*

[root@]#  rpm -qa | grep tigervnc


tigervnc-server-1.1.0-5.el6_4.1.x86_64

tigervnc-1.1.0-5.el6_4.1.x86_64


2. Edit the vncservers configuration file and add the following two lines


vi /etc/sysconfig/vncservers


VNCSERVERS="1:root" ###(Multiple can be set here, up to 6)

VNCSERVERARGS[1]="-geometry 1024x768"


3. Set the vnc login password of the oracle user, and the /home/oracle/.vnc/passwd file will be generated.


[root@localhost ~]# su - root
[bob@localhost ~]$ vncserver
password:fenglixiong

verify:fenglixiong


4. Start and stop commands


service vncserver start #start
service vncserver stop #stop

service vncserver restart #restart


5.如果想设置VNC服务开机启动,用下面的命令:


chkconfig vncserver on

赋:
vim编辑
vi ....编辑文件
i编辑
esc进入命令模式
:wq退出保存
:q退出
u撤销
输入 要跳转的行数,然后再输入 gg



附阿里云linux图形界面的安装方法:
安装gnome图形化桌面
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"搜索
将下列服务设置为自动启动后,重启系统
#chkconfig --level 35 haldaemon on
#chkconfig --level 35 messagebus on

设置vnc分辨率:

vncserver -geometry 1920x1080


设置系统的语言为中文:


需要通过修改配置文件来更改界面语言。

  1. 打开配置文件所在的目录:cd /etc/sysconfig

  2. 编辑配置文件:vi i18n

  3. 用#号把配置文件中的第一行(LANG="en_US.UTF-8")注释掉。其实在这行直接改也是可以的,不过保险点的做法还是先注释掉,等确认更改没问题以后再删除。

  4. 在第一行下面添加新的一行,输入LANG="zh_CN.UTF-8",然后保存文件、重启系统即可。

  5. 要注意的一点是,如果当前登录的不是拥有最高权限的管理员,可能会在保存配置文件时提示权限不够、不能进行写操作。此时应切换为root用户,更改配置文件后再重启。


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325770568&siteId=291194637