Chromium (简体中文)

Tango-preferences-desktop-locale.png

Tango-preferences-desktop-locale.png

本页面或部分需要翻译,部分内容可能已经与英文文章脱节。如果您希望贡献翻译,请访问简体中文翻译组

附注: please use the first argument of the template to provide more detailed indications.

翻译状态: 本文是英文页面 Chromium翻译,最后翻译时间:2014-10-14,点击这里可以查看翻译后英文页面的改动。

Chromium 是一款来自Google的开源图形网络浏览器,基于 WebKit渲染引擎。

安装

稳定版的 Chromium 位于 官方源 可以直接安装 chromium

AUR中可以找到

注意: 完整的编译 Chromium-dev 至少要花费编译Linux内核一样长的时间。

AUR中还有包含 Flash Player 的二进制版的google-chrome

Chromium 与 Chrome 比较 可以查看Chromium vs Chrome和版本号的区别。

SSE2 之前的 32 位系统

chromium V35开始, 上游移除了不含 SSE2 的 32 位系统支持。老硬件的用户可以编译 chromium-no-sse2[broken link: package not found] 软件包或者从 Repo-ck 下载预先编译好的版本。注意 SSE2 修复了多个 bug,在使用此 Patch 版本时如果遇到问题,请不要报告 Bug。

配置

设置成默认浏览器

默认浏览器通过xdg-open设置,详情请参阅xdg-open#set the default browserDefault applications

更多信息请阅读 Xdg-open

文件关联

Chromium 依赖xdg-open打开文件和链接,详情参阅xdg-open#Configuration默认程序.

Flash播放器

注意: Chromium 不再支持 Netscape plugin API (NPAPI),flashplugin 已经无法工作。

可以使用 Google Chrome (新Pepper API)提供的 Flash.

可以通过AUR中提供的软件包进行安装:

请在chrome://plugins中启用 /usr/lib/PepperFlash/libpepflashplayer.so.

在Chromium中打开pdf文件

有多种方法可以实现:

libpdf

libpdf是谷歌自己的 pdf 查看工具,可以在 Chromium V37 中包含。如果从 V36 及以前的版本升级,并安装了单独的 libpdf,请删除 软件包 chromium-libpdf[broken link: package not found]libpdf-dev[broken link: package not found] .

启动 Chromium,打开 about:plugins,可以看到 "Chrome PDF Viewer",选择启用。

PDF.js

请参考 Browser plugins#PDF.js

证书管理

Chromium 使用 NSS 管理证书,可以通过SettingsShow advanced settings...Manage Certificates... 设置。

疑难解答

杂音

如果在使用 HDMI 的时候出现杂音,可以试下增大声音缓存的大小:

$ chromium --audio-buffer-size=2048

Font rendering issues in PDF plugin

To fix the font rendering in some PDFs one has to install the ttf-liberation package, otherwise the substituted font causes text to run into other text. This was reported on the chromium bug tracker by an Arch user.

Force 3D acceleration in Flash Player and the browser

Warning: Disabling the rendering list may cause unstable behaviour, including crashes of the host. See the bug reports in chrome://gpu.

First, make sure you have all the required packages as explained in VDPAU. Then, to force 3D rendering enable the flag "Override software rendering list" in chrome://flags. Check if it is working in chrome://gpu. This may also alleviate tearing issues with the radeon driver.

mailto links opened in new tab

If you do not use any DE, you might encounter the issue that all mailto links are opened in a new browser instance instead of your default email client. In this case you might need to use the following workaround by modifying /usr/bin/xdg-email which is called by Chromium:

 # sed 's/open_generic "${mailto}"/open_gnome "${mailto}"/' -i /usr/bin/xdg-email

This patch needs to be applied on every update of xdg-utils. If you want a persisting solution, you can install xdg-utils-xdg-email-gnome[broken link: package not found] or xdg-utils-mimeo from the AUR.

代理设置

许多情况下代理设置无法正常工作,尤其是在 KDE 界面中。解决方法是使用Chromium的命令行选项例如--proxy-pac-url--proxy-server进行代理设置。

WebGL

有时 Chromium 会在某些显卡配置中禁用 WebGL,可以通过URL中输入about:flags,然后启用 WebGL. 通过命令行 --enable-webgl 选项也能启用它。

有可能 Chromium 把你的显卡列入了黑名单,如果是这样,可以通过--ignore-gpu-blacklist选项禁用黑名单。或者在about:flags 中启用 Override software rendering list.

Google Play and Flash

DRM content on Flash still requires HAL to play. This is readily apparent with Google Play Movies. If one attempts to play a Google Play movie without HAL, they will receive a YouTube-like screen, but the video will not play. See Flash DRM content for more information.

Force 3D acceleration in Pepper Flash Player and i.g. the browser with radeon driver

First, make sure you have all the required packages as explained in VDPAU. Then, to force 3D rendering enable the flag "Override software rendering list" in chrome://flags. Check if it is working in chrome://gpu.

speech-dispatcher dumps core

Note: This was reported as bug FS#38456.

Chromium installs speech-dispatcher as a dependency. The latter is an independent layer for speech synthesis interface and by default uses festival as its back end. If you are frequently receiving core dumps, it is likely caused by not having installed festival. To resolve the error message, either install festival or change the back end used by speech-dispatcher.

资源