~kirkland/byobu/trunk

« back to all changes in this revision

Viewing changes to usr/share/man/man1/byobu.1

  • Committer: kirkland at ubuntu
  • Date: 2023-11-22 22:45:43 UTC
  • Revision ID: kirkland@ubuntu.com-20231122224543-v5igclwtj4xga8tm
Permanently moved Byobu source code repository to https://github.com/dustinkirkland/byobu

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH byobu 1 "19 June 2009" byobu "byobu"
2
 
.SH NAME
3
 
byobu \- wrapper script for seeding a user's byobu configuration and launching a text based window manager (either screen or tmux)
4
 
 
5
 
.SH SYNOPSIS
6
 
\fBbyobu\fP [options]
7
 
 
8
 
\fBbyobu\-screen\fP [screen options]
9
 
 
10
 
\fBbyobu\-tmux\fP [tmux options]
11
 
 
12
 
Options to \fBbyobu\fP are simply passed through \fBscreen\fP(1) or \fBtmux\fP(1).
13
 
 
14
 
.SH DESCRIPTION
15
 
\fBbyobu\fP is a script that launches a text based window manager (either \fBscreen\fP(1) or \fBtmux\fP(1)) in the byobu configuration.  This enables the display of system information and status notifications within two lines at the bottom of the screen session. It also enables multiple tabbed terminal sessions, accessible through simple keystrokes.
16
 
 
17
 
\fBbyobu\fP currently defaults to using \fBtmux\fP(1) (if present) as the backend, however, this can be overridden with the \fBbyobu-select-backend\fP(1) utility.
18
 
 
19
 
Note that BYOBU_CONFIG_DIR=\fI$XDG_CONFIG_HOME/byobu\fP if defined, and \fI$HOME/.byobu\fP otherwise.
20
 
 
21
 
.SH BACKGROUND COLORS
22
 
The background colors of the \fBbyobu\fP status lines can be adjusted by editing the files \fI$HOME/.byobu/color\fP (for \fBbyobu\-screen\fP) and \fI$HOME/.byobu/color.tmux\fP (for \fBbyobu\-tmux\fP).  The command \fBCtrl-Shift-F5\fP will change the background to a randomly selected color when running in \fBbyobu\-tmux\fP mode.  Simply remove those files to return to the default color configuration.
23
 
 
24
 
.SH STATUS NOTIFICATIONS
25
 
 
26
 
\fBbyobu\fP supports a number of unique and interesting status notifications across the lowest two lines in the screen.  Each status notification item is independently configurable, enabled and disabled by the configuration utility.  The guide below helps identify each status item (in alphabetical order):
27
 
 
28
 
\fBapport\fP \- symbol displayed if there are pending crash reports; {!} symbol displayed on the lower bar toward the left, in black on an orange background
29
 
 
30
 
\fBarch\fP \- system architecture; displayed on the lower bar toward the left, in the default text color on the default background color
31
 
 
32
 
\fBbattery\fP \- battery information; display on the lower bar toward the right; \- indicates discharging, + indicates charging, = indicates fully charged;  when charging or discharging, the current battery capacity as a percentage is displayed;  the colours green, yellow, and red are used to give further indication of the battery's charge state; you may override the detected battery by setting BATTERY=/proc/acpi/battery/BAT0 in \fI$BYOBU_CONFIG_DIR/statusrc\fP
33
 
 
34
 
\fBcpu_count\fP \- the number of cpu's or cores on the system; displayed in the lower bar toward the right in the default text color on the default background, followed by a trailing 'x'
35
 
 
36
 
\fBcpu_freq\fP \- the current frequency of the cpu in GHz; displayed in the lower bar toward the right in white text on a light blue background
37
 
 
38
 
\fBcpu_temp\fP \- the cpu temperature in Celsius (default) or Fahrenheit, configure TEMP=F or TEMP=C in \fI$BYOBU_CONFIG_DIR/statusrc\fP; displayed in the lower bar toward the right in yellow text on a black background; you may override the detected cpu temperature device by setting MONITORED_TEMP=/proc/acpi/whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP
39
 
 
40
 
\fBcustom\fP \- user defined custom scripts; must be executable programs of any kind in \fI$BYOBU_CONFIG_DIR/bin\fP; must be named N_NAME, where N is the frequency in seconds to refresh the status indicator, and NAME is the name of the script; N should not be less than 5 seconds; the script should echo a small amount of text to standard out, standard error is discarded; the indicator will be displayed in the lower panel, in default colors, unless you manually specify the colors in your script's output; BEWARE, cpu-intensive custom scripts may impact your overall system performance and could upset your system administrator!  In fact, you can easily copy and modify \fBany\fP status script usually found in \fI/usr/lib/byobu/*\fP to your local \fI$HOME/.byobu/\fP directory.
41
 
  Example: \fI$BYOBU_CONFIG_DIR/bin/1000_uname\fP
