2014年3月18日 星期二

Debian 6 Ubuntu用Qemu安装Windows XP、98和Wine运行Windows软件

最新最简单的方法:debian的。直接下载我这里的脚步,然后运行即可:
debian6xp
wget http://www.smzdy.com/wp-content/uploads/2013/02/debian6xp.zip
unzip debian6xp.zip
chmod u+x debian6xp.sh
./debian6xp
然后等吧
PS:2012年10月9日更新,VPS主机是Ubuntu系统的朋友可以采用博主的安装方法:

apt-get update
sudo apt-get install kvm qemu -y
mkdir kvm
cd kvm
wget http://184.82.64.121/winxp.img
cd ../
apt-get install vnc4server -y
vncserver
vncserver -kill :1
chmod +x ~/.vnc/xstartup
echo ‘kvm -hda kvm/winxp.img -m 128M -net nic,model=virtio -net user -redir tcp:3389::3389′>>/root/.vnc/xstartup
wget http://www.zhujis.com/myvps/vncserver
cp vncserver /etc/init.d/
chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults
reboot
一、Linux主机安装Windows XP、98和运行Windows软件
1、Linux系统与Windows系统应该是“水火不容”的,Linux开源免费,Windows独立收费,两个生来就已经注定了要走向相反的路线,没有商量的余地。
2、不过我们却可以利用Qemu这一套由Fabrice Bellard所编写的模拟处理器的软件,将Windows XP和Windows 98强行安装在Linux VPS上。
3、而如果想要在Linux主机上运行Windows软件,则需要利用Windows模拟器Wine,Wine的作用就是让在Linux上安装Windows系统软件。
3、Wine虽然是为Linux定制,但也支持FreeBSD、Mac OS X(Intel版)与Solaris-x86。一些发行版安装WINE时会自动关联EXE程序,这样直接双击可以运行。
二、在Debian 6用Qemu安装Windows XP
1、本次测试的平台是:OVH的免费VPS,操作系统是Debian 6.x 32位。
2、执行下列代码,依次完成安装的是:vnc4server、vncserver、qemu、创立镜像、设置开机启动。

apt-get update
apt-get install vnc4server qemu -y
vncserver
chmod +x ~/.vnc/xstartup
echo 'qemu  -hda winxp.img -m 128M -net nic,model=virtio -net user -redir tcp:3389::3389'>>/root/.vnc/xstartup
wget http://www.zhujis.com/myvps/vncserver
cp vncserver /etc/init.d/
chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults
3、在执行vncserver时会要求输入两次密码。
4、接下来就是下载一个Windows XP的.img磁盘镜像文件,让你的VPS开机利用Qemu加载Windows XP的 .img,从而达到模拟Windows XP系统。
5、执行以下代码,就可以将Windows XP的.img磁盘镜像下载到你的VPS主机的root目录上了,然后重启VPS。
wget http://184.82.64.121/winxp.img
reboot
6、注意上述Windows XP的.img磁盘镜像文件来自abfan.com站长,我已经将该镜像放在我的BurstNET VPS主机上了。用户名:Administrator        密码    abfan.com
7、当然如果你自己手中有好的Windows XP的.img磁盘镜像,也可以直接上传或者下载到你的VPS主机中。

沒有留言:

張貼留言