Xfce/Guide

From Gentoo Wiki
< Xfce
Jump to:navigation Jump to:search
This page is a translated version of the page Xfce/Guide and the translation is 76% complete.
Resources
This article has some todo items:
  • Deduplicate this page with the main Xfce article.

このガイドは高速で軽量でフル機能のデスクトップ環境である Xfce への包括的なイントロダクションを提供します。

はじめに

Xfce デスクトップ環境

Xfce は Unix 系オペレーティングシステム向けの高速で軽量なデスクトップ環境です。生産性を高めるために設計されており、Freedesktop の仕様に準拠しながらも高い構成可能性を持っています。

より重たいデスクトップ環境、例えば GnomeKDE とは異なり、Xfce ははるかに少ないシステム資源を使用します。さらに、より高いモジュール性とより少ない依存関係を提供します。ハードディスクの使用量はより少なく、インストールにかかる時間もより短いです。

このガイドでは、最小限の Xfce 環境をインストールして設定する方法を示すだけでなく、軽量で高速でモジュラーな、Xfce の哲学に則ったフル機能のデスクトップを構築するための選択肢についても見ていきます。

このガイドの最後の部分では、新しい Xfce リリースにアップグレードした後で実行するいくつかのコマンドを示していますので、古いバージョンからアップグレードしたときはこれに従うのを忘れないでください。

インストール

基本

まずは Xorg ガイドに従って Xorg が構成されていることを確認してください。これらのステップが完了していない場合は、このガイドの以降の部分は想定された通りに適用されないでしょう。

最高の体験を得るためには、XFCE が必要とする共通設定の多くを含む、基本の desktop プロファイルを選択するべきです。

amd64 アーキテクチャでの例:

root #eselect profile list
...
  [12]  default/linux/amd64/17.1 (stable)
  [13]  default/linux/amd64/17.1/selinux (stable)
  [14]  default/linux/amd64/17.1/hardened (stable)
  [15]  default/linux/amd64/17.1/hardened/selinux (stable)
  [16]  default/linux/amd64/17.1/desktop (stable)
  [17]  default/linux/amd64/17.1/desktop/gnome (stable)
  [18]  default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [19]  default/linux/amd64/17.1/desktop/plasma (stable)
  [20]  default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [21]  default/linux/amd64/17.1/developer (stable)
  [22]  default/linux/amd64/17.1/no-multilib (stable)
  [23]  default/linux/amd64/17.1/no-multilib/hardened (stable)
  [24]  default/linux/amd64/17.1/no-multilib/hardened/selinux (stable)
  [25]  default/linux/amd64/17.1/systemd (stable)
...

Emerge

USE 変数を /etc/portage/make.conf で設定したら、Xfce をインストールしましょう。

root #emerge --ask xfce-base/xfce4-meta

望むなら、一般ユーザがカメラや光学ドライブや USB スティックなどのデバイスをマウントして使用できるように、ユーザを cdromcdrwusb グループに追加してください。

root #for x in cdrom cdrw usb ; do gpasswd -a username $x ; done

システムの環境変数を更新してください:

root #env-update && . /etc/profile

新しいデスクトップ環境で作業を続けるためには、グラフィカル端末が必要になるでしょう。x11-terms/xfce4-terminal パッケージは良い選択肢です。Xfce に特化して作られています。次のようにして端末をインストールしてください:

root #emerge --ask x11-terms/xfce4-terminal

設定

Xfce の始動

これで Xfce がインストールされたので、次は startx コマンドを実行したときにデフォルトデスクトップ環境となるように設定してください。root のシェルから抜け、一般ユーザとしてログオンしてください。

user $echo "exec startxfce4" > ~/.xinitrc

それでは、startx を実行してグラフィカル環境を開始してください:

user $startx


セッションとスタートアップ

After installing popular applications such as k3b, nautilus, kmail, evolution, etc., then make sure that Xfce launches the appropriate services for these at startup. Navigate to Menu --> Settings --> Sessions & Startup. On the Advanced tab, select the appropriate checkbox. This might slightly increase Xfce startup times, but it decreases load times for certain applications.

Xfce has the ability to save the session settings and running programs from the General tab in the Sessions & Startup menu. They can be automatically saved on logout, or Xfce can ask each time. This feature is particularly useful for undoing configuration mistakes. Accidentally killed a panel? Just select "No" when prompted to save the current session, and the next time Xfce is started, the old desktop is restored. Want to automatically launch the open web browser, terminal, and email client on the next login? Just save the session before logging out.