42
 
    #!/bin/sh
43
 
    printf "\\005{= bw}%s\\005{\-}" "$(uname \-r)"
44
 
 
45
 
 
46
 
\fBdate\fP \- the system date in YYYY-MM-DD format, or you can set this to any valid \fBstrftime\fP(3) you like in \fI$BYOBU_CONFIG_DIR/datetime\fP; displayed in the lower on the far right in the default text color on the default background
47
 
 
48
 
\fBdisk\fP \- total disk space available and total used on / directory; displayed in the lower bar on the far right in white text on a light purple background; override the default directory by specifying an alternate mount point with MONITORED_DISK=/wherever in \fI$BYOBU_CONFIG_DIR/statusrc\fP
49
 
 
50
 
\fBdisk_io\fP \- instantaneous read/write througput in kB/s or MB/s over the last 3 seconds; displayed in the lower bar toward the right in white text on a light purple background with a leading '<' sign indicating 'read speed' and '>' sign indicating 'write speed'; override the default monitored disk by specifying an alternate device with MONITORED_DISK=/dev/sdb, and override the default DISK_IO_THRESHOLD=50 (kB/s) in \fI$BYOBU_CONFIG_DIR/statusrc\fP
51
 
 
52
 
\fBdistro\fP \- OS/distribution name of the release running on the current system as reported by \fBlsb_release(1)\fP or \fI/etc/issue\fP; displayed in the lower bar in bold black text toward the left on a grey background; you may override the detected release with DISTRO=Whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP
53
 
 
54
 
\fBentropy\fP \- a count of the system's current entropy in bytes; displayed in the lower bar toward the right in yellow text on a dark grey background; there is a leading 'e' to indicate 'entropy'
55
 
 
56
 
\fBraid\fP \- note very prominently if there is a RAID failure detected, in red blinking text on a white background; the term 'RAID' notes that there is something wrong with the RAID, and if there is a rebuild/resync in progress, the percent complete is also shown
57
 
 
58
 
\fBfan_speed\fP \- cpu or system fan speed as reported by lm-sensors; displayed in the lower bar toward the right in black text on a grey background; there is a trailing 'rpm' for units; you may override the detected fan by setting FAN=/sys/path/to/your/fan1_input in \fI$BYOBU_CONFIG_DIR/statusrc\fP
59
 
 
60
 
\fBhostname\fP \- the hostname of the system; displayed in the upper bar on the far right in bold black text on a grey background; there is a leading '@' symbol if the username status is also enabled
61
 
 
62
 
\fBip_address\fP \- the IPv4 address of the system in dotted decimal form; displayed in the upper bar on the far right in bold black text on a grey background;  you can override and display your IPv6 address by setting 'IPV6=1', and you can show your external ip address by setting 'IP_EXTERNAL=1' in \fI$BYOBU_CONFIG_DIR/statusrc\fP
63
 
 
64
 
\fBip_address4\fP \- the IPv4 address of the system in dotted decimal form; displayed in the upper bar on the far right in bold black text on a grey background;  you can show your external ip address by setting 'IP_EXTERNAL=1' in \fI$BYOBU_CONFIG_DIR/statusrc\fP
65
 
 
66
 
\fBip_address6\fP \- the IPv6 address of the system; displayed in the upper bar on the far right in bold black text on a grey background;  you can show your external ip address by setting 'IP_EXTERNAL=1' in \fI$BYOBU_CONFIG_DIR/statusrc\fP
67
 
 
68
 
\fBload_average\fP \- the system load average over the last 1 minute; displayed in the lower bar toward the right in black text on a yellow background
69
 
 
70
 
\fBlogo\fP \- an approximation of the current operating system's logo; displayed in the lower bar on the far left; you may customize this logo by setting a chosen logo with LOGO=:-D in \fI$BYOBU_CONFIG_DIR/statusrc\fP
71
 
 
72
 
\fBmail\fP \- system mail for the current user; the letter '[M]' is displayed in the lower bar toward the left in black text on a grey background
73
 
 
74
 
\fBmemory\fP \- total memory available and used percentage in the system; displayed in the lower bar toward the right in white text on a green background
75
 
 
76
 
\fBmenu\fP \- a simple indicator directing new users to use the F9 keybinding to access the byobu menu
77
 
 
78
 
