Ubuntu中通过Wine安装Google Chrome


Google Chrome是Google开发的一个开源的Web浏览器。chrome也既有浏览器图形用户界面的意思。而Chromium则是Chrome的开源版本,基于BSD协议发布。

注:Wine 1.1.4已经发布,包含了运行Chrome的补丁。你必须首先确定Wine 1.1.4及以上的版本已经安装。

Ubuntu中安装最新版本的wine
新的wine版本每两周发布一次;而在Ubuntu 8.04软件仓库中的wine已经过时了。为了更好的运行好Windows程序,最好使用最新版本的Wine.

使用GUI
打开 系统->管理->软件源,然后点第三方软件标签。点增加然后贴上WINE的官方资源库:

deb http://wine.budgetdedicated.com/apt hardy main

从新载入资源库,然后在包管理器中安装wine。以后有新版本wine发布,你应该可以在Ubuntu资源库中发现它。

使用命令行
首先需要编辑/etc/apt/sources.list:

sudo gedit /etc/apt/sources.list

加入以下几行,保存退出:

deb http://wine.budgetdedicated.com/apt hardy main

更新资源库:

sudo aptitude update

安装wine:

sudo aptitude install wine

检查Wine版本:

wine ––version

必须确保wine的版本是1.1.4及以上

Wine并不支持Google的网络安装版的Chrome,须使用独立安装包。从下面这个地址下载:

http://gpdl.google.com/chrome/install/149.27/chrome_installer.exe (已经过期)


http://cache.pack.google.com/chrome/install/152.1/chrome_installer.exe

打开终端,进入Chrome安装包目录,执行:

wine chrome_installer.exe

安装完成后打开Chrome,Chrome打开了,但是会有问题。现在关闭Chrome。

加入参数运行Chrome:

wine ~/.wine/drive_c/windows/profiles/$USER/Local\ Settings/Application\ Data/Google/Chrome/Application/chrome.exe ––new-http ––in-process-plugins

现在Chrome可以在Ubuntu上正常工作了,但是字体不是很好看,不过可以通过winetricks来改进。

下载winetricks:

wget http://www.kegel.com/wine/winetricks

加入执行权限:

chmod +x winetricks

./winetricks corefonts tahoma

相关内容