本安装包本站已在centos5.5 32bit上安装成功,软装不成功可能与你之前安装的有软件上冲突之类的,请重装系统重试!
安装过程:
将上面1行复制,粘贴到您的linux ssh控制台里,回车,全自动安装,等待5-30分钟即可完成!
出现如下图时,按回车就行,表明你已经安装成功
wget http://wty.name/linux/sh/xwindow.sh;sh ./xwindow.sh;
host1free提供的免费VPS配置如下:
内存:128M
硬盘:10G
虚拟技术:OpenVZ
swap:640M
流量:不限
独立ip:1 ipv4
操作系统:CentOs 5,CentOs 6,Debian 5,Debian 6.
申请教程请到网上寻找!
【Tips】:整个安装过程非常缓慢长则需要4-6个小时,所以建议使用Screen命来来安装
>>>>SSH远程会话管理工具 - Screen使用教程<<<<
安装的Wine版本是1.4,下面开始安装过程。
首先去Wine官网下载wine最新版本。
[root@45664.com ~]# wget http://prdownloads.sourceforge.net/wine/wine-1.4.tar.bz2 【回车】
[root@45664.com ~]# tar jxvf wine-1.4.tar.bz2【回车】
然后进入wine-1.4文件夹
[root@45664.com ~]# cd wine-1.4【回车】
然后执行configure
[root@45664.com wine-1.4]# ./configure【回车】
系统将对系统环境进行检查。
这是会出现一个错误,提示没有安装C编译器,安装C编译器GCC*
[root@45664.com wine-1.4]# yum install gcc* 【回车】
然后继续运行configure
[root@45664.com wine-1.4]# ./configure【回车】
提示第二个错误,没有flex版本 运行Yum安装
[root@45664.com wine-1.4]# yum install flex*【回车】
提示安装成功
继续configure
[root@45664.com wine-1.4]# ./configure 【回车】
此处提示Flex版本过低 检查Flex版本
[root@45664.com wine-1.4]# flex --version【回车】
提示Flex版本是2.5.4 低于Wine要求的2.5.33 而用yum update flex的结果是只有这个版本,所以不得不去官方下载。
下载地址:http://flex.sourceforge.net/,找到最新的版本,下载flex 2.5.35
[root@45664.com ~]# wget http://cdnetworks-kr-1.dl.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2【回车】
然后解压
[root@45664.com ~]# tar jxvf flex-2.5.35.tar.bz2【回车】
进入flex-2.5.35目录
[root@45664.com ~]# cd flex-2.5.35【回车】
然后检查configure
[root@45664.com flex-2.5.35]# ./configure 【回车】
然后编译安装
[root@45664.com flex-2.3.35]# make 【回车】
[root@45664.com flex-2.3.35]# make install 【回车】
进入Wine目录
[root@45664.com flex-2.3.35]# cd ~ 【回车】
[root@localhost ~]# cd wine-1.4 【回车】
继续Configure
[root@45664.com wine-1.4]# ./configure
提示缺少Bison组件 安装Bison组件
[root@45664.com wine-1.4]# yum install bison*
Bison安装完成之后继续检查Configure
[root@45664.com wine-1.4]# ./configure
此时提示缺少X Development组件 安装X Development组件
[root@45664.com wine-1.4]# yum -y groupinstall "X Software Development"
安装完成之后继续检查Configure
[root@45664.com wine-1.4]# ./configure
此时Configure检查完成之后即可开始编译安装
[root@45664.com wine-1.4]# make
[root@45664.com wine-1.4]# make install
前面的步骤都很快,大约30分钟,最后两个步骤非常非常慢。。建议使用Screen命令来安装,因为编译时间太长以免出现短线等故障而影响安装。Screen命令家教程见,SSH远程会话管理工具 - Screen使用教程。
等上几个小时,安装过程就结束了。
yum groupinstall xfce-4.4
目前4.8已经出来了,但是貌似yum源里面没有还是用这个吧,有知道的记得通知我哦!
然后是安装vnc,来进行远程桌面控制
yum install vnc-server
安装好后,修改vncsercwer的配置文件,路径为/etc/sysconfig/vncservers,会用vi的就用vi编辑
vi /etc/sysconfig/vncservers 不会的这个就略去了,直接用WINSCP来编辑就好了!
在后面加上
| 1 2 | VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600" |
一定要注意双引号要是半角的,否则配置不生效,不能加开机自动运行!
接下来是设置vnc的密码
vncpasswd
然后两次输入密码就好了!。接下来启动vncserver
vncserver
然后再杀掉
vncserver -kill:1
这样就又生成了一个配置文件,然后编辑它,路径是/root/.vnc/xstartup
同样使用vi或者WINSCP都可以
把xstartup里面的内容替换成如下内容就ok了
#!/bin/sh
/usr/bin/startxfce4
wine C:\\Program\ Files\\Gomez\\GomezPEER\\bin\\GomezPEER.exe
接下来给xstartup加上权限
chmod +x ~/.vnc/xstartup
接着设置vncserver开机启动
chkconfig vncserver on
如此VPS的桌面环境和远程控制就安装好了!
接下来启动vnc然后远程访问下试试
vncserver
本地下载这个软件
vncviewer.exe
然后运行,输入你VPS的IP:1一定记住后面有个:1
是不是可以访问了。
安装wine
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install wine
把windows/system32下的MFC42.dll msxml.dll msvcp60.dll riched20.dll riched32.dll 这几个文件复制到 ~/.wine/drive_c/windows/system32里,
再输入命令:winecfg (我安装的时候重启了下才可以运行)
在弹出的wine设置中选择函数库,将msxml.dll riched20.dll riched32.dll 设置成原生优于内建(libiaries下选择对应的DLL然后点ADD ),确定退出
还有一点得注意,做完这些以后运行 Windows 程序时,SELinux 可能会弹出阻止窗口。我们用下面的方法禁用 SELinux:
用文本编辑器编辑 /etc/sysconfig/selinux 文件,把 SELINUX=enforcing 变为 SELINUX=disabled,关闭 SELinux,存盘退出,重启系统。
运行 Windows 程序的方法:
拷贝 Windows 程序(例如 Ueit32.exe)到 ContOS 下的某文件夹下,运行命令:
wine Ueit32.exe