Chromium (简体中文)
Chromium 是一款来自Google的开源图形网络浏览器,基于 WebKit渲染引擎。
Contents
- 1 安装
- 2 配置
-
3 疑难解答
- 3.1 杂音
- 3.2 Font rendering issues in PDF plugin
- 3.3 Force 3D acceleration in Flash Player and the browser
- 3.4 mailto links opened in new tab
- 3.5 代理设置
- 3.6 WebGL
- 3.7 Google Play and Flash
- 3.8 Force 3D acceleration in Pepper Flash Player and i.g. the browser with radeon driver
- 3.9 speech-dispatcher dumps core
- 4 资源
安装
稳定版的 Chromium 位于 官方源 可以直接安装 chromium。
AUR中可以找到
- chromium-dev - 开发版本
- chromium-browser-bin - 二进制版本
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 browser 和 Default applications。
更多信息请阅读 Xdg-open。
文件关联
Chromium 依赖xdg-open打开文件和链接,详情参阅xdg-open#Configuration和默认程序.
Flash播放器
可以使用 Google Chrome (新Pepper API)提供的 Flash.
可以通过AUR中提供的软件包进行安装:
- chromium-pepper-flash - 稳定版本
- chromium-pepper-flash-dev - 开发版本
请在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
证书管理
Chromium 使用 NSS 管理证书,可以通过Settings
→ Show 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
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
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.