Haiku User Guide PDF
Haiku User Guide PDF
Haiku User Guide PDF
http://www.haiku-os.org/docs/userguide/en/contents.html
16 April 2010
Table of Contents
Welcome to the Haiku User Guide
Boot Loader
......................................................................... 1
....................................................................................................................... 4
Filesystem layout
............................................................................................................. 6
Haiku's GUI
......................................................................................................................... 9
Workspaces
..................................................................................................................... 12
Twitcher
............................................................................................................................ 13
............................................................................................................................... 15
......................................................................................................................... 34
................................................................................................................................... 38
Queries
.............................................................................................................................. 40
................................... 44
Applications ..................................................................................................................... 51
Desktop Applets
Workspaces
............................................................................................................ 53
..................................................................................................................... 58
Preferences ...................................................................................................................... 60
Bash and Scripting
...................................................................................................... 103
Boot Loader
Filesystem layout
Haiku's GUI
Open and save panels
- Keyboard shortcuts
- Favorites and recent
folders
Replicants
Workspaces
The Workspaces Applet
Switching workspaces
Moving windows between
workspaces
Special functionality
Twitcher
Team Monitor
Tracker
Mounting volumes
Navigating
Appearance
Tracker preferences
Working with files
Transaction status
Tracker Add-Ons
General shortcuts
Shortcuts for Tracker
navigation
Shortcuts in Terminal
Other key combinations
Deskbar
Filetypes
The File Type
The Preferred Application
The Icon
Special settings for
applications
Global settings with the
Filetypes Preferences
Attributes
Attributes in Tracker
Attributes in Terminal
Index
Queries
Workshop: Filetypes,
Attributes, Index and
Queries
Applications
Installing applications
Uninstalling applications
Haiku's applications
Bundled applications
Desktop Applets
Preferences
Boot Loader
Haiku's Boot Loader can help when you experience hardware related problems or want to choose
which Haiku installation to start, if you have more than one (maybe on an installation CD or USB stick)
.
It's also handy after you installed a software component that acts up and prevents you from booting
the system to remove it again. The Disable user add-ons option that's mentioned below, will start
Haiku without loading user installed components, e.g. a driver.
To enter the Boot Loader options, you have to press the SPACE BAR right at the beginning of the boot
process. It's easy to miss so you best keep hitting the key until it shows up.
volume
Select safe
mode options
There are several options to try in case of hardware related trouble. When moving
the selection bar to an option, a short explanation appears at the bottom of the
screen.
- Safe mode
- Disable user add-ons
- Disable IDE DMA
- Use fail-safe video mode
- Don't call the BIOS
- Disable APM
- Disable ACPI
- Disable IO-APIC
- Enable serial debug output - Enable on screen debug output
If you had to activate the option Use fail-safe video mode, you can set resolution
and color depth.
After activating one or more options, you return to the main menu and continue booting, which
presents you with this boot screen:
If everything works OK, one symbol after another quickly lights up.
The different symbols roughly correspond to these boot stages:
Atom
Initializing modules.
Disk + magnifier
Plug-in card
Boot disk
Chip
Folder
Rocket
Filesystem layout
Haiku's filesystem layout is quite transparent, trying to always use non-cryptic names for files and
folders, that don't leave the user guessing. Files and folders that are important for the system to
function properly, are protected from accidental tempering by showing one of these alerts:
The second alert pops up if you try to rename or delete something in the system hierarchy. Here, the
"Do it" button will only become clickable when you're holding down the SHIFT key.
Generally, there are three separate branches springing from the root folder of the boot volume:
/boot/system/ belongs to the system. Don't touch!
/boot/common/ holds files that are shared between users.
/boot/home/
is your personal folder where you keep your data and settings.
or
/boot/common/add-ons/Translators/
This has another advantage: If the component you have installed messes things up (which is possible
as you install hardware drivers like this, too) you are able to choose "Disable User Add-Ons" from the
Boot Loader menu and are thus always able to boot without the offending component.
Most of the time, however, you won't have to deal with these things at all, since every software that
comes from a trusted source should include an installation routine that handles these things.
~/queries
~/config/be/
Again from our BeOS legacy, the be folder contains what's shown in the
Deskbar menu. You can add and remove items either with the Deskbar
configuration panel or by putting files, folders or links into this folder
directly.
Complements the system's /boot/system/bin/ folder and holds all your
~/config/bin/
This folder is the place for User Scripts that are executed before or
after the system boots up or shuts down.
~/config/boot/launch/
~/config/fonts/
Simply copy a TrueType or Postscript font into this folder and its usable
right away.
~/config/settings/
~/config/settings/beos_
mime/
~/config/settings/
kernel/drivers/
~/config/settings/
Tracker/
DefaultFolderTemplate/
Show and arrange all attributes and the window size to your liking. Every
new folder you create will use it as a template.
DefaultQueryTemplates/
You can define the layout of query result windows for certain filetypes.
See topic Query: The result window.
Go/
Put links to your favorite locations in here to make them available e.g. in
open and save panels. See topic Haiku's GUI: Favorites and recent
folders.
Add a template for any filetype that's then available from Tracker's File |
New... menu. See topic Tracker: Working with files.
Haiku's GUI
Haiku's graphical user interface is an integral part of the system. Unlike Unix-based operating
systems, there's no separate window manager and booting just into a command line shell is not
possible. Haiku's focus being on the desktop user, this is just not considered necessary.
As you probably have experience with other graphical environments, let's skip over the standards like
menus, right-click context menus, drag&drop etc. Let's have a look at the few unique aspects of
Haiku's GUI instead.
There are only a few things in Haiku's GUI that aren't obvious and deserve an explanation.
1. The Deskbar is Haiku's "Start" menu and taskbar, if you will. See topic Deskbar.
2. The yellow tab offers more than just a program's name or a document's filename:
You can move it by holding the SHIFT key while dragging it to another position, enabling you to
stack a number of windows and conveniently access them by their named tab.
You minimize a window with a double-click on its tab (or with CTRL ALT M ). A such hidden
window can be accessed by its entry in the Deskbar or the Twitcher.
You can send a window to the back with a right-click on its tab (or its border).
3. The close button.
4. The "alternative size" button (or CTRL ALT Z ). In most applications, this will expand a window to
maximum size. It doesn't have to, however. Tracker windows, for example, will resize to best fit the
contents.
5. The resize corner. Dragging anywhere else on a window's border will move the window.
While holding CTRL ALT , you can click anywhere into a window to move it with the left
mouse button; the right mouse button sends it to the back.
When opening or saving a file from any application, a panel like this opens:
It has all the usual things: A list of files of the current folder to choose from, in case of a save panel, a
text field to enter a filename and a drop-down menu for different file formats and their settings.
You can enter parent folders with the drop-down menu above the file listing.
If you already have a Tracker window with the location for a file open, you can simply drag either any
file or the folder-representation (i.e. the symbol to the far right in its menu bar) into the panel. This
changes the panel to that new location.
Keyboard shortcuts
You can use many of the shortcuts also used in Tracker. Besides the commands that are also available
through the File menu, there are a few not that obvious:
ALT N
ALT E
ALT
ALT
or ENTER
ALT D
ALT H
10
To add a Favorite, you simply navigate to your destination and choose Favorites | Add Current Folder.
From now on it will appear in every open/save panel. To remove a Favorite, choose Favorites | Configure
Favorites... and delete its entry.
All Favorites are kept in /boot/home/config/settings/Tracker/Go/. So you might as well add and remove
links to files and folders there directly.
Replicants
Replicants are small self-contained parts of applications that can be integrated into other programs.
Provided Deskbar's option to Show Replicants is activated, you'll recognize a replicantable part of an
appliction by its small handle, normally in the bottom right corner:
The most prominent place that accepts Replicants is the Desktop: You simply drag&drop the little
handle onto it. From now on it's part of the Desktop and the Replicant's originating app doesn't have
to be started for it to work.
A right-click on a Replicant handle offers a context menu to show the originating app's About window
and to Remove Replicant.
Examples for replicatable applications are the graphs of the ActivityMonitor, the Workspaces
applet or DeskCalc.
11
Workspaces
Workspaces are virtual desktops, complete with their own resolution, color depth and
background. Up to 32 of these workspaces can be set from the Screen preferences.
Switching workspaces
You switch between workspaces by either clicking into the Workspaces applet (which is
seen in the above image) or by using the keyboard shortcut ALT FX , where "x" is the
workspace number. It's a good idea to arrange your workspaces in rows of four to mimick
the layout of the FX keys on the keyboard.
Also, clicking on an application or one of its windows in the Deskbar will send you to the
workspace it's in.
Another very convenient way is to use CTRL ALT / / / to navigate spatially the rows/
columns of the available workspaces. If you additionally hold down SHIFT , the active
window will move with you to the new workspace.
You can switch back and forth between two workspaces with ALT
depends on the keymap you're using - it is the key below ESC ). Again, holding SHIFT will
take the active window with you.
12
Twitcher
The Twitcher is a task switcher to jump between running applications and their windows.
Just tap CTRL TAB to switch between the current and the last application/window. Tapping CTRL TAB
very quickly will switch between all applications. Or press and hold CTRL TAB to go through all running
applications by repeatedly hitting TAB or / . If you need to get to a specific window of a program,
move to its icon as described and then go through its open windows with the / keys.
You cycle through all an applications visible windows on the current workspace with CTRL
depending on the keymap you're using, is the key below ESC ).
(which,
It's also possible to invoke the Twitcher with CTRL TAB and then use the mouse to choose the
application/window you'll jump to when releasing the CTRL key.
The Twitcher also offers a few more advanced keyboard shortcuts:
ESC
13
Team Monitor
With CTRL ALT DEL you invoke the Team Monitor which lists all currently running programs.
Programs that were launched by the system are blue, those started by the user black.
Applications that are unresponsive, which is often a sign the program has crashed, are marked red.
You can kill a program by selecting it and pressing the Kill Application button.
You can summon a Terminal with ALT SHIFT T .
If your Tracker or Deskbar crashed or froze, a new button appears (you may have to kill the offending
team first): Restart the Desktop will restart Tracker and/or Deskbar for you.
14
Tracker
The Tracker is the graphical interface to all your files. It let's you create new files and folders or find,
launch or rename as well as copy or delete existing ones.
Being an application like any other (the Desktop with its icons is really just a fullscreen window in the
background), Tracker appears with its windows in the Deskbar and can be quit and restarted. The
easiest way to quit and restart a crashed or frozen Tracker (or a wayward Deskbar) is to call the Team
Monitor.
Mounting Volumes
In order to access a harddisk, CD, USB stick etc., you first have to mount the volume, that is, let the
system know it's there. This is done with a right-click on the Desktop or an already mounted volume
(like the boot disk) and choosing the volume from the Mount submenu. You find the same Mount menu
in the Deskbar.
There are also Mount Settings so you don't have to mount everything manually after every bootup.
The above settings will automatically mount any storage device you connect/insert and also mount all
disks on bootup that were mounted previously.
Before you disconnect e.g. a harddrive or USB stick, make sure you have successfully
unmounted the volume. This guarantees that all data transfer has finished. Otherwise
you may lose data or corrupt the disk!
Navigating
By default, when you double-click a folder, Tracker opens a new window while leaving the parent
window open. This can quickly lead to an overcrowded desktop.
You can prevent that by holding down the OPT key, which automatically closes the parent window.
This is also true for keyboard navigation. For more on that, see topic Shortcuts and key
combinations.
15
Moving through your folders is one of Trackers main purposes, just like the file managers on other
platforms. Haiku's Tracker has some unique features that will help you doing that efficiently.
Right-click onto a folder, and at the top of the usual context menu you'll find a submenu of the current
folder that let's you navigate down a level. Just move down the hierarchy until you find the file or
folder you're looking for and click on it to open it. The above shows the contents of the folder /boot/
system/documentation/.
If you do the above while dragging a file with you, it will be moved to where you eventually drop it.
Click on the area in the lower left, where the number of items is listed, and you'll get submenus for
every level above your current location. From there you can drill down through the folders as usual.
16
Note, that the Desktop is always the topmost level as that is where Tracker shows mounted volumes.
So, if you want to go to another disk, you first have to navigate to the top (Desktop) and cross over to
your other disk from there.
You'll get the same submenu-navigating when you drag a file over a folder. After a short while of
hovering, a submenu pops up and you can drill down to your destination. If you initiated the drag with
the right mousebutton, you can choose between copying, moving or linking the file when you release
the mouse.
In the above example, there are many files starting with "Haiku logo", rendering simpler approaches
to typing ahead quite useless. In Haiku however, typing "web" jumps right to its first occurence in
"Haiku logo - website". The characters you enter appear in the bottom left corner where you normally
find the item count of all files in the folder. A second after entering a character, the display jumps
back to normal and you're ready for a new type ahead search.
Appearance
17
Tracker windows offer three different viewing modes from the Window menu:
Icon View ( ALT 1 ) - Big icons, you can change the size from the submenu or in/decrease their size
with ALT + / ALT - .
Mini Icon View ( ALT
2)
- Small icons.
List View ( ALT 3 ) - A detailed list of your files enabling you to show/hide available attributes. (See
topic Attributes.)
The Window menu offers a number of other functions:
Resize Window ( ALT Y ) - Resizes the window to its ideal size.
Clean Up ( ALT K ) - Aligns all icons to an invisible grid. Hold down SHIFT and the menu becomes
Clean Up All which additionally sorts all icons alphabetically.
Select... ( SHIFT ALT A ) - Select files according to a regular expression.
Close ( ALT W ) - Closes the window. Hold down SHIFT and the menu becomes Close All which closes
every Tracker window.
Close All in Workspace ( ALT Q ) - Closes every Tracker window in the current workspace. A useful
shortcut if you forgot to hold the OPT key while clicking through folders and all those still open
Tracker windows clutter your workspace.
Sometimes you just want to rearrange a few icons without doing a complete Clean Up ( ALT K ). In that
case, you select these icons and start to drag them to their new location. Before you drop them there,
keep ALT pressed. This will align the icons to the invisible grid.
The rest of the functions are pretty self-explanatory, leaving the Tracker preferences.
Tracker preferences
Window | Preferences... opens a panel that offers a number of settings that, where not obvious, should
become clear once tried out. Since all settings are applied live, you'll immediately see the changes.
So, in short, the not so obvious settings:
Desktop - Decide if all mounted disks appear directly on the Desktop or in a window after clicking a
single Disk icon sitting on the Desktop.
18
Windows - You can set Single Window Navigation, i.e. a double-clicked folder doesn't open in its own
window, but inside the already open window instead, replacing the view of it's parent folder. This is
not the same as clicking while holding the OPT key, as described above, because you'll lose the per
window saved position and size.
Before you switch Tracker to Single Window Navigation mode, because that may feel more familiar
to you, we recommend giving the menu based browsing a try first, as that may actually work much
faster for you after getting used to. On the other hand, single window browsing offers a Navigator
where you can enter or copy&paste a path name and use back, forward and up buttons.
Date and Time - Set date and time formats.
Trash - Set the behavior when deleting a file.
Volume Icons - Set the color of an optional indicator of free space that's shown besides a disk's
icon.
This panel, by the way, is also available as Tracker from Deskbar's Preferences.
19
>
Choosing Edit Templates... opens the folder /boot/home/config/settings/Tracker/Tracker New Templates.
Creating a file in that folder will offer its filetype with the file's name and other attributes as
template in the New menu. Here, there's a file "Text" with the filetype text/plain. See topic
Filetypes for more info.
Open With... - A submenu offers all applications that can handle this filetype.
The preferred application that would open the file when double-clicked, is checkmarked. This
submenu lists first those applications that can handle the exact filetype, in this case it's a text file,
the type text/plain. Next come all applications that can handle that supertype in general, here
text/*. Last in the list are those that can deal with any file. If you don't click on an app in the
submenu, but on the Open With... entry instead, a panel opens:
20
Here you'll again find the programs that were listed in the submenu. By selecting one and clicking
the Open and Make Preferred button, you changed the preferred application for every file of that
filetype, here text/plain.
Get Info
The panel presents info on the selected file and lets you set the default application and, after you
expanded that part of the panel, permissions and owner. Clicking on the path will open it in a
Tracker window.
Edit Name, Duplicate and Move to Trash - lets you rename or duplicate a file or put the selected
file(s) to the trash.
Move to, Copy to and Create Link - lets you move, copy or link the selected file(s) using the
submenu navigating method. Holding SHIFT while invoking the menu offers the option to create a
relative link.
Cut, Copy and Paste - lets you cut, copy and paste files using the clipboard. By holding SHIFT while
invoking the menu you can Copy/Cut more files, maybe from another folder that you can paste
somewhere else later. Also, while holding SHIFT you can paste the copied files in the clipboard as
links.
21
Identify - will sniff out and set the type of files if they didn't have one before, e.g. if you transferred
a file with wget which doesn't set a filetype itself. Holding SHIFT while invoking the menu changes
the item to Force Identify which identifies the filetype and corrects it if it was false before.
Add-Ons - offers you every generic Tracker add-on and those that can handle the selected file(s).
See topic Tracker Add-ons for more information.
Transaction status
When you copy, move or delete files, Tracker shows its progress with a status window. If you initiate
more than one transaction, each job gets its own status display.
To the right are two buttons to pause or stop a transaction entirely. Sometimes it can be useful to
temporarily pause a large transaction. For example, you may need to quickly launch a large
application. Copying large amounts of data chokes your harddisk's IO bandwidth and thus delays your
workflow.
22
Tracker Add-Ons
Applications can install add-ons so they can be invoked easily on a selection of files from Tracker.
Only the add-ons that can handle a specific filetype are presented under Add-Ons from the context
menu or the File menu of a Tracker window. Some add-ons don't necessarily need a file to work on
and are thus always present.
Tracker Add-Ons, or links to applications that can act as add-ons, can be installed in three different
locations (see topic Filesystem layout):
/boot/system/system/add-ons/Tracker/
/boot/common/add-ons/Tracker/
/boot/home/config/add-ons/Tracker/
The file name of an add-on can be suffixed with a dash and capital letter, and is then available via
keyboard shortcut. For example, Open Target Folder-T opens with ALT OPT T .
Of course, you have to take care of possible shortcut collisions when deciding on a shortcut. You can't
have the same for different add-ons.
Opens the Background preferences to change the color or image of the Desktop
or any folder. Invoked on an image file the Background panel is launched with that
image already loaded as a potential background.
DiskUsage-I
FileType-F
Invoked on a file, opens its specific FileType panel, otherwise the general
FileTypes preferences are launched.
Open Target
Folder-T
It can only be used on a linked file and opens the folder that file lives in.
TextSearch-G
Starts the TextSearch application to look for a string in the selected folder (and
its subfolders).
ZipOMatic-Z
23
General shortcuts
Here's a table of many of the most commonly used shortcuts that are always available, even if there
isn't a corresponding menu:
Switches to Workspace X ( FX is the function key corresponding to that
ALT F X
workspace).
CTRL ALT
///
CTRL TAB
ALT ESC
ALT C
ALT X
ALT V
ALT W
CTRL ALT Z
CTRL ALT M
CTRL ALT H
ALT Q
Quits an application.
24
ALT
or
ENTER
Holding it while opening a folder will automatically close the parent folder. This
OPT
ALT Z
Undo last action. The undo history is only limited by the available memory. Note,
this only works for actions on the file itself, changed attributes and permission
settings can't be undone with this. Also, once a file is removed from Trash it's gone
for good.
ALT SHIFT Z
Shortcuts in Terminal
ALT N
ALT T
ALT
1 , 2 , 3 ...
SHIFT
ALT TAB
ALT
ALT ENTER
SHIFT
SHIFT P AGEUP /
P AGEDOWN
TAB
CTRL R
CTRL C
CTRL D
25
SHIFT
This will select everything between the first selected item and the one you click on.
ALT
In a Tracker window, if you just start typing, Tracker scrolls to and selects the file that best fits your
incremental search. If there's no file starting with your typed letters, files that contain the search
string anywhere in their name or other displayed attributes are selected. This search is not casesensitive.
The letters you type appear at the bottom-left, where normally the number of items is listed. After a
second it reverts back and you could start a new incremental search.
26
Deskbar
The Deskbar is the little panel that by default is located in the upper right corner of the screen. It's
Haiku's version of Windows' taskbar with its Start button. It contains the Deskbar menu from where
you can start applications and preferences, a tray with a clock and other tools below that and a list of
currently running programs at the bottom.
You can move the Deskbar to any corner or as a bar along the upper or lower border of the screen by
gripping the knobbly area on the left side of the tray and drag&drop it into the new position. You can
also fold it into a more compact layout by drag&dropping the knobbly area onto the Deskbar menu.
About This System... - Shows some basic information of the system, licenses and the credits of
the Haiku project.
Find... - Opens the Query dialog.
27
Show Replicants - Shows/hides the little Replicant widget you use to drag it around, remove or
access its context menu.
Mount - Offers the same options as when invoked by right-clicking the Desktop (see Mounting
Volumes).
Deskbar Settings
Configure Deskbar
Menu...
Always on Top
Auto Raise
The Deskbar pops to the front if the mouse pointer touches it.
Sort Running
Applications
Even if you sort alphabetically, the Tracker entry always stays first in the list.
24 Hour Clock
Show Seconds
European Date
Expand New
Applications
28
In this panel you set the number of recent documents, folders and applications that are shown in the
Deskbar, or if you show them at all.
Here, you also configure folders and their contents, which are by default Applications, Demos, Deskbar
Applets, and Preferences. You can add your own entries and edit or remove items.
This part of the panel is just a representation of the folder /boot/home/config/be/. You can just as well
link or copy files and folders or even queries directly in Tracker to configure your Deskbar.
It's even easier to simply drag a file, folder or saved query and drop it where you want it into the
Deskbar.
The Tray
Among other things, the tray is housing the clock. Left-click it to toggle between date and time. Rightclick
it
to
hide/show
it
or
launch
the
Time
preferences
to
set
it.
29
Here you can also launch a calendar that also appears, when you hold down the left mouse button on
the clock for a little time.
Any program can install an icon in the tray to provide an interface to the user. The email system, for
instance, shows a different symbol when there's unread mail and offers a context menu to e.g. create
or check for new mail. ProcessController is another example that uses its icon in the tray to provide
information (CPU/memory usage) and to offer a context menu.
You can change to a specific running application by clicking on its entry in the Deskbar and choosing
(one of) its windows, from the submenu. By right-clicking you can minimize or close a window or the
entire application.
If you activated Expanders in the Deskbar settings, you can expand/collapse the list of windows
directly under an application's entry.
In front of every application's windows is a symbol providing info on its state. A bright symbol means
a window is visible, a dark one that it's minimized. Three lines in front of a symbol shows that it's not
on the current workspace.
30
Filetypes
Other
than
rely
on
the
3-letter
file extension
for a
file type
(e.g. .txt, .jpg, .mp3). This method is only a last resort fallback. Haiku uses MIME (Multipurpose Internet
Mail Extensions) types just like it's custom on the internet.
While there's no reason to use file extensions in Haiku, remember to add them to files
you want to share with users of other operating systems, e.g. over email, uploading to a
server or via exchange of an USB drive. Otherwise their system may not recognize the
file type.
shows a hierarchical list of filetypes where you navigate to image | GIF Image.
Same
as...
opens a file dialog where you choose any file that already has the filetype you're looking
for.
31
The Default Application is the one that's set globally for that filetype. If you don't find the program you
want to associate with this file in the drop-down menu, you'll again find the buttons Select... and Same
As... which do the similar thing described under "The File Type" above.
The Icon
If you're wondering why the icon well on the top right is empty: Icons are normally inherited from the
system default for that filetype. You can open the Filetype Add-On of a file that contains an icon and
drag&drop it into your file's icon well. Or you double-click the icon well and create or edit your own
icon. For more info on icons and how to create your own, see topic Icon-O-Matic.
On top, you'll see, instead of a standardized MIME string, the unique application signature. With it, the
system finds the program wherever it's installed.
Below it are several flags, controlling the app's behaviour:
32
Single Launch
Only one instance of the app can be running per executable file. If you have two copies
of that app, however, they can run side by side.
Multiple
Launch
Exclusive
Really only one instance with that app's signature is allowed to run at a time.
Launch
Args Only
Background
App
The app won't appear in Twitcher or the list of running apps of the Deskbar.
Then there's the list of supported filetypes. You can add (and remove) filetypes if you think the
application can handle them. As a consequence, the app will appear in the menu for preferred
applications or Tracker's Open with... context menu when you right-click on a file of that type.
At the bottom are version and copyright information . Like the application signature, they are filled in
by the app's author and shouldn't be altered.
33
Attributes
Attributes are data fields that belong to a file but aren't part of that file, e.g. they are not computed
into the file size and can be copied or changed without touching the file itself. The system uses these
attributes to store e.g. file size, file type or date of the last modification. This is similar to other
operating systems and their filesystems.
What's different is that you can add any kind of attribute to any file and display it or make it editable
in a Tracker window. You just have to define the kind of attribute you want to add to a file type (e.g.
string, integer or time) and give it a name and description.
The file itself doesn't even need any contents at all. Take a look at these People files for example:
As you can see, these are all 0-sized files with attached attributes, the E-mail attribute of "John Nox"
being edited right in Tracker.
If you index these attributes, as People, Email or audio files are by default, they are also searchable
with Haiku's fast query system.
Attributes in Tracker
Attributes are displayed quite similar to a database or spreadsheet. Using Tracker you can choose
which attributes to display (columns) and sort file listings (rows) accordingly.
To do this, open a Tracker window, click on the Attributes menu, and select the attributes you want to
display. Alternatively, simply right-click onto a column heading and mark the items in the context
menu. You can rearrange the columns by a simple drag&drop of the column heading. Moving a
column out of a window, is a fast way to get rid of columns you don't need.
Double-click on the line between two attributes in the heading to automatically resize a column to its
optimal width.
Click on a column heading to toggle the sorting order from ascending to descending. You can
establish a secondary sort order by pressing the SHIFT key while clicking on a column heading. Doing
that you can, for example, sort your People files by company and within that order sort by contact
name. See the above screenshot as an example. The secondary sort order is marked by a lighter
colored indicator beside the heading.
34
Editing these attributes is as simple as renaming a file: Either click on an entry or press ALT E and
move between the attributes with TAB and SHIFT TAB . ESC leaves the editing mode without applying
the changes.
Attributes in Terminal
If you prefer to use the commandline or plan to work with many files using scripting, there are several
commands for controlling attributes from Terminal:
listattr - lists a file's attributes, but doesn't show the contents of the attributes.
usage: listattr 'filename' ['filename' ...]
18
8
1
1
1
"META:address"
"META:city"
"META:state"
"META:zip"
"META:country"
Text
Text
Text
Text
Text
1
13
1
19
1
"META:hphone"
"META:wphone"
"META:fax"
"META:email"
"META:url"
Text
Raw Data
5
20
"META:group"
"_trk/pinfo_le"
Besides all the "META:*" attributes that hold the contact's information , there are two attributes that
are managed by the system:
BEOS:TYPE holds the file type as a MIME (Multipurpose Internet Mail Extensions) string, here
"application/x-person. It determines the default icon and the application that opens the file when
you e.g. double click it.
"_trk/pinfo_le" is the attribute with which Tracker keeps track of a file's icon position.
35
Note the backslash after "Clara". In Terminal you have to "escape" special characters
like '"*\$?!. The space between "Clara" and "Botters" is also one of those. Therefore
the backslash is really in front of the space character, and not after "Clara".
So, say dear Clara took a job with the multi-national Barkelbaer Inc., you fill the formerly empty
"Company" attribute with that data (which is of type "string"):
Though in all practicality it would be enough to just not fill the "Fax" attribute, you can completely
remove it from Clara's file by typing:
36
copyattr - copies attributes from one or more files to another. By default, the actual contents of the
file is not copied.
Usage: copyattr <options> <source> [ ... ] <destination>
If you do want to copy the attributes plus the data of the file itself, you can add the option "-d" or "-data".
More information on these commands and their options can be found by typing the command name
followed by "-h" or "--help".
37
Index
Attributes and Queries are key features of Haiku. While attributes are useful on their own, to
display additional information on a file, for a query on them, they need to be indexed. It puts them
into a lookup table, which in turn makes queries lightning fast.
The index is part of the filesystem and is kept for every volume/partition separately.
~ ->lsindex
BEOS:APP_SIG
MAIL:account
MAIL:cc
MAIL:chain
MAIL:draft
MAIL:flags
MAIL:from
MAIL:name
MAIL:pending_chain
MAIL:priority
MAIL:reply
MAIL:status
MAIL:subject
MAIL:thread
MAIL:to
MAIL:when
META:address
META:city
META:company
META:country
META:email
META:fax
META:group
META:hphone
META:name
META:nickname
META:state
META:url
META:wphone
META:zip
_signature
_status
_trk/qrylastchange
_trk/recentQuery
be:deskbar_item_status
last_modified
38
name
size
--copy-from
-v, --verbose
Only new files with that attribute come automatically into the index!
Existing files have to be added manually by copying them and deleting the originals after that.
Alternatively you can use the tool reindex.
rmindex - Removes an attribute from the index of a volume/partition.
Usage: rmindex [OPTION]... INDEX_NAME
Removes the index named INDEX_NAME from a disk volume. Once this has been
done, it will no longer be possible to use the query system to search for
files with the INDEX_NAME attribute.
-d, --volume=PATH
-h, --help
-p, --pattern
-v, --verbose
39
Queries
A query is a file search based on file attributes and can be performed within Tracker or in Terminal.
Queries are saved in /boot/home/queries/ and by default last seven days before being purged. Note,
these aren't static result lists of your search, but are the query formulas which trigger a new search
whenever you open them.
Even better, you don't have to double-click to re-do a query. You can drill down a saved query just
like any folder by right-clicking on it and navigating through the submenus.
40
If you simply want to find all files on your mounted disks that match a certain pattern, simply leave
the search method at "by Name", enter the search term into the text box and press ENTER .
You start by setting the filetype from "All files and folders" to "text | E-mail" and change the search method
to "by Attribute".
This adds a drop-down menu to the left of the textbox and the buttons "Add and Remove under that.
From the menu you choose which attribute to query. With Add and Remove you can query additional
attributes or remove them again. These attributes can be logically linked with AND/OR.
Let's do an email query as an example:
This is your Find window when you're looking for all emails Clara Botters has sent to you in the last
two months that had in the subject "vibraphone" or "skepticality".
41
Take the above query by attribute of Clara's mails concerning vibraphones etc. If you have all the
attributes and their search terms set, try switching to "by Formula" mode and be overwhelmed by this
one line query string:
(((((MAIL:from=="*[cC][lL][aA][rR][aA] [bB][oO][tT][tT][eE][rR][sS]*")
&&(MAIL:when>=%2 months%))
&&(MAIL:subject=="*[vV][iI][bB][rR][aA][pP][hH][oO][nN][eE]*"))
||(MAIL:subject=="*[sS][kK][eE][pP][tT][iI][cC][aA][lL][iI][tT][yY]*"))
&&(BEOS:TYPE=="text/x-email"))
42
Besides the gray background, result windows work exactly like any other Tracker window. Some
things are worth noting:
You can open the folder a file resides in by double clicking on its path attribute.
With File | Edit Query or ALT G you get back to your Find window to refine your query.
A query is live, i.e. if a file that matches your search criteria appears or disappears from your
system, this change is reflected in your results in real-time.
You can assign a sensible attribute layout for query results of a specific filetype. Open a folder
containing files of the filetype you'd like to create a template for and arrange the attributes how you'd
like to have query results presented. Copy this layout with Attributes | Copy Layout.
Open /boot/home/config/settings/Tracker/DefaultQueryTemplates, create a new folder and rename it to
group/filetype, replacing slashes with underscores, e.g."audio_x-mp3". Open the new folder and paste
in the layout with Attributes | Paste Layout.
43
Preparations
Let's first decide what filetype and attributes would serve our needs. Originally, I wanted to use a
Bookmark file with a link to the movie's IMdB page, but Haiku doesn't have a "bookmarkable" browser
like BeOS' NetPositive at the moment, so I came up with this: The file itself will be a JPEG image for the
movie cover.
To that we add a couple of attributes. Here we have to decide if we want to query it later (then we
have to add it to the index) and if so, what type of attribute it should be. Numbers (int, float) can be
evaluated differently than text (</=/> vs. is/contains/starts with).
Here are the attributes I'd like to see for my DVDs:
Movie title
Genre
URL to e.g. IMdB
Director/Cast
Plot
My rating from 1 to 10
Coordinates in my shelf, e.g. A2, B3, so I find the DVD also in Real Life :)
If so, who's borrowed the disk...
44
Icon
45
Double-click the icon well to open Icon-O-Matic to design an icon for your filetype. You can also
drag&drop an icon from the icon well of another type, maybe as starting point for a modified version.
File Recognition
You can add suffixes like .txt, .jpg, .mp3 to recognize files by their extention. Useful when working with
files from systems without MIME typing. We don't need that for our example.
Description
Type Name - Appears e.g. in the Attribute menu of Tracker windows and the "Kind" attribute of a
file.
Description - A bit more detailed description.
Preferred Application
This drop-down menu shows a list of all applications that can handle this particular filetype. From here
you can choose which program should open this specific file when it's double-clicked.
Select...
opens a file dialog where you choose the application to open with this filetype. Here, we set
ShowImage to display the DVD's cover.
Same
as...
opens a file dialog where you choose any file that already has the preferred application set
that you're looking for.
Extra Attributes
Here we enter all the custom attributes we decided on in our preparations. Clicking the Add... button
opens a panel:
46
47
Internal Name
Attribute type
indexed?
Description
DVDdb:title
text
yes
Movie title
DVDdb:genre
text
yes
Genre
DVDdb:url
text
no
URL
DVDdb:cast
text
yes
Director/Cast
DVDdb:plot
text
no
Plot
DVDdb:rating
int-32
yes
Rating 1 to 10
DVDdb:coord
text
no
Shelf
DVDdb:lent
text
yes
Lent to
Indexing
Before we start entering data in our little DVD database, we should add certain attributes to the
Index. Only indexed attributes can use Haiku's fast Queries.
So, what will we be searching in the future? We probably won't ask "What's in the B4 coordinate in my
shelf?" or "Does the IMdB URL or the plot of the movie contain the word 'pope-shenooda'?".
This leaves these attributes:
Internal Name
Attribute type
DVDdb:title
text
DVDdb:genre
text
DVDdb:cast
text
DVDdb:rating
int-32
To index them, we open a Terminal and simply add one attribute after the other:
48
The -t option defines the type of attribute, which is "string" for all but the rating, which is an integer
number.
By clicking on a yet empty attribute (or pressing ALT E ) we enter editing mode and fill each attribute.
With TAB and SHIFT TAB you can navigate between attributes.
In our example, we usually start with a downloaded JPG cover and change its type to applications/
DVDdb. There's another elegant way to produce a file to work with. Just copy an empty file of our
filetype to /boot/home/config/settings/Tracker/Tracker New Templates and rename it to DVDdb.
Right-clicking into a Tracker window, you'll find a new entry under New... besides the default "New
folder".
49
50
Applications
Before diving into all the applications that come with Haiku, let's have a more detailed look at how to
install and uninstall programs you downloaded somewhere, for example from a site mentioned on the
Welcome page.
Installing applications
Haiku software always comes as an archive. Most of the time it's a ZIP, some old BeOS packages come
in Software Valet's PKG format. Software Valet was able to automatically execute installation scripts,
so after double-clicking you just select a destination folder and everything's taken care of.
If it's a ZIP archive, double-clicking opens Expander where you also set the destination and unpack it. As
explained in the topic Filesystem layout, that destination is either
/boot/common/apps/
/boot/home/apps/
This distinction will only become relevant once Haiku gets multi-user support, of course.
Once the archive is unpacked, you should have a look into the newly created folder. Often you find
ReadMe files or other documentation of interest.
Some programs need further configurations. For example, Tracker Add-Ons, Translators or other
system enhancing components have to be put into the right folders. Either you'll find a little script file
(often with the suffix .sh) like install that you simply double click to have all taken care of.
Sometimes you'll find folders that link to the correct destination named "drag [filename] here...". So,
you simply follow that instruction and you're done.
Most of the time, however, nothing of the sort is necessary and you're done after unpacking.
See topic Deskbar or LaunchBox to see how to add shortcuts to your newly installed application.
Uninstalling applications
If the installation was done with an install script, chances are, there's an uninstall script as well. In that
case, double-click it and you're done.
Otherwise, uninstalling is simply done by deleting the application's folder.
This, of course, leaves back possible configuration files in your ~/config/settings folder. This may be
on purpose, if you want to keep those settings in case you'll install the program again in the future.
Also, when the installation involved those "drag [filename] here..." folders, those files are also left
behind.
One method to quickly get to all the app's files is to do a quick query for a significant part of the
application's name. This will reveal the app's binary, its installation folder and its settings as well as
possible links in the Deskbar etc. Simply select all relevant files and delete them.
Haiku's applications
51
Haiku comes with a set of mostly small but essential applications. You'll find all of them at /boot/
system/apps/ or /boot/common/apps/. Applications that are not usually launched by a double-click on a
data file (e.g. ShowImage for image files) can be found in the Applications menu of the Deskbar.
ActivityMonitor
CDPlayer
CharacterMap
CodyCam
DeskCalc
A calculator.
DiskProbe
DiskUsage
DriveSetup
Expander
Icon-O-Matic
Installer
Magnify
MediaPlayer
MidiPlayer
PackageInstaller
People
A contact manager.
PoorMan
Screenshot
ShowImage
SoundRecorder
StyledEdit
Terminal
TextSearch
TV
Bundled applications
Besides the above listed programs, which are all maintained by the Haiku project, there are a few
essential applications bundled in a standard Haiku system. Bugs and feature requests for those have
to be filed with the particular maintainer.
BePDF
BeZillaBrowser
Pe
Vision
52
Desktop Applets
Haiku provides a few useful tools that can be installed on the Desktop or the Deskbar via their
Replicants.
LaunchBox
NetworkStatus
ProcessController
Workspaces
53
LaunchBox
Deskbar:
Desktop Applets
Location:
/boot/system/apps/LaunchBox
Settings:
~/config/settings/LaunchBox/*
One or more LaunchBox applets can be started to organize shortcuts to your favorite applications or
documents. You decide if each is shown on all or just the current workspace. They can also serve to
quickly open a document in a specific application. For example, you could drag&drop a HTML file onto
a text editor in a LaunchBox to open it in the editor instead of its preferred application, the browser.
54
Clear Button
Empties a button.
Remove Button
Removes a button.
Settings
- Horizontal Layout
- Icon size
Launches the object only once, even when you (accidentally) double-click.
Shows the window border.
LaunchBox pops up if the mouse is near the screen edge.
Shows the LaunchBox on every workspace.
Ignore Double-click
Show Window Border
Auto Raise
Show On All Workspaces
Pad
- New
- Clone
- Close
LaunchBox
- About...
- Quit
55
NetworkStatus
Deskbar:
Desktop Applets
Location:
/boot/system/apps/NetworkStatus
Settings:
none
Documentation is still missing. If you want to work on it, please announce it on the Documentation
mailing list to avoid duplication.
56
ProcessController
Deskbar:
Desktop Applets
Location:
/boot/system/apps/ProcessController
Settings:
none
Documentation is still missing. If you want to work on it, please announce it on the Documentation
mailing list to avoid duplication.
57
Workspaces
Workspaces are virtual desktops, complete with their own resolution, color depth and background. Up
to 32 of these workspaces can be set from the Screen preferences.
Desktop Applets
Location:
/boot/system/apps/Workspaces
Settings:
~/config/settings/system/app_server/workspaces
~/config/settings/Workspaces_settings - Stores the panel's window position.
You find the Workspaces applet with the other Desktop Applets in the Deskbar. It shows a miniature
version of all workspaces. There are several options available from the context menu of the applet's
window, which are all pretty self-explaining.
Change Workspace Count... will open the Screen preferences where you set the number of workspaces
and their arrangement (how many rows and columns).
Since the applet is a Replicant, you can resize the window as desired and then drag&drop it by its
handle onto the desktop (make sure "Show Replicants" is activated in the Deskbar menu).
Switching workspaces
You switch between workspaces by either clicking into the Workspaces applet or by using the
keyboard shortcut ALT FX , where "x" is the workspace number. It's a good idea to arrange your
workspaces in rows of four to mimick the layout of the FX keys on the keyboard.
Also, clicking on an application or one of its windows in the Deskbar will send you to the workspace it's
in.
Another very convenient way is to use CTRL ALT
the available workspaces.
You can switch back and forth between two workspaces with ALT ~ (which, depending on the keymap
you're using, is the key below ESC , which you have to hit twice to get a ~).
58
Special functionality
The Workspaces applet provides some additional functionality when clicking on a window while
holding certain modifier keys:
CTRL
CTRL SHIFT
OPT
59
Preferences
While a key philosophy of Haiku is to cut down on options and have sensible defaults instead, there
are some things that have to be configured or can be set to individual preference. You find all panels
in Deskbar's Preferences menu.
Appearance
Backgrounds
DataTranslations
FileTypes
Fonts
Keyboard
Keymap
Media
Audio and video settings like in/output devices and the system's audio
mixer.
Mouse
Network
Printers
Screen
ScreenSaver
Sounds
Time
Tracker
VirtualMemory
60
Appearance
Deskbar:
Preferences
Location:
/boot/system/preferences/Appearance
Settings:
~/config/settings/system/app_server/appearance
The Appearance preferences lets you change some aspects of Haiku's visuals.
Colors
In the first tab, Colors, you can change the colors of different parts of the user interface. The color well
accepts drag&drops from other programs, letting you drag colors over from e.g. WonderBrush, Icon-OMatic or the Backgrounds panel.
Antialiasing
61
The second tab, Antialiasing, provides different settings for how things are rendered on screen.
Glyph hinting
An activated Glyph hinting aligns all letters in such a way that their vertical and horizontal edges rest
exactly between two pixels. The result is a perfect contrast, especially when dealing with black on
white. Text appears crisper. There's also a setting for "Monospaced Fonts Only" that's especially helpful
with low resolution devices like netbooks. Small fonts can look pretty bad when hinting is turned on,
but with this setting you still have the advantage of hinting for text editors and Terminal.
See the difference hinting makes with these magnified screenshots:
Hinting: off
Hinting: on
It should be pointed out that all the Magnify windows on this page are of course rendered themselves
with the different options as well. So, you get a real world impression of the settings by comparing, for
example, the bold yellow tab title or the text "33 x 15 @ 8 pixels/pixel".
Antialiasing type
62
Another technique to improve rendering is Antialiasing, which supports all vector graphics as well as
text. It smooths lines by changing the color of certain pixels. There are two methods for that:
Grayscale changes the intensity of pixels at the edge.
LCD subpixel does an even better job, especially with (high resolution) LCD monitors. Instead of the
intensity of a pixel, it changes its color which moves an edge by a fraction of a pixel, because LCD
displays produce every pixel with a red, green and blue component.
Again, the two different methods with magnified screenshots:
Subpixel based antialiasing adds a slight colored shine to objects. Something not everyone tolerates.
In Haiku you can mix the two antialiasing methods and find the right setting for you by using a slider.
The subpixel based antialiasing in combination with the glyph hinting is subject of a
software patent and is therefore not available by default. Depending on where in the
world you live, you may get an unlocked version. Sorry about that. Talk with your
representative.
If you do activate hinting plus LCD subpixel rendering by changing the source and recompiling, this is
how it looks compared to hinting with Grayscale:
Grayscale, Hinting: on
63
brings back the settings that were active when you started the Appearance preferences.
64
Backgrounds
Deskbar:
Preferences
Location:
/boot/system/preferences/Backgrounds
Settings:
~/config/settings/system/app_server/workspaces
~/config/settings/Backgrounds settings - Stores the panel's window position.
You can set a color or an image as background for every folder and the Desktop for every workspace.
The top drop-down menu specifies if your changes are applied to the current workspace, all
workspaces, a specific folder or as default for every new folder.
Below that you can assign an image or select None if you want simply a colored background. Images
can also be drag&dropped onto the preview to the left.
If you are using an image, you have to decide on the placement:
Manual
lets you specify the coordinates. You can drag the picture around in the preview to the left
or enter X and Y manually.
Center
Scale to
fit
enlarges the picture with no regard to its aspect ratio until it fills the screen.
Tile
If you are using an image you can activate Icon label outline which will put an thin contour around an
icon's label.
If an icon label's actual text is black or white depends on setting of the color picker. A dark color sets
the text to white, a light color to black. So, if you assign a very bright image to the background, you
should also set the color picker to a bright color in order to have icon labels readable in black. (Or use
the
outline
option
65
above.)
The selected color is also reflected in the Workspaces applet, which ignores images as
backgrounds.
Revert brings back the settings that were active when you started the Backgrounds preferences.
Apply
66
DataTranslations
Deskbar:
Preferences
Location:
/boot/system/preferences/DataTranslations
Settings:
~/config/settings/* - Every Translator creates its own settings file here after you've
Every application has the ability to open and save every file format for which there's a Translator
installed. The settings for these Translators are configured in the DataTranslations preferences.
Depending on its capabilities, each Translator offers different settings. At least you'll get an Info...
button that opens a window with the credits and the installation path.
The following table gives an overview of the default Translators and their most useful options.
BMP Images
EXR Images
67
GIF Images
You can reduce the filesize by limiting the number of used colors and the palette.
You can write images with transparency, either by automatically using the alpha
channel or by setting the RGB value that will be transparent by hand.
JPEG2000
Images
JPEG Images
PCX Images
PNG Images
PPM Images
RAW Images
Formatted text
SGI Images
StyledEdit Files
Formatted text
TGA Images
TIFF Images
WonderBrush
Images
Screenshots, charts, black&white drawings and other images with few used colors, as
well as small pictures are best saved as GIF (up to 256 colors) or PNG (millions of colors).
JPEG, for example, introduces compression artefacts without gain in smaller filesize.
68
E-mail
Deskbar:
Preferences
Location:
/boot/system/preferences/E-mail
Settings:
~/config/settings/Mail/*
Haiku provides a system that retrieves e-mail regularly via a mail_daemon and saves each mail as a
single text file. It parses the mail and fills its attributes with all necessary header information, like
from, to, subject and its unread status. Now it can be queried by you or any application. This system
also makes switching e-mail clients easy as all the data and your configuration stays the same.
The configuration is done in the E-Mail preference panel.
First, declare the Account Type which is either Receive Mail Only, Send Mail Only, or the most usual type,
Send and Receive Mail. Then you set how you get your mail, via POP3 or IMAP.
Now you enter your E-mail Address, Login Name and Password, give an Account Name under which it
will be known under Haiku and your Real Name.
If your account is from a major e-mail provider, Haiku already knows all technical details like server IP
addresses and the following information is already filled in automatically. If that is not the case, just
follow this guide and fill in the details to your e-mail account accordingly.
69
From the drop-down menu you choose the protocol used by your provider. IMAP and POP3 are
supported.
Next is the Mail Server address for incoming mails. If your provider needs you to log into a specific port,
you add that to the address, separated by a colon. For example, pop.your-provider.org:1400.
Then you enter your login information , Username and Password, and if necessary change the Login
Type from the default Plain Text to APOP for authentication .
If you use POP3 and retrieve mails of this account from different computers, you may want to activate
the option to Leave mail on server and only Remove mail from server when deleted locally.
If you use IMAP instead, you have the option to Remove mail from server when deleted locally. You can
specify a Top Mailbox Folder to only synchronize with a specific folder and its subfolders.
The New Mail Notification offers different methods to announce the arrival of new mail. Try different
settings to see what works best for you.
You can change the Location of your inbox (default: /boot/home/mail/in/), which is useful if you'd like
to separate the mails from different accounts into their own folders. However, queries let you sort
things out just as well.
70
Last on this page, you can opt to only Partially download messages that are larger than a certain size. This
will only get the header and you can decide if you want to download the rest of the message plus
possible attachments after seeing the subject and who sent it. Useful if you have a slow connection .
As with incoming mail, you can also change the Location of your outbox (default: /boot/home/mail/
out/).
Next is the SMTP Server address for outgoing mails. As with the incoming server before, you can use a
specific port if needed, e.g. mail.your-provider.org:1200.
If you need to login, you change the Login Type to ESMTP and enter username and password above.
The other type is used for providers that need you to check for mail with POP3 before SMTP for
identification.
them
by
drag&dropping
them
71
to
their
new
position.
Besides the R5 Daemon Filter that's used for backward compatibility, there are two other Incoming Mail
Filters you can add.
Spam Filter
The spam filter uses statistical methods to classify a mail as unwanted spam. It assigns a value
between 0 and 1 to it and you can decide what are the limits for a genuine mail and what will be
considered spam.
You can have that spam rating added to the start of the subject.
Also, the spam filter can learn from all incoming e-mail. Of course, you'll have to teach it by sorting out
the false positives, mails that were mistakenly marked as spam. You'll find more on that when we
discuss the application Mail.
Together with the following Match Header filter, you're able to automatically sort out detected spam
mails.
Match Header
72
This filter compares a header to a search pattern and performs some action when it matches.
With the first text field you specify which header to check against. These are available:
Name
From
To
Reply To
When
Subject
Cc
Account
Status
The current status of the e-mail. Normally, this can be "Read", "Replied", "Sent",
"Forwarded", "New", or anything you have designated yourself. However, unless you
change it yourself in a filter, it will always be "New" when the mail_daemon fetched
the mail.
Priority
Thread
essentially the same as "Subject", but without things like Re: or Fwd:
Classification
Group
depending on what the spam filter classified it as, this will either be empty (if
uncertain) or contain the word "Genuine" or "Spam"
Spam/Genuine
this is a numerical estimate that the spam filter assigned to the e-mail. They are
Estimate
73
The second text field holds your search pattern. It accepts regular expressions which gives it great
flexibility, while unfortunately complicating things a bit. Read up on it a bit, it's well worth it and
simple search patterns aren't that complicated at all.
With the drop-down menu below it, you assign an action when the pattern matches. You can move or
delete a mail, set the status to "Read" or anything else or set the e-mail account you'll reply with.
Under Mail Checking you configure the interval at which the account's mail server is probed for new
mail.
If you're on a dial-up connection , you may want to do that Only When Dial-Up is Connected and also
Schedule Outgoing Mail When Dial-Up is Disconnected to avoid dialing automatically in regularly only to check
for mail.
74
The mail_daemon has a status window which you can set to show up Never, While Sending, While Sending
and Receiving or Always.
Make sure to Start Mail Services on Startup or there will be no mail_daemon running to do your bidding...
Edit Mailbox Menu... will open the folder /boot/home/config/Mail/Menu Links/. All folders or queries (!) or
their links put into this folder will appear in the context menu of the mailbox icon of the Mail Services
in the Deskbar tray.
From that menu, you can also Create New Message..., Check For Mail Now or Edit Preferences....
The mailbox icon itself shows if there are unread messages (status "New") when there are envelopes
inside.
75
FileTypes
Deskbar:
Preferences
Location:
/boot/system/preferences/FileTypes
Settings:
~/config/settings/FileTypes settings
~/config/settings/beos_mime/* - Stores all MIME types as folders.
Please refer to topic Filetypes and the workshop Filetypes, Attributes, Index and Queries that
explains most of this preference panel.
76
Fonts
Deskbar:
Preferences
Location:
/boot/system/preferences/Fonts
Settings:
~/config/settings/system/app_server/fonts
~/config/settings/Font_settings - Stores the panel's window position.
Haiku defines three standard fonts for different purposes. You set plain, bold and fixed font types and
sizes that will be used throughout the system. Besides these, there's also a separate setting for the
font used in menus.
Defaults resets everything to default values.
Revert
brings back the settings that were active when you started the Fonts preferences.
77
Keyboard
Deskbar:
Preferences
Location:
/boot/system/preferences/Keyboard
Settings:
~/config/settings/Keyboard_settings
Set the repeat rate and the delay until a held down key starts to repeat. You can test your settings in
the text field at the bottom.
Defaults resets everything to default values.
Revert
brings back the settings that were active when you started the Keyboard preferences.
78
Keymap
Deskbar:
Preferences
Location:
/boot/system/preferences/Keymap
Settings:
To the right, the Keymap window shows a representation of your keyboard. When you press a key, the
corresponding key is darkened and the assigned symbol is entered into the Sample and Clipboard text
field at the bottom. From there you can also copy and paste it into a document.
Thus, the Keymap preferences are not only for configuring your local keymap, but are also useful
when looking for a special symbol used in other languages. For example, you can switch the keymap
to "French", find the "" and copy it into your mail to Franois. (Though you'll find the "cedil" also in
other keymaps...)
Pressing modifier keys like SHIFT , CONTROL or OPTION changes the displayed keyboard accordingly.
Then there are the keys that are marked with a blue background. These keys are called Dead Keys
that can change the key you press after that. If you click on such a blue key with your mouse, those
changeable keys light up yellow. Click again and everything's back to normal. Examples are , , or
.
Below the keyboard representation are two more options:
Select Dead Keys for setting the above mentioned blue keys.
Switch Shortcut
for using the shortcut key in Windows/Linux mode, i.e. CONTROL (normally CTRL ) or
Key...
The lists on the left offer the available pre-configured keymaps of the system, and below that, if
available, user-defined maps. You can change a keymap via drag&drop in the keyboard
79
keymap -d MyKeymap
The generated text file can then be opened in a text editor. Make sure to use a fixed font in that editor
or you'll never grok that file...
At the beginning of that file, you'll find a legend of a stylized keyboard with the hex value
corresponding to each key. Below that are the actual assignments of every value. You can do all the
customizing that's also available from the Keymap preference panel, and then some. If you happen to
have some special keys on your keyboard, you may be able to activate them. That is, use them as
ordinary keys or like an option or control key. You won't be able to, for example, have your multimedia
keys de/increase the volume or start some application. For this you can use e.g. SpicyKeys.
When you're finished, you'll save the file and have your system load the modified keymap with this
command:
keymap -l MyKeymap
This is the dumped file (the rightmost keys of the stylized keyboard are cut-off for a nicer display on
this page):
#!/bin/keymap -l
#
#
Raw key numbering for 101 keyboard...
#
#
# [esc]
[ f1] [ f2] [ f3] [ f4] [ f5] [ f6] [ f7] [ f8] [ f9] [f10] [f11] [f12]
80
# 0x01
0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d
#
# [ ` ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 0 ] [ - ] [ = ] [bck]
# 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e
#
# [tab] [ q ] [ w ] [ e ] [ r ] [ t ] [ y ] [ u ] [ i ] [ o ] [ p ] [ [ ] [ ] ] [ \ ]
# 0x26 0x27 0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33
#
# [cap] [ a ] [ s ] [ d ] [ f ] [ g ] [ h ] [ j ] [ k ] [ l ] [ ; ] [ ' ] [
# 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46
#
# [shift]
#
0x4b
#
# [ctr]
#
#
#
#
[ z ] [ x ] [ c ] [ v ] [ b ] [ n ] [ m ] [ , ] [ . ] [ / ]
0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55
[cmd]
0x5c
#
#
#
#
0x5d
space
0x5e
0x5f
#
#
#
Version = 3
CapsLock = 0x3b
ScrollLock = 0x0f
NumLock = 0x22
LShift = 0x4b
RShift =
LCommand
RCommand
LControl
[cmd]
0x56
= 0x5d
= 0x60
= 0x5c
RControl = 0x00
LOption = 0x66
ROption = 0x5f
Menu = 0x68
#
# Lock settings
# To set NumLock, do the following:
#
LockSettings = NumLock
#
# To set everything, do the following:
#
LockSettings = CapsLock NumLock ScrollLock
#
LockSettings =
# Legend:
81
enter
0x47
[shift]
0x56
[ctr]
0x60
#
#
#
n = Normal
s = Shift
c = Control
#
C = CapsLock
#
o = Option
# Key
n
Cos
os
Cs
Co
''
''
''
''
''
''
''
0x1b
0x1b
0x1b
0x1b
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0x10
0xc2b0
''
' '
''
'^'
0xc2b0
' '
'!'
''
' '
''
'!'
'1'
' '
'"'
''
0xc2b2
''
'"'
'2'
0xc2b2
0xc2a7
''
0xc2b3
''
0xc2a7
'3'
0xc2b3
82
0x1b
0x1b
0x1b
'$'
''
' '
''
'$'
'4'
' '
'%'
''
' '
''
'%'
'5'
' '
'&'
''
' '
''
'&'
'6'
' '
'/'
''
'{'
''
'/'
'7'
'{'
'('
''
'['
''
'('
'8'
'['
')'
''
']'
''
')'
'9'
']'
'='
''
'}'
''
'='
'0'
'}'
'?'
''
'\\'
''
'?'
0xc39f
'\\'
'`'
''
' '
''
0xc2b4
'`'
' '
0x08
0x08
0x08
0x08
0x08
0x08
0x08
0x05
0x05
0x05
0x05
0x05
0x05
0x05
0x01
0x01
0x01
0x01
0x01
0x01
0x01
0x0b
0x0b
0x0b
0x0b
''
''
''
''
'/'
'/'
'/'
'/'
'*'
'*'
'*'
'*'
'-'
'-'
'-'
'-'
'-'
'-'
'-'
0x09
0x09
0x09
0x09
0x09
0x09
0x09
'Q'
0x11
'@'
''
'Q'
'q'
'@'
'W'
0x17
' '
''
'W'
'w'
' '
'E'
0x05
0xe282ac ''
'E'
'e'
0xe282ac
'R'
0x12
' '
''
'R'
'r'
' '
'T'
0x14
' '
''
'T'
't'
' '
'Z'
0x1a
' '
''
' Z'
' z'
' '
' U'
0x15
' '
''
' U'
' u'
' '
0x0b
''
'/'
'*'
0x0b
''
'/'
'*'
0x0b
''
'/'
'*'
''
Key 0x2d = ' u'
83
''
Key 0x2e = 'i'
''
'I'
0x09
' '
''
'I'
'i'
' '
'O'
0x0f
' '
''
'O'
'o'
' '
'P'
0x10
' '
''
'P'
'p'
' '
0xc39c
0x1b
' '
''
0xc39c
0xc3bc
' '
'*'
0x1d
'~'
''
'*'
'+'
'~'
'\''
0x1c
' '
''
'\''
'#'
' '
0x7f
0x7f
0x7f
0x7f
0x7f
0x04
0x04
0x04
0x04
0x0c
0x0c
0x0c
0x0c
0x0c
0x0c
0x0c
'7'
0x01
0x01
'7'
0x01
'7'
0x01
'8'
0x1e
0x1e
'8'
0x1e
'8'
0x1e
'9'
0x0b
0x0b
'9'
0x0b
'9'
0x0b
'+'
'+'
'+'
'+'
'+'
'+'
'+'
''
''
''
''
''
''
''
'A'
0x01
' '
''
'A'
'a'
' '
'S'
0x13
' '
''
'S'
's'
' '
'D'
0x04
' '
''
'D'
'd'
' '
'F'
0x06
' '
''
'F'
'f'
' '
'G'
0x07
' '
''
'G'
'g'
' '
'H'
0x08
' '
''
'H'
'h'
' '
'J'
0x0a
' '
''
'J'
'j'
' '
'K'
0x0b
' '
''
'K'
'k'
' '
'L'
0x0c
' '
''
'L'
'l'
' '
0xc396
''
' '
''
0xc396
0xc3b6
' '
84
0x04
0x7f
0x04
0x7f
0x04
0xc384
''
' '
''
0xc384
0xc3a4
0x0a
0x0a
0x0a
0x0a
0x0a
0x0a
0x0a
'4'
0x1c
0x1c
'4'
0x1c
'4'
0x1c
'5'
''
''
'5'
''
'6'
0x1d
0x1d
''
''
''
''
''
''
''
'Y'
0x19
' '
''
'Y'
'y'
' '
'X'
0x18
' '
''
'X'
'x'
' '
'C'
0x03
' '
''
'C'
'c'
' '
'V'
0x16
' '
''
'V'
'v'
' '
'B'
0x02
' '
''
'B'
'b'
' '
'N'
0x0e
' '
''
'N'
'n'
' '
'M'
0x0d
0xc2b5
''
'M'
'm'
0xc2b5
';'
','
' '
''
';'
','
' '
':'
'.'
' '
''
':'
'.'
' '
'_'
''
' '
''
'-'
'_'
' '
''
''
''
''
''
''
''
0x1e
0x1e
0x1e
0x1e
0x1e
0x1e
0x1e
'1'
0x04
0x04
'1'
0x04
'1'
0x04
'2'
0x1f
0x1f
'2'
0x1f
'2'
0x1f
'3'
0x0c
0x0c
'3'
0x0c
'3'
0x0c
0x0a
0x0a
0x0a
0x0a
0x0a
0x0a
0x0a
''
''
''
''
''
''
''
''
''
''
''
''
''
''
' '
0x00
' '
' '
' '
' '
' '
'6'
85
0x1d
'5'
'6'
' '
''
0x1d
'
'
Key 0x5f = ''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
0x1c
0x1c
0x1c
0x1c
0x1c
0x1c
0x1c
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1f
0x1d
0x1d
0x1d
0x1d
0x1d
0x1d
0x1d
'0'
0x05
0x05
'0'
0x05
'0'
0x05
','
0x7f
0x7f
','
0x7f
','
0x7f
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
'>'
''
'|'
''
'<'
'>'
'|'
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
86
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
''
Key 0x7f = ''
''
Acute ' '
= 0xc2b4
Acute
Acute
Acute
Acute
'A'
'E'
'I'
'O'
=
=
=
=
0xc381
0xc389
0xc38d
0xc393
Acute
Acute
Acute
Acute
'U'
'Y'
'a'
'e'
=
=
=
=
0xc39a
0xc39d
0xc3a1
0xc3a9
Acute
Acute
Acute
Acute
'i'
'o'
'u'
'y'
=
=
=
=
0xc3ad
0xc3b3
0xc3ba
0xc3bd
Acute ''
=
Acute ''
=
Acute ''
=
AcuteTab = Normal
''
''
''
Shift Option Option-Shift CapsLock CapsLock-Shift CapsLock-Option
CapsLock-Option-Shift
Grave ' '
= '`'
Grave 'A'
= 0xc380
Grave 'E'
= 0xc388
Grave
Grave
Grave
Grave
'I'
'O'
'U'
'a'
=
=
=
=
0xc38c
0xc392
0xc399
0xc3a0
Grave
Grave
Grave
Grave
'e'
'i'
'o'
'u'
=
=
=
=
0xc3a8
0xc3ac
0xc3b2
0xc3b9
Grave ''
Grave ''
= ''
= ''
87
Grave ''
Grave ''
Grave ''
= ''
= ''
= ''
'E'
'I'
'O'
'U'
=
=
=
=
0xc38a
0xc38e
0xc394
0xc39b
Circumflex
Circumflex
Circumflex
Circumflex
'a'
'e'
'i'
'o'
=
=
=
=
0xc3a2
0xc3aa
0xc3ae
0xc3b4
Circumflex
Circumflex
Circumflex
Circumflex
'u'
''
''
''
=
=
=
=
0xc3bb
''
''
''
Circumflex ''
= ''
Circumflex ''
= ''
CircumflexTab = Normal Shift Option Option-Shift CapsLock CapsLock-Shift CapsLockOption CapsLock-Option-Shift
Diaeresis
Diaeresis
Diaeresis
Diaeresis
' '
'A'
'E'
'I'
=
=
=
=
0xc2a8
0xc384
0xc38b
0xc38f
Diaeresis
Diaeresis
Diaeresis
Diaeresis
'O'
'U'
'Y'
'a'
=
=
=
=
0xc396
0xc39c
0xc5b8
0xc3a4
Diaeresis
Diaeresis
Diaeresis
Diaeresis
'e'
'i'
'o'
'u'
=
=
=
=
0xc3ab
0xc3af
0xc3b6
0xc3bc
Diaeresis
Diaeresis
Diaeresis
Diaeresis
'y'
''
''
''
=
=
=
=
0xc3bf
''
''
''
'O'
'N'
'a'
'o'
Tilde 'n'
Tilde ''
=
=
=
=
0xc395
0xc391
0xc3a3
0xc3b5
= 0xc3b1
= ''
88
Tilde ''
Tilde ''
Tilde ''
= ''
= ''
= ''
Tilde
Tilde
Tilde
Tilde
=
=
=
=
''
''
''
''
''
''
''
''
Tilde ''
= ''
TildeTab = Normal Shift Option Option-Shift CapsLock CapsLock-Shift CapsLock-Option
CapsLock-Option-Shift
89
Media
Deskbar:
Preferences
Location:
/boot/system/preferences/Media
Settings:
~/config/settings/Media/*
~/config/settings/System Audio Mixer
~/config/settings/MediaPrefs Settings - Stores the panel's window position.
Documentation is still missing. If you want to work on it, please announce it on the Documentation
mailing list to avoid duplication.
90
Mouse
Deskbar:
Preferences
Location:
/boot/system/preferences/Mouse
Settings:
~/config/settings/Mouse_settings
Set your type of mouse: 1, 2 or 3 button mouse. You can simulate the 2nd (=right) mouse button by
holding down CTRL while left-clicking. For the 3rd (=middle) mouse button, it's CTRL ALT and a leftclick. A middle-click is also simulated by clicking left and right button together. Useful for notebooks,
which mostly don't have a 3rd button.
You can rearrange the mouse buttons by clicking on them and choose their new meaning from the
drop-down menu.
With the sliders to the right, you adjust double-click speed, mouse speed and acceleration.
Focus follows mouse means, that you don't have to click into a window to activate it. There are three
modes:
Enabled
The window under the mouse pointer is always activated automatically, but doesn't pop
to the front.
Warping
Choosing a window from Deskbar or the Twitcher will have the mouse pointer glide
smoothly toward it.
InstantWarping
Choosing a window from Deskbar or the Twitcher will have the mouse pointer jump
instantly toward it.
91
brings back the settings that were active when you started the Mouse preferences.
92
Network
Deskbar:
Preferences
Location:
/boot/system/preferences/Network
Settings:
/boot/system/etc/resolv.conf
fill out IP Address, Netmask, Gateway and DNS Servers yourself. Otherwise the panel will show the
addresses currently set with DHCP.
Revert brings back the settings that were active when you started the Network preferences.
Apply
93
Printers
Deskbar:
Preferences
Location:
/boot/system/preferences/Printers
Settings:
~/config/settings/printers/*
Documentation is still missing. If you want to work on it, please announce it on the Documentation
mailing list to avoid duplication.
94
Screen
Deskbar:
Preferences
Location:
/boot/system/preferences/Screen
Settings:
~/config/settings/system/app_server/workspaces
~/config/settings/kernel/drivers/vesa - Only when running in VESA mode.
~/config/settings/Screen_data - Stores the panel's window position.
Each of your workspaces can have its own resolution and color depth.
The top drop-down menu specifies if your changes are applied only to the current or to all workspaces.
Depending on your graphics card, the other two drop-down menus contain all supported resolution
and depth settings.
After clicking on Apply, the graphics mode is changed and an alert appears, asking you to keep or
cancel the changes. If you don't answer that alert, the graphics mode reverts after 12 seconds to the
previous setting. Maybe you couldn't see the alert because your monitor didn't support the setting.
To the left, you can set the number of workspaces and arrange them in columns and rows and open
the Backgrounds preferences.
Revert brings back the setting that was active when you started the Screen preferences.
95
ScreenSaver
Deskbar:
Preferences
Location:
/boot/system/preferences/Screensaver
Settings:
~/config/settings/ScreenSaver_settings
Fade
Modules
96
The second tab shows a list of all installed screen saver modules and their individual settings. You can
test your settings with the Test button below the list and add modules with the Add... button beside it.
Other ways to install new screen savers is by a simple drag&drop into the list. Of course, you can also
copy/delete a module's file in its respective user folder, i.e. /boot/common/add-ons/screensavers/ or /
boot/home/config/add-ons/screensavers/ (see topic Filesystem layout).
97
Sounds
Deskbar:
Preferences
Location:
/boot/system/preferences/Sounds
Settings:
~/config/settings/Media/MMediaFilesManager
You can assign sounds to certain events in the system. Just select the event from the list and choose a
sound from the drop-down menu below.
None
Other... will open a file panel to find a new sound that isn't yet in the menu.
You can use any format that's supported by the system. If MediaPlayer can deal with it, so can any
other program.
You can "pre-hear" an event's sound by selecting it and using the Play and Stop buttons.
98
Time
Deskbar:
Preferences
Location:
/boot/system/preferences/Time
Settings:
~/config/settings/RTC_time_settings
~/config/settings/timezone - A link to the current timezone in /boot/system/etc/timezones/
*/*
~/config/settings/Time_settings - Stores the panel's window position.
On the left side, you can set the day of the month by simply clicking on it in the calendar. You change
the month and year by clicking on it and using the up/down arrows to the right or the cursor keys on
your keyboard.
Similarly, you set the time. There are two modes for the clock:
Local Time to display your local time.
GMT
Timezone
99
Simply find and choose your location from the drop-down menu and the list of cities and press Set Time
Zone to set your zone.
Revert brings back the settings that were active when you started the Time preferences.
100
Tracker
Deskbar:
Preferences
Location:
/boot/system/preferences/Tracker
Settings:
~/config/settings/Tracker/TrackerSettings
The Tracker preference panel is also available from every Tracker window with the menu Window |
Preferences....
Its functions are discussed in the topic on Tracker.
101
VirtualMemory
Deskbar:
Preferences
Location:
/boot/system/preferences/VirtualMemory
Settings:
~/config/settings/kernel/drivers/virtual_memory
~/config/settings/VM_data - Stores the panel's window position.
Virtual memory let's the system swap out memory to harddisk, if the RAM can be used more sensibly
for other things. So, even if you have lots of RAM, providing virtual memory is never a bad idea.
You can set the size to even more than your physical memory size if needed. With today's huge
harddisks, assigning the physical memory size shouldn't be a problem. Still, you can quickly adjust the
size if your free space ever runs low. In that case you should also have a look at DiskUsage to find
out what's eating up your diskspace.
Normally, the swap file's written to your boot partition. If you often run into disk thrashing due to the
virtual memory system swapping memory in and out, you can try to use a separate harddisk for you
swap file. Simply another partition on the same harddisk with your system/data won't help.
Upgrading your RAM is of course the most effective way to go...
Defaults resets everything to default values.
Revert
brings back the settings that were active when you started the VirtualMemory preferences.
102
The Bash
Since scripts rely naturally a lot on the shell they are interpreted by, you should first familiarize
yourself with the BASH that's used by Haiku. There are many resources online as it's a widely used
shell. One nice document is Johan Jansson's Introduction to bash - a tutorial for bash under
BeOS <http://www.beforever.com/bashtut.htm>.
Scripts in Haiku
In Haiku, the system makes of course also use of scripting. Booting and shutting down are typical
scripting procedures. These defined sequences can be augmented by the user with certain user
scripts.
If they don't exist already, you'll have to create the needed files yourself. Otherwise simply add your
commands where in the process you want them to be executed.
The UserBootscript
/boot/home/config/boot/UserBootscript will be executed after the system has finished its boot process.
For example, you could launch a number of programs that would then be automatically started on
every boot up:
# Start LaunchBox
/boot/system/apps/LaunchBox &
# Start Workspaces Applet
/boot/system/apps/Workspaces &
103
Remember to end a command with an "&" to start it as a background process, or the script will halt
until that command has finished (in this case: the launched app was closed again).
A simple alternative to the above for launching applications at boot up is to put links to them in the /
boot/home/config/boot/launch directory. This can be done simply by right-clicking on the application
you wish to have started automatically, going to Create Link and then navigating to the above
directory.
The UserShutdownScript
/boot/home/config/boot/UserShutdownScript will be executed as the first step in the shutdown process. If
The UserShutdownFinishScript
/boot/home/config/boot/UserShutdownFinishScript is executed as the last step in the shutdown process.
Note, that most parts of the system have terminated by the time this script is executed.
104
Terminal
Deskbar:
Applications
Location:
/boot/system/apps/Terminal
Settings:
~/config/settings/Terminal_settings
~/.profile - adds/overrides defaults in /boot/system/etc/profile
~/.inputrc - adds/overrides defaults in /boot/system/etc/inputrc
Appearance
You can open as many Terminals as needed, either each in it's own window by simply launching more
Terminals or with ALT N from an already running Terminal. Or you use Terminal's tabbed view and
open another tab with ALT T .
A Terminal window can be resized like any other window or you use the presets from the Settings |
Window Size menu. ALT ENTER toggles fullscreen mode.
Changed window size and text encoding are only kept choosing Settings | Save as default.
Settings | Preferences opens a panel where you can set font type, font size and the different text and
background colors. You can save different settings as separate profiles, which on double-click open an
105
Bash customization
Coming from Unix, there are countless possibilities to customize the bash itself. There are two files
that are especially important to the user: .profile and .inputrc
Both files can be created in the home/ folder and add or override the system defaults that are defined
in /boot/system/etc/.
.profile
The .profile is loaded every time you open a new Terminal. It sets all kinds of aliases and variables
that will affect bash's behavior and appearance. You'll find many online resources that will detail all
possibilities.
The Haiku/BeOS Tip Server has quite a few tips to get you started, for example:
Customize your Terminal prompt
More prompt customizations
Enhancing bash
Custom keyboard shortcuts
There are more, have a look.
.inputrc
The .inputrc deals with keybindings. Since Haiku provides useful defaults, you probably don't have to
mess with these more involved settings. If you do have special needs here, consult one of the many
online resources, e.g. The GNU Readline Library.
Keyboard shortcuts
You'll find a list of useful shortcuts in Shortcuts and key combinations.
Inserts the location of the file, same as drag&dropping with the left mouse button.
Creates a link to the dragged file in the current working directory of the Terminal.
Move Here
Moves the dragged file into the current working directory of the Terminal.
Copy Here
Copies the dragged file into the current working directory of the Terminal.
You can open any file with its preferred application with the command open [filename]. This also
works with the representation of the current (".") and parent ("..") folder which then open in a
Tracker window. So, to open the current working directory, you type:
106
open .
107