Fluxbox/ko

This guide provides instructions on how to set up the Fluxbox window manager for X11.

플럭스박스 창 관리자 소개
리눅스 데스크톱 모델에 익숙하지 않은 사용자를 위해 다른 그래픽 프로그램을 관리하려 X11에서 실행하는 창 관리자라는 프로그램이 있습니다. 창 관리자는 어디에 각각의 창을 두고 크기는 어떻게 할 것이며, 어떤 데스크톱에서 이 창으로 접근할지 관리합니다. 각각의 창 관리자에 따라 사용자가 지정한 규칙 모음을 통해 자동으로 처리하거나 키보드 단축키나 마우스를 통해 실시간으로 처리할 수 있습니다.

Some WMs, however, take on more functionality than just window management. Fluxbox also provides a platform for launching applications, configuring keyboard shortcuts and background images, as well as displaying information with the slit. GNOME's default WM, Metacity, does not include these things, but they are available through other GNOME programs. Thus, one cannot truly say that Fluxbox is a lightweight WM. However, since Fluxbox includes everything necessary for a basic desktop, many people use it in place of larger desktop suites like GNOME or KDE.

그런데 이런 사실을 더욱 혼동되게 만드는건, 플럭스박스가 그놈이나 KDE를 대체할 수 있는 기본 창 관리자라는 것입니다. 예컨대, 어떤 사람은 그놈의 창 관리자인 메타시티를 찾지만, 그 사람이 원하는 유연성은 없습니다. 다만, 플럭스박스에는 모든 프로그램을 내장하지 않고, 완벽한 데스크톱 환경에 원하는 기능을 통합했습니다. 따라서 창을 관리하는 목적으로 어떤 사람은 그놈을 사용할 수 있고 다른 어떤 사람은 플럭스박스를 쓸 수 있습니다. 이런 기능 조합을 중복하는 설치 과정으로 인해 약간의 문제가 있을 수도 있음을 참고하십시오.

Fluxbox can also be expanded by third party software. This is often ideal in situations where hardware resources are limited, or as a matter of personal taste.

This article is aimed at those who are new to Fluxbox, curious, or who are wanting to get more out of the Gentoo/Fluxbox experience. The article will also illustrate how to get more (yet quite optional) functionality by using third party programs that work well with Fluxbox.

Installation
First, make sure a working X environment has been installed, as shown in the X Server's configuration article.

Special instructions
Before installing Fluxbox take a look at some of the available USE flags (listed above).

While the  and   USE flags are provided to give compatibility with these environments, it has been the author's experience that these USE flags are unneeded. If qt, gtk+, or any KDE/GNOME utility is desired feel free to emerge and configure them independently. The  and   flags simply add support for the respective protocols, and do not depend on external libraries. They so, however, increase the Fluxbox binary size.

There is also a  flag to make configuration easier later on. This flag will install, a special Fluxbox color scheme for the vim text editor. This enables users to more readily see the contents of their keys and init files for Fluxbox. It is a tiny extension for vim and is highly recommended if Fluxbox is to be configured at all.

Finally, there are three flags that customize the functionality of Fluxbox,,   and. These flags are provided so that users who do not need the slit or the toolbar can compile Fluxbox without them. This is useful when needing to run an extremely minimal environment, or when planning to use different applications that provide these features, such as standalone panels or docks.

Once the USE flags have been decided, add them to the file. For example, the following command will setup Fluxbox to use  and   but will keep the binary small by not pulling in support for KDE or GNOME protocols:

When dealing with WMs a must have is a program lock to the X display for preventing unauthorized system access. When installing Fluxbox it would be wise to emerge so the system can be locked. The vast majority of users will also want the ability to set their own background images on the desktop; emerging will make setting desktop background images a possibility. eterm also doubles as a nice X11 terminal. is a more lightweight solution that doubles as a slimmed down image browser.

Emerge
That is it; Fluxbox is now installed! However, it is likely it will not be used efficiently with just those tools. The following sections will help install other potentially necessary packages, and configure Fluxbox and the third party programs to work better for the user. Keep in mind that all these steps are optional, so feel free to pick and choose from what is presented as best suited.

