XFce 4 安装指南

更新时间:2023-10-23 14:47:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

XFce 4 安装指南

XFce 4 安装指南: 从源代码安装:

自行编译安装也就是解压缩源代码包,然后在特定模块源代码的顶层目录执行: ./configure && make && make install 编译安装顺序: libxfce4util libxfcegui4 libxfce4mcs

xfce-mcs-manager

所有其他模块(在安装任何面板插件(panel plugin)之前请确认面板(xfce4 panel)组件本身已经安装)。

XFce 4的编译依赖语pkg-config, GTK+ >= 2.0.6(开发包也需要),libxml2,此外xffm还需要libdbh,libdbh能从 SourceForge下载。

It optionally depends on librsvg >= 2.2.x and libstartup-notification >= 0.5.

如果你要把XFce安装到不同于pkg-config默认确定的路径,你还需要设定环境变量PKG_CONFIG_PATH,使它指定到包含XFce 4的各库所要安装*.pc文件的路径,也就是${prefix}/lib/pkgconfig路径。 例如: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 从CVS安装: 取得源代码:

以下是从CVS取得某个模块的通用命令。查看某个模块的话,可以使用CVS库的Web界面 WebCVS。

其次,取出你感兴趣的模块:

cvs -d:pserver:anoncvs@cvs.xfce.org:/cvsroot/xfce co modulename 模块名可以是下列各模块中的任意一个:

xfce4 Use this module name to download all the modules at once xfce4/libxfce4util xfce4/libxfcegui4 xfce4/libxfce4mcs

xfce4/xfce-mcs-manager xfce4/xfce-mcs-plugins xfce4/xfce4-panel xfce4/xfwm4

xfce4/xfce-utils xfce4/xfce4-modules xfce4/xffm

xfce4/xfdesktop xfce4/xfce4-session xfce4/xfprint

xfce4/gtk-xfce-engine-2

xfce4/xfce4-iconbox xfce4/xfce4-mixer xfce4/xfce4-systray xfce4/xfce4-themes xfce4/xfce4-toys

xfce4/xfce4-trigger-launcher xfce4/xffm-icons xfce4/xfwm4-themes xfce4/xfcalendar 编译模块:

所有XFce 4模块依赖于GTK2,有些模块还依赖于libxml2。请确认你的系统已经安装了相应的包(包括开发包)。 在未来的版本里,XFce 4可能会依赖于gtk 2.2,但是到本页撰写为止gtk 2.0.x已经足够了。

Xffm需要libdbh,请从http://sf.net/projects/dbh/下载。 编译安装顺序: libxfce4util libxfcegui4 libxfce4mcs

xfce-mcs-manager

所有其他模块(在安装任何面板插件(panel plugin)之前请确认面板(xfce4 panel)组件本身已经安装)。

在编译安装了一个库之后,请执行 ldconfig。此前可能需要将 /usr/local 添加到 /etc/ld.so.conf。

此外还必须保证pkgconfig能找到需要的库,为此,PKG_CONFIG_PATH必须已经设定。例如:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

编译安装一个模块只是在该模块目录里简单的执行下列命令: ./configure && make && make install

如果有错误发生,请试着用./autogen.sh 替代./configure。这种情况下,你的系统应该已经装了automake,autoconf和libtool(一般Linux发行版都已安装)。如果这样还不行,请向xfce的邮件列表报告这个情况: xfce4-dev@moongroup.com .

返回顶上

XFce 4的运行

使用startxfce4启动一个XFce会话;包括主面板,窗口管理器和桌面背景管理器,并运行所有在~/Desktop/Autostart/里的应用程序或应用程序连接。

要定制startxfce的动作,只要把${sysconfdir}/xfce4/xinitrc拷贝到用户主目录的

~/.xfce4/目录下,然后做相应的修改。如果是从源代码安装的XFce 4, ${sysconfdir} 默认指向

/usr/local/etc; 二进制安装版则是 /etc。 或者,也可以使用完全自定义的~/.xinitrc文件或~/.xsession文件,后者为使

用图形登陆界面的用户使用。

设置管理器(xfce-mcs-manager)和窗口管理器用‘守护进程’的方式启动以保证他们运行于后台,所以不许要在他们的命令后面添加’&’符号。对于xfwm4加上--daemon参数即可。 xfce-mcs-manager xfwm4 --daemon xftaskbar4 & xfdesktop &

exec xfce4-panel 在’exec xfce4-panel’之前添加其他你需要运行的程序,注意加上 ’&’以保证程序运行在后台(你的程序能自动以后台方式运行的情况除外)。