\fBnetwork\fP \- instantaneous upload/download bandwidth in [GMk]bps over the last 3 seconds; nothing is displayed if traffic is 0; displayed in the lower bar toward the left in white text on a purple background with a leading '^' sign indicating 'up' and 'v' sign indicating 'down'; override the default interface by specifying an alternate interface with MONITORED_NETWORK=eth1, and override the default units (bits) with NETWORK_UNITS=bytes, and override the default NETWORK_THRESHOLD=20 (kbps) in \fI$BYOBU_CONFIG_DIR/statusrc\fP
79
 
 
80
 
\fBnotify_osd\fP \- Send on-screen notification messages to screen's notification buffer
81
 
 
82
 
\fBprocesses\fP \- total number of processes running on the system; displayed in the lower bar in white text on a dark yellow background with a trailing '&' indicating 'background processes'
83
 
 
84
 
\fBreboot_required\fP \- symbol present if a reboot is required following a system update; displayed in the lower bar white text on a blue background by the symbol '(R)'; additionally, reboot_required will print '<F5>' in white text on a blue background, if Byobu requires you to reload your profile to affect some changes; it will also detect if your system is currently in \fBpowernap\fP(8) state and if so print '.zZ'; if your system is currently performing an \fBunattended-upgrade\fP(1) you will see a white warning sign on a red background.
85
 
 
86
 
\fBrelease\fP \- OS/distribution name of the release running on the current system as reported by \fBlsb_release(1)\fP or \fI/etc/issue\fP; displayed in the lower bar in bold black text toward the left on a grey background; you may override the detected release with RELEASE=Whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP; you may also abbreviate the release string to N characters by setting RELEASE_ABBREVIATED=N in \fI$BYOBU_CONFIG_DIR/statusrc\fP
87
 
 
88
 
\fBservices\fP \- users can configure a list of services to monitor, define the SERVICES variable in \fI$BYOBU_CONFIG_DIR/statusrc\fP, a whitespace separated of services, each service should include the init name of the service, then a pipe, and then an abbreviated name or symbol to display when running (e.g. SERVICES="ssh|ssh apache2|http"); displayed in the lower bar toward the center in cyan on a white background
89
 
 
90
 
\fBsession\fP \- byobu session name (only supported in \fBbyobu-tmux\fP(1)); displayed in the lower bar on the left in underlined black text on a white background
91
 
 
92
 
\fBswap\fP \- total swap space and total used as a percentage of the total available; displayed in the lower bar toward the right in black text on a light green background with a trailing '%' sign
93
 
 
94
 
\fBtime\fP \- the system time in HH:MM:SS format (by default), or you can set this to any valid \fBstrftime\fP(3) you like in \fI$BYOBU_CONFIG_DIR/datetime\fP; displayed in the lower bar on the far right in the default text and default background colors
95
 
 
96
 
\fBtime_binary\fP \- only for the hard core geek, the local system time in binary; requires UTF-8 support in a VERY recent version of GNU Screen; displayed in the lower bar on the far right in the default text and background colors
97
 
 
98
 
\fBtime_utc\fP \- the UTC system time in HH:MM format; displayed in the lower bar on the far right in dark text on a light background
99
 
 
100
 
\fBupdates_available\fP \- the number of updates available on the system; displayed in the lower bar toward the right in white text on a red background with a trailing '!' sign; if any updates are marked 'security updates', then there will be a total of two trailing exclamation points, '!!'
101
 
 
102
 
\fBuptime\fP \- the total system uptime since last boot; displayed in the lower bar toward the right in blue text on a grey background
103
 
 
104
 
\fBusers\fP \- the number of remote users logged into the system via sshd, empty if 0 users; displayed in the lower bar toward the right in red text on a grey background with a trailing '#' sign; set USERS_DISTINCT=1 to instead count the number of distinct users logged into the system (rather than open ssh sessions)
105
 
 
106
 
\fBwhoami\fP \- the name of the user who owns the screen session; displayed in the upper bar toward the far right in bold black text on a grey background
107
 
 
108
 
\fBwifi_quality\fP \- the connection rate and signal quality of the wifi connection; displayed in the lower bar toward the right in black text on a cyan background; the connection rate is in 'Mb/s' and the signal quality is as a percentage with a trailing '%'; override the default interface by specifying an alternate interface with MONITORED_NETWORK=wlan0 in \fI$BYOBU_CONFIG_DIR/statusrc\fP
109
 
 
110
 
.SH SESSIONS
111
 
 
112
 
Byobu name screen sessions "byobu", if unspecified.  To hide sessions from \fBbyobu-select-session\fP(1), prepend a "." to the beginning of the session name, like:
113
 
 
114
 
 byobu \-S .hidden
115
 
 
116
 
