Install Google Chrome on Linux using wine

| | Comments (43) | TrackBacks (8)
Google launched a few days ago a new web browser, that has some interesting features which might give FF 3, Safari and IE8 a run for their money. Although not yet for Linux, i've put together (following some ubuntuforms posts) a detailed tutorial to help you Install Google Chrome on Linux using wine >= 1.1.3.

1. install wine (follow the official instructions http://www.winehq.org/site/download-deb)

2. make sure wine >= 1.1.3 is installed by entering the following in the terminal
wine --version

3. Download winetricks and install it
wget http://www.kegel.com/wine/winetricks
sudo cp winetricks /usr/sbin

4. Install some dependencies for Chrome (Flash is not mandatory but will allow you to play youtube videos :-))
winetricks riched20 riched30 flash
4.1 Install allfonts (this is optional)
winetricks allfonts

5. Download the Chrome installer
wget http://gpdl.google.com/chrome/install/149.27/chrome_installer.exe

6. Install Chrome (just follow the onscreen instructions and make sure you create a desktop icon)
wine chrome_installer.exe

google-chrome-linux-1.png  7. After the install is finished, you won't be able to use Chrome as it needs a bit more hacking. Just close it and opent with your favorite editor the Google Chrome.desktop icon created on your Desktop. Make sure your add "--new-http --in-process-plugins", without the quotes at the end of this line:

Exec=env WINEPREFIX="/home/mimir/.wine" wine "C:\\windows\\profiles\\mimir\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe"

to make it look like this:
Exec=env WINEPREFIX="/home/mimir/.wine" wine "C:\\windows\\profiles\\mimir\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe" --new-http --in-process-plugins

Save the file!

NOTE: mimir is my username, you will have something like /home/yourusername/.wine

8. Go to desktop and start Google Chrome
google-chrome-linux-2.pngChecking some youtube videos :)

google-chrome-linux-flash.png
For those who are not able to find the Google Chrome.desktop icon on their Desktop, i have attached a copy of mine here. Just save the attached file on your desktop, and edit it using your favorite text editor. Only things you need to replace is my username (mimir) with your own.

HTTPS Note: it seems that the https is not working due to the fact that wine is missing TSL/SSL features, the dlls that should handle that being just stubs at the moment. If you have any information regarding this, please share.

Resources:
Wine appdb page for Chrome
http://ubuntuforums.org/showthread.php?t=908493
Install Google Chrome On Mac OS X using wine

8 TrackBacks

Listed below are links to blogs that reference this entry: Install Google Chrome on Linux using wine.

TrackBack URL for this entry: http://www.myscienceisbetter.info/cgi-bin/mt/mt-tb.cgi/13

虽然 Google 表示 Google Chrome 浏览器 会提供 Linux 平台的版本,但是仍然需要假以时日。如果你身边既没有 Windows 系统,又想要急着体验 Chrome,不妨考虑在 Linux 上通过 Wine 来运行它。 以下是在 L... Read More

wine 으로 즐기는 크롬. 회사 PC에서 테스트 해보니 각 로그인 페이지마다 알 수 없는 오류가 생기긴 하는데.. 쾌속 브라우징은 잘 된다. 일단 뷰어로 써야지 ㄱ- Read More

Soon after they announced, I'd been hoping to take Google Chrome for a test drive. The comic book laid out a lot of interesting things, my favorite being the discussion of separate processes leading to detachable (and "retachable") browser tabs, something Read More

Mi ci è voluta forse un'ora e non mi funziona ancora al 100% (no pagine https), ma insomma. Istruzioni qui... Read More

Xin chào ! from Hướng dẫn cài Google Chrome trên Linux sử dụng Wine on September 5, 2008 7:02 PM

Bài viết của bạn đang được thảo luận trên Linkhay.com . Bạn hãy vào để thảo luận và theo dõi. Read More