如需要一个安全的测试环境,那么这个脚本可以启动一个运行XFce 4的Xnest会话:

#!/bin/bash

Xnest :1 -name \export DISPLAY=:1

xsetroot -display :1 -solid darkblue & xfce-mcs-manager xfwm4 --daemon xftaskbar4 & xfdesktop &

exec xfce4-panel

感谢Xavier Maillard提供上述脚本。 XFce 4 FAQ :

这部分内容还在整理中??

1. 我的打印机不能在xfprint4下正常工作该怎么办? 2. 能提供xfprint4的快速使用指南吗? 3. 怎么开启Xinerama支持?

4. 什么是“使用启动时提示”选项?

5. 我通常通过在选中的两个文件上右击鼠标在弹出的菜单中选择删除来删除他们,在xffm中我无法这样做!为什么?

6. 为什么没又选项使得能不带任何窗口修饰的启动一个应用程序或是让该程序窗口位于所有其他程序窗口之上或是让该程序不出现在任务条上?

7. 从一个桌面切换到另一个桌面时,焦点经常停留在主面板上,如何避免这种情况?

8. 如何设定xfdesktop左击弹出菜单的内容?

Array. How do I change keyboard shortcuts in XFce 4?

10. I’ve installed gtk-xfce-engine-2, but the themes do not appear in the \

11. I’ve noticed that some system tray icons do not appear in the panel/taskbar notification area, why?

12. Is it possible to change the icon used by the iconbox for a given application?

13. How do I disable the taskbar ?

14. I’ve installed a plugin for the panel, but the indicators don’t use different colors. What can I do?

15. Is there a session manager available for XFce 4.0 ?

16. The left-click to get the menu on the title bar menu button seems a little slow. How do I change that?

17. I want to use XFCE in a corporate environment and don’t let users to modify their menu.

1. 我的PostScript打印机不能在xfprint4下正常工作该怎么办? 要使用PostScript打印机你的系统需要安装a2ps 和 psutils 。 2. 能提供xfprint4的快速使用指南吗? 这个就是啦:

- 启动xfprint-manager(打印管理器)(在终端通过命令,或按主面板的打印管理器图标或是点击xffm文件管理器的“文件”菜单之“打印设置”菜单项)。 - 点击“打印机”菜单,点击子菜单“添加打印机”,这时会跳出一个对话框。 - 在“别名”框内输入你想要的打印机的名字。

- 在“系统名字”框内输入使用该打印机的系统命令(通常是‘lpr’或‘lp’)。 - 选择你的打印机类型(PostScript或line),然后单击“确定”按钮。

- 接下来你就可以把要打印的文件拖放到打印机控制器或通过命令 “xfprint4 文件名” 打印。

3. 怎么开启Xinerama支持?

要得到Xinerama的支持,在编译libxfcegui4必须这样配置 ./configure --enable-xinerama, 然后重新编译和安装整个XFce 4桌面环境(至少要重新安装xfwm4,xfce-utils和xfce4)。

如果你使用的是XFree86,情况经常是这样的,只有静态的libXinerama库。这将使你的XFce4不能使用Xinerama。所以,要自己创建动态的Xinerama库,用root用户使用如下命令的做法。 cd /usr/X11R6/lib

ld --whole-archive -share -o libXinerama.so.1 libXinerama.a ln -s libXinerama.so.1 libXinerama.so 之后重新编译和安装整个XFce4桌面环境。

此外,libXxf86misc通常也只有静态库。这将引起键盘插件的安装问题(使用Xinerama)。所以要得到动态的Xxf86misc库,还是用root用户,执行如下命令: cd /usr/X11R6/lib

ld --whole-archive -share -o libXxf86misc.so.1 libXxf86misc.a ln -s libXxf86misc.so.1 libXxf86misc.so

之后,需要重新编译和安装键盘插件并重启xfce-mcs-manager。 4. 什么是“使用启动时提示”选项? 选择该选项的情况下,窗口管理器会在程序加载过程中显示一个沙漏。当然你必须安装了启动时提示库,通常的发行版很可能已经包含了该库。这个选项功能只被一些比较新的程序支持(如使用gtk2.x和qt3.x的应用程序)。

请注意该API还没有最后定版,因此XFce 4只保证支持该库的0.5版本。 5. 我通常通过在选中的两个文件上右击鼠标在弹出的菜单中选择删除来删除他们,在xffm中我无法这样做!为什么?