.SH WINDOWS
117
 
 
118
 
Each open window in the screen session is displayed in the upper bar toward the far left.  These are numbered, and include indicators as to activity in the window (see "activity" in \fBscreen\fP(1) and \fBtmux\fP(1) for symbol definitions).  The current active window is highlighted by inverting the background/text from the rest of the window bar.
119
 
 
120
 
Users can create a list of windows to launch at startup in \fI$BYOBU_CONFIG_DIR/windows\fP and \fI$BYOBU_CONFIG_DIR/windows.tmux\fP.  This file is the same syntax as \fI~/.screenrc\fP and \fI~/.tmuxrc\fP, each line specifying a window, as described in \fBscreen\fP(1) or \fBtmux\fP(1).
121
 
 
122
 
User can also launch Byobu with unique window sets.  Users can store these as \fI$BYOBU_CONFIG_DIR/windows.[NAME]\fP and \fI$BYOBU_CONFIG_DIR/windows.tmux.[NAME]\fP, and launch Byobu with the environment variable \fBBYOBU_WINDOWS\fP=NAME.
123
 
 
124
 
For example:
125
 
  $ cat $BYOBU_CONFIG_DIR/windows.ssh_sessions
126
 
  screen \-t localhost bash
127
 
  screen \-t aussie ssh root@aussie
128
 
  screen \-t beagle ssh root@beagle
129
 
  screen \-t collie ssh root@collie
130
 
 
131
 
Then:
132
 
  $ BYOBU_WINDOWS=ssh_sessions byobu
133
 
 
134
 
For example:
135
 
  $ cat $BYOBU_CONFIG_DIR/windows.tmux.split4
136
 
  new-session 'bash' ;
137
 
  new-window -n term1 ;
138
 
  new-window -n term2 ;
139
 
  new-window -n ssh ssh 10.9.8.7 ;
140
 
  split-window ;
141
 
  split-window ;
142
 
  split-window ;
143
 
  select-layout tiled ;
144
 
  select-pane -t 0
145
 
 
146
 
Then:
147
 
  $ BYOBU_WINDOWS=split4 byobu
148
 
 
149
 
.SH UNITS OF MEASURE
150
 
byobu uses binary for capacity measurements of KB, MB, GB, and TB.  This means multiples of 1024 rather than multiples of 1000, in accordance with JEDEC Standard 100B.01 for memory capacity measurements.  See:
151
 
 * http://en.wikipedia.org/wiki/JEDEC_memory_standards
152
 
 
153
 
byobu uses decimal for measurements of network data transfer, meaning multiple of 1000, rather than 1024.  See:
154
 
 * http://en.wikipedia.org/wiki/Data_rate_units
155
 
 
156
 
.SH KEYBINDINGS
157
 
 
158
 
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings are:
159
 
 
160
 
\fBF2\fP \- Create a new window
161
 
 
162
 
\fBF3\fP \- Move to previous window
163
 
 
164
 
\fBF4\fP \- Move to next window
165
 
 
166
 
\fBF5\fP \- Reload profile
167
 
 
168
 
\fBF6\fP \- Detach from this session
169
 
 
170
 
\fBF7\fP \- Enter copy/scrollback mode
171
 
 
172
 
\fBF8\fP \- Re-title a window
173
 
 
174
 
\fBF9\fP \- Configuration Menu
175
 
 
176
 
\fBF12\fP \-  Lock this terminal
177
 
 
178
 
\fBshift-F2\fP \- Split the screen horizontally
179
 
 
180
 
\fBctrl-F2\fP \- Split the screen vertically
181
 
 
182
 
\fBshift-F3\fP \- Shift the focus to the previous split region
183
 
 
184
 
\fBshift-F4\fP \- Shift the focus to the next split region
185
 
 
186
 
\fBshift-F5\fP \- Join all splits
187
 
 
188
 
\fBctrl-F6\fP \- Remove this split
189
 
 
190
 
\fBctrl-F5\fP \- Reconnect GPG and SSH sockets
191
 
 
192
 
\fBshift-F6\fP \- Detach, but do not logout
193
 
 
194
 
\fBalt-pgup\fP \- Enter scrollback mode
195
 
 
196
 
\fBalt-pgdn\fP \- Enter scrollback mode
197
 
 
198
 
\fBCtrl-a $\fP \- show detailed status
199
 
 
200
 
\fBCtrl-a R\fP \- Reload profile
201
 
 
202
 
\fBCtrl-a !\fP \- Toggle key bindings on and off
203
 
 
204
 
\fBCtrl-a k\fP \- Kill the current window
205
 
 
206
 