追加のアプリケーション

すべてのユーザは、次の便利なアプリケーションとユーティリティの一部または全部をインストールすることを考慮すべきです:

root #emerge --ask xfce-extra/xfce4-pulseaudio-plugin xfce-extra/xfce4-taskmanager x11-themes/xfwm4-themes app-editors/mousepad xfce-base/xfce4-power-manager x11-terms/xfce4-terminal xfce-base/thunar
パッケージ 説明
xfce-extra/xfce4-pulseaudio-plugin Pulseaudio ボリュームコントロール (media-sound/volumeicon などの同様のトレイオーディオミキサーをインストールすることもできます)。
xfce-extra/xfce4-taskmanager 実行中のすべてのプログラムのリストと、各プログラムの CPU とメモリ消費を表示します。項目を右クリックすることで、挙動のおかしいアプリケーションをキルしたり、ポーズおよび再開したり、実行時優先度を変更してシステムのリソースをどれだけ要求するかを微調整することができます。
x11-themes/xfwm4-themes 複数のウィンドウマネージャテーマを追加します。デスクトップに丸みを付けるために x11-themes/tango-icon-theme などの追加のアイコンテーマも利用できます。
app-editors/mousepad 非常に高速に起動する最小機能のテキストエディタです。
xfce-base/xfce4-power-manager 電力使用を監視、管理するためのアプリケーション。これはラップトップでは特に重要です! 電力マネージャを使用することで、スクリーンの輝度を調節したり、最大パフォーマンスまたは省電力のモードを選択したり、蓋が閉じられたときやボタンが押されたときに実行されるアクション (ハイバネート、サスペンド、シャットダウン) を構成したりすることができます。xfce4-power-manager はバッテリが一定のレベルになったときに警告を表示したり、マシンの電源を切ったりするように設定することもできます。このアプリケーションには、バッテリ/充電ステータスを表示するものや、輝度調整を表示するものなど、いくつかの便利なパネルプラグインが付属しています。
x11-terms/xfce4-terminal 必要最小限の xterm よりもはるかに高度にカスタマイズ可能で便利な、X11 端末エミュレータ。xfce4-terminal は Unicode テキスト、カラースキーム、疑似透過ウィンドウ、そして Xfce の組み込みコンポジタを利用してハードウェアアクセラレーションされた透過ウィンドウ、すべてに特別な設定なしに対応しています。パネルの端末ランチャのデフォルトアクションが xterm ではなく /usr/bin/Terminal を実行することだけ確認しておいてください。ランチャを右クリックし、プロパティを選択してコマンドを編集してください。
xfce-base/thunar Xfce のデフォルトのグラフィカルファイルマネージャ。高速でありながらかなり強力で、さらなる機能性のために複数のプラグインをサポートすることができます。プラグインは単に emerge でインストールすることができます。これらのプラグインの一例として、右クリックメニューを使用してアーカイブファイルを作成および展開できる xfce-extra/thunar-archive-plugin があります。これは xarchiverfile-roller などのグラフィカルなアーカイブアプリケーションへの手軽なフロントエンドを提供しています。
xfce-base/tumbler 画像やフォントなどの特定の種類のファイルを、Thunar 内でプレビューできるようにします。
xfce-base/thunar-volman リムーバブルメディアとドライブを自動的に管理します。
media-video/parole GStreamer を使用するシンプルな Xfce4 メディアプレイヤー。

デスクトップアプリケーション

app-editors/mousepad は基本的なテキストエディタとしては十分に良いものですが、フル機能のワードプロセッサが必要だが LibreOffice ほどの肥大したパッケージは欲しくないというときには、app-office/abiword を emerge してみてください。AbiWord はより軽量かつ高速で、産業界標準のドキュメントタイプと完全に相互運用可能です。

mail-client/thunderbirdmail-client/evolution ほどに依存を要求しない、良い感じの e メールクライアント/ニュースリーダーが必要ですか? mail-client/claws-mail を emerge してみください。

For internet chat needs, net-irc/irssi is an excellent, tiny, incredibly configurable IRC client that runs in a terminal. For a compact all-in-one client that handles nearly all chat protocols, consider net-im/pidgin.

For movie and music players, look no further than media-video/mplayer and media-sound/exaile. They can play most every media format available quite nicely.

Finally, nearly all graphical web browsers require more resources than most of the other desktop applications. Still, Firefox and Falkon are always good choices. Alternatively, Opera can be quite fast. However, Opera is not available on as many processor architectures as Firefox.