X11 준비
Fluxbox is simply another program that runs on X11. If desired, one can startx and then type fluxbox at in an xterm window. However, to say the least, this is annoying. If one does not desire to boot to the GUI, but instead wants to start X11 manually, it is possible to have X automatically load Fluxbox by executing, as a normal (non-root) user:

The above method is also not ideal for most users, as they want to have the desktop environment all the time; it is a pain to type startx when desiring to use a GUI every time the system boots. It also presents a security risk to the unaware. If the X11 display is locked using xlock, but run X11 from a console, then someone with physical access to the system can switch to that console, kill X11, and use whatever account is logged in. The only way to prevent this is to either background X11 or run it in screen, detach the screen</tt> session, then logout of the console. This tedious task should not have to be performed. When graphical login manager this problem does not exist. However, graphical login managers require running X11 as root, which may be a bad thing. There are, as of this writing, no exploits that the author is aware of for the current version, but if one is concerned, then do not use X11 at all or use the above method with screen</tt>. Note that this is not a Fluxbox issue; it is an issue with X11 itself.

There are a number of graphical login managers to choose from; another manager can be chosen at discretion of the user, however SLiM will be used for the purpose of this article. SLiM works well for Fluxbox, as well as any other environments that may be installed (such as GNOME, KDE, or Xfce).

Themes and artwork
This section can be skipped for a minimal footprint, however it is nice to allow users to customize their WM's appearance. Themes specific to Fluxbox, Gentoo artwork for any WM, and themes that can be used on any *box WM will be installed.

플럭스박스 처음 실행하기
Now Fluxbox ready to run for the first time. It will create a directory called in each user's home directory, which is where Fluxbox will store its settings and populate them with some default values.

If SLiM or another display manager has been installed, be sure to start it by becoming root and running:

Choose Fluxbox as the session and login with a regular user.

Once Fluxbox is running, it will look quite plain. A blank desktop with a toolbar at the bottom should be visible. Right-clicking anywhere on the desktop should bring up the menu. From there X applications can be started, or a terminal can be opened run console programs.

Fluxbox hotkeys
Fluxbox comes with a very weak set of default keysets. It enables a user to switch windows and desktops, and no more. Before changing it, there are a few things necessary to know. In the Fluxbox keys file, there are some strange modifiers. "Mod1" is commonly known as the key, and Mod4 is the unspeakable (windows) key. Control and Shift are and. However, it is usually best to use Alt/Windows keys because other X11 programs tend to use Control and Shift for their own shortcuts.

All of these are independent, so feel free to leave out anything not desired, or to modify the given example to meet special needs. This guide uses what the author assumes to be the most common programs, so also substitute the name of the binary used if it differs from what appears. For more information, read the man page for Fluxbox ( man fluxbox ).

With that out of the way, fire up a text editor (non-root user), point it to, and begin enhancing some shortcuts!