\fBCtrl-a ~\fP \- Save the current window's scrollback buffer
207
 
 
208
 
.SH "SCROLLBACK, COPY, PASTE MODES"
209
 
 
210
 
Each window in Byobu has up to 10,000 lines of scrollback history, which you can enter and navigate using the \fBalt-pgup\fP and \fBalt-pgdn\fP keys.  Exit this scrollback mode by hitting \fBenter\fP.  You can also easily copy and paste text from scrollback mode.  To do so, enter scrollback using \fBalt-pgup\fP or \fBalt-pgdn\fP, press the \fBspacebar\fP to start highlighting text, use \fBup/down/left/right/pgup/pgdn\fP to select the text, and press \fBenter\fP to copy the text.  You can then paste the text using \fBalt-insert\fP or \fBctrl-a-]\fP.
211
 
 
212
 
.SH "BUGS"
213
 
 
214
 
For Byobu colors to work properly, older versions of GNU Screen require a 1-line patch to adjust MAX_WINMSG_REND in screen.c.  The change is in GNU Screen's upstream source control system as of 2010-01-26, but GNU Screen has not released a new upstream version in several years.  You can disable colors entirely by setting MONOCHROME=1 in \fI$BYOBU_CONFIG_DIR/statusrc\fP.  For more information, see:
215
 
 * http://savannah.gnu.org/bugs/?22146
216
 
 
217
 
PuTTY users have reported that the F2, F3, and F4 shortcut keys are not working properly.  PuTTY sends the same escape sequences as the linux console for F1-F4 by default.  You can fix this problem in the PuTTY config, Terminal -> Keyboard -> Function keys: Xterm R6.  See: \fIhttp://www.mail-archive.com/screen-users@gnu.org/msg01525.html\fP
218
 
 
219
 
PuTTY users should configure enable UTF-8 characters in order to fix status refresh issues.  You can fix this problem in the PuTTY configuration, Window -> Translation: select UTF-8.
220
 
 
221
 
PuTTY users should avoid resizing their window to one character tall, as this can sometimes crash \fBbyobu-screen\fP.
222
 
 
223
 
Apple Mac OSX terminal users have reported 'flashing text'.  You can fix this in the advanced settings of the terminal application, with 'Declare Terminal As: xterm-color'.
224
 
 
225
 
Apple Mac keyboard users may need to specify a vt100 terminal by adding this to your OSX profile, in order to get Byobu's function keys and colors to work:
226
 
  alias ssh='TERM=vt100 ssh'
227
 
 
228
 
Users of a non-UTF-8 locale (such as cs_CZ charset ISO-8859-2), may need to add "defutf8 off" to \fI~/.screenrc\fP, if some characters are rendering as "?".
229
 
 
230
 
Users who customize their PS1 prompt need to put this setting in \fI~/.bashrc\fP, rather than \fI~/.profile\fP, in order for it to work correctly with Byobu.
231
 
 
232
 
If you run \fBbyobu\fP(1) under \fBsudo\fP(8), you \fBmust\fP use the \-H option, such that the user's $HOME directory environment variable is set properly.  Otherwise, \fBbyobu\fP(1) will create a bunch of directories in the $SUDO_USER's $HOME, but will be owned by root.  To prevent this from happening, \fBbyobu\fP(1) will simply refuse to run if $USER does not own $HOME.
233
 
 
234
 
Byobu requires a suitable \fBulimit\fP(3) values to run.  If you get an error at startup saying, 'pipe: too many open files', then check your ulimit \-a values, as your "open files" or "max user processes" are too low.  In this case, you will probably need to run simple \fBscreen\fP(1)
235
 
 
236
 
.SH SEE ALSO
237
 
.PD 0
238
 
.TP
239
 
\fBscreen\fP(1), \fBbyobu-config\fP(1), \fBbyobu-export\fP(1), \fBbyobu-status\fP(1), \fBbyobu-status-detail\fB(1), \fBbyobu-enable\fB(1), \fBbyobu-launch\fB(1), \fBbyobu-select-backend\fP(1), \fBtmux\fP(1)
240
 
.TP
241
 
\fIhttp://byobu.org\fP
242
 
.PD
243
 
 
244
 
.SH AUTHOR
245
 
This manpage and the utility were written by Dustin Kirkland <kirkland@byobu.org> for Ubuntu systems (but may be used by others).  Permission is granted to copy, distribute and/or modify this document and the utility under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
246
 
 
247
 
The complete text of the GNU General Public License can be found in \fI/usr/share/common-licenses/GPL\fP on Debian/Ubuntu systems, or in \fI/usr/share/doc/fedora-release-*/GPL\fP on Fedora systems, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.