个人工具

“UbuntuHelp:Openbox/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(Fix typo from Openbo to Openbox)
Rox-Filer
 
(未显示3个用户的25个中间版本)
第1行: 第1行:
{{Translation}}
+
{{Copyedit translation}}
 
{{From|https://help.ubuntu.com/community/Openbox}}
 
{{From|https://help.ubuntu.com/community/Openbox}}
{{Translator|hjhee}}
+
{{Translator|Hjhee}}
 +
{{Verifier|Hjhee}}
 
{{Languages|UbuntuHelp:Openbox}}
 
{{Languages|UbuntuHelp:Openbox}}
'''Openbox是一个使用[http://www.freedesktop.org/ freedesktop]标准的轻量级窗口管理器。''' 它能或作为替换Gnome默认的窗口管理器被使用——[[UbuntuHelp:Metacity|Metacity]]——或作为一个独立的桌面环境。
+
 
 +
'''Openbox是一个遵循[http://www.freedesktop.org/ freedesktop]标准的轻量级窗口管理器。''' 它可用于替代Gnome的默认窗口管理器——[[UbuntuHelp:Metacity|Metacity]]——或者用于独立的桌面环境。
 
== Openbox是什么? ==
 
== Openbox是什么? ==
要回答那个问题,知道“窗口管理器”和“桌面环境”间的区别是重要的。
+
要回答那个问题,了解''窗口管理器''与''桌面环境''的区别是重要的。
  
''窗口管理器''是一个在你的屏幕上绘出正在运行的程序的''边框''的程序。窗口管理器控制你的程序窗口怎样地工作、怎样的外观和如何地行动。它决定用什么装饰窗口并给你移动、隐藏、调整大小、最小化和关闭窗口的方法。它控制按下按钮要做的那些东西,按下键使得事情发生。
+
''窗口管理器''是一个绘制活动程序的''边框''到屏幕上的程序。一个窗口管理器控制着程序边框的工作、外观和行为。它决定窗口的装饰并给你一个移动、隐藏、调整大小、最小化和关闭窗口的方法。管理按下键或按钮要做的事。
  
另一方面,''桌面环境''注重整个桌面。它提供任务栏,系统托盘,登录管理器,附加菜单或者可能屏幕保护和桌面图标。它也可能包含文件管理器,字档编辑器或其他辅助程序。
+
另一方面,''桌面环境''注重整个桌面。它提供任务栏,系统托盘,登录管理器,附加菜单亦或屏幕保护和桌面图标。它也可能包含文件管理器,字档编辑器或其他辅助程序。
  
Openbox是一个''窗口管理器'',不是一个''桌面环境''。Openbox仅仅是负责维持你在屏幕上打开的窗口——没有别的。那意味着安装Openbox不会给你简单的菜单访问到壁纸选项,任务栏或系统面板,或者大多数的doo-dads。然而,它给你一个结构去建立吸收做那些事情的程序——并通常在风格和界面有着一个更大的自由度。
+
Openbox是一个''窗口管理器'',而非一个''桌面环境''。Openbox只负责维持屏幕上打开的窗口——没有别的。那意味着安装Openbox不会给你方便的菜单去访问壁纸选项、任务栏或系统面板,还有其他众多的doo-dads。然而,它给你一个框架去吸收构建做那些事情的程序——并通常在界面和风格上有更大的自由。
  
Openbox能被单独使用,不用一个桌面环境,或者能被用于替换在完整的桌面环境里的窗口管理器。两种方法都受欢迎。
+
Openbox能被单独使用,除去桌面环境,也可以在完整的桌面环境里用于替代它的窗口管理器。两者都令人满意。
=== 特性和益处 ===
+
=== 特性与优势 ===
* '''最小化开支''', 使它适用于轻量级系统、老机器或speed demons;
+
* '''最小开销''',使它适用于轻量系统、老硬件或速度狂人;
* '''极少依赖''',又一吸引轻量级或最小化系统的特性;
+
* '''极少依赖''',是又一吸引轻量或最小系统的特性;
* '''鼠标轮滚屏'''的桌面,快速访问多个工作区;
+
* '''鼠标轮卷动'''桌面,能快速访问多个工作区;
* '''可制定的右键'''菜单与'''可制定的keybind'''被写入XML文件;
+
* '''可制定的右键'''菜单和'''可制定的键绑定'''写作XML文件;
* '''输送菜单''',菜单脚本的输出输送进Openbox菜单使用(想像它的可能性!);
+
* '''管道菜单''',菜单脚本的输出传送到Openbox菜单另作它用(想像它的可能性!);
 
* 大量的'''主题''',所有主题都能通过文本文件定制;
 
* 大量的'''主题''',所有主题都能通过文本文件定制;
* '''C语言'''写成;
+
* '''C语言'''写成;
* 多头'''Xinerama支持'''双屏输出;
+
* 用于双屏输出的多头'''Xinerama支持'''
* 尤其是,'''速度'''。
+
* 尤其是'''速度'''。
 +
 
 
=== 缺点 ===
 
=== 缺点 ===
* 分散,一些人感到有吸引力但其他人不喜欢;
+
* 稀疏,吸引一部分人但其他人不喜欢;
* 它需要用一段时间设立,甚至一旦它设立,更换风格或主题会成为附加工作;
+
* 需要一段时间搭建,并且一旦它搭建起来,更换风格或主题会成为额外的工作;
* 不处理鲜明的特性,像壁纸或任务栏;
+
* 不处理直观的特性,像壁纸或任务栏;
 
* 依靠外部程序处理简单的任务;
 
* 依靠外部程序处理简单的任务;
* 需要保养,因为它不是''自己设立的;''
+
* 需要一些维护,因为它不是''自己设立的;''
* 一些简单的操作,例如自动装载CDROM或绑定数码相机,会需要额外的步骤。
+
* 一些简单的操作,例如自动挂载CDROM或绑定数码相机,会需要额外的步骤。
  
 
== 安装 ==
 
== 安装 ==
Openbox在''universe''软件仓库里;在前进得更远之前确定你的[[UbuntuHelp:Repositories/zh|软件仓库]]是开启的。
+
Openbox在''universe''软件仓库里;在走得更远之前先确定你的[[UbuntuHelp:Repositories|软件仓库]]是开启的。
 
或在命令行里安装Openbox,
 
或在命令行里安装Openbox,
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install openbox obconf
 
sudo aptitude install openbox obconf
 
</nowiki></pre>
 
</nowiki></pre>
或通过Synaptic套件管理程序;标记''openbox''与''obconf''包为安装和应用变化。
+
或通过Synaptic套件管理程序;把''openbox''与''obconf''包標記为安装並应用变化。
  
 
== 在Gnome上用Openbox ==
 
== 在Gnome上用Openbox ==
 
只有你想把一个现有的Gnome桌面改变为Openbox才用使用以下教程。
 
只有你想把一个现有的Gnome桌面改变为Openbox才用使用以下教程。
=== 在Gnome里替换Metacity ===
+
=== 替换Gnome的Metacity ===
 
欲在Gnome替换Metacity安装,在终端窗口里键入这命令:
 
欲在Gnome替换Metacity安装,在终端窗口里键入这命令:
 
<pre><nowiki>
 
<pre><nowiki>
第56行: 第59行:
 
exec openbox-session
 
exec openbox-session
 
</nowiki></pre>
 
</nowiki></pre>
当然,不需要额外的程序与附件,在纯净的Openbox安装中很少事情要考虑。保持阅读为更多想法。
+
当然,不需要额外的程序与附件,纯粹的Openbox安装中很少事情要考虑。为更多想法,继续阅读。
  
 
== 配置 ==
 
== 配置 ==
 
=== menu.xml与rc.xml ===
 
=== menu.xml与rc.xml ===
Openbox uses two main configuration files: '''rc.xml''', which sets keybindings, desktop names and window behavior; and '''menu.xml''', which contains the instructions for the right-click menu. As you might have guessed, both files are written in XML and can be edited in any text editor program. If you make a mistake and your file is no longer valid XML, Openbox will revert to the default configuration files in /etc/xdg/openbox/.
+
Openbox使用两个主要的配置文件:'''rc.xml''',用来设置键绑定、桌面名和窗口行为;和'''menu.xml''',包含右键菜单指令。正如你可能已经猜到,两个文件都用XML写成并且能用任何字档编辑器编辑。如果你犯了错误并且你的文件不再是正确的XML,那么Openbox会回复默认的配置文件,于/etc/xdg/openbox/
Here's an example of what's inside the menu.xml file.
+
下面是一个menu.xml文件有什么内容的例子。
 
<pre><nowiki>
 
<pre><nowiki>
 
<item label="Program_Name">
 
<item label="Program_Name">
第71行: 第74行:
 
</item>
 
</item>
 
</nowiki></pre>
 
</nowiki></pre>
As you can see, the menus are neatly nested so they can be easily followed. Each entry has an opening tag and a closing tag, and each is clearly readable. rc.xml has a similar structure.
+
正如你能看到的,菜单是整齐的嵌套因此它们能被容易地追随。每个条目都有一个开始标签和关闭标签,并且每个是清楚易读的。rc.xml有一个类似的结构。
For more information about how to hand-edit Openbox's XML files, read over the [http://icculus.org/openbox/ Openbox Web site].
+
欲知更多关于如何手动编辑Openbox的XML文件的信息,参阅[http://icculus.org/openbox/ Openbox网站]
 
==== ObMenu ====
 
==== ObMenu ====
If you're not keen on editing an XML file, there's [http://obmenu.sourceforge.net/ ObMenu]. This is a very small Python program that will allow you to modify your menu with a simple GUI, and save the results back into your menu.xml file. It's fast, easy and you don't have to worry about typos in your menu.xml file.
+
如果你不喜欢编辑XML文件,这里有[http://obmenu.sourceforge.net/ ObMenu]。这是一个非常小的Python程序,允许你用一个简单的GUI修改菜单,并且把结果保存在menul.xml文件。它快速、容易,你也不用为menu.xml文件的笔误操心。
To install it, download the ObMenu package from [http://obmenu.sourceforge.net/download.html here], and decompress it. Next, install its dependencies.
+
Obmenu已存在于仓库。打开终端并输入安装:
 
<pre><nowiki>
 
<pre><nowiki>
sudo aptitude install python2.5 python-glade2 python-gtk2
+
sudo aptitude install obmenu
 
</nowiki></pre>
 
</nowiki></pre>
Now enter this command to install the program:
+
用命令''obmenu''运行该程序。
<pre><nowiki>
+
 
sudo python setup.py install
+
</nowiki></pre>
+
If all goes well (and it probably will), you should be able to bring up the ObMenu interface by entering the ''obmenu'' command in a terminal.
+
 
== 定制 ==
 
== 定制 ==
Openbox might just be a window manager, but there are plenty of opportunities to add some flair.
+
Openbox可能只是一个窗口管理器,但也有很多机会可以添加一些资质。
 
=== Obconf ===
 
=== Obconf ===
Obconf is a handy program to customise Openbox. It allows for the selection of themes, some window behaviour, the number of desktops, and the dock. You can start Obconf with this command:
+
Obconf是一个方便用来制定Openbox的程序。它允许设置主题、一些窗口行为、桌面数目,还有dock。你能用这行命令启动Obconf:
 
<pre><nowiki>
 
<pre><nowiki>
 
obconf
 
obconf
 
</nowiki></pre>
 
</nowiki></pre>
'''Note:''' Edgy (Ubuntu 6.10) users should be aware of a small discrepancy in Obconf that might prevent it from running. You can correct that with these commands ...
+
现在在一个X终端窗口进入''obconf''应该会激活Obconf对话框。
<pre><nowiki>
+
cd /usr/lib
+
sudo ln libobparser.so.0.4.0 libobparser.so.1
+
sudo ln libobrender.so.0.4.0 libobrender.so.1
+
</nowiki></pre>
+
Entering ''obconf'' in an X terminal window should now trigger the Obconf dialogue.
+
 
==== 主题 ====
 
==== 主题 ====
A variety of default themes are available in the repositories; you can install them via Synaptic, or through a terminal command:
+
默认主题的变种在仓库可用;你可以用Synaptic套件管理程序安装,或通过一行终端命令:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install openbox-themes
 
sudo aptitude install openbox-themes
 
</nowiki></pre>
 
</nowiki></pre>
A number of third-party sites also offer themes as compressed packages. Download the one you like, then decompress it into the ''~/.themes'' folder.
+
大量的第三方站点也提供经压缩的主题包。下载一个你喜欢的,然后解压至''~/.themes''文件夹。
 
<pre><nowiki>
 
<pre><nowiki>
tar -xzvf compressed-theme-package-that-you-downloaded.tar.gz -C ~/.themes/
+
tar -xzvf 你下载的压缩主题包.tar.gz -C ~/.themes/
 
</nowiki></pre>
 
</nowiki></pre>
Don't forget the trailing slash. Now you can use Obconf to select your theme.
+
别忘记跟上斜杠。现在你能用Obconf选择主题了。
==== 修正主题 ====
+
==== 主题订正 ====
The better part of a theme package is contained in a text file called ''themerc'' inside some nested folders in ''~/.themes''. If you want to fine-tune a theme (such as, make the letters bigger, or change the width of a window handle, or pick a different color), find the correct file in your ''~/.themes'' folder and edit it as you like.
+
部分较好的主题包包含一个叫''themerc''的文本文件,在''~/.themes''里的一些嵌套的文件夹内。如果你想微调一个主题(例如,让字体更大些,或者改变窗口标题的宽度,或者选择另一个颜色),找到在''~/.themes''文件夹里的那个文件,编辑成你想要的。
When you save it, you can reselect the theme with Obconf, and your changes will take effect.
+
当你保存它后,你可以用Obconf重新选择主题,你的变更就会生效。
 +
 
 
=== 壁纸 ===
 
=== 壁纸 ===
 
==== feh ====
 
==== feh ====
A number of programs can handle the responsibility of showing a background image; the most common is a funny little program called ''feh''.
+
许多程序可以负责背景图像显示;最流行的是一个有趣的小程序,叫''feh''
feh is actually a lightweight image viewer with a number of options, but perhaps the most popular is the ability to draw a desktop background. Pick a wallpaper image and try this command in a terminal.
+
feh事实上是一个伴随许多选项的轻量图像显示程序,但也许最流行的用途是绘制桌面背景。选择一张壁纸并在终端尝试这行命令。
 
<pre><nowiki>
 
<pre><nowiki>
feh --bg-scale /path/to/your/background/image.jpg
+
feh --bg-scale /壁纸/文件夹//路径/背景图像.jpg
 
</nowiki></pre>
 
</nowiki></pre>
Feh can handle other file types than just jpg. Once you've picked a wallpaper, feh stores the name in a file called ''.fehbg''. That means you can tell it to restore the wallpaper on the next boot by checking to see what's inside that file. Add this line to your ''~/.xinitrc'' file.
+
Feh可以处理各种其它类型的文件,不仅仅是jpg。一旦你选择了一张壁纸,feh把名字记录在一个叫''.fehbg''的文件。那意味着你可以让它下次启动后还原壁纸——经由查看那文件里有什么。把这行加到''~/.xinitrc''文件里去。
 
<pre><nowiki>
 
<pre><nowiki>
 
eval `cat $HOME/.fehbg` &
 
eval `cat $HOME/.fehbg` &
 
</nowiki></pre>
 
</nowiki></pre>
 
===== Nitrogen =====
 
===== Nitrogen =====
If you perfer a graphical method for choosing between many background images, perhaps nitrogen is a good option. Nitrogen allows you to choose from many background images from a preset directory, you should add any wallpapers you wish to choose from to this directory.
+
如果你喜欢用图形化的方法在众多背景图像中选择壁纸,也许nitrogen是一个好的选项。Nitrogen允许你在事先设好的文件夹里从许多背景图像中作出选择,你应该把任何希望选择的壁纸添加到该文件夹。
To use nitrogen, you should add
+
要使用nitrogen,你应该把
 
<pre><nowiki>
 
<pre><nowiki>
nitrogen /path/to/backgroundfiles/
+
nitrogen /背景文件//路径/
 
</nowiki></pre>
 
</nowiki></pre>
to your menu.xml file (or alternatively add it to your menu using obmenu.)
+
添加至menu.xml文件(或用obmenu添加到菜单)。
Next you must add
+
接着你必须把
 
<pre><nowiki>
 
<pre><nowiki>
 
nitrogen --restore
 
nitrogen --restore
 
</nowiki></pre>
 
</nowiki></pre>
to your ~/.config/openbox/autostart.sh (You can create this file if it does not exist)
+
写在你的~/.config/openbox/autostart.sh(如果不存在可以创建)
Now you can use your nitrogen entry in your menu to change your wallpaper and the changes will be restored on login.
+
现在你可以使用在菜单里的nitrogen条目更换壁纸,更改会在登录时被还原。
 
===== 随机壁纸 =====
 
===== 随机壁纸 =====
One neat trick available with feh is a random wallpaper on each boot. Make a directory in your home folder called "wallpapers", then put a few background images in it. Then copy this text into a file called ''wallpaper.sh'', and save it anywhere.
+
一个可用于feh的巧妙诀窍是在每次启动使用随机壁纸。在家目录创建一个叫"wallpapers"的文件夹,接着把一些背景图像放进去。然后把这些文本复制到一个叫''wallpaper.sh''的件中,并把它保存到任何地方。
 
<pre><nowiki>
 
<pre><nowiki>
 
#!/bin/bash
 
#!/bin/bash
第146行: 第141行:
 
feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}
 
feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}
 
</nowiki></pre>
 
</nowiki></pre>
Next make the script executable.
+
接着让脚本可执行。
 
<pre><nowiki>
 
<pre><nowiki>
 
chmod +x wallpaper.sh
 
chmod +x wallpaper.sh
 
</nowiki></pre>
 
</nowiki></pre>
Now add that program to your ~/.xinitrc file, like this.
+
现在把那程序添加至~/.xinitrc文件,就像这样。
 
<pre><nowiki>
 
<pre><nowiki>
 
./wallpaper.sh
 
./wallpaper.sh
 
</nowiki></pre>
 
</nowiki></pre>
When you log in, the script should be executed, and feh will pick a new wallpaper for your amusement.
+
当你登录时,该脚本会被执行,并且feh会选择一个新的壁纸为你消遣。
 
==== 其他选项 ====
 
==== 其他选项 ====
feh isn't the only program that can handle drawing a background image. Here are some others.
+
feh并非唯一一个能处理绘制背景图像的程序。这里有一些其它的选择。
 
* xsetbg
 
* xsetbg
 
* imagemagick
 
* imagemagick
 
* nitrogen
 
* nitrogen
Additionally, some file managers have the option of managing your wallpaper.
+
此外,一些文件管理器也有管理壁纸的选项。
 
* rox-filer
 
* rox-filer
 
* PCManFM
 
* PCManFM
* Nautilus, if started without the --no-desktop option, will draw over the background image
+
* Nautilus,如果不使用--no-desktop选项启动,它就会绘制出背景图像。
 
=== 桌面图标 ===
 
=== 桌面图标 ===
 
==== iDesk ====
 
==== iDesk ====
You can add customizable, clickable icons to your desktop with [http://idesk.sourceforge.net/wiki/index.php/Main_Page iDesk]. iDesk is available in the Ubuntu repositories, and is installable from the command line with
+
你可以添加可制定、点击的图标到你的[http://idesk.sourceforge.net/wiki/index.php/Main_Page iDesk]桌面。iDesk在Ubuntu仓库里可用,并可用这行命令安装:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install idesk
 
sudo aptitude install idesk
 
</nowiki></pre>
 
</nowiki></pre>
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.
+
如何设置和使用iDesk的教程,可查阅[http://idesk.sourceforge.net/ iDesk wiki]。为设置图标样式,你可能想搜索仓库,或者从第三方制定站点下载,例如[http://www.gnome-look.org Gnome-Look.org]和类似的地方。
 
==== Rox-Filer ====
 
==== Rox-Filer ====
Rox-filer is a file manager, but in addition to handling wallpaper, it also has a ''pinboard'' option, and can manage desktop icons. Install rox-filer with this command:
+
Rox-filer是一个文件管理器,但除了处理壁纸,它也有''插接板''选项,还可以管理桌面图标。使用这行命令安装rox-filer:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install rox-filer
 
sudo aptitude install rox-filer
 
</nowiki></pre>
 
</nowiki></pre>
You can set up the pinboard through Rox's menus.
+
你可以通过Rox的菜单建立插接板。
=== 任务栏和页面切换 ===
+
现在源里的rox-filer编译的版本不一致,导致无法接管桌面。目前bug还没有fix掉。请去[http://rox.sourceforge.net/2005/interfaces/ROX-Filer 官方网站]下载安装。
Some people prefer to use a taskbar or pager to keep track of running programs. Here's a list of applications you can add to your Openbox installation that will handle that task for you.
+
UBUNTU还是有很多bug的,特别是这些小众软件。
* bbpager
+
 
* pypanel ('''Note:''' For Ubuntu 6.10 users, the PyPanel included in the repositories is often reported as broken. Look [http://www.ubuntuforums.org/showthread.php?t=327514 here] for a possible way to fix it.)
+
=== 任务栏和翻页器 ===
* gnome-panel
+
一些人喜欢使用任务栏或翻页器去保持跟踪运行的程序。这里有一个应用程序列表,可添加到你的Openbox安装里——它会操纵你的任务。
* fspanel
+
=== 任务栏 ===
* fbpanel
+
面板可以选择的有很多:
* perlpanel
+
* [http://wiki.ubuntuusers.de/Pypanel pypanel]  
* xfce4-panel
+
* [http://wiki.ubuntuusers.de/GNOME_Panel gnome-panel]
 +
* [http://freshmeat.net/projects/fspanel/ fspanel]
 +
* [http://freshmeat.net/projects/perlpanel/ perlpanel]
 +
* [http://wiki.ubuntuusers.de/Xfce_Panel xfce4-panel]
 +
<pre>sudo apt-get install fbpanel</pre>
 +
<pre>sudo apt-get install tint2</pre>
 +
 
 +
=== 翻页器 ===
 +
* [http://bbtools.sourceforge.net/index.php bbpager]
 +
* [http://code.google.com/p/neap/ neap]
 
=== 系统监视器 ===
 
=== 系统监视器 ===
If you're looking for a way to display system information, try these nifty programs.
+
如果你在寻找一个显示系统信息的方法,那么试试这些精巧的程序。
* gkrellm, which has a number of floating or docked graphical meters and displays
+
* gkrellm,有一些浮动或停靠的图形统计表和监视器。
* adesklets, for similar graphical displays
+
* adesklets,为类似的图形监视器
* conky, a highly configurable text and graphic output that draws directly to your desktop
+
* conky,有着高度制定性的文件与直接绘制到你的桌面的图文输出
If you're working on Openbox in conjunction with a Gnome installation, you might also look into ''gdesklets'', which features some very polished monitors and meters for desktop display.
+
如果你结合Openbox安装Gnome,你可能也会查看''gdesklets'':以精良的监视器与计量器为特色的桌面显示。
 
=== GTK主题 ===
 
=== GTK主题 ===
Program GUIs might look ugly if you're working on a pure Openbox system. Install gtk-theme-switch and the gtk2-engines package to give yourself a few more appealing options.
+
若你在一个原始的Openbox系统上工作,那么程序的GUI可能会显得丑陋。安装gtk-theme-switch和gtk2-engines会为你带来多几个心动的选项。
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install gtk-theme-switch gtk2-engines
 
sudo aptitude install gtk-theme-switch gtk2-engines
 
</nowiki></pre>
 
</nowiki></pre>
Bring up the configuration menu with this command, from a terminal or the Openbox right-click menu.
+
从终端或Openbox右键菜单,用这行代码提出配置选单。
 
<pre><nowiki>
 
<pre><nowiki>
 
switch2
 
switch2
 
</nowiki></pre>
 
</nowiki></pre>
Be sure to search the repositories for other engines that aren't included in the gtk2-engines package.
+
确保去仓库寻找不包含在gtk2-engines内的其他引擎。
You can also try installing a Gnome package that will manage some of the settings for you.
+
你也可以试着安装Gnome,它会为你管理它的一些设置。
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install gnome-settings-daemon
 
sudo aptitude install gnome-settings-daemon
 
</nowiki></pre>
 
</nowiki></pre>
If you prefere an XFCE look, try
+
如果你偏爱XFCE样式,试着
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install xfce-mcs-manager
 
sudo aptitude install xfce-mcs-manager
</nowiki></pre>
+
</nowiki></pre>  
Both of those programs can be added to your Openbox menu, or started from a terminal.
+
基于已安装的程序会从openbox的autostart.sh运行。
 
=== 自动挂载 ===
 
=== 自动挂载 ===
To automount external volumes -- like CDs and USB drives -- you will need a volume manager. Here is the Gnome application that handles that:
+
欲自动挂载外部卷——如CD和USB盘——你会需要一个卷管理器。这是Gnome用于处理的应用程序:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install gnome-volume-manager
 
sudo aptitude install gnome-volume-manager
 
</nowiki></pre>
 
</nowiki></pre>
Kubuntu and Xubuntu share the ivman application, which is installable with:
+
Kubuntu和Xubuntu共同使用ivman,可用下面的命令安装:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install ivman
 
sudo aptitude install ivman
 
</nowiki></pre>
 
</nowiki></pre>
 
=== 屏幕保护 ===
 
=== 屏幕保护 ===
If you're building an Openbox desktop with Gnome already installed, you'll probably already have ''gnome-screensaver'' in place. Pure Openbox fans might want to install ''xscreensaver'', which is more customizable and has a wider variety of screensavers involved.
+
若你在拥有Gnome的桌面上建立Openbox,那么你可能已经拥有了''gnome-screensaver''。纯粹的Openbox fans也许想安装''xscreensaver'',它更加可制定,并拥有更多种屏幕保护。
Without K/X/Ubuntu in place, installing xscreensaver needs a couple of extra commands:
+
K/X/Ubuntu没有一歩到位,安装xcreensaver需要额外的两个命令:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo mkdir /usr/share/backgrounds
 
sudo mkdir /usr/share/backgrounds
 
sudo aptitude install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra
 
sudo aptitude install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra
 
</nowiki></pre>
 
</nowiki></pre>
The first command sets up a default directory that xscreensaver will look for when it runs. If you don't create that directory, you'll get a string of error messages the first time you set the preferences.
+
第一条命令是建立一个默认文件夹,xscreensaver运行时会寻找。如果你不创建那文件夹,在第一次设置首选项时你会得到一串错误信息。
The second command installs xscreensaver and its optional files. xscreensaver in Ubuntu is packaged with several screensaver options enabled, but not installed. As a result, you might see brief error messages when the daemon picks an enabled screensaver that it can't find. Adding those packages puts the missing screensavers in place, which is easier than disabling the absent ones.
+
 
Now add this command to your ''~/.xinitrc'' file, to start the xscreensaver daemon on boot.
+
第二条命令是安装xscreensaver和它可选择的文件。在Ubuntu,xcreensaver开启了若干屏幕保护选项打包,但没有安装。因此,当守护程序启用一个不能找到的屏幕保护时,你可能会看见简短的错误信息。加上那些包,把缺少的屏幕保护放到适当的位置,是比禁用缺乏的更容易的方法。
 +
 
 +
为了在引导时启动xscreensaver,现在把这行命令加到''~/.xinitrc''文件。
 
<pre><nowiki>
 
<pre><nowiki>
 
xscreensaver --no-splash
 
xscreensaver --no-splash
 
</nowiki></pre>
 
</nowiki></pre>
You can access the xscreensaver preferences panel by running ''xscreensaver-demo'' from the Openbox menu or from a terminal window.
+
你可以经由运行''xscreensaver-demo''于Openbox菜单或终端窗口,访问xscreensaver选项板。
=== 运行会话框 ===
+
 
Some people find it convenient to invoke a run dialogue program, which is usually triggered with ALT+F2. You'll need to change the keybinding in the rc.xml file in order to regain that function.
+
=== 运行会话 ===
If you are using XFCE components, changing rc.xml to point at ''xfrun4'' might solve the problem. If not, consider installing the ''gmrun'' program.
+
一些人会发现它便于调用一个运行对话程序,通常用ALT+F2触发。你会需要在rc.xml文件更改键绑定,以便恢复该功能。
 +
 
 +
若你使用XFCE的组件,更改rc.xml去指向''xfrun4''也许会解决这问题。不然的话,考虑安装''gmrun''
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install gmrun
 
sudo aptitude install gmrun
 
</nowiki></pre>
 
</nowiki></pre>
Change your rc.xml file to point to ''gmrun''; you don't have to add it to your ''.xinitrc'' file, though.
+
更改你的rc.xml文件以指向''gmrun'';尽管你不必把它加到你的''.xinitrc''文件。
== 其他轻量级窗口管理器 ==
+
== 其他窗口管理器 ==
 
=== 替换Metacity ===
 
=== 替换Metacity ===
As an alternative to [[UbuntuHelp:Metacity|Metacity]], consider these window managers.
+
作为[[UbuntuHelp:Metacity|Metacity]]的替换品,考虑下面的窗口管理器。
* xfwm4: This is the default window manager for the XFCE4 desktop environment, and is a very comprehensive substitute. Instructions on replacing [[UbuntuHelp:Metacity|Metacity]] with XFCE4 are found [http://www.ubuntuforums.org/showthread.php?t=88393 here].
+
* xfwm4:这是XFCE4桌面环境的默认窗口管理器,并且它是一个非常全面的替代品。用XFCE4替换[[UbuntuHelp:Metacity|Metacity]]的教程可在[http://www.ubuntuforums.org/showthread.php?t=88393 这里]找到。
* Fluxbox: Fluxbox is a very attractive, very lightweight window manager that is highly customizable and has a very strong following. To replace [[UbuntuHelp:Metacity|Metacity]] with [[UbuntuHelp:Fluxbox|Fluxbox]], check [http://www.ubuntuforums.org/showthread.php?t=63734 this thread] in the forums.
+
* compiz:Compiz是一个现代的窗口管理器,拥有像动画、半透明装饰的许多特效和自己提供的合成管理器。
=== Standalone ===
+
* E17:Enlightenment提供完整的桌面环境,围绕速度和外观。这包含窗口管理器和桌面shell。
Here are some alternatives to Openbox for standalone window managers and desktop environments.
+
=== 独立的 ===
* [[UbuntuHelp:FVWM|FVWM]]: FVWM is a traditional window manager with a long history in the Linux community. It is highly customizable, very flexible and has a very slim profile.
+
以下是一些用于替换Openbox的独立的窗口管理器和桌面环境。
* [[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]]: FVWM is set of configuration files that sits atop of FVWM, and is installable as a complete desktop environment with integrated audio controls, screensaver options and wallpaper control. It's also one of the prettiest options available to older hardware.
+
* [[UbuntuHelp:FVWM|FVWM]]:FVWM是一个在Linux社区有着长久历史的传统的窗口管理器。它高度可制定,非常灵活并且有着十分苗条的配置文件。
* [[UbuntuHelp:Fluxbox|Fluxbox]]: Fluxbox is a window manager intended to be lightweight, fast and beautiful. It achieves all of those things, and more. If you find you enjoy working with Fluxbox, the [http://www.fluxbuntu.org/ Fluxbuntu] project might be for you.
+
* [[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]]:FVWM是一套用于FVWM的配置文件,可安装为一套完整的桌面环境,附随整合的音频控制、屏幕保护选项与桌面壁纸设置。它也是可为老硬件选择的,最漂亮的选项之一。
* [[UbuntuHelp:IceWM|IceWM]]: [[UbuntuHelp:IceWM|IceWM]] is likewise a clean and svelte window manager, but keeps a "traditional" desktop look that some users prefer.
+
* [[UbuntuHelp:Fluxbox|Fluxbox]]:Fluxbox是一个有意成为疾速的窗口管理器,它基于Blackbox 0.61.1的代码。它实现以上所有的东西,还有更多。如果你发现你享受着与Fluxbox工作,[http://www.fluxbuntu.org/ Fluxbuntu]计划可能适合你。
* [[UbuntuHelp:Blackbox|Blackbox]]: Blackbox served as the basis for Openbox, although Openbox has been completely rewritten in past years. Blackbox is still available, and still a popular option.
+
* [[UbuntuHelp:IceWM|IceWM]][[UbuntuHelp:IceWM|IceWM]]同样是一个洁净苗条的窗口管理器,但保持着某些用户喜欢的“传统”桌面样式。
* XFCE: XFCE serves as the underpinnings for [http://www.xubuntu.org/ Xubuntu], a fully supported Ubuntu variant complete with an office suite, networking interfaces, e-mail clients, and more. The project began as an option to run Ubuntu on older hardware, but has matured into a complete system on par with Kubuntu or Ubuntu. Visit their home page for more information about the project.
+
* [[UbuntuHelp:Blackbox|Blackbox]]:Blackbox是Openbox的基础,尽管Openbox已被完全重写多年。不过Blackbox仍然有效,并且还是一个受欢迎的选项。
 +
* XFCE:XFCE作为[http://www.xubuntu.org/ Xubuntu]的基础,一个完全被支持的Ubuntu衍生版,有着完善的官方小组,网络接口,电子邮件客户端等。此计划以一个在老硬件上运行Ubuntu的选项开始,但已发展成为完整的系统与Kubuntu或Ubuntu等同。计划的更多资讯可浏览它们的主页。
 +
 
 
== 外部连结 ==
 
== 外部连结 ==
 
=== Openbox ===
 
=== Openbox ===
* [http://icculus.org/openbox/ Openbox web site]
+
* [http://icculus.org/openbox/ Openbox网站]
* [http://icculus.org/openbox/index.php/Help:Contents Openbox documentation wiki]
+
* [http://icculus.org/openbox/index.php/Help:Contents Openbox文档wiki]
* [http://www.ubuntuforums.org/showthread.php?t=75471 An Openbox howto on ubuntuforums.org]
+
* [http://www.ubuntuforums.org/showthread.php?t=75471 ubuntuforums.org上的一个Openbox howto]
* [[UbuntuWiki:CustomXSession|XSession|Wiki page]]
+
* [http://www.ubuntuforums.org/showthread.php?t=103806 如何构建Oubuntu!桌面]
* [http://www.ubuntuforums.org/showthread.php?t=103806 How to build an Oubuntu! desktop]
+
 
=== Openbox主题 ===
 
=== Openbox主题 ===
 
* [http://themes.freshmeat.net/browse/1087/ Freshmeat]
 
* [http://themes.freshmeat.net/browse/1087/ Freshmeat]
 
* [http://www.box-look.org/index.php?xcontentmode=7402 box-look.org]
 
* [http://www.box-look.org/index.php?xcontentmode=7402 box-look.org]
=== 一个.xsession样品文件 ===
+
=== 一個.xsession樣例 ===
* [http://www.ubuntuforums.org/showthread.php?t=23998 An example from ubuntuforums.org]
+
* [http://www.ubuntuforums.org/showthread.php?t=23998 ubuntuforums.org的例子]
 +
 
 
=== 其他程序 ===
 
=== 其他程序 ===
* [http://www.linuxbrit.co.uk/feh/ feh Web site]
+
* [http://www.linuxbrit.co.uk/feh/ feh网站]
* [http://projects.l3ib.org/nitrogen/ nitrogen Web site]
+
* [http://projects.l3ib.org/nitrogen/ nitrogen网站]
* [http://www.muhri.net gkrellm themes]
+
* [http://www.muhri.net gkrellm主题]
=== 其他兴趣站点 ===
+
=== 兴趣站点 ===
* [http://en.wikipedia.org/wiki/Openbox Wikipedia article on Openbox]
+
* [http://en.wikipedia.org/wiki/Openbox Wikipedia上的Openbox文章]
* [http://gentoo-wiki.com/HOWTO_Openbox Openbox in the Gentoo Linux wiki]
+
* [http://gentoo-wiki.com/HOWTO_Openbox Openbox于Gentoo Linux wiki]
 
----
 
----
[[category:CategoryCleanup]]
+
——我仍然介意此页面应该分开,Gnome与Openbox占了前面大多数资源,这与“Ubuntu上纯粹的Openbox”说明更接近。编辑:划掉它。Openbox+Gnome的资源可移动到[[UbuntuHelp:ReplaceMetacityWithOpenbox|ReplaceMetacityWithOpenbox]],并且从这连结到那里。
-- I'm still of the mind that this page should be split out, with Openbox on Gnome taking the bulk of the previous material, and this staying closer to a "pure Openbox on Ubuntu" explanation. Edit: Scratch that. Openbox+Gnome material can shift to [[UbuntuHelp:ReplaceMetacityWithOpenbox|ReplaceMetacityWithOpenbox]], and link to there from here. -- K.Mandla
+
-- K.Mandla
 
+
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]
 +
[[category:桌面环境]]

2010年8月15日 (日) 13:04的最新版本


Openbox是一个遵循freedesktop标准的轻量级窗口管理器。 它可用于替代Gnome的默认窗口管理器——Metacity——或者用于独立的桌面环境。

Openbox是什么?

要回答那个问题,了解窗口管理器桌面环境的区别是重要的。

窗口管理器是一个绘制活动程序的边框到屏幕上的程序。一个窗口管理器控制着程序边框的工作、外观和行为。它决定窗口的装饰并给你一个移动、隐藏、调整大小、最小化和关闭窗口的方法。管理按下键或按钮要做的事。

另一方面,桌面环境注重整个桌面。它提供任务栏,系统托盘,登录管理器,附加菜单亦或屏幕保护和桌面图标。它也可能包含文件管理器,字档编辑器或其他辅助程序。

Openbox是一个窗口管理器,而非一个桌面环境。Openbox只负责维持屏幕上打开的窗口——没有别的。那意味着安装Openbox不会给你方便的菜单去访问壁纸选项、任务栏或系统面板,还有其他众多的doo-dads。然而,它给你一个框架去吸收构建做那些事情的程序——并通常在界面和风格上有更大的自由。

Openbox能被单独使用,除去桌面环境,也可以在完整的桌面环境里用于替代它的窗口管理器。两者都令人满意。

特性与优势

  • 最小开销,使它适用于轻量系统、老硬件或速度狂人;
  • 极少依赖,是又一吸引轻量或最小系统的特性;
  • 鼠标轮卷动桌面,能快速访问多个工作区;
  • 可制定的右键菜单和可制定的键绑定写作XML文件;
  • 管道菜单,菜单脚本的输出传送到Openbox菜单另作它用(想像它的可能性!);
  • 大量的主题,所有主题都能通过文本文件定制;
  • C语言写成;
  • 用于双屏输出的多头Xinerama支持
  • 尤其是速度

缺点

  • 稀疏,吸引一部分人但其他人不喜欢;
  • 需要一段时间搭建,并且一旦它搭建起来,更换风格或主题会成为额外的工作;
  • 不处理直观的特性,像壁纸或任务栏;
  • 依靠外部程序处理简单的任务;
  • 需要一些维护,因为它不是自己设立的;
  • 一些简单的操作,例如自动挂载CDROM或绑定数码相机,会需要额外的步骤。

安装

Openbox在universe软件仓库里;在走得更远之前先确定你的软件仓库是开启的。 或在命令行里安装Openbox,

sudo aptitude install openbox obconf

或通过Synaptic套件管理程序;把openboxobconf包標記为安装並应用变化。

在Gnome上用Openbox

只有你想把一个现有的Gnome桌面改变为Openbox才用使用以下教程。

替换Gnome的Metacity

欲在Gnome替换Metacity安装,在终端窗口里键入这命令:

openbox --replace

如果你想让Openbox保持为你默认的窗口管理器,只需在登出时保存你的会话。

选择会话

当你到达GDM登录窗口时,按下“会话”按钮应该会给你Openbox选项。单击,让你登录后启动Openbox。

用Openbox本身

使用Openbox本身是一个简单的工作。编辑你的~/.xinitrc文件并加入这行,让X启动时呼叫Openbox。

exec openbox-session

当然,不需要额外的程序与附件,纯粹的Openbox安装中很少事情要考虑。为更多想法,继续阅读。

配置

menu.xml与rc.xml

Openbox使用两个主要的配置文件:rc.xml,用来设置键绑定、桌面名和窗口行为;和menu.xml,包含右键菜单指令。正如你可能已经猜到,两个文件都用XML写成并且能用任何字档编辑器编辑。如果你犯了错误并且你的文件不再是正确的XML,那么Openbox会回复默认的配置文件,于/etc/xdg/openbox/。 下面是一个menu.xml文件有什么内容的例子。

<item label="Program_Name">
	<action name="Execute">
		<execute>
			Program_Command
		</execute>
	</action>
</item>

正如你能看到的,菜单是整齐的嵌套因此它们能被容易地追随。每个条目都有一个开始标签和关闭标签,并且每个是清楚易读的。rc.xml有一个类似的结构。 欲知更多关于如何手动编辑Openbox的XML文件的信息,参阅Openbox网站

ObMenu

如果你不喜欢编辑XML文件,这里有ObMenu。这是一个非常小的Python程序,允许你用一个简单的GUI修改菜单,并且把结果保存在menul.xml文件。它快速、容易,你也不用为menu.xml文件的笔误操心。 Obmenu已存在于仓库。打开终端并输入安装:

sudo aptitude install obmenu

用命令obmenu运行该程序。

定制

Openbox可能只是一个窗口管理器,但也有很多机会可以添加一些资质。

Obconf

Obconf是一个方便用来制定Openbox的程序。它允许设置主题、一些窗口行为、桌面数目,还有dock。你能用这行命令启动Obconf:

obconf

现在在一个X终端窗口进入obconf应该会激活Obconf对话框。

主题

默认主题的变种在仓库可用;你可以用Synaptic套件管理程序安装,或通过一行终端命令:

sudo aptitude install openbox-themes

大量的第三方站点也提供经压缩的主题包。下载一个你喜欢的,然后解压至~/.themes文件夹。

tar -xzvf 你下载的压缩主题包.tar.gz -C ~/.themes/

别忘记跟上斜杠。现在你能用Obconf选择主题了。

主题订正

部分较好的主题包包含一个叫themerc的文本文件,在~/.themes里的一些嵌套的文件夹内。如果你想微调一个主题(例如,让字体更大些,或者改变窗口标题的宽度,或者选择另一个颜色),找到在~/.themes文件夹里的那个文件,编辑成你想要的。 当你保存它后,你可以用Obconf重新选择主题,你的变更就会生效。

壁纸

feh

许多程序可以负责背景图像显示;最流行的是一个有趣的小程序,叫feh。 feh事实上是一个伴随许多选项的轻量图像显示程序,但也许最流行的用途是绘制桌面背景。选择一张壁纸并在终端尝试这行命令。

feh --bg-scale /壁纸/文件夹/的/路径/背景图像.jpg

Feh可以处理各种其它类型的文件,不仅仅是jpg。一旦你选择了一张壁纸,feh把名字记录在一个叫.fehbg的文件。那意味着你可以让它下次启动后还原壁纸——经由查看那文件里有什么。把这行加到~/.xinitrc文件里去。

eval `cat $HOME/.fehbg` &
Nitrogen

如果你喜欢用图形化的方法在众多背景图像中选择壁纸,也许nitrogen是一个好的选项。Nitrogen允许你在事先设好的文件夹里从许多背景图像中作出选择,你应该把任何希望选择的壁纸添加到该文件夹。 要使用nitrogen,你应该把

nitrogen /背景文件/的/路径/

添加至menu.xml文件(或用obmenu添加到菜单)。 接着你必须把

nitrogen --restore

写在你的~/.config/openbox/autostart.sh(如果不存在可以创建) 现在你可以使用在菜单里的nitrogen条目更换壁纸,更改会在登录时被还原。

随机壁纸

一个可用于feh的巧妙诀窍是在每次启动使用随机壁纸。在家目录创建一个叫"wallpapers"的文件夹,接着把一些背景图像放进去。然后把这些文本复制到一个叫wallpaper.sh的件中,并把它保存到任何地方。

#!/bin/bash
WALLPAPERS="$HOME/path_to_your_wallpapers"
ALIST=( `ls -w1 $WALLPAPERS` )
RANGE=${#ALIST[*]}
SHOW=$(( $RANDOM % $RANGE ))

feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}

接着让脚本可执行。

chmod +x wallpaper.sh

现在把那程序添加至~/.xinitrc文件,就像这样。

./wallpaper.sh

当你登录时,该脚本会被执行,并且feh会选择一个新的壁纸为你消遣。

其他选项

feh并非唯一一个能处理绘制背景图像的程序。这里有一些其它的选择。

  • xsetbg
  • imagemagick
  • nitrogen

此外,一些文件管理器也有管理壁纸的选项。

  • rox-filer
  • PCManFM
  • Nautilus,如果不使用--no-desktop选项启动,它就会绘制出背景图像。

桌面图标

iDesk

你可以添加可制定、点击的图标到你的iDesk桌面。iDesk在Ubuntu仓库里可用,并可用这行命令安装:

sudo aptitude install idesk

如何设置和使用iDesk的教程,可查阅iDesk wiki。为设置图标样式,你可能想搜索仓库,或者从第三方制定站点下载,例如Gnome-Look.org和类似的地方。

Rox-Filer

Rox-filer是一个文件管理器,但除了处理壁纸,它也有插接板选项,还可以管理桌面图标。使用这行命令安装rox-filer:

sudo aptitude install rox-filer

你可以通过Rox的菜单建立插接板。 现在源里的rox-filer编译的版本不一致,导致无法接管桌面。目前bug还没有fix掉。请去官方网站下载安装。 UBUNTU还是有很多bug的,特别是这些小众软件。

任务栏和翻页器

一些人喜欢使用任务栏或翻页器去保持跟踪运行的程序。这里有一个应用程序列表,可添加到你的Openbox安装里——它会操纵你的任务。

任务栏

面板可以选择的有很多:

* pypanel 
* gnome-panel
* fspanel
* perlpanel
* xfce4-panel
sudo apt-get install fbpanel
sudo apt-get install tint2

翻页器

* bbpager
* neap

系统监视器

如果你在寻找一个显示系统信息的方法,那么试试这些精巧的程序。

  • gkrellm,有一些浮动或停靠的图形统计表和监视器。
  • adesklets,为类似的图形监视器
  • conky,有着高度制定性的文件与直接绘制到你的桌面的图文输出

如果你结合Openbox安装Gnome,你可能也会查看gdesklets:以精良的监视器与计量器为特色的桌面显示。

GTK主题

若你在一个原始的Openbox系统上工作,那么程序的GUI可能会显得丑陋。安装gtk-theme-switch和gtk2-engines会为你带来多几个心动的选项。

sudo aptitude install gtk-theme-switch gtk2-engines

从终端或Openbox右键菜单,用这行代码提出配置选单。

switch2

确保去仓库寻找不包含在gtk2-engines内的其他引擎。 你也可以试着安装Gnome,它会为你管理它的一些设置。

sudo aptitude install gnome-settings-daemon

如果你偏爱XFCE样式,试着

sudo aptitude install xfce-mcs-manager

基于已安装的程序会从openbox的autostart.sh运行。

自动挂载

欲自动挂载外部卷——如CD和USB盘——你会需要一个卷管理器。这是Gnome用于处理的应用程序:

sudo aptitude install gnome-volume-manager

Kubuntu和Xubuntu共同使用ivman,可用下面的命令安装:

sudo aptitude install ivman

屏幕保护

若你在拥有Gnome的桌面上建立Openbox,那么你可能已经拥有了gnome-screensaver。纯粹的Openbox fans也许想安装xscreensaver,它更加可制定,并拥有更多种屏幕保护。 K/X/Ubuntu没有一歩到位,安装xcreensaver需要额外的两个命令:

sudo mkdir /usr/share/backgrounds
sudo aptitude install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

第一条命令是建立一个默认文件夹,xscreensaver运行时会寻找。如果你不创建那文件夹,在第一次设置首选项时你会得到一串错误信息。

第二条命令是安装xscreensaver和它可选择的文件。在Ubuntu,xcreensaver开启了若干屏幕保护选项打包,但没有安装。因此,当守护程序启用一个不能找到的屏幕保护时,你可能会看见简短的错误信息。加上那些包,把缺少的屏幕保护放到适当的位置,是比禁用缺乏的更容易的方法。

为了在引导时启动xscreensaver,现在把这行命令加到~/.xinitrc文件。

xscreensaver --no-splash

你可以经由运行xscreensaver-demo于Openbox菜单或终端窗口,访问xscreensaver选项板。

运行会话

一些人会发现它便于调用一个运行对话程序,通常用ALT+F2触发。你会需要在rc.xml文件更改键绑定,以便恢复该功能。

若你使用XFCE的组件,更改rc.xml去指向xfrun4也许会解决这问题。不然的话,考虑安装gmrun

sudo aptitude install gmrun

更改你的rc.xml文件以指向gmrun;尽管你不必把它加到你的.xinitrc文件。

其他窗口管理器

替换Metacity

作为Metacity的替换品,考虑下面的窗口管理器。

  • xfwm4:这是XFCE4桌面环境的默认窗口管理器,并且它是一个非常全面的替代品。用XFCE4替换Metacity的教程可在这里找到。
  • compiz:Compiz是一个现代的窗口管理器,拥有像动画、半透明装饰的许多特效和自己提供的合成管理器。
  • E17:Enlightenment提供完整的桌面环境,围绕速度和外观。这包含窗口管理器和桌面shell。

独立的

以下是一些用于替换Openbox的独立的窗口管理器和桌面环境。

  • FVWM:FVWM是一个在Linux社区有着长久历史的传统的窗口管理器。它高度可制定,非常灵活并且有着十分苗条的配置文件。
  • FVWM-Crystal:FVWM是一套用于FVWM的配置文件,可安装为一套完整的桌面环境,附随整合的音频控制、屏幕保护选项与桌面壁纸设置。它也是可为老硬件选择的,最漂亮的选项之一。
  • Fluxbox:Fluxbox是一个有意成为疾速的窗口管理器,它基于Blackbox 0.61.1的代码。它实现以上所有的东西,还有更多。如果你发现你享受着与Fluxbox工作,Fluxbuntu计划可能适合你。
  • IceWMIceWM同样是一个洁净苗条的窗口管理器,但保持着某些用户喜欢的“传统”桌面样式。
  • Blackbox:Blackbox是Openbox的基础,尽管Openbox已被完全重写多年。不过Blackbox仍然有效,并且还是一个受欢迎的选项。
  • XFCE:XFCE作为Xubuntu的基础,一个完全被支持的Ubuntu衍生版,有着完善的官方小组,网络接口,电子邮件客户端等。此计划以一个在老硬件上运行Ubuntu的选项开始,但已发展成为完整的系统与Kubuntu或Ubuntu等同。计划的更多资讯可浏览它们的主页。

外部连结

Openbox

Openbox主题

一個.xsession樣例

其他程序

兴趣站点


——我仍然介意此页面应该分开,Gnome与Openbox占了前面大多数资源,这与“Ubuntu上纯粹的Openbox”说明更接近。编辑:划掉它。Openbox+Gnome的资源可移动到ReplaceMetacityWithOpenbox,并且从这连结到那里。 -- K.Mandla