System monitor
It is a common desire to setup a system monitor for X11 on desktop systems. Gkrellm ( is a commonly used monitor, but in the spirit of Fluxbox minimalism, a simpler monitor will be used. Welcome conky</tt>. If desired, use another monitor; there are plenty of instructions elsewhere on the wiki.

The default configuration file for Conky is rather weak, but more info can be found by reading the man page or the Gentoo Linux Conky Howto.

아이콘
Fluxbox does not come with a utility or program to draw icons to the desktop; everything is handled by keyboard shortcuts, or the right-click menu. iDesk is a program that can be used to fulfill this need. It is aimed at users of minimal WMs like Fluxbox who want to display icons in the root window, and it even supports funky graphic effects like transparency! Despite its name, iDesk is not affiliated with Apple or Mac. Installing iDesk is as simple as:

Once installed, it will be necessary to configure iDesk so that it is able to display icons. Its configuration file can be found at. This is a rather lengthy task, and can not be well covered in this article. The following resources might be useful in order to configure iDesk: man idesk, iDesk's Usage Guide and this thread in the Gentoo Forums.

Graphical file managers
It is important to note that Gentoo does not need a file manager. It is perfectly possible, and indeed simpler (in the author's humble opinion), to do file manipulation by command-line. However, not everyone agrees...

Many users who are new to Gentoo/Fluxbox are put off by the lack of a graphical file manager such as nautilus</tt> in GNOME. Fluxbox itself does not provide such a program, but, as always, one is simple to acquire. There are many choices, but this article will only present three, one for the gentoo who likes text only and two for the user who likes rox to thunar. It is also possible to install all three and try each one.

Gentoo File Manager
Gentoo is a minimalistic file manager which seeks to provide the benefits of a GUI interface without the bloat which is commonly associated.

The Gentoo file manager aims to be fully configurable via GUI, so feel free to tweak.

Rox File Manager
Rox is a file manager which uses icons as well as text and is much like Windows' Explorer.

Rox behaves much like "traditional" file managers, so its interface should be intuitive. If not, there always are man pages for further information.

Thunar File Manager
Thunar is a lightweight, fast file manager that, like Rox, behaves much like "traditional" file managers. It includes icons and text, and it is easy to use. Though originally designed for Xfce, it makes a nice complement to a Fluxbox-based system.

Image viewers
Many WMs come with utilities to view pictures (images) in a directory. These applications are small and lightweight, and do not allow for editing (which is assumed to be done by tools such as gimp</tt>). This is necessary when using command line, gentoo</tt>, or rox</tt> as file managers. Although thunar</tt> can display image thumbnails having a separate lightweight image viewer is still a good idea.

gqview</tt> can be launched in any directory, and can browse through any supported picture format.

테마, 배경, 시작 스크립트 설정
Fluxbox has a number of themes that can be accessed via the right click menu. Navigate to →. These themes usually set their own background, which is either a single color or a gradient of some type. Most users prefer to set their own backgrounds, and to have those background persist no matter what theme has been chosen. To do so, another one of Fluxbox's configuration files must be modified, this one governs Fluxbox's startup behavior. Fire up that text editor again; this time point it to the file.

If this file was pre-existing then be sure to clear it. Add the following to the newly created file, uncommenting as needed, and filling in values for the CAPS:

메뉴 만들기
The author uses a text editor to create menus. If this sounds appealing, please skip this section and proceed to Editing Menus by Hand.

It is possible to edit by hand after using an automatic generator (see next section), to add packages or delete those which are not used. Note when something is deleted from this menu, it does not delete the package from the system; only a link is removed from the individual user's menu. The program can still be run by command-line or alternate methods (hotkeys, etc.).

If Fluxbox has been installed then a program called fluxbox-generate_menu</tt> will be installed with it. This program can be used to generate menus. Run it with the following options as a non-root user to generate a menu:

It is recommended fluxbox-generate_menu</tt> (listed above) is used instead of other programs that accomplish similar tasks. The reason for the recommendation is that other programs may not understand Gentoo's filesystem directory structure, where fluxbox-generate_menu</tt> does.

This can also be done from the Fluxbox menu itself. There is usually an entry in the menu called  which will re-run this script, looking for any new applications that have been installed since the last time it was ran.

Editing menus by hand
Fluxbox's menu is a text file that follows a simple syntax that is described in this section. The default menu definition is present in the file.

Menu entries for executing applications are defined by an  element. Entries can be defined under the  definition (the menu root), or between a   and its corresponding   line (submenu definitions). For example:

최상위 메뉴 정의는   태그로 시작하며 그 다음 괄호 사이에 이름이 따라오고 각 메뉴 정의는   태그로 납니다. 모든 메뉴 명령 (여기서는 태그라고 하겠습니다) 은 각 괄호로 둘러쌓여 있으며 메뉴 이름은 소괄호로 둘러싸여있고, 실제 명령은 중괄호로 둘러싸여있습니다. 이 파일에서는 줄 시작 부분에 으로 시작하는 주석을 허용합니다.

In the example shown above, the first  line defines a new entry named "XTerm White on Black", which will execute xterm -ls -fg white -bg black</tt> as if from a command line. Next is a submenu which is defined using the  tag, and after that a section called "More terminals", with two more   commands. Any submenu definition must have its corresponding  tag.

There are other menu commands that can be used in the file. Read the official documentation available online for more information.

Setting default applications
See DefaultApplication

요약
Congratulations! Fluxbox is now installed, configured, and ready to go. If any questions or suggestions come to mind feel free to edit this page, add a suggestion to the associated talk page, and/or file a bug report at Gentoo's Bugzilla.

External resources

 * The Fluxbox wiki
 * Fluxbox developers and users in #fluxbox on chat.freenode.net