你在当前最后选定文件上右击鼠标之时请务必同时按住CTRL键!这样可以选定

最后选择的文件并弹出一个菜单。你也可以使用delete键或主菜单上或工具栏上的相应功能。

6. 为什么没又选项使得能不带任何窗口修饰的启动一个应用程序或是让该程序窗口位于所有其他程序窗口之上或是让该程序不出现在任务条上?

xfwm4不提供也不会提供可以绕过应用程序所必需要的功能的特殊功能。应用程序应该能在使用标准的窗口管理器标准的基础上实现这种功能。此外,在应用程序中实现这种功能将会使用于任何窗口管理器,一个比较好的例子就是Gkrellm2的实现。

7. 从一个桌面切换到另一个桌面时,焦点经常停留在主面板上,如何避免这种情况?

不要在通过单击面板切换桌面,请使用鼠标滚轮或键盘(Ctrl+Alt+Right和Ctrl+Alt+Left), 否则使用任务条上的桌面切换器,这样该桌面上最后获得焦点的程序会还是为当前焦点所在程序。

8.如何设定xfdesktop左击弹出菜单的内容? 可以复制

$sysconfdir/xfce4/menu.xml到~/.xfce4/menu.xml然后手工编辑该拷贝。menu.xml使用UTF-8编码,

需使用能处理UTF-8编码的编辑器或工具显示和编辑。可以用 Menumaker,用Python写的菜单生成器,现在已经支持XFCE4了。

Array. How do I change keyboard shortcuts in XFce 4? Although xfwm4 was not designed as a general keyboard handling application you can define 10 keyboard shortcuts.

If you need more consider using a specialized application like xbindkeys. This is how to create a personal key theme : $ mkdir -p ~/.themes/xfwm4/custom.keys/

$ cp /usr/local/share/xfwm4/themes/default.keys/keythemerc ~/.themes/xfwm4/custom.keys/

$ ${EDITOR} ~/.themes/xfwm4/custom.keys/keythemerc

Then open the window manager settings dialog, go to the ’keyboard and focus’ tab and choose your new key theme.

Note: The location of the default theme depends on your

installation prefix. The example shows the default when building from source.

10. I’ve installed gtk-xfce-engine-2, but the themes do not appear in the \

The gtk-xfce-engine-2 package has to be installed using same prefix than Gtk2 itself. When installed from sources, the engine is, by default, installed in /usr/local, while Gtk2 is often installed in /usr. Just install gtk-xfce-engine-2 again using ./configure --prefix=/usr, and the themes will hopefully become available. 11. I’ve noticed that some system tray icons do not appear in the panel/taskbar notification area, why?

The system tray of XFce 4 understands only the freedesktop systray standard protocol, which some applications do not use yet.

12. Is it possible to change the icon used by the iconbox for a given application?

It’s not possible. This setting has to be managed by the application itself.

13. How do I disable the taskbar?

Just don’t run it at startup. Comment out the xftaskbar4& line in your $sysconfdir/etc/xfce4/xinitrc or ~/.xfce4/xinitrc.

14. I’ve installed a plugin for the panel, but the indicators don’t use different colors. What can I do?

First, try another Gtk theme, since some themes override the color. If it doesn’t solve the problem, you probably have an old ~/.gtkrc-2.0 : remove it and try again.

15. Is there a session manager available for XFce 4.0 ?

A session manager is available in CVS. Its name is xfce4-session.

It is not part of the XFce 4.0 first stable release because it is still under development. So be warned : it’s alpha code !

xfce4-session saves opened applications, in order to restore them

at their place when you restart XFce. Moreover it allows you to use the (hidden by default) \current session. Some applications require a running smproxy to be managed by xfce4-session.

To download xfce4-session from CVS, install cvs then type in a terminal : cvs -d:pserver:anoncvs@cvs.xfce.org:/cvsroot/xfce co xfce4/xfce4-session

16. The left-click to get the menu on the title bar menu button seems a little slow. How do I change that?

The left-button single-click menu button display speed is linked to the double click speed. If one wants the menu to appear quicker, just change the double click speed in the XFce 4 Settings Manager Mouse properties to be faster. Or, one can right click on the title bar to get the menu displayed almost instantly without adjusting the double-click speed. The menu will display both ways.

17. I want to use XFCE in a corporate environment and don’t let users to modify their menu.

You can do this by setting an environment variable named XFCE_DISABLE_USER_CONFIG before you start the xfce panel. 用工具条就可以了。 添加起来也很方便的

本文来源:https://www.bwwdw.com/article/z5uf.html

Top