Chromium (简体中文)
Chromium 是一款来自Google的开源图形网络浏览器,基于 WebKit渲染引擎。
安装
稳定版的 Chromium 位于 官方源 可以直接安装 chromium。
AUR中可以找到
- chromium-devAUR - 开发版本
- chromium-browser-binAUR[broken link: archived in aur-mirror] - 二进制版本
AUR中还有包含 Flash Player 的二进制版的google-chromeAUR 和
在Chromium 与 Chrome 比较 可以查看Chromium vs Chrome和版本号的区别。
配置
设置成默认浏览器
默认浏览器通过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-flashAUR - 稳定版本
- chromium-pepper-flash-devAUR - 开发版本
请在chrome://plugins
中启用 /usr/lib/PepperFlash/libpepflashplayer.so
.
在Chromium中打开pdf文件
有多种方法可以实现:
libpdf
libpdf是谷歌自己的 pdf 查看工具,从 Chromium V37 中开始包含。
PDF.js
证书管理
Chromium 使用 NSS 管理证书,可以通过Settings
→ Show advanced settings...
→ Manage Certificates...
设置。
疑难解答
杂音
如果在使用 HDMI 的时候出现杂音,可以试下增大声音缓存的大小:
$ chromium --audio-buffer-size=2048
卡顿
chrome 及 chromium 在中文环境下使用可能会极其卡顿,原因在于Google Chrome UI 的缺省字体继承自 Gnome 桌面设置(而不是 chrome://settings/), 地址栏弹出框的缺省字体也是继承自 Gnome 桌面设置。字体名称的标准名称和本地化名称不相同导致了 Skia 缓存无法命中。Skia 缓存无法命中导致 fontconfig 频繁被调用, 而该调用非常消耗 CPU 时间,导致chrome卡顿。 所以解决方法就是不要使用文泉驿系列字体,使用非中文名字的字体。
PDF 插件中的字体问题
安装软件包 ttf-liberation 可以解决一些 PDF 的字体显示问题,不然的话替代字体会显示成其他的文字。reported on the chromium bug 报告.
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.
代理设置
许多情况下代理设置无法正常工作,尤其是在 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
.
Asian characters not displayed with language set to English
This is a known issue with all Chromium versions up to v42. [1] As a workaround, install fonts separately: ttf-arphic-ukai, ttf-arphic-uming and ttf-unfonts-coreAUR[broken link: archived in aur-mirror]. [2]