É um hack muito legal para colocar o Google Chorme no Linux. Não fica perfeitinho e sem erros, mas já é um início. Este hack não é meu :-). Traduzi do blog MyScience Is Better que estava em inglês. Só funciona na versão 1.1.4 do Wine. 1. Inst... Read More

Cómo instalar a Google Chrome en Linux con WINE from :: Eliax Blog - Para Mentes Curiosas... :: on September 13, 2008 6:43 PM

Si eres usuario de Linux, ya sabes que Google aun no ha sacado la versión de Google Chrome para Linux, pero hoy te enviamos a una guía que te muestra como instalar la versión de Windows directamente sobre Linux, y ejecutarla a través de WINE (el runtime q Read More

Two weeks ago i have posted a tutorial on how to make Google Chrome run on Linux using wine. That gave Linux users the option to test the browser without having to go to a Windows machine, but it was... Read More

43 Comments

Nice work!

but i still have problems with flash player, well it's a start.

No, doesn't open pages. OpenSuse 11.
I'll wait for official version

I cannot find the file to edit to change

Exec=env WINEPREFIX="/home/mimir/.wine" wine "C:\\windows\\profiles\\mimir\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe"


to

Exec=env WINEPREFIX="/home/mimir/.wine" wine "C:\\windows\\profiles\\mimir\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe" --new-http --in-process-plugins

can you give me the path and file name?

did not work for me, but the following worked when called from a commandline
(did all the installation steps before)

export WINEPREFIX="/home/user/.wine"

wine "/home/user/.wine/drive_c/windows/profiles/user/Lokale Einstellungen/Anwendungsdaten/Google/Chrome/Application/chrome.exe" --new-http --in-process-plugins &


(replace "user" with your account)
____________
Ubuntu Hardy 2.6.24-21-generic / nvidia

Great, but https sites do not seem to work. They give the error :

The webpage at https://xyz.com might be temporarily down or it may have moved permanently to a new web address.

I've got it working in Linux now, so thanks, but it doesn't seem to be able to access https pages i.e. Hotmail. I know it worked in windows last night when I used it, but not here at work in linux. Anybody else having this problem? Thanks

Damn, I wish I were as clever as you!

Pity the https doesn't work. I assume that's a wine issue?

Great work! Thanks!

But unfortunatelly it doesn't work for me. Winetricks script aborts with error 1 while download the packages. Then I've downloaded and installed riched30 riched20 and flash manually following the steps in script. So, when I try to install Chrome I get this error:

"fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 0/00/0000, dlt (d/m/y): 0/00/0000"

Any idea?

@Francois Botha: yeah.. it seems to be a wine issue. from what i've read on the wine bugtracking list, the dll files that handle TSL/SSL are just stubs for now. i tried using the dll files from a valid windows install but the Chrome would just crash.

@Marcelo Andrade: are you sure you are running the latest version of wine? check with "wine --version" in a terminal. The error you get seems to be from an older wine release: http://www.winehq.org/pipermail/wine-users/2008-March/031335.html

Sadly, Chrome won't install for me.

Even with your tips, it fails with:

/Users/dav7/ + cd Desktop/
/Users/dav7/Desktop/ + wine ChromeSetup.exe 
fixme:advapi:CheckTokenMembership ((nil) 0x157140 0x33fb50) stub!
fixme:process:SetProcessShutdownParameters (00000280, 00000001): partial stub.
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),6,2,(nil),64,(nil)) - stub!
fixme:exec:SHELL_execute flags ignored: 0x00000400
fixme:advapi:CheckTokenMembership ((nil) 0x157bd8 0x33fb50) stub!
fixme:process:SetProcessShutdownParameters (00000280, 00000001): partial stub.
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),6,2,(nil),64,(nil)) - stub!
fixme:wtsapi:WTSQuerySessionInformationW Stub (nil) 0xffffffff 7 0x33f274 0x33f2
68
fixme:winhttp:WinHttpGetIEProxyConfigForCurrentUser returning no proxy used
fixme:winhttp:WinHttpGetDefaultProxyConfiguration 0x7dd5e530
fixme:winhttp:WinHttpSetOption stub
fixme:winhttp:WinHttpSendRequest ((null), 0, 592, 592): stub
fixme:dbghelp:dump_system_info fill in CPU vendorID and feature set
fixme:msxml:DllCanUnloadNow 
/Users/dav7/Desktop/ + fixme:advapi:CheckTokenMembership ((nil) 0x157a10 0x33fb5
0) stub!
fixme:process:SetProcessShutdownParameters (00000280, 00000001): partial stub.
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),6,2,(nil),64,(nil)) - stub!
fixme:advapi:RegisterEventSourceW ((null),L"Google Update"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000001,0x1587a0,0x0001,0
x00000000,0x33f2dc,(nil)): stub
err:eventlog:ReportEventW L"Google Update has encountered a fatal error.\r\nver=
1.2.131.11;lang=en;id={FAB1C2B2-7A7F-11DD-679C-000D603D104C};is_machine=0;upload
=0;minidump=C:\\windows\\profiles\\dav7\\Local Settings\\Application Data\\Googl
e\\Update\\CrashReports\\943dd7c2-7af3-11dd-679c-000d603d104c.dmp"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
/Users/dav7/Desktop/ + 