root #emerge --ask www-client/firefox
root #emerge --ask www-client/falkon
root #emerge --ask www-client/opera

パネルプラグイン

There are many plugins for the panel available in Portage; see with emerge --search xfce. Though for the most part their names are self-explanatory, a few deserve extra attention, as they are quite helpful. To use them, simply emerge them. They'll be added to the list of available items in the Add New Items menu shown when right-clicking on the panel.

パッケージ 説明
xfce-extra/xfce4-battery-plugin Perfect for laptop users. It displays battery percentage, time remaining, power source (AC or battery), fan status, warnings, and can even be configured to execute commands at certain power levels. This feature can be used to put the laptop into hibernate mode when the battery is almost exhausted.
xfce-extra/xfce4-verve-plugin A small command line embedded into the panel. It is quicker than opening up a terminal to run a command.
xfce-extra/xfce4-mount-plugin Provides a handy method of mounting devices listed in /etc/fstab just by clicking the mouse.
xfce-extra/xfce4-sensors-plugin Lets users monitor hardware sensors, such as CPU temperature, fan RPM, hard drive temp, motherboard voltage, and more.

グラフィカルログイン

Remember when the startxfce4 line was added to the ~/.xinitrc file? To get into the desktop, type startx after logging in. To have a GUI login instead, use a display manager that will automatically start Xfce after booting.

First, make sure Xfce loads at boot:

root #rc-update add dbus default
root #rc-update add display-manager default

Now, pick a display manager from the list and configure it to start in /etc/conf.d/display-manager.

Most display managers can automatically start the Xfce session by adding XSESSION="Xfce4" to /etc/env.d/90xsession:

root #echo XSESSION=\"Xfce4\" > /etc/env.d/90xsession
root #env-update && source /etc/profile

Beautifying the desktop

A little customization of the desktop's appearance can go a long way. Xfce has all the options one would expect from a modern desktop environment, font anti-aliasing settings, color schemes, dozens of window decorations, themes, and more. If these are not enough, it is easy to install third-party themes, icon sets, mouse cursor themes, and wallpapers.

A selection of nice Gentoo wallpapers in a variety of resolutions are hosted on the Gentoo website. When looking for icon sets and complete Xfce themes, Xfce-Look has a huge collection. The important thing to remember about any third-party eye candy is that it will usually need to be unpacked and then installed to the proper directory. Icon sets go in /usr/share/icons/, and themes go to /usr/share/themes/; use these directories for all users to be able to access themes and icon sets. Individual users can install themes and icon sets to their home directories in ~/.themes/ and ~/.icons/.

Finally, Xfce has its own built-in compositor to manage window transparency. This option can be found in Menu --> Settings --> Window Manager. For best performance, a graphics card with drivers that support hardware-accelerated rendering is required. Make sure the xfce-base/xfwm4 package has been emerged with the xcomposite USE flag.

This is the bare minimum configuration required for Xfce and Xorg-X11. However, setting up hardware-accelerated rendering depends on the system's graphics card, and is beyond the scope of this guide. Various articles exist in our wiki that assist in the setup of hardware-accelerated rendering for various graphic cards.

Once finished setting up a beautiful Xfce desktop, the next thing to do is take a screenshot of it to share with other folks! Install xfce-extra/xfce4-screenshooter and post the pictures somewhere for all to admire.

アップグレード

Xfce を以前のメジャーバージョン (4.x) からアップグレードするときは、キャッシュされた古いセッションとプロファイルを削除する必要があるでしょう。これらは新しいリリースと互換性がありません。キャッシュされている非互換の古いセッションとプロファイルを削除するために、各ユーザごとに次のコマンドを実行してください:

root #rm -r ~/.cache/sessions
root #rm -r ~/.config/xfce*
root #rm -r ~/.config/Thunar

ユーザは新しいかがやくインターフェースに迎え入れられるでしょうが、個人設定の多くを失うことになるでしょう。残念ながら、設定の移行方法はありません……。

外部資料

Xfce の設定と使用に関してさらなる助けが必要ですか? より軽量なアプリケーションの提案が必要ですか? 以下を確認してみてください:

  • The Gentoo forums
  • Xfce によって提供されてインストールされる、ヘルプファイルとその他のドキュメンテーション: /usr/share/xfce4/doc/C/index.html。ブラウザで開くだけで読み始めることができます。ヘルプファイルで詳細に解説されている「隠し」設定オプションもあります。

This page is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: nightmorph
They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page.