感谢支持
我们一直在努力

CentOS下安装轻量级桌面Fluxbox + VNC

我现在用的是一个内存256,512突发的小鸡,安装GNOME KDE有点吃不消,所以装了个轻量级的桌面,即Fluxbox

第一步:重转系统,我选用的是CentOS 5


第二步:

yum install yum-priorities     #安装yum-priorities


第三步:



vi /etc/yum.repos.d/CentOS-Base.repo  #把红色部分加到每个段落的最后

[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#released updates
[updates]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever – Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=2 


第四步:


wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm  #下载RpmForge,32位系统选这个
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm   #64位系统选这个


第五步:


rpm  -import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt    #导入Key

第六步:


rpm -K rpmforge-release-0.5.1-1.el5.rf.i386.rpm #验证包的有效性,32位系统选这个
rpm -K rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm #64位系统选这个


第七步:


rpm -i rpmforge-release-0.5.1-1.el5.rf.i386.rpm #安装RpmForge,32位系统选这个
rpm -i rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm #64位系统选这个


第八步:



vi /etc/yum.repos.d/rpmforge.repo  #最后面加上 priority=11(红色部分)
### Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
### URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
baseurl = http://apt.sw.be/RedHat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=11


第九步:


yum -y install vnc vnc-server firefox x11-xorg  #安装VNC


第十步:


vncserver   #首次欲行VNC,设置下密码第


十一步:


pkill -9 vnc   #终止VNC进程
rm -rf /tmp/.X1*   #清除下临时文件
vi /root/.vnc/xstartup  #把最后的那行 “twm &”修改成 “exec /usr/bin/fluxbox”,保存退出

第十二步:


vncserver   #启动VNC服务最后就是如何登陆远程桌面了,要用到RealVNC viewer这个软件,见本文最后的下载地址。


安装后启动程序


CentOS下安装轻量级桌面Fluxbox + VNC


RealVNC viewer


服务器地址那填写:你的主机名:1,然后确定,输入安装VNC时设置的密码,就能看到桌面了


CentOS下安装轻量级桌面Fluxbox + VNC


最重要的是资源使用情况


——————-分割线——————-


RealVNC viewer下载地址


FTP地址:ftp://www.6688.cc/


用户名:www.linuxidc.net


密码:www.6688.cc


在2010年LinuxIDC.com\7月\CentOS下安装轻量级桌面Fluxbox + VNC相关工具RealVNC viewer\

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS下安装轻量级桌面Fluxbox + VNC
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