linux环境

[root@server1 ~]# uname -a
Linux server1.52chenqi.cn 4.10.5-1.el6.elrepo.x86_64 #1 SMP Wed Mar 22 14:55:33 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@server1 ~]# cat /etc/issue
CentOS release 6.9 (Final)
Kernel \r on an \m

安装xfce

1.yum upgrade

[root@server1 ~]# yum upgrade
Loaded plugins: fastestmirror
Setting up Upgrade Process
Loading mirror speeds from cached hostfile* base: mirrors.syringanetworks.net* elrepo-kernel: repos.lax-noc.com* extras: mirror.hostduplex.com* updates: repos-lax.psychz.net

2.yum install -y wget

[root@server1 ~]# yum install -y wget
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile* base: mirror.tocici.com* elrepo-kernel: repos.lax-noc.com* extras: mirror.hostduplex.com* updates: repos-lax.psychz.net
Package wget-1.12-10.el6.x86_64 already installed and latest version
Nothing to do

我已经装过了
3.wget http://www.rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/epel-release-6-8.noarch.rpm

[root@server1 ~]# wget http://www.rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/epel-release-6-8.noarch.rpm
--2018-05-31 09:40:29--  http://www.rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/epel-release-6-8.noarch.rpm
Resolving www.rpmfind.net... 195.220.108.108
Connecting to www.rpmfind.net|195.220.108.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-6-8.noarch.rpm”100%[======================================>] 14,540      88.7K/s   in 0.2s2018-05-31 09:40:30 (88.7 KB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540]

4.rpm -ivh epel-release-6-8.noarch.rpm

[root@server1 ~]# rpm -ivh epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]package epel-release-6-8.noarch is already installed

5.如果已经安装了epel-release,请先卸载,再重新安装
# rpm -e epel-release
# rpm -ivh epel-release-6-8.noarch.rpm

[root@server1 ~]# rpm -e epel-release
warning: /etc/yum.repos.d/epel.repo saved as /etc/yum.repos.d/epel.repo.rpmsave
[root@server1 ~]# rpm -ivh epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]1:epel-release           ########################################### [100%]

6.安装xfce yum groupinstall xfce

[root@server1 ~]# yum groupinstall xfce
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile* base: repos.forethought.net* elrepo-kernel: repos.lax-noc.com* epel: mirrors.develooper.com* extras: mirror.hostduplex.com* updates: repos-lax.psychz.net
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package NetworkManager-gnome.x86_64 1:0.8.1-113.el6 will be installed
--> Processing Dependency: NetworkManager-glib = 1:0.8.1-113.el6 for package: 1:NetworkManager-gnome-0.8.1-113.el6.x86_64
--> Processing Dependency: NetworkManager = 1:0.8.1-113.el6 for package: 1:NetworkManager-gnome-0.8.1-113.el6.x86_64
--> Processing Dependency: libnotify >= 0.4.3 for package: 1:NetworkManager-gnome-0.8.1-113.el6.x86_64
.......

7.安装vnc yum install vnc vnc-server

[root@server1 ~]# yum install tigervnc-server
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile* base: mirrors.syringanetworks.net* elrepo-kernel: repos.lax-noc.com* epel: mirrors.develooper.com* extras: mirror.hostduplex.com
.........

8.配置VNC系统及分辨率

vi /etc/sysconfig/vncservers

然后在内容中添加

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"

上面的分辨率可以根据我们自己的需要修改,比如可以改成800x600等。
9.设置VNC密码 vncserver

[root@server1 ~]#  vncserverYou will require a password to access your desktops.Password:
Verify:
xauth:  file /root/.Xauthority does not existNew 'server1.52chenqi.cn:1 (root)' desktop is server1.52chenqi.cn:1Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/server1.52chenqi.cn:1.log

10.修改xstartup配置文件

vi /root/.vnc/xstartup

所有内容都替换成:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"&
#twm &
startxfce4 &

11.设置权限以及重启VNC/设置开机启动

service vncserver restart
chkconfig vncserver on

转载于:https://blog.51cto.com/9552815/2122635

centos6.8安装xfce+vnc相关推荐

  1. debian linux vnc,Debian 如何配置安装Xfce桌面+VNC远程桌面服务

    介绍 虚拟网络计算(VNC)是一种连接系统,允许您使用键盘和鼠标与远程服务器上的图形桌面环境进行交互.它使得对于不熟悉命令行的用户更容易管理远程服务器上的文件,软件和设置. 在本指南中,您将在Debi ...

  2. Ubuntu18.04安装Xfce桌面与VNC远程工具

    1. Xfce桌面的安装 Xfce是一款轻量级的桌面环境,运行在类Unix操作系统 (如Linux.FreeBSD 和 Solaris)上,界面清爽美观且对用户友好. 在安装Xfce前需要更新一下系统 ...

  3. Centos8.2安装配置 VNC 远程桌面Xfce、解决输入法VNC无法使用的问题、解决浏览器无法播放视频的问题

    本文使用MobaXterm(Xshell).Xfce.TightVNC来搭建百度智能云Centos8.2.同时解决解决输入法VNC无法使用的问题.解决浏览器无法播放视频的问题. 目录 一.Window ...

  4. linux服务器安装xfce,Ubuntu 16.10安装Xfce桌面与VNC远程连接

    在远程服务器上运行桌面 通常在远程Linux服务器上工作时,您可以使用ssh终端. 但是,有时您需要在服务器上运行GUI应用程序,并保持运行一段时间. 最近我不得不做类似的事情,所以我设置一个Ubun ...

  5. ubuntuServer+xfce+vnc安装配置教程

    1. Ubuntu server安装 去ubuntu官网下载server版iso文件 安装过程不再赘述,比较简单. ps:推荐将apt仓安装时改为阿里云镜像:https://mirrors.aliyu ...

  6. linux最小安装桌面,Linux工作环境:CentOS7最小安装+Xfce桌面环境

    ref: https://blog.csdn.net/smstong/article/details/44802989 3.1 执行CentOS7 最小安装 去官网下载CentOS-7.0-1406- ...

  7. Centos6.3安装KVM

    Centos6.3安装KVM 一.安装kvm 1 在安装CentOS6.3时可以选择安装好kvm 2 如果未安装好kvm,请按照下列方式安装 [创建本地yum源] 挂载iso文件 mount -o l ...

  8. CentOS6.3安装配置Opennebula3.8.3

    CentOS6.3安装配置Opennebula3.8.3 一.实验环境: 主机名 IP(Static) 系统 配置 用途master 192.168.220.190 CentOS-6.3-x86_64 ...

  9. centos 6.5 安装 oracle 11g,安装Centos6.5 安装Oracle 11g详细过程

    CentOS6.5安装oracle 11G数据库详细过程安装环境 1台l inux虚拟机 CentOS6.564位系统,内存4G,CPU 2核磁盘50G Oracle软件版本l inux.x64 ...

最新文章

  1. win7调整屏幕亮度_番禺区户外LED屏幕求购,区LCD屏幕解决方案
  2. linux驱动常用函数
  3. mysql字段获取当前日期格式_mysql数据库,获取当前日期及格式化
  4. Python 计算机视觉(十二)—— OpenCV 进行图像分割
  5. android开发版本,Android开发之版本统一规范
  6. HDU 5673 Robot 卡特兰数
  7. spring中log4j使用
  8. mysql重置密码报错,吐血整理
  9. Linux 命令(70)—— size 命令
  10. 一篇文章了解数据库系统
  11. 数据字典在mysql中怎么做_如何编写数据字典
  12. 前馈神经网络求解XOR问题
  13. 浙江杭州1040阳光工程叫家里人来投资违不违法?能不能赚到钱?
  14. 《艰难的制造》:4星。基本是关于制造业的报告文学。严重剧透。
  15. 图片大小如何调整到10k?图片压缩到指定大小怎么弄?
  16. LDS,LES,LFS,LGS,LSS指令
  17. php 科试题,科学网—《数据库系统原理与技术》试题库试题与参考答案选编6 - 程学先的博文...
  18. mysql用insert into select 语句插入数据
  19. 云栖科技评论第8期:美国五大科技巨头联手组建“AI联合国”
  20. appium连接夜神

热门文章

  1. JavaWeb学习记录(二十五)——权限管理总结
  2. 方法对象Spring MVC SimpleFormController
  3. web developer tips (38):如何用请求失败记录追踪重写规则
  4. 关于用FOMR提交编码的问题
  5. Educational Codeforces Round 23 E. Choosing The Commander 字典树
  6. 杨辉三角(二项式定理)组合数 【noip 2011/2016 d2t1】
  7. 开发人员必备的 Chrome 扩展
  8. BI报表系统在银行业的应用
  9. Fedora17安装SSH
  10. Asp.net导出Excel报表(解决无网格问题)