Yes, I do use Linux but I renamed /home/ to /Users/ for fun.

Taking a look at the crash dump (a binary file, not exactly something I could put here) reveals the remnants of what appears to be the partially readable remains of an XML transmission to /tools.google.com/service/update2, but from the errors above I'm figuring that for some reason my WINE install isn't transmitting the HTTP request. :(

-dav7

WHOOPS.

I didn't read that you were downloading chrome_installer.exe, not ChromeSetup.exe, haha.

I'm wgetting that now :P

-dav7

I've tried these instructions but all I get are the "Aw, snap" errors when opening chrome and attempting to navigate when using Wine 1.1.3 (XP version set) on Xubuntu. Can you share your Wine settings perhaps?

Just wait few days for official version on Linux, don't be stupid!

Thanks for sharing. :)

cool, thanks

Works greate :)
Thx.

A few days??? The subversion repository shows the linux version is years away! Only the core is ready, any piece of the interface is ready.

Under wine, the flash plugin overlaps into other tabs, and is quite slow. It's a pity, but at least it can be used for debugging purposes.

A few thoughts on getting SSL working...

I'm fairly certain the same DLLs are required for internet explorer. I currently use Internet Explorer via ies4linux which installs to a separate bottle, so I'm working on trying to get Chrome installed into that. I do see that some of the referenced DLLs (e.g., secur32.dll) are already in my IE bottle.

Please link to the Wine appdb page for Chrome, where we're collecting all info about running Chrome on Wine.

hmmm seems i'm stuck with 4., i'm getting a "Permission denied" ?!

@micha: try "sudo chmod a+rx /usr/sbin/winetricks".
That's what i had to do to get it working. When you download that file, it is not automatically marked as an executable.

It seems that JavaScript is faster on wine that on Windows XP. Check SunSpider benchmark.

yo, got this working like a dream.. make sure you "sudo apt-get install cabextract" because it is the only way for the winetricks command to successfully decompress the flash files and other files needed to make this howto work right.. its pretty nice! has some redrawing issues from time to time. but overall not a bad fix for someone who wants chrome NOW! hehe. hurry Google we need this!! best damn browser i've ever used..

@cube: you sir, please read the page you are linking to before calling anyone an idiot:

"Note: There is no working Chromium-based browser on Linux. Although many Chromium submodules build under Linux and a few unit tests pass, all that runs is a command-line "all tests pass" executable."

Thanks for this. It worked great. I tested it in a Hardy VM, and it was very very slow, but it came off without a hitch.

Hopefully chromium will compile natively soon.

-Chase

I'm running wine 1.1.4. When I try to run chrome_installer.exe, I get this:

Code:

ankavlad@ankavlad-desktop:~/Desktop$ wine chrome_installer.exe
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
ankavlad@ankavlad-desktop:~/Desktop$ fixme:shell:DllCanUnloadNow stub

I ran all steps in all tutorials I could find, including installing riched20 and riched30. Any ideas why it still doesn't work?

@vvvladut: i have just tested under wine 1.1.4 and everything works fine.

it might be something to do with you current wine settings. just backup .wine folder to .wine_bak or something and rerun winecfg. this will create a clean set of wine configs (kinda like a windows format does lol...) and you can start from there.

-Romeo

@Dan Kegel: linked the article to Wine appdb page for Chrome.

Thanks for the great work you are doing with winetricks. That should be part of wine by default if you ask me :)

On XUbuntu, when you create the ¨Google Chrome.desktop¨ make sure you use the program /bin/sh,
Click on Use Custom Command:
type /bin/sh
Click on Open

ssh is not functional, damn too good to be true. its a Winblows bug. good work though!

I`am Running on OpenSUSE11 and I`ve add "--new-http --in-process-plugins", without the quotes at the end of this line.
but it`s Didn`t Work! and the Error information is

There Was an Error Luonching Application


[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Google Chrome
Exec=env WINEPREFIX="/home/InU/.wine" wine "C:\\windows\\profiles\\InU\\Local Settings\\Application
Data\\Google\\Chrome\\Application\\chrome.exe --new-http --in-process-plugins
Type=Application
StartupWMClass=Wine
Path=/home/InU/.wine/dosdevices/c:/windows/profiles/InU/Local Settings/Application Data/Google/Chrome/Application
Icon=f13f_chrome.0
GenericName[id_ID]=


someone was able to fix the https problem?

won't work.
only timeout messages or page is not responding.

WOW, reading some of these comments it seems to prove that people do not read intructions, the https thing is my fav! It seems a few people had a problem reading (https does not work, wine issue). Oh well, thouse are a few voting for O_____.

Perhaps Google have changed something, but the installer is no longer called chrome_installer.exe, it is now ChromeSetup.exe. The people with the https problem have perhaps noticed that the installer itself attempts to access an https page and crashes as a result so maybe they are not so stupid after all...?
Just because this process worked for some doesn't mean it still does (and it doesn't).
I guess as a Beta they are continually fiddling with it, though I don't see why they should make it even more difficult for linux users to try it out.

it's funny, the more i use Chrome (for windows), the more unstable it seems to get... crashes a lot more, can't handle sites with flash, hangs every time i close a tab... all that to say, i'm switching back to Firefox

Your download link 404s. This one seems to work:

http://dl.google.com/chrome/install/149.30/chrome_installer.exe

i tested under wine 1.1.4 and everything works fine.
thanks for sharing.

Got this working with wine 1.1.5

I ran into a few snags others before have mentioned that I'll repeat...

After step 3 type:

sudo chmod a+x /usr/sbin/winetricks

After you do that, install cabextract by typing:

sudo apt-get install cabextract

otherwise step 4 won't work.

if anyone is bothered by the default question mark icon for "Google Chrome.desktop" the Chrome icon is:

/home/user/.wine/drive_c/widows/temp/4f77_chrome.0.xpm

... replace "user" with your username

I guess it worries me that this file is in a directory called "temp" so it might be a good idea to copy the file to another location I guess. I'm also not sure if the icon name is stable - again, copying the file might be a good idea.

Nicely done - too bad https doesn't work!

hey guys you might want to check out: http://www.codeweavers.com/services/ports/chromium/
its not perfect but easy to install, and https seems to work ok

It was working all day, we went out, and now I come back and it doesn't work anymore. This is what it looks like. Help? http://i276.photobucket.com/albums/kk31/DukemonDX/Screenshot-37.png I'm going to restart now, if it works, I'll tell you, if not, I won't say anything.

Leave a comment