https://wiki.archlinux.org/api.php?action=feedcontributions&user=Shinnya&feedformat=atomArchWiki - User contributions [en]2024-03-29T10:02:42ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129310NVIDIA (日本語)2011-01-29T04:36:35Z<p>Shinnya: /* 設定 */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> 変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(デフォルトの -ARCH kernel とカスタムカーネルが並ぶように) PKGBUILD の <code>"pkgname=nvidia"</code> 変数を一意な識別子、例えば nvidia-2622 や nvidia-custom へと変更します。こうすることで、カスタム NVIDIA モジュールは異なるパッケージ名となり、オリジナルのパッケージを上書きしないようになるので、両方のカーネルが NVIDIA モジュールを使えるようにできます。<br />
<br />
それからこうします:<br />
$ makepkg -ci<br />
{{Codeline|-c}} オプションは、NVIDIA ドライバのビルドが終わった後にファイルを片付けるように makepkg に伝え、また、 {{Codeline|-i}} は makepkg が自動で pacman を起動して出来あがったパッケージをインストールするように指示するものです。<br />
<br />
==設定==<br />
おそらく、ドライバをインストールした後に Xorg server の設定ファイルを作成する必要はないかもしれません。Xorg server が設定ファイルなしできちんと機能してるかどうか調べるために、[[Xorg#Running Xorg| a test]] を実行することができます。しかし、様々な設定を調節するために、{{Filename|/etc/X11/xorg.conf}} を作成することが要求されるかもしれません。この設定は NVIDIA Xorg 設定ツールで生成できますし、あるいは、手動でも作成できます。手動で作成された場合、最小の設定 ([[Xorg]] server に基本的なオプションだけを与えるという意味です。) となるか、自動検知されたか事前に設定された Xorg のオプションを迂回できる [[Xorg#Manual configuration|設定]]を含みます。<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129309NVIDIA (日本語)2011-01-29T04:20:43Z<p>Shinnya: /* カスタム kernel の場合のインストール方法 */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> 変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(デフォルトの -ARCH kernel とカスタムカーネルが並ぶように) PKGBUILD の <code>"pkgname=nvidia"</code> 変数を一意な識別子、例えば nvidia-2622 や nvidia-custom へと変更します。こうすることで、カスタム NVIDIA モジュールは異なるパッケージ名となり、オリジナルのパッケージを上書きしないようになるので、両方のカーネルが NVIDIA モジュールを使えるようにできます。<br />
<br />
それからこうします:<br />
$ makepkg -ci<br />
{{Codeline|-c}} オプションは、NVIDIA ドライバのビルドが終わった後にファイルを片付けるように makepkg に伝え、また、 {{Codeline|-i}} は makepkg が自動で pacman を起動して出来あがったパッケージをインストールするように指示するものです。<br />
<br />
==設定==<br />
おそらく、ドライバをインストールした後に Xorg server の設定ファイルを作成する必要はないかもしれません。Xorg server が設定ファイルなしできちんと機能してるかどうか調べるために、[[Xorg#Running Xorg| a test]] を実行することができます。しかし、様々な設定を調節するために、{{Filename|/etc/X11/xorg.conf}} を作成することが要求されるかもしれません。この設定は NVIDIA Xorg 設定ツールで生成できますし、あるいは、手動でも作成できます。手動で作成された場合、最小の設定 ([[Xorg]] server に基本的なオプションだけを与えるという意味です。) となり、<br />
/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129304NVIDIA (日本語)2011-01-29T03:38:46Z<p>Shinnya: /* Configuring */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> 変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(デフォルトの -ARCH kernel とカスタムカーネルが並ぶように) PKGBUILD の <code>"pkgname=nvidia"</code> 変数を一意な識別子、例えば nvidia-2622 や nvidia-custom へと変更します。こうすることで、カスタム NVIDIA モジュールは異なるパッケージ名となり、オリジナルのパッケージを上書きしないようになるので、両方のカーネルが NVIDIA モジュールを使えるようにできます。<br />
<br />
それからこうします:<br />
$ makepkg -ci<br />
{{Codeline|-c}} オプションは、NVIDIA ドライバのビルドが終わった後にファイルを片付けるように makepkg に伝え、また、 {{Codeline|-i}} は、 makepkg が自動で pacman を起動して出来あがったパッケージをインストールするように指示するものです。<br />
<br />
==設定==<br />
おそらく、ドライバをインストールした後に Xorg server の設定ファイルを作成する必要はないかもしれません。Xorg server が設定ファイルなしできちんと機能してるかどうか調べるために、[[Xorg#Running Xorg| a test]] を実行することができます。しかし、様々な設定を調節するために、{{Filename|/etc/X11/xorg.conf}} を作成することが要求されるかもしれません。この設定は NVIDIA Xorg 設定ツールで生成できますし、あるいは、手動でも作成できます。手動で作成された場合、最小の設定 ([[Xorg]] server に基本的なオプションだけを与えるという意味です。) となり、<br />
/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129300NVIDIA (日本語)2011-01-29T03:12:57Z<p>Shinnya: /* カスタム kernel の場合のインストール方法 */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> 変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(デフォルトの -ARCH kernel とカスタムカーネルが並ぶように) PKGBUILD の <code>"pkgname=nvidia"</code> 変数を一意な識別子、例えば nvidia-2622 や nvidia-custom へと変更します。こうすることで、カスタム NVIDIA モジュールは異なるパッケージ名となり、オリジナルのパッケージを上書きしないようになるので、両方のカーネルが NVIDIA モジュールを使えるようにできます。<br />
<br />
それからこうします:<br />
$ makepkg -ci<br />
{{Codeline|-c}} オプションは、NVIDIA ドライバのビルドが終わった後にファイルを片付けるように makepkg に伝え、また、 {{Codeline|-i}} は、 makepkg が自動で pacman を起動して出来あがったパッケージをインストールするように指示するものです。<br />
<br />
==Configuring==<br />
It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run [[Xorg#Running Xorg| a test]] to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a {{Filename|/etc/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129299NVIDIA (日本語)2011-01-29T03:12:13Z<p>Shinnya: /* カスタム kernel の場合のインストール方法 */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
First of all, it is of advantage to know how the ABS system works by reading some of the other articles about it:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> の変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(デフォルトの -ARCH kernel とカスタムカーネルが並ぶように) PKGBUILD の <code>"pkgname=nvidia"</code> 変数を一意な識別子、例えば nvidia-2622 や nvidia-custom へと変更します。こうすることで、カスタム NVIDIA モジュールは異なるパッケージ名となり、オリジナルのパッケージを上書きしないようになるので、両方のカーネルが NVIDIA モジュールを使えるようにできます。<br />
<br />
それからこうします:<br />
$ makepkg -ci<br />
{{Codeline|-c}} オプションは、NVIDIA ドライバのビルドが終わった後にファイルを片付けるように makepkg に伝え、また、 {{Codeline|-i}} は、 makepkg が自動で pacman を起動して出来あがったパッケージをインストールするように指示するものです。<br />
<br />
==Configuring==<br />
It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run [[Xorg#Running Xorg| a test]] to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a {{Filename|/etc/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129298NVIDIA (日本語)2011-01-29T02:58:46Z<p>Shinnya: /* インストール */</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
以下は、stock kernel26 パッケージを使っている人向けの指示です。カスタム kernel のセットアップには、[[#Alternate install: custom kernel|next]] サブセクションまで読み飛ばしてください。<br />
<br />
{{Tip|NVIDIA のサイトで提供されているパッケージよりも pacman を通して NVIDIA ドライバをインストールする方がたいていの場合有益です。なぜなら、そうすることで、システムをアップデートした際にドライバもアップデートすることができるからです。}}<br />
<br />
1. NVIDIA の [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] を訪れて、お持ちのビデオカードに合ったドライバを見つけてください。<br />
<br />
2. 新しめのビデオカード (GF FX の後に出た最新の GPU) 用のドライバをインストールします:<br />
# pacman -S nvidia nvidia-utils<br />
<br />
古めのビデオカード (Geforce FX シリーズ) をお持ちのユーザは以下をインストールします:<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
あるいは、(GF 4 までのビデオカードの場合):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
ドライバがインストールされたら、続けて [[#Configuring]] へと進んでください。<br />
<br />
===カスタム kernel の場合のインストール方法===<br />
まず最初に、ABS システムがどのような働きをするのかを他の記事をいくつか読んで知ることで得るものがあります:<br />
First of all, it is of advantage to know how the ABS system works by reading some of the other articles about it:<br />
* [[ABS]] の本記事<br />
* [[makepkg]] についての記事<br />
* [[Creating Packages]] についての記事<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
以下の内容は、ABS を使用する NVIDIA ドライバのカスタムパッケージを作るための簡単なチュートリアルです:<br />
<br />
ABS をインストールしてツリーを生成します:<br />
# pacman -S abs<br />
# abs<br />
一般ユーザで、新しいパッケージを作るための一時ディレクトリを作成します:<br />
$ mkdir -p ~/devel/abs<br />
NVIDIA パッケージのディレクトリのコピーを作成します:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
NVIDIA のビルドをする一時ディレクトリの中へ移動します:<br />
$ cd ~/devel/abs/nvidia<br />
{{Filename|nvidia.install}} と {{Filename|PKGBUILD}} が正しいカーネルバージョン変数を含むように、それらのファイルを編集する必要があります。<br />
<br />
カスタムカーネルを実行している間に、適切なカーネルとローカルバージョン名を得ましょう:<br />
$ uname -r<br />
# nvidia.install にある、 <code>KERNEL_VERSION="2.6.xx-ARCH"</code> の変数をカスタムカーネルのバージョンで置き換えます。例えば、<code>KERNEL_VERSION="2.6.22.6"</code> や <code>KERNEL_VERSION"2.6.22.6-custom"</code> のようにしますが、カーネルのバージョンが何か、text/numbers のローカルバージョンが何かによります。このファイルの中のすべてのバージョン番号に対して置換を行ってください。<br />
# PKGBUILD にある, <code>_kernver='2.6.xx-ARCH'</code> 変数を変更して、上記のように、適切なバージョンに合うようにしてください。<br />
# 一つ以上のカーネルが並行してシステムにインストールされてるなら、(カスタムカーネル)<br />
# If there are more than one kernels in the system installed in parallel, (such as a custom kernel alongside the default -ARCH kernel) change the <code>"pkgname=nvidia"</code> variable in the PKGBUILD to a unique identifier, such as nvidia-2622 or nvidia-custom. This will allow both kernels to use the nvidia module, since the custom nvidia module has a different package name and will not overwrite the original.<br />
<br />
Then do:<br />
$ makepkg -ci<br />
The {{Codeline|-c}} operand tells makepkg to clean left over files after building the nvidia driver, whereas {{Codeline|-i}} specifies that makepkg should automatically run pacman to install the resulting package.<br />
<br />
==Configuring==<br />
It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run [[Xorg#Running Xorg| a test]] to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a {{Filename|/etc/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129218Xfce (日本語)2011-01-28T06:05:21Z<p>Shinnya: /* Change mount options */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce は、Unix ライクのオペレーティングシステム向けの軽量な desktop environment です。動作が軽快で軽量であることを目標としている一方、視覚的にも魅力的でユーザフレンドリでもあります。この記事は、インストールと設定、そしてトラブルシューティングまでをカバーしています。}}<br />
{{Article summary text|Xfce は [[GTK+]] ツールキットを使用しています。}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== マウントオプションを変更する ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== 関連記事 ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== 外部リソース ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129217Xfce (日本語)2011-01-28T06:04:48Z<p>Shinnya: </p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce は、Unix ライクのオペレーティングシステム向けの軽量な desktop environment です。動作が軽快で軽量であることを目標としている一方、視覚的にも魅力的でユーザフレンドリでもあります。この記事は、インストールと設定、そしてトラブルシューティングまでをカバーしています。}}<br />
{{Article summary text|Xfce は [[GTK+]] ツールキットを使用しています。}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== 関連記事 ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== 外部リソース ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129216Xfce (日本語)2011-01-28T06:03:51Z<p>Shinnya: </p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce は、Unix ライクのオペレイティングシステム用の軽量な desktop environment です。動作が軽快で軽量であることを目標としている一方、視覚的にも魅力的でユーザフレンドリでもあります。この記事は、インストールと設定、そしてトラブルシューティングまでをカバーしています。}}<br />
{{Article summary text|Xfce は [[GTK+]] ツールキットを使用しています。}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== 関連記事 ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== 外部リソース ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129215Xfce (日本語)2011-01-28T05:59:50Z<p>Shinnya: /* External Resources */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== 関連記事 ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== 外部リソース ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129214Xfce (日本語)2011-01-28T05:59:29Z<p>Shinnya: /* Related Articles */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== 関連記事 ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129213Xfce (日本語)2011-01-28T05:58:44Z<p>Shinnya: /* How to enable the compositor in Xfce 4.6 */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== Xfce 4.6 で compositor を有効にする方法 ===<br />
Xfce 4.6 は、派手なウィンドウエフェクト、影や透過などのためのオプションを追加することで、 compositor を組込めます。それは Window Manager Tweaks の中で有効にされて、すぐに動きます。 /etc/xorg.conf に追加の設定をする必要はありません。設定を有効にして適用するためには以下の場所に行ってください:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129211Xfce (日本語)2011-01-28T05:47:49Z<p>Shinnya: /* Start Xfce */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Xfce を起動させる ===<br />
.xinitrc で以下のコマンドを用いて Xfce を起動させます。<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129210Xfce (日本語)2011-01-28T05:46:19Z<p>Shinnya: /* Switch between users */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== ユーザを切り替える ===<br />
<br />
[http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ] のおかげで、 X セッションを切り替えることが可能です。xfswitch-plugin は Xfce パネルにアイコンを追加し、今のところ gdm が動作することが必要とされます。<br />
<br />
xfswitch-plugin は [http://aur.archlinux.org/packages.php?ID=40677 AUR ] から入手可能です。<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129209Xfce (日本語)2011-01-28T05:40:28Z<p>Shinnya: /* Change mount options */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
fat ファイルシステムでフォーマットされた usb スティックを自動マウントするときによくある問題は、 ñ, ß などのウムラウトを正しく表示できないことです。この問題は、標準の iocharset を utf8 に変更することで解決されるかもしれません。そうするには、 '''/etc/xdg/xfce4/mount.rc''' に以下の行を追加するだけで簡単に行えます:<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
utf-8 を使う際に、システムが大文字と小文字を区別することで、ファイルを壊してしまう可能性があることに注意してください。十分お気をつけて。<br />
<br />
また、usb スティックのデータをコピーするときにより頻繁に flush させるように、'''flush''' オプションを付けて vfat のデバイスをマウントすることはおすすめできます。そうすることで、 データがディスク上にある限り thunar のプログレスバーを休ませないようにできます。<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129208Xfce (日本語)2011-01-28T05:26:08Z<p>Shinnya: /* OSS */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
以下のスクリプトから一つを使用します:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
ossvol (推奨) を使っているなら、以下を追加します:<br />
ossvol -i 1<br />
ボリュームアップボタン用です。<br />
ossvol -d 1<br />
ボリュームダウンボタン用です。<br />
ossvol -t<br />
ミュート/アンミュートボタン用です。<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129207Xfce (日本語)2011-01-28T05:22:54Z<p>Shinnya: /* Change volume with keyboard volume buttons */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== キーボードのボリュームボタンでボリュームを変更する ===<br />
<br />
Settings > Keyboard を開きます。 "Application Shortcuts" タブをクリックして、 "Add" ボタンをクリックします。 "Add" ボタンでエンターキーを押して以下を追加して、それから、次のウィンドウで対応するボタンを押します。<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
また、上述のコマンドを標準の XF86Audio キーにセットしてコマンドを実行させることもできます:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
もし {{codeline|amixer set Master toggle}} がうまく動かないなら、PCM チャンネル ({{codeline|amixer set PCM toggle}}) を代わりに試してみてください。<br />
<br />
そのチャンネルは、うまく動かすにはトグルコマンド用の "ミュート" オプションを持っていなければなりません。マスターチャンネルがミュートをトグルする機能をサポートしているかどうかチェックするために、ターミナルで {{codeline|alsamixer}} を実行して、マスターチャンネルの下に二つの M (MM) があるか探してください。もしなければ、ミュートオプションをサポートしていないということです。<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129206Xfce (日本語)2011-01-28T05:07:23Z<p>Shinnya: /* How to take screenshots (print-screen key) */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== (print-screen キー)でスクリーンショットを撮る方法 ===<br />
<br />
シンプルな方法は、コマンドラインのスクリーンショットユーティリティを使う方法です。<br />
<br />
# pacman -S scrot<br />
<br />
それから、<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts で、<br />
<br />
"scrot" コマンドを追加して "PrintScreen" キーを使えるようにします。<br />
<br />
スクリーンショットはすべて、以下のような重複しない名前でホームフォルダに置かれるでしょう。<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
また、extra で入手できる Xfce パネル用のスクリーンショットプラグインもあります:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129205Xfce (日本語)2011-01-28T05:00:34Z<p>Shinnya: /* How do I get xfce4-mixer and OSS4 to work together? */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== xfce4-mixer と OSS4 を入手して一緒に動くようにする方法は? ===<br />
<br />
Xfce 4.6 は ボリュームコントロールのバックエンドとして gstreamer を使っているので、まず、 gstreamer を xfce4-mixer と協調させなければなりません。<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(オプション) 次に、gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins をインストールしてみてください。<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
ログインとログアウトをするか、 単に mixer プラグインを削除して再び追加するかしてください。もしまったくうまくいかないなら、gstreamer0.10-good-plugins を自分自身でコンパイルする必要があります。<br />
<br />
必要な PKGBUILD と他のファイルは ABS か [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here] からダウンロードできるので、 PKGBUILD を編集して、 --enable-oss を追加してください。<br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
それから、 makepkg -i を実行します。<br />
<br />
makepkg -i<br />
<br />
まだ動かないですって? AUR にある [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4] というパッケージを試してみてください。 PKGBUILD の pkgver を新しい方に修正すれば、ちゃんと動くはずです。<br />
<br />
他のリンク: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=NVIDIA_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129182NVIDIA (日本語)2011-01-27T22:02:33Z<p>Shinnya: Created page with "Category: Graphics (日本語) Category: X Server (日本語) Category: HOWTOs (日本語) {{i18n|NVIDIA}} de:Nvidia {{Article summary start}} {{Article summary t..."</p>
<hr />
<div>[[Category: Graphics (日本語)]]<br />
[[Category: X Server (日本語)]]<br />
[[Category: HOWTOs (日本語)]]<br />
{{i18n|NVIDIA}}<br />
[[de:Nvidia]]<br />
{{Article summary start}}<br />
{{Article summary text|Information on installing, configuring and troubleshooting the proprietary NVIDIA Drivers.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|ATI}}<br />
{{Article summary wiki|Intel}}<br />
{{Article summary wiki|Nouveau}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
この記事は、[http://www.nvidia.com NVIDIA] の ''プロプライエタリ''なグラフィックカードドライバのインストールと設定をカバーしています。オープンソースのドライバについての情報に関しては、 [[Nouveau]] を見てください。<br />
<br />
==インストール==<br />
These instructions are for those using the stock kernel26 package. For custom kernel setup, skip to the [[#Alternate install: custom kernel|next]] subsection.<br />
<br />
{{Tip|It is usually beneficial to install the NVIDIA driver through pacman rather than through the package provided by the NVIDIA site, this allows the driver to be updated when upgrading the system.}}<br />
<br />
1. Visit NVIDIA's [http://www.nvidia.com/Download/index.aspx?lang=en-us driver download site] to find out the appropiate driver for a given card.<br />
<br />
2. Install the driver for newer cards (newest GPUs after the GF FX):<br />
# pacman -S nvidia nvidia-utils<br />
<br />
Whereas users with older cards should install (Geforce FX series cards):<br />
# pacman -S nvidia-173xx nvidia-173xx-utils<br />
<br />
or (cards up to the GF 4):<br />
<br />
# pacman -S nvidia-96xx nvidia-96xx-utils<br />
<br />
{{Note|For the latest card models, it may be required to install {{Package AUR|nvidia-beta}} and {{Package AUR|nvidia-utils-beta}} from the [[AUR]] since the stable drivers may not support the newly introduced features.}}<br />
{{Note|On 64 bit systems, For 32-bit programs to take advantage of nvidia-utils you must also install the equivalent lib32 package (for example lib32-nvidia-utils).}}<br />
<br />
{{Tip|Rebooting is generally recommended after updating kernel and graphic drivers.}}<br />
<br />
Once the driver has been installed, continue to: [[#Configuring]].<br />
<br />
===Alternate install: custom kernel===<br />
First of all, it is of advantage to know how the ABS system works by reading some of the other articles about it:<br />
* Main article for [[ABS]]<br />
* Article on [[makepkg]]<br />
* Article on [[Creating Packages]]<br />
<br />
{{Note|There is the {{Package AUR|nvidia-all}} package on [[AUR]] which turns out to make it easier to install the nvidia driver for custom kernels and multiple kernels}}<br />
<br />
The following is a short tutorial for making a custom nvidia driver package using ABS:<br />
<br />
Install ABS and generate the tree:<br />
# pacman -S abs<br />
# abs<br />
As a standard user, make a temporary directory for creating the new package:<br />
$ mkdir -p ~/devel/abs<br />
Make a copy of the nvidia package directory:<br />
$ cp -r /var/abs/extra/nvidia/ ~/devel/abs/<br />
Go into the temporary nvidia build directory:<br />
$ cd ~/devel/abs/nvidia<br />
It is required to edit the files {{Filename|nvidia.install}} and {{Filename|PKGBUILD}} file so that they contain the right kernel version variables.<br />
<br />
While running the custom kernel, get the appropiate kernel and local version names:<br />
$ uname -r<br />
# In nvidia.install, replace the <code>KERNEL_VERSION="2.6.xx-ARCH"</code> variable with the custom kernel version, such as <code>KERNEL_VERSION="2.6.22.6"</code> or <code>KERNEL_VERSION"2.6.22.6-custom"</code> depending on what the kernel's version is and the local version's text/numbers. Do this for all instances of the version number within this file.<br />
# In PKGBUILD, change the <code>_kernver='2.6.xx-ARCH'</code> variable to match the appropiate version, as above.<br />
# If there are more than one kernels in the system installed in parallel, (such as a custom kernel alongside the default -ARCH kernel) change the <code>"pkgname=nvidia"</code> variable in the PKGBUILD to a unique identifier, such as nvidia-2622 or nvidia-custom. This will allow both kernels to use the nvidia module, since the custom nvidia module has a different package name and will not overwrite the original.<br />
<br />
Then do:<br />
$ makepkg -ci<br />
The {{Codeline|-c}} operand tells makepkg to clean left over files after building the nvidia driver, whereas {{Codeline|-i}} specifies that makepkg should automatically run pacman to install the resulting package.<br />
<br />
==Configuring==<br />
It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run [[Xorg#Running Xorg| a test]] to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a {{Filename|/etc/X11/xorg.conf}} configuration file in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the [[Xorg]] server), or it can include a [[Xorg#Manual configuration|number of settings]] that can bypass Xorg's auto-discovered or pre-configured options.<br />
<br />
===Automatic configuration===<br />
The NVIDIA package includes an automatic configuration tool to create an Xorg server configuration file ({{Filename|xorg.conf}}) and can be run by:<br />
# nvidia-xconfig<br />
<br />
This command will auto-detect and create (or edit, if already present) the {{Filename|/etc/X11/xorg.conf}} configuration according to present hardware.<br />
<br />
If there are instances of DRI, ensure they are commented out:<br />
# Load "dri"<br />
Double check your {{filename | /etc/X11/xorg.conf}} to make sure your default depth, horizontal sync, vertical refresh, and resolutions are acceptable.<br />
<br />
{{Warning| That may still not work properly with Xorg-server 1.8 }}<br />
<br />
===Automatic configuration with multiple monitors===<br />
The NVIDIA package provides Twinview. This tool will help by automatically configuring all the monitors connected to your video card. This only works for multiple monitors on a single card.<br />
To configure Xorg Server with Twinview run:<br />
# nvidia-xconfig --twinview<br />
<br />
===Minimal configuration===<br />
To create a basic {{Filename|/etc/X11/xorg.conf}}, as root:<br />
# vi /etc/X11/xorg.conf<br />
<br />
And add the driver:<br />
<pre><br />
Section "Device"<br />
Identifier "Device0"<br />
Driver "nvidia"<br />
VendorName "NVIDIA Corporation"<br />
EndSection<br />
</pre><br />
<br />
{{Tip|Make sure, in order to have full multimedia functionality, to have '''xorg-input-drivers''' installed.}}<br />
<br />
==Tweaking==<br />
<br />
===GUI: nvidia-settings===<br />
The NVIDIA package includes the {{Codeline|nvidia-settings}} program that allows adjustment of several additional settings.<br />
<br />
For the settings to be loaded on login, run this command from the terminal:<br />
$ nvidia-settings --load-config-only<br />
<br />
Or add it to the the desktop environment's auto-startup method.<br />
<br />
{{Tip | On rare occasions the {{Filename|~/.nvidia-settings-rc}} may become corrupt. If this happens, the Xorg server may crash and the file will have to be deleted to fix the issue.}}<br />
<br />
===Advanced: xorg.conf===<br />
Edit {{Filename|/etc/X11/xorg.conf}}, and add the option to the correct section. NVIDIA tests and ships the drivers with the recommended setting so note that some edits may cause instability, tearing, among other problems. Since not all options may work for a given system, consider backing up {{Filename|xorg.conf}} before making any edits. The Xorg server will need to be restarted before any changes are applied.<br />
<br />
* See [http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/README/index.html NVIDIA Accelerated Linux Graphics Driver README and Installation Guide] for additional details and options.]<br />
====Enabling desktop composition====<br />
As of NVIDIA driver version 180.44, support for GLX with the Damage and Composite X extensions is enabled by default. Refer to [[Composite]] for detailed instructions.<br />
<br />
====Disabling the logo on startup====<br />
Add the {{Codeline|"NoLogo"}} option under section {{Codeline|Device}}:<br />
Option "NoLogo" "1"<br />
<br />
====Enabling hardware acceleration====<br />
{{Note|RenderAccel is enabled by default since drivers version 97.46.xx}}<br />
Add the {{Codeline|"RenderAccel"}} option under section {{Codeline|Device}}:<br />
Option "RenderAccel" "1"<br />
<br />
====Overriding monitor detection====<br />
The {{Codeline|"ConnectedMonitor"}} option under section {{Codeline|Device}} allows to override monitor detection when X server starts, which may save a significant amount of time at start up. The available options are: {{Codeline|"CRT"}} for analog connections, {{Codeline|"DFP"}} for digital monitors and {{Codeline|"TV"}} for televisions.<br />
<br />
The following statement forces the NVIDIA driver to bypass startup checks and recognize the monitor as DFP:<br />
Option "ConnectedMonitor" "DFP"<br />
{{Note| Use "CRT" for all analog 15 pin VGA connections, even if the display is a flat panel. "DFP" is intended for DVI digital connections only.}}<br />
<br />
====Enabling triple buffering====<br />
Enable the use of triple buffering by adding the {{Codeline|"TripleBuffer"}} Option under section {{Codeline|Device}}:<br />
Option "TripleBuffer" "1"<br />
<br />
Use this option if the graphics card has plenty of ram (equal or greater than 128MB). The setting only takes effect when syncing to vblank is enabled, one of the options featured in nvidia-settings.<br />
<br />
{{Note|This option may introduce full-screen tearing and reduce performance.}}<br />
<br />
====Using OS-level events====<br />
Taken from the NVIDIA driver's [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt README] file: ''"[...] Use OS-level events to efficiently notify X when a client has performed direct rendering to a window that needs to be composited."'' It may help improving performance, but it is currently incompatible with SLI and Multi-GPU modes.<br />
<br />
Add under section {{Codeline|Device}}:<br />
Option "DamageEvents" "1"<br />
{{Note|This option is enabled by default in newer driver versions.}}<br />
<br />
====Enabling power saving====<br />
Add under section <code>Monitor</code>:<br />
Option "DPMS" "1"<br />
<br />
====Forcing Powermizer performance level (for laptops)====<br />
Add under section {{Codeline|Device}}:<br />
# Force Powermizer to a certain level at all times<br />
# level 0x1=highest<br />
# level 0x2=med<br />
# level 0x3=lowest<br />
<br />
# AC settings:<br />
Option "RegistryDwords" "PowerMizerLevelAC=0x3"<br />
# Battery settings:<br />
Option "RegistryDwords" "PowerMizerLevel=0x3"<br />
Settings are better explained in [http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/ NVIDIA Driver for X.org:Performance and Power Saving Hints].<br />
<br />
=====Letting the GPU set its own performance level based on temperature=====<br />
Add under section {{Codeline|Device}}:<br />
Option "RegistryDwords" "PerfLevelSrc=0x3333"<br />
<br />
====Disable vblank interrupts (for laptops)====<br />
When running the interrupt detection utility {{Codeline|powertop}}, it can be observed that the Nvidia driver will generate an interrupt for every vblank. To disable, place in the {{Codeline|Device}} section:<br />
Option "OnDemandVBlankInterrupts" "1"<br />
This will reduce interrupts to about one or two per second.<br />
<br />
====Enabling overclocking====<br />
{{Warning|Please note that overclocking may damage hardware and that no responsibility may be placed on the authors of this page due to any damage to any information technology equipment from operating products out of specifications set by the manufacturer.}}<br />
To enable GPU and memory overclocking, place the following line in the {{Codeline|Device}} section:<br />
Option "Coolbits" "1"<br />
<br />
This will enable on-the-fly overclocking within an X session by running:<br />
$ nvidia-settings<br />
{{Note|GTX 4xx/5xx series Fermi cores cannot currently be overclocked using <br />
the Coolbits method. The alternative is to edit and reflash the GPU BIOS either under DOS (preferred), or within a Win32 environment by way of [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,127/orderby,2/page,1/ nvflash] and [http://www.mvktech.net/component/option,com_remository/Itemid,26/func,select/id,135/orderby,2/page,1/ NiBiTor 6.0]. The advantage of BIOS flashing is that not only can voltage limits be raised, but stability is generally improved over software overclocking methods such as Coolbits.}}<br />
<br />
===== Setting static 2D/3D clocks =====<br />
Set the following string in the {{Codeline|Device}} section to enable PowerMizer at its maximum performance level:<br />
Option "RegistryDwords" "PerfLevelSrc=0x2222"<br />
Set one of the following two strings in the {{Codeline|Device}} section to enable manual GPU fan control within {{codeline|nvidia-settings}}:<br />
Option "Coolbits" "4"<br />
<br />
Option "Coolbits" "5"<br />
<br />
====Enable screen rotation through XRandR====<br />
Place the following line in the {{Codeline|Device}} section:<br />
Option "RandRRotation" "True"<br />
After restarting Xorg:<br />
$ xrandr -o left<br />
The Screen should be rotated. To restore:<br />
$ xrandr -o normal<br />
{{Note| Editing xorg.conf may be unnecessary since screen rotation should be enabled by default, ideally by using the respective DE tools, such as SystemSettings in KDE.}}<br />
<br />
==Tips and tricks==<br />
===Enabling Pure Video HD (VDPAU/VAAPI)===<br />
'''Hardware Required:''' <br />
<br />
At least a video card with second generation PureVideo HD [http://en.wikipedia.org/wiki/PureVideo_HD#Table_of_PureVideo_.28HD.29_GPUs]<br />
<br />
'''Software Required:'''<br />
<br />
Nvidia video cards with the proprietary driver installed will provide video decoding capabilities with the VDPAU interface at different levels according to PureVideo generation.<br />
<br />
You can also add support for the VA-API interface with:<br />
# pacman -S vdpau-video<br />
<br />
Check VA-API support with:<br />
$ vainfo<br />
<br />
To take full advantage of the hardware decoding capability of your video card you will need a media player that supports VDPAU or VA-API.<br />
<br />
To enable hardware acceleration in '''MPlayer''' edit ~/.mplayer/config<br />
<br />
vo=vdpau<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
<br />
To enable hardware acceleration in '''VLC''' go:<br />
<br />
Tools -> Settings -> Videos and codec -> check "Use GPU acceleration"<br />
<br />
To enable hardware acceleration in '''smplayer''' go:<br />
<br />
Options -> Preferences -> General -> Video Tab -> select vdpau as output driver<br />
<br />
To enable hardware acceleration in '''gnome-mplayer''' go:<br />
<br />
Edit -> Preferences -> set video output to vdpau<br />
<br />
'''Playing HD movies on cards with low memory:'''<br />
<br />
If your graphic card doesn't have a lot of memory(>521MB?), you can experience glitches when watching 1080p or even 720p movies.<br />
To avoid that start simple window manager like TWM or MWM.<br />
<br />
Additionally increasing the MPlayer's cache size in ~/.mplayer/config can help, when your hard drive is spinning down when watching HD movies.<br />
<br />
===Using TV-out===<br />
A good article on the subject can be found [http://en.wikibooks.org/wiki/NVidia/TV-OUT here]<br />
<br />
===X with a TV (DFP) as the only display===<br />
The X server falls back to CRT-0 if no monitor is automatically detected. This can be a problem when using a DVI connected TV as the main display, and X is started while the TV is turned off or otherwise disconnected.<br />
<br />
To force nvidia to use DFP, store a copy of the EDID somewhere in the filesystem so that X can parse the file instead of reading EDID from the TV/DFP.<br />
<br />
To acquire the EDID, start nvidia-settings. It will show some information in tree format, ignore the rest of the settings for now and select the GPU (the corresponding entry should be titled "GPU-0" or similar), click the "DFP" section (again, "DFP-0" or similar), click on the "Acquire Edid" Button and store it somewhere, for example, {{Filename|/etc/X11/dfp0.edid}}.<br />
<br />
Edit xorg.conf by adding to the "Device" section:<br />
Option "ConnectedMonitor" "DFP"<br />
Option "CustomEDID" "DFP-0:/etc/X11/dfp0.edid"<br />
The "ConnectedMonitor" option forces the driver to recognize the DFP as if it were connected. The "CustomEDID" provides EDID data for the device, meaning that it will start up just as if the TV/DFP was connected during X the process.<br />
<br />
This way, one can automatically start a display manager at boot time and still have a working and properly configured X screen by the time the TV gets powered on.<br />
<br />
===Displaying GPU temperature in the shell===<br />
====Method 1 - nvidia-settings====<br />
{{Note|This method requires that you're using X. Use Method 2 or Method 3 if you are not. Also note that Method 3 currently does not not work with newer nvidia cards such as the G210/220 as well as embedded GPUs such as the Zotac IONITX's 8800GS.}}<br />
<br />
To display the GPU temp in the shell, use nvidia-settings as follows:<br />
$ nvidia-settings -q gpucoretemp<br />
<br />
This will output something similar to the following:<br />
Attribute 'GPUCoreTemp' (hostname:0.0): 41.<br />
'GPUCoreTemp' is an integer attribute.<br />
'GPUCoreTemp' is a read-only attribute.<br />
'GPUCoreTemp' can use the following target types: X Screen, GPU.<br />
<br />
The GPU temps of this board is 41 C.<br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
$ nvidia-settings -q gpucoretemp -t<br />
41<br />
<br />
====Method 2 - nvidia-smi====<br />
<br />
Use nvidia-smi which can read temps directly from the GPU without the need to use X at all. This is important for a small group of users who do not have X running on their boxes, perhaps because the box is headless running server apps. <br />
To display the GPU temp in the shell, use nvidia-smi as follows:<br />
<br />
$ nvidia-smi -a<br />
<br />
This should output something similar to the following:<br />
<pre><br />
$ nvidia-smi -a<br />
<br />
==============NVSMI LOG==============<br />
<br />
<br />
Timestamp : Mon Dec 13 20:11:28 2010<br />
<br />
Driver Version : 260.19.29<br />
<br />
<br />
GPU 0:<br />
Product Name : GeForce 8400 GS<br />
PCI Device/Vendor ID : 6e410de<br />
PCI Location ID : 0:1:0<br />
Board Serial : 2648101198649<br />
Display : Connected<br />
Temperature : 40 C<br />
Utilization<br />
GPU : 1%<br />
Memory : 8%<br />
<br />
</pre><br />
<br />
In order to get just the temperature for use in utils such as rrdtool or conky, among others:<br />
<br />
$ nvidia-smi -a | grep Temp | cut -c17-18<br />
40<br />
<br />
Reference: http://www.question-defense.com/2010/03/22/gpu-linux-shell-temp-get-nvidia-gpu-temperatures-via-linux-cli<br />
<br />
====Method 3 - nvclock====<br />
Use nvclock which is available from the [extra] repo. Note that nvclock cannot access thermal sensors on newer nvidia cards such as the G210/220.<br />
<br />
There can be significant differences between the temperatures reported by nvclock and nvidia-settings/nv-control. According to [http://sourceforge.net/projects/nvclock/forums/forum/67426/topic/1906899 this post] by the author (thunderbird) of nvclock, the nvclock values should be more accurate.<br />
<br />
===Set Fan Speed at Login===<br />
You can adjust the fan speed on your graphics card with {{Codeline|nvidia-settings}}'s console interface. First ensure that your Xorg configuration sets the Coolbits option to 4 or 5 in your {{Codeline|Device}} section to enable fan control.<br />
<br />
Option "Coolbits" "4"<br />
<br />
{{Note|GTX 4xx/5xx series cards cannot currently set fan speeds at login using this method. This method only allows for the setting of fan speeds within the current X session by way of nvidia-settings.}}<br />
<br />
Place the following line in your [[xinitrc|{{filename|~/.xinitrc}}]] file to adjust the fan when you launch Xorg. Replace <n> with the fan speed percentage you want to set.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
<br />
You can also configure a second GPU by incrementing the GPU and fan number.<br />
<br />
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" \ <br />
-a "[gpu:1]/GPUFanControlState=1" \<br />
-a "[fan:0]/GPUCurrentFanSpeed=<n>" \<br />
-a [fan:1]/GPUCurrentFanSpeed=<n>" &<br />
<br />
If you use a login manager such as GDM or KDM, you can create a desktop entry file to process this setting. Create {{filename|~/.config/autostart/nvidia-fan-speed.desktop}} and place this text inside it. Again, change <n> to the speed percentage you want.<br />
<br />
[Desktop Entry]<br />
Type=Application<br />
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=<n>"<br />
X-GNOME-Autostart-enabled=true<br />
Name=nvidia-fan-speed<br />
<br />
==Troubleshooting==<br />
<br />
===Gaming using Twinview===<br />
In case you want to play fullscreen games when using Twinview, you will notice that games recognize the two screens as being one big screen. While this is technically correct (the virtual X screen really is the size of your screens combined), you probably don't want to play on both screens at the same time. <br />
<br />
To correct this behavior for SDL, try:<br />
export SDL_VIDEO_FULLSCREEN_HEAD=1<br />
<br />
For OpenGL, add the appropiate Metamodes to your xorg.conf in section {{Codeline|Device}} and restart X:<br />
Option "Metamodes" "1680x1050,1680x1050; 1280x1024,1280x1024; 1680x1050,NULL; 1280x1024,NULL;"<br />
<br />
Another method that may either work alone or in conjunction with those mentioned above is [[Gaming#Starting_games_in_a_separate_X_server|starting games in a separate X server]].<br />
<br />
===Old Xorg Settings===<br />
If upgrading from an old installation, please remove old {{Filename|/usr/X11R6}} paths as it can cause trouble during installation.<br />
<br />
===Corrupted screen: "Six screens" issue===<br />
For some users using Geforce GT 100M's, the screen turns out corrupted after X starts; divided into 6 sections with a resolution limited to 640x480.<br />
<br />
To solve this problem, enable the Validation Mode {{Codeline|NoTotalSizeCheck}} in section {{Codeline|Device}}:<br />
Section "Device"<br />
...<br />
Option "ModeValidation" "NoTotalSizeCheck"<br />
...<br />
EndSection<br />
==='/dev/nvidia0' Input/Output error===<br />
This error can occur for several different reasons, and the most common solution given for this error is to check for group/file permissions, which in almost every case is ''not'' the issue. The Nvidia documentation does not talk in detail on what you should<br />
do to correct this problem but there are a few things that have worked for some people. The problem can be a IRQ conflict with another device or bad routing by either the kernel or your BIOS.<br />
<br />
First thing to try is to remove other video devices such as video capture cards and see if the problem goes away. If there are too many video processors on the same system it can lead into the kernel being unable to start them because of memory allocation problems with the video controller. In particular on systems with low video memory this can occur even if there's only one video processor. In such case you should find out the amount of your system's video memory (e.g. with ''lspci -v'') and pass allocation parameters to the kernel, e.g.:<br />
vmalloc=64M<br />
or<br />
vmalloc=256M<br />
<br />
Another thing to try is to change your BIOS IRQ routing from ''Operating system controlled'' to ''BIOS controlled'' or the other way around. The first one can be passed as a kernel parameter:<br />
PCI=biosirq<br />
<br />
The ''noacpi'' kernel parameter has also been suggested as a solution but since it disables ACPI completely it should be used with caution. Some hardware are easily damaged by overheating.<br />
<br />
{{Note|The kernel parameters can be passed either through the kernel command line or the bootloader configuration file. See your bootloader Wiki page for more information.}}<br />
<br />
==='/dev/nvidiactl' errors===<br />
Trying to start an opengl application might result in errors such as:<br />
Error: Could not open /dev/nvidiactl because the permissions are too<br />
restrictive. Please see the <code>FREQUENTLY ASKED QUESTIONS</code> <br />
section of <code>/usr/share/doc/NVIDIA_GLX-1.0/README</code> <br />
for steps to correct.<br />
<br />
Solve by adding the appropiate user to the "video" group and relogin:<br />
# gpasswd -a username video<br />
<br />
===32 bit applications do not start===<br />
Under 64 bit systems, installing {{Codeline|lib32-nvidia-utils}} that corresponds to the same version installed for the 64 bit driver fixes the issue.<br />
<br />
===Errors after updating the kernel===<br />
If a custom build of nvidia's module is used instead of the package from [extra], a recompile is required every time the kernel is updated. Rebooting is generally recommended after updating kernel and graphic drivers.<br />
<br />
===Crashing in general===<br />
* Try disabling {{Codeline|RenderAccel}} in xorg.conf.<br />
* If Xorg outputs an error about "conflicting memory type" or "failed to allocate primary buffer: out of memory", add {{Codeline|nopat}} at the end of the {{Codeline|kernel}} line in {{Codeline|/boot/grub/menu.lst}}.<br />
* If the NVIDIA compiler complains about different versions of GCC between the current one and the one used for compiling the kernel, add in {{Codeline|/etc/profile}}:<br />
export IGNORE_CC_MISMATCH=1<br />
* If Xorg is crashing with a "Signal 11" while using nvidia-96xx drivers, try disabling PAT. Pass the argument {{Codeline|nopat}} to the {{Codeline|kernel}} line in {{Codeline|menu.lst}}.<br />
More information about trouble-shooting the driver can be found in the [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums.]<br />
<br />
===Bad performance after installing a new driver version===<br />
If FPS have dropped in comparison with older drivers, first check if direct rendering is turned on: <br />
$ glxinfo | grep direct<br />
If the command prints:<br />
direct rendering: No <br />
then that could be an indication for the sudden FPS drop.<br />
<br />
A possible solution could be to regress to the previously installed driver version and rebooting afterwards.<br />
<br />
===CPU spikes with 400 series cards===<br />
If you're experiencing intermittent CPU spikes with a 400 series card, it may be caused by PowerMizer constantly changing the GPU's clock frequency. Switching PowerMizer's setting from Adaptive to Performance, add the following to the Device section of your Xorg configuration:<br />
<br />
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"<br />
<br />
===Laptops: X hangs on login/out, worked around with Ctrl+Alt+Backspace===<br />
If while using the legacy nvidia drivers Xorg hangs on login and logout (particularly with an odd screen split into two black and white/gray pieces), but logging in is still possible via Ctrl-Alt-Backspace (or whatever the new "kill X" keybind is), try adding this in {{Filename|/etc/modprobe.d/modprobe.conf}}:<br />
options nvidia NVreg_Mobile=1<br />
<br />
One user had luck with this instead, but it makes performance drop significantly for others:<br />
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660 NVreg_SoftEDIDs=0 NVreg_Mobile=1<br />
<br />
Note that {{Codeline|NVreg_Mobile}} needs to be changed according to the laptop:<br />
* 1 for Dell laptops.<br />
* 2 for non-Compal Toshiba laptops.<br />
* 3 for other laptops.<br />
* 4 for Compal Toshiba laptops.<br />
* 5 for Gateway laptops.<br />
<br />
See [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt NVIDIA Driver's Readme:Appendix K] for more information.<br />
<br />
===Refresh rate not detected properly by XRandR dependant utilities===<br />
The XRandR X extension is not presently aware of multiple display devices on a single X screen; it only sees the {{Codeline|MetaMode}} bounding box, which may contain one or more actual modes. This means that if multiple MetaModes have the same bounding box, XRandR will not be able to distinguish between them.<br />
<br />
In order to support {{Codeline|DynamicTwinView}}, the NVIDIA driver must make each MetaMode appear to be unique to XRandR. Presently, the Nvidia driver accomplishes this by using the refresh rate as a unique identifier.<br />
<br />
Use {{Codeline|nvidia-settings -q RefreshRate}} to query the actual refresh rate on each display device.<br />
<br />
The XRandR extension is currently being redesigned by the X.Org community, so the refresh rate workaround may be removed at some point in the future.<br />
<br />
This workaround can also be disabled by setting the "DynamicTwinView" X configuration option to "false", which will disable NV-CONTROL support for manipulating MetaModes, but will cause the XRandR and XF86VidMode visible refresh rate to be accurate.<br />
<br />
==External links==<br />
* [http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 NVIDIA forums]<br />
* [http://http.download.nvidia.com/XFree86/Linux-x86/1.0-7182/README/readme.txt Official readme for NVIDIA drivers]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129181Xfce (日本語)2011-01-27T21:48:15Z<p>Shinnya: /* But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== /usr/share/applications にはない(例えば、wine を通してインストールされたアプリケーションとか。)メニューの項目の場合はどうすればいいのか? === <br />
この要覧の "Other" カテゴリで示しているように、ショートカットを私は見つけました:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129180Xfce (日本語)2011-01-27T21:42:15Z<p>Shinnya: /* システムメニューからメニューの項目を取り除くする方法 */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動します。ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129179Xfce (日本語)2011-01-27T21:41:52Z<p>Shinnya: /* システムメニューからメニューの項目を取り除くする方法 */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# /usr/share/applications フォルダに移動して、ターミナル(Xfce menu > System > Terminal)に以下のように入力します: <pre>$ cd /usr/share/applications</pre><br />
# このフォルダは .desktop ファイルでいっぱいです。どれだけあるのか見てみましょう。次のように入力してください: <pre>$ ls</pre>ここで、あなたは Firefox を編集したいと仮定しましょう。ターミナルで次のように入力してください:<pre>$ sudo mousepad firefox.desktop</pre><br />
# そのファイルの一番最後に以下の内容をペーストしてください: <pre>NoDisplay=true</pre><br />
# 保存して終了します。さぁ、これで Firefox はシステムメニューに出てこなくなったはずです。この方法はどんなプログラムにも使えます。<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129177Xfce (日本語)2011-01-27T21:35:58Z<p>Shinnya: /* How to remove menu entries from the System menu */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== システムメニューからメニューの項目を取り除くする方法 === <br />
組込みのメニューエディタでは、システムメニューからメニューの項目を取り除くことはできません。<br />
メニューの項目を隠してしまう方法:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129175Xfce (日本語)2011-01-27T21:30:02Z<p>Shinnya: /* デフォルトの設定をリストアする */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
何らかの理由でデフォルトの設定に戻す必要があるなら、 ~/.config/xfce4-session/ と ~/.config/xfce4/ をリネームしてみてください。<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
ログアウトしてログインすると、変更の影響が現れます。<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129174Xfce (日本語)2011-01-27T21:25:53Z<p>Shinnya: /* Troubleshooting */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== トラブルシューティング ==<br />
=== キーボードショートカットが動作しない ===<br />
Xfce 4.6 の下では、 [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work] という問題があります。これはたいていの場合、セッティングヘルパーが起動していないか、干渉のせいで不適切に起動されたというケースです。このバグは Xfce 4.8 でバグフィックスされていますし、 メインリポジトリでは 4.6 のものは置き換えられました。<br />
<br />
回避策は、 ''xfce4-settings-helper-autostart'' がユーザセッションで自動起動するのを無効にすることです。それにもかかわらず、そのセッティングヘルパーデーモンは Xfce セッションをロードする際に起動しようとします。以下の 2 ステップは、この問題を解決したように思われます。<br />
<br />
グローバルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ローカルな自動起動を行う .desktop ファイルを削除するか名前を変更する:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
ログアウトした後にログインし直すと、ショートカットキーは今度はちゃんと動くでしょう。<br />
<br />
=== デフォルトの設定をリストアする ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129172Xfce (日本語)2011-01-27T21:03:22Z<p>Shinnya: /* どうして Xfce を使わないの? */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらを統合したものでもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129171Xfce (日本語)2011-01-27T21:02:53Z<p>Shinnya: /* どうして Xfce を使わないの? */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な Desktop Environment のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129170Xfce (日本語)2011-01-27T21:01:24Z<p>Shinnya: /* Switch to old desktop right click menu without Thunar things */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Thunar を使わずに、昔ながらのデスクトップの右クリックメニューに切り替える ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129169Xfce (日本語)2011-01-27T20:56:30Z<p>Shinnya: /* Replacements for the default 'menu' panel applet */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== 標準のメニューパネルアプレットの代替となるもの ===<br />
"Ubuntu System Panel" (Gnoem) パネルアプレットが、 KDE v4.2 相当において見られる特徴と似た特徴を備えています。 'XfApplet' というパネルアプレットを通してXfce パネルに追加できます。'XfApplet' とは Gnome applets を Xfce において使用可能するものです。<br />
<br />
[http://aur.archlinux.org/packages.php?ID=10259 the AUR] から入手可能です。<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129168Xfce (日本語)2011-01-27T20:46:59Z<p>Shinnya: /* Fonts */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== フォント ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129167Xfce (日本語)2011-01-27T20:46:20Z<p>Shinnya: /* Fonts */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
もし標準のフォントが少し太いように思えたり、少しボケてるように思えるなら、 Settings>Appearence を開いて Fonts タブをクリックして、 ヒンティングを Full に変更します。<br />
<br />
また、カスタマイズした DPI の設定を試してみるのもいいかもしれません。<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129166Xfce (日本語)2011-01-27T20:38:58Z<p>Shinnya: /* How to add themes to XFCE */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. [http://xfce-look.org xfce-look.org] へと飛んで、左側のナビゲーションバーにある "Themes" をクリックします。気に入った theme を探して "Download" をクリックしてください。<br />
<br />
2. ダウンロードした tarball/file があるディレクトリに移動して、 Squeeze/Xarchiver/CLI を使ってそれを展開します。<br />
<br />
3. 展開されたフォルダを /usr/share/themes (すべてのユーザ向けの場合) か ~/.themes (自分だけの場合) に移動させます。 Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK の theme はここから利用可能です:<br />
Menu --> Settings --> Appearance<br />
xfwm の theme はここから選びます:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129163Xfce (日本語)2011-01-27T20:26:35Z<p>Shinnya: /* How to customize starting xfce */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== xfce の起動をカスタマイズする方法 ===<br />
<br />
この作業には、必要な環境変数を GUI ランタイムの中に入れてやることが含まれています。<br />
<br />
* /etc/xdg/xfce4/xinitrc ファイルを ~/.config/xfce4/ にコピーします。<br />
* そして、そのファイルを編集します。例えば、ファイルの中程のどこかに以下のように何かを加えることができます:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129161Xfce (日本語)2011-01-27T20:18:36Z<p>Shinnya: /* How to customize xfce panel background */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== xfce panel の背景をカスタマイズする方法 ===<br />
さっきと同じように、 ~/.gtkrc-2.0 を編集します。( foo.bar は画像ファイルへのパスです。)<br />
設定ファイルと同じディレクトリ、つまり ~/ にその画像ファイルを置かなければならないことに注意してください。画像ファイルへのパスをあなたが指定することはできませんし、もしそうした場合はうまく動かないでしょう。<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129160Xfce (日本語)2011-01-27T20:11:38Z<p>Shinnya: /* Use a transparent background for desktop icon titles */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== デスクトップアイコンタイトルに透明の背景を使う ===<br />
デスクトップアイコンタイトルのデフォルトの白色背景から、何か他の適当なものに変えるためには、ホームディレクトリにある .gtkrc-2.0 ファイル(あるいは、必要があればそのファイルを作成します。)を編集して、以下を追加します:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129159Xfce (日本語)2011-01-27T20:07:08Z<p>Shinnya: Changed a term 'my' in translation.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうしてわたしのデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129158Xfce (日本語)2011-01-27T20:05:57Z<p>Shinnya: Translated the whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== どうして僕のデスクトップは再読み込みされないの? ===<br />
Xfce 4.6 は、ファイルやディレクトリが変更されたときの通知手段として、 [[FAM]] (File Alteration Monitor) か [[gamin]] (FAM の後継) を使います。<br />
FAM を使うことを決めたなら、 /etc/rc.conf の DAEMONS リストに 'fam' を加えるのを忘れてはいけません。<br />
このステップは gamin の場合は必要ありません。<br />
<br />
NOTE: 最近の更新以後、FAM は、例えば sshfs のようなマウント領域をオープンする際に問題を起こすようになりました。 gamin はそのような問題を抱えていません。<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129157Xfce (日本語)2011-01-27T19:57:44Z<p>Shinnya: Translated the whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== quake のようなドロップダウン型のコンソール ===<br />
<br />
# pacman -S tilda<br />
<br />
で、 yakuake によく似たドロップダウン型コンソールである tilda がインストールされます。もっと軽量の代替アプリケーションには '''stjerm''' があり、 AUR で見つけられます。<br />
<br />
tilda の設定をするためには、<br />
<br />
# tilda -C<br />
<br />
と入力します。そうすると、 X 上で設定ウィンドウが開きます。<br />
<br />
====Guake====<br />
別の実装として guake があり、 community repo で入手できます。:<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129156Xfce (日本語)2011-01-27T19:48:03Z<p>Shinnya: Translated the whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== セッティングマネージャのためのコマンド ===<br />
<br />
実行されるコマンドに対する公式のドキュメントは存在していません。なので、 ''/usr/share/applications/'' フォルダにある.desktop ファイルを見なければいけません。何が起きようとしているのかを正確に知りたい人のために、その調べる努力を回避するための handy list がここにあります。:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
すべての利用可能なセッティングマネージャのコマンドを見るには、以下のコマンドをターミナルで実行します。:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129151Xfce (日本語)2011-01-27T16:05:05Z<p>Shinnya: I changed the title of this section.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce を起動しよう ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129150Xfce (日本語)2011-01-27T16:01:23Z<p>Shinnya: I modified the incorrect translation in 'consolekit/polycykit capable ...'</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce の起動 ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、例えば gdm のような Consolekit/polycykit を利用可能なディスプレイマネージャが自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129149Xfce (日本語)2011-01-27T15:59:31Z<p>Shinnya: I translated the whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce の起動 ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、gdm のような有能なディスプレイマネージャである Consolekit/policykit が自動的にやってくれます。}}}<br />
<br />
=====Xfce の中からシャットダウンやリブートをする=====<br />
* '''dbus''' が /etc/rc.conf の DAEMONS array において有効になっているか確かめてください。<br />
* ~/.xinitrc で <code>exec ck-launch-session startxfce4</code> を使用しているか、consolekit/policykit を利用可能なパッケージマネージャ(例えば gdm)を使用していることを確かめてください。<br />
* startx か xinit で xfce を起動しているなら、 X11 セッションが consolekit に authorize されるように {{Filename|/etc/pam.d/login}} の最終行をコメントアウトする必要があります。:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129147Xfce (日本語)2011-01-27T15:48:52Z<p>Shinnya: I translated the whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce の起動 ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====手動で起動する=====<br />
<br />
コンソールから:<br />
$ startxfce4<br />
を実行するか、xinitrc を設定して xinit と startx を利用します。<br />
<br />
まだ ~/.xinitrc を作成していないなら、次のようにします。:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
そして、以下の行を追加します。:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
例:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> は Xfce の電源管理、自動マウント、シャットダウンやリブートなどのために必要となる、まっさらな状態の consolekit セッションを開始します。これは、gdm のような有能なディスプレイマネージャである Consolekit/policykit が自動的にやってくれます。}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129146Xfce (日本語)2011-01-27T15:37:46Z<p>Shinnya: /* Running Xfce */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Xfce の起動 ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129145Xfce (日本語)2011-01-27T15:37:11Z<p>Shinnya: I translated th whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Running Xfce ==<br />
<br />
=====ブート時に自動で起動させる=====<br />
ディスプレイマネージャをインストールして設定するには [[Display Manager]] を見てください。<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129144Xfce (日本語)2011-01-27T15:34:55Z<p>Shinnya: I translated th whole of orignail text.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
dbus をインストールします:<br />
# pacman -S dbus<br />
<br />
ブート時に自動的に起動させるために、{{filename|/etc/rc.conf}} の DAEMONS array に <tt>dbus</tt> を追加した方がよいでしょう。:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
再起動せずに dbus を起動する必要があるなら、以下のコマンドを走らせてください。<br />
# /etc/rc.d/dbus start<br />
<br />
gamin (fam の後継)をインストールしましょう。gamin はデフォルトでバックグラウンドで自動的に起動するように設定されているので、gamin を rc.conf に加えてはいけません。<br />
<br />
# pacman -S gamin<br />
<br />
== Running Xfce ==<br />
<br />
=====Automatically at boot time=====<br />
See [[Display Manager]] to install and configure a Display Manager.<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129143Xfce (日本語)2011-01-27T15:27:36Z<p>Shinnya: I modified a incorrect translation.</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' に感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方にある項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
Install dbus:<br />
# pacman -S dbus<br />
<br />
To start automatically on boot, you should add <tt>dbus</tt> to your DAEMONS array in {{filename|/etc/rc.conf}}:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
If you need to start dbus without rebooting, run<br />
# /etc/rc.d/dbus start<br />
<br />
Install gamin (the successor of fam). It is configured to automatically run in the background by default, do not add it to rc.conf.<br />
<br />
# pacman -S gamin<br />
<br />
== Running Xfce ==<br />
<br />
=====Automatically at boot time=====<br />
See [[Display Manager]] to install and configure a Display Manager.<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129142Xfce (日本語)2011-01-27T15:26:07Z<p>Shinnya: /* Xfce をインストールしよう */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{Note |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' を感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方の項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
Install dbus:<br />
# pacman -S dbus<br />
<br />
To start automatically on boot, you should add <tt>dbus</tt> to your DAEMONS array in {{filename|/etc/rc.conf}}:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
If you need to start dbus without rebooting, run<br />
# /etc/rc.d/dbus start<br />
<br />
Install gamin (the successor of fam). It is configured to automatically run in the background by default, do not add it to rc.conf.<br />
<br />
# pacman -S gamin<br />
<br />
== Running Xfce ==<br />
<br />
=====Automatically at boot time=====<br />
See [[Display Manager]] to install and configure a Display Manager.<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnyahttps://wiki.archlinux.org/index.php?title=Xfce_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&diff=129141Xfce (日本語)2011-01-27T15:25:42Z<p>Shinnya: /* Xfce をインストールしよう */</p>
<hr />
<div>[[Category:Desktop environments (日本語)]]<br />
[[Category:HOWTOs (日本語)]]<br />
[[Category:日本語]]<br />
{{i18n|Xfce}}<br />
[[pl:XFCE]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Xfce is a lightweight desktop environment for Unix-like operating systems. It aims to be fast and lightweight, while still being visually appealing and user friendly. This article covers its installation, configuration, and troubleshooting.}}<br />
{{Article summary text|Xfce uses the [[GTK+]] toolkit.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Graphical user interface overview}}}}<br />
{{Article summary end}}<br />
<br />
[http://www.xfce.org/about/ Xfce - About]より:<br />
<br />
:''Xfce はモジュール化と再利用性という伝統的な UNIX の哲学を体現しています。そして、現代の desktop environment に期待されている機能をフルに提供する数々のコンポーネントで構成されています。コンポーネントはそれぞれ独立にパッケージ化されており、あなたは利用可能なパッケージ群からパッケージを選択して最適な個人の作業環境を作り出すことができます。''<br />
<br />
== Xfce って何のこと? ==<br />
Xfce は Desktop Environment で、GNOME や KDE のようなものです。root window app、ウィンドウマネージャ、ファイルマネージャ、パネルなどのアプリケーションを一通り取り揃えています。Xfce は GTK2 ツールキットを使って書かれていて、その他の巨大 Desctop Environment と同じく、(ライブラリやデーモンなどの)開発環境自体を含んでいます。GNOME や KDE とは異なり、Xfce は軽量でかつ、 Windows や Mac というよりも [http://www.opengroup.org/cde/ CDE] 風にデザインされています。開発サイクルはゆっくりとしていますが、とても安定していて、非常に動作が速いです。Xfce は古めのハードウェアに強いと言えます。<br />
<br />
== どうして Xfce を使うの? ==<br />
Xfce を使う(主観的な)理由をリストアップしましょう:<br />
* 速い; 他の有名な Desktop Environment に比べて動作が速いです。<br />
* 安定している; Xfce-4 は公開されてから長い時間が経っていますが、かなり多くの支持者を抱えていながら、比較的わずかのバグしか見つかっていません。<br />
* 見た目が良い; Xfce は GTK2 を使っているので、theme でカスタマイズが出来ます。Xfce をとても素晴しい見た目に出来るのです。さらに、フォントはまったく AA のままに表示できます。<br />
* マルチモニタでうまく動作する; Xfce の[[Wikipedia:Xinerama|Xinerama]] サポートはあらゆる WM/DE の中でもおそらく最高でしょう。<br />
* あなたのやりたいことの邪魔をしない; いつも存在感があるというわけではありませんが、気づけば Xfce があなたの作業フローの手助けになっているでしょう。<br />
* It comes with a built-in compositor which allows for true transparency, among other cool things.<br />
<br />
== どうして Xfce を使わないの? ==<br />
Xfce を使わない(主観的な)理由をリストアップしましょう。:<br />
* 他の有名な DEs のすべての特徴を備えているわけでもないし、それらの統合でもないこと。<br />
* 開発サイクルが遅いこと。<br />
* CDE のデザインに基づいているので、レイアウトが慣れてるものとは違うかもしれないこと。<br />
<br />
== Xfce はどうやってインストールするの? ==<br />
Xfce はモジュール化されています。どういうことかというと、あなたは以下のすべてのパートを実行する必要はありませんし、そのいくつかを取捨選択してもよいということです。このような理由で、Xfce はいくつかの Arch パッケージに分割されています。<br />
<br />
===== Xfce をインストールしよう =====<br />
以下の作業を行う前に、X システムがインストールされていて正しく動作することを確認しておいてください。<br />
<br />
ベースとなる Xfce システムをインストールするには、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4<br />
<br />
もしパネルプラグインのような追加パッケージをお望みなら、次のコマンドを走らせてください:<br />
<br />
# pacman -S xfce4-goodies<br />
<br />
パッケージグループ全体をインストールしたいかどうか pacman に尋ねられたときに、 'no' を選べば欲しいパッケージだけをインストールできます。<br />
<br />
{{注意 |'''xfce4-xfapplet-plugin''' (Xfce4 パネルの中で GNOME アプレットを使えるようにするプラグイン) は '''xfce4-goodies''' パッケージグループの一部で、'''gnome-panel''' に依存しています。'''gnome-panel''' もまた '''gnome-desktop''' に依存しています。つまり、大量の追加パッケージに依存することになることを意味しているので、インストールする前にこのことを考慮した方がよいかもしれません。}}<br />
<br />
xfce4-xfapplet-plugin のインストールが必要ないならば、xfce4-goodies を次のようにインストールしてください。:<br />
<br />
# pacman -S $(pacman -Sgq xfce4-goodies | egrep -v xfce4-xfapplet-plugin)<br />
<br />
標準のメニューアイコンをインストールするには:<br />
<br />
# pacman -S gnome-icon-theme<br />
<br />
(これらはさきほどのパッケージ群に含まれています。)<br />
<br />
ログインに関する 'Tips and Tricks' を感心してみたいなら、 fortune-mod パッケージをインストールしてください:<br />
<br />
# pacman -S fortune-mod<br />
<br />
xfce4-mixer を alsa と一緒に動かすためには、 gstreamer0.10-base-plugins をインストール必要があります。 (OSS に関するヘルプについては下の方の項目を見てください。)<br />
<br />
# pacman -S gstreamer0.10-base-plugins<br />
<br />
4.6.0 のリリース以降、xfce には xfce 自身の icon theme が同梱されていません。現在は tango-icon-theme に依存しています。代替の選択肢として、gnome-icon-theme パッケージをインストールすることもできます。<br />
<br />
=====デーモンのインストールと設定をしよう=====<br />
Install dbus:<br />
# pacman -S dbus<br />
<br />
To start automatically on boot, you should add <tt>dbus</tt> to your DAEMONS array in {{filename|/etc/rc.conf}}:<br />
<br />
DAEMONS=(syslog-ng '''dbus''' network crond)<br />
<br />
If you need to start dbus without rebooting, run<br />
# /etc/rc.d/dbus start<br />
<br />
Install gamin (the successor of fam). It is configured to automatically run in the background by default, do not add it to rc.conf.<br />
<br />
# pacman -S gamin<br />
<br />
== Running Xfce ==<br />
<br />
=====Automatically at boot time=====<br />
See [[Display Manager]] to install and configure a Display Manager.<br />
<br />
=====Manually=====<br />
<br />
You can execute:<br />
$ startxfce4<br />
from the console, or configure xinitrc and use xinit or startx.<br />
<br />
If you have not created a ~/.xinitrc yet, do so with:<br />
<br />
$ cp /etc/skel/.xinitrc ~/.xinitrc<br />
<br />
and add the following line:<br />
<br />
exec ck-launch-session startxfce4<br />
<br />
Example:<br />
#!/bin/sh<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
<br />
# exec gnome-session<br />
# exec startkde<br />
# exec startxfce4<br />
# ...or the Window Manager of your choice<br />
exec ck-launch-session startxfce4<br />
<br />
{{{Note |<code>ck-launch-session</code> starts a clean consolekit session needed by Xfce for power management, automounting, shutting down/rebooting etc. Consolekit/policykit capable display managers such as gdm do this for you automatically.}}}<br />
<br />
=====Shutting down and rebooting from withing Xfce=====<br />
* Make sure that '''dbus''' is enabled in the DAEMONS array in /etc/rc.conf.<br />
* Make sure that you are using <code>exec ck-launch-session startxfce4</code> in ~/.xinitrc or a consolekit/policykit capable display manager (e.g. gdm)<br />
*If you start xfce with startx or xinit, you need to uncomment the last line in {{Filename|/etc/pam.d/login}} so that your X11 session is authorized by consolekit:<br />
<br />
session optional pam_ck_connector.so<br />
<br />
== Tips ==<br />
=== Commands for the settings manager ===<br />
<br />
There is no official documentation for the commands executed. One must look at .desktop files ''/usr/share/applications/'' folder. For the people who like to know exactly what is happening, here is a handy list to save the effort:<br />
<br />
xfce-setting-show backdrop<br />
xfce-setting-show display<br />
xfce-setting-show keyboard<br />
xfce4-menueditor<br />
xfce-setting-show sound<br />
xfce-setting-show mouse<br />
xfce-setting-show session<br />
xfce-setting-show<br />
xfce-setting-show splash<br />
xfce-setting-show ui<br />
xfce-setting-show xfwm4<br />
xfce-setting-show wmtweaks<br />
xfce-setting-show workspaces<br />
xfce-setting-show printing_system<br />
xfce4-appfinder<br />
xfce4-autostart-editor<br />
xfce4-panel -c<br />
<br />
To review all the available setting manager commands run the following in a terminal:<br />
<br />
$ grep xfce-setting-show /usr/share/applications/xfce*settings*<br />
<br />
=== A drop down console like in quake ===<br />
<br />
# pacman -S tilda<br />
<br />
will install tilda, a drop down console, similar to yakuake. A more lightweight alternative would be '''stjerm''' which can be found in the AUR.<br />
<br />
To configure tilda, type<br />
<br />
# tilda -C<br />
<br />
which opens a configuration window in X.<br />
<br />
====Guake====<br />
Another functional alternative is guake, which is available in the community repo:<br />
<br />
# pacman -S guake<br />
<br />
=== How to enable the compositor in Xfce 4.6 ===<br />
Xfce 4.6 comes with a builtin compositor adding the option for fancy window effects, shadows and transparency and so on. It can be enabled in the Window Manager Tweaks and works on the fly. No additional settings are needed in your /etc/xorg.conf. To enable and adjust settings, go to:<br />
<br />
Menu --> Settings --> Window Manager Tweaks<br />
<br />
=== Why doesn't my desktop refresh? ===<br />
Xfce 4.6 uses [[FAM]] (File Alteration Monitor) or [[gamin]] (FAM's successor) to get notification when a file or directory changes.<br />
If you decide to use FAM, don't forget to add 'fam' to the list of DAEMONS in /etc/rc.conf.<br />
This step is not necessary for gamin.<br />
<br />
NOTE: After recent updates, FAM has caused issues opening some mounts, such as sshfs, that gamin does not have an issue with.<br />
<br />
=== Use a transparent background for desktop icon titles ===<br />
To change the default white background of desktop icon titles to something more suitable, edit the .gtkrc-2.0 file in your home directory (or create the file if needed) and add the following:<br />
style "xfdesktop-icon-view" {<br />
XfdesktopIconView::label-alpha = 10<br />
base[NORMAL] = "#000000"<br />
base[SELECTED] = "#71B9FF"<br />
base[ACTIVE] = "#71FFAD"<br />
fg[NORMAL] = "#ffffff"<br />
fg[SELECTED] = "#71B9FF"<br />
fg[ACTIVE] = "#71FFAD" }<br />
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"<br />
<br />
=== How to customize xfce panel background ===<br />
The same, edit ~/.gtkrc-2.0. ( foo.bar is path to your image )<br />
Note that you must place the image in the same directory as the configuration, which is ~/. You can not specify the path to the image, or it won't work.<br />
style "panel-background" {<br />
bg_pixmap[NORMAL] = "foo.bar"<br />
bg_pixmap[PRELIGHT] = "foo.bar"<br />
bg_pixmap[ACTIVE] = "foo.bar"<br />
bg_pixmap[SELECTED] = "foo.bar"<br />
bg_pixmap[INSENSITIVE] = "foo.bar"<br />
}<br />
widget_class "*Panel*" style "panel-background"<br />
<br />
=== How to customize starting xfce ===<br />
<br />
This includes getting necessary environment variables into the GUI runtime.<br />
<br />
* Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/<br />
* Edit this file. For example, you can add something like this somehwere in the middle:<br />
source $HOME/.bashrc<br />
# start rxvt-unicode server<br />
urxvtd -q -o -f<br />
<br />
=== How to add themes to XFCE === <br />
<br />
1. Go to [http://xfce-look.org xfce-look.org] and click "Themes" in the left navbar. Look around for a theme you want and click "Download".<br />
<br />
2. Go to the directory where you downloaded the tarball/file and extract it using Squeeze/Xarchiver/CLI.<br />
<br />
3. Move the extracted folder to /usr/share/themes (for all users) or ~/.themes (for just you). Inside /usr/share/themes/abc, there is a folder that you create called xfwm4 that will contain whatever files that is included with that theme.<br />
<br />
4. GTK theme is available here:<br />
Menu --> Settings --> Appearance<br />
You select your xfwm theme in:<br />
Menu --> Settings --> Window Manager<br />
<br />
=== Fonts ===<br />
<br />
If you find the standard fonts rather thick and or slightly out of focus open Settings>Appearence click on the Fonts tab and under Hinting: change to Full<br />
<br />
You could also try using a custom DPI setting<br />
<br />
=== Replacements for the default 'menu' panel applet ===<br />
The "Ubuntu System Panel" (Gnome) panel applet has similar features to those found in its KDE v4.2 equivalent. It can be added to an Xfce panel via the 'XfApplet' panel applet, which allows Gnome applets to be used in Xfce.<br />
<br />
It is available in [http://aur.archlinux.org/packages.php?ID=10259 the AUR]<br />
<br />
=== Switch to old desktop right click menu without Thunar things ===<br />
xfconf-query -c xfce4-desktop -v --create -p /desktop-icons/style -t int -s 0<br />
<br />
=== How to remove menu entries from the System menu === <br />
With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how to hide them:<br />
# Go to the /usr/share/applications folder. Type in the terminal (Xfce menu > System > Terminal): <pre>$ cd /usr/share/applications</pre><br />
# This folder should be full of .desktop files. To see how many there are, type: <pre>$ ls</pre>Say the one you want to edit is Firefox. Type in the terminal:<pre>$ sudo mousepad firefox.desktop</pre><br />
# In the bottom of the file, paste the following: <pre>NoDisplay=true</pre><br />
# Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.<br />
<br />
=== But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? === <br />
I've found some shortcuts that show in the category “Other” in this directory:<br />
~/.local/share/applications/wine/.<br />
<br />
=== How do I get xfce4-mixer and OSS4 to work together? ===<br />
<br />
Xfce 4.6 uses gstreamer as the backend to control volume, so first you have to make gstreamer cooperate with xfce4-mixer.<br />
<br />
pacman -S xfce4-mixer gstreamer0.10-base-plugins<br />
<br />
(Optional) Second, try to install gstreamer0.10-good-plugins, gstreamer0.10-bad-plugins<br />
<br />
pacman -S gstreamer0.10-good-plugins gstreamer0.10-bad-plugins<br />
<br />
login and logout, or just remove the mixer plugin and add it again. If it doesn't work at all, then you have to compile gstreamer0.10-good-plugins yourself. and can <br />
<br />
Download the PKGBUILD and other files needed from ABS or [http://repos.archlinux.org/viewvc.cgi/gstreamer0.10-good-plugins/repos/extra-i686/ here], edit the PKGBUILD, add --enable-oss. <br />
<br />
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var '''--enable-oss'''\<br />
--disable-static --enable-experimental \<br />
--enable-ladspa \<br />
--with-package-name="GStreamer Good Plugins (Arch Linux)" \<br />
--with-package-origin="http://www.archlinux.org/" || return 1<br />
<br />
and then run makepkg -i. <br />
<br />
makepkg -i<br />
<br />
Still not working? Try tis package in AUR [http://aur.archlinux.org/packages.php?ID=17024 gstreamer0.10-good-plugins-ossv4], modify the pkgver to the newest in the PKGBUILD, and it should work.<br />
<br />
Other LINKS: [http://www.4front-tech.com/forum/ OSS forum]<br />
<br />
=== How to take screenshots (print-screen key) ===<br />
<br />
A simple way is to use a command-line screenshot utility:<br />
<br />
# pacman -S scrot<br />
<br />
Then<br />
<br />
Xfce-menu --> Settings --> Keyboard >>> Application Shortcuts.<br />
<br />
Add the "scrot" command to use the "PrintScreen" key.<br />
<br />
All screenshots will be placed in your home folder with unique names like<br />
<br />
"2009-02-19-063052_1280x1024_scrot.png".<br />
<br />
====Screenshooter====<br />
<br />
There is also an a screenshot plugin for the Xfce panel that is available in extra:<br />
<br />
# pacman -S xfce4-screenshooter<br />
<br />
=== Change volume with keyboard volume buttons ===<br />
<br />
Go to Settings > Keyboard. Click the "Application Shortcuts" tab and add click the "Add" button. Add the following by entering the command, then pressing the corresponding button at the next window:<br />
<br />
==== ALSA ====<br />
For the raise volume button:<br />
amixer set Master 5%+<br />
For the lower volume button:<br />
amixer set Master 5%-<br />
For the mute button:<br />
amixer set Master toggle<br />
<br />
You can also run these commands to set the above commands to the standard XF86Audio keys:<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioRaiseVolume -n -t string -s "amixer set Master 5%+"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioLowerVolume -n -t string -s "amixer set Master 5%-"<br />
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioMute -n -t string -s "amixer set Master toggle"<br />
<br />
If {{codeline|amixer set Master toggle}} does not work, try the PCM channel ({{codeline|amixer set PCM toggle}}) instead.<br />
<br />
The channel must have a "mute" option for the toggle command to work. To check whether or not your Master channel supports toggling mute, run {{codeline|alsamixer}} in a terminal and look for the double M's (MM) under the Master channel. If they are not present, then it does not support the mute option.<br />
<br />
==== OSS ====<br />
Use one of these scripts:<br />
[http://www.opensound.com/wiki/index.php/Tips_And_Tricks#Using_multimedia_keys_with_OSS<br />
]<br />
<br />
If using ossvol (recommended), add:<br />
ossvol -i 1<br />
for the volume up button<br />
ossvol -d 1<br />
for the volume down button<br />
ossvol -t<br />
for the mute/unmute button<br />
<br />
=== Change mount options ===<br />
<br />
A common problem when automounting usb sticks formatted with fat filesystem is the inability to properly show characters as umlauts, ñ, ß, etc. This may be solved changing the default iocharset to utf8, which is easily done adding a line to '''/etc/xdg/xfce4/mount.rc''':<br />
<br />
[vfat]<br />
uid=<auto><br />
shortname=winnt<br />
'''utf8=true'''<br />
# FreeBSD specific option<br />
longnames=true<br />
<br />
Note that when using utf-8, the system will distinct between upper- and lowercases, potentially corrupting your files. Be careful.<br />
<br />
It is also recommendable to mount vfat devices with the '''flush''' option, so that when copying to usb sticks data flushes more often, thus making thunar's progress bar to stays up until things are on the disk.<br />
<br />
[vfat]<br />
flush=true<br />
<br />
=== Switch between users ===<br />
<br />
It is possible to switch between X sessions thanks to [http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin xfswitch-plugin ]. It adds an icon to the Xfce panel, and requires gdm to work at the moment.<br />
<br />
xfswitch-plugin is available through [http://aur.archlinux.org/packages.php?ID=40677 AUR ]<br />
<br />
== Troubleshooting ==<br />
=== Keyboard shortcuts aren't working ===<br />
Under Xfce 4.6 there is a problem where the user's [http://bugzilla.xfce.org/show_bug.cgi?id=5639 keyboard shortcuts will intermittently not work]. This is usually the case when the settings helper is either not running or has been started improperly due to a conflict. This bug has been fixed in Xfce 4.8, which replaced 4.6 in the main repositories.<br />
<br />
A workaround is to disable ''xfce4-settings-helper-autostart'' from autostarting in a user's session. The settings helper daemon will start upon loading an Xfce session, anyways. The following two steps seem to have resolved this issue.<br />
<br />
Remove or rename the global autostart .desktop file:<br />
mv /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop /etc/xdg/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
Remove or rename the local autostart .desktop file:<br />
mv ~/.config/autostart/xfce4-settings-helper-autostart.desktop ~/.config/autostart/xfce4-settings-helper-autostart.desktop.disabled<br />
<br />
After logging out and logging back in, your shortcut keys should be working fine now.<br />
<br />
=== Restore default settings ===<br />
If for any reason you need to revert back to the default settings, try renaming ~/.config/xfce4-session/ and ~/.config/xfce4/<br />
<br />
$ mv ~/.config/xfce4-session/ ~/.config/xfce4-session-bak<br />
$ mv ~/.config/xfce4/ ~/.config/xfce4-bak<br />
<br />
Logout and login for changes to take effect.<br />
<br />
== Xfce 4.8 (development version) ==<br />
<br />
=== Repository (development version) ===<br />
[xfce4-devel]<br />
Server = http://arch.ouranos.be/$repo/$arch/<br />
<br />
=== Start Xfce ===<br />
Use this command in .xinitrc to launch Xfce<br />
exec dbus-launch ck-launch-session xfce4-session<br />
<br />
=== Thunar - Removable devices ===<br />
Make sure dbus is running: /etc/rc.d/dbus start<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla and add yourself into the ''storage'' group<br />
[Local Users]<br />
Identity=unix-group:storage<br />
Action=org.freedesktop.udisks.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Reboot/Shutdown ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla and add yourself into the ''power'' group<br />
[Local restart]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local restart - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.restart-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
<br />
[Local shutdown - multiple]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.consolekit.system.stop-multiple-users<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
Now, some rules can be changed as if the ''Local * - multiple'' are redundant with the ''Local *''<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Suspend/Hibernate ===<br />
Create the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla and add yourself into the ''power'' group<br />
[Local Users]<br />
Identity=unix-group:power<br />
Action=org.freedesktop.upower.*<br />
ResultAny=yes<br />
ResultInactive=no<br />
ResultActive=yes<br />
The changes doesn't need any restart or reload.<br />
Please note that this is a temporary solution as Ionut and other core dev prefer to fix the pam + ck issues<br />
<br />
=== Forum related thread ===<br />
https://bbs.archlinux.org/viewtopic.php?pid=851985#p851985<br />
<br />
== Related Articles ==<br />
* [[Build order for XFCE]]<br />
* [[Improve GTK Application Looks]]<br />
* [[Autostart applications#Graphical]]<br />
<br />
== External Resources ==<br />
* [http://www.us.xfce.org/documentation/ Xfce.org] - The complete documentation.<br />
* [http://www.xfce-look.org/ Xfce-Look] - Themes, wallpapers, and more.<br />
* [http://xfce.wikia.com/wiki/Frequently_Asked_Questions Xfce Wikia] - How to edit the auto generated menu with the menu editor<br />
* [http://wiki.xfce.org Xfce Wiki]<br />
* [https://xubuntu.wordpress.com/2006/08/04/howto-remove-menu-entries-from-the-system-menu/ Howto: Remove menu entries from the System menu]<br />
* [http://www.linuxquestions.org/questions/linux-general-1/how-to-use-xfce-themes-658354/ XFCE themes at linuxquestions.org]</div>Shinnya