File: //usr/share/doc/iptraf-ng/Documentation/x144.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Starting and Stopping IPTraf-ng</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="IPTraf-ng User's Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Getting Started"
HREF="c66.html"><LINK
REL="PREVIOUS"
TITLE=" Installation"
HREF="x96.html"><LINK
REL="NEXT"
TITLE="Command-line Options"
HREF="x171.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>IPTraf-ng User's Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x96.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 1. Getting Started</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x171.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="STARTSTOP"
>1.3. Starting and Stopping IPTraf-ng</A
></H1
><P
> After installation, you can start the program, as root, by simply entering</P
><PRE
CLASS="SYNOPSIS"
>iptraf-ng</PRE
><P
> Entering the IPTraf-ng command without any command-line parameters brings
up the program's main menu. From there, you can select the
facilities you want.</P
><P
> IPTraf-ng determines and makes use of the maximum number
of lines and columns on the terminal.</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Note</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> IPTraf-ng does not have a SIGWINCH handler; it does not
adjust itself when an xterm or some other X terminal is resized.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Technical note</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>
IPTraf-ng needs to refer to the terminfo database
in <TT
CLASS="FILENAME"
>/usr/share/terminfo</TT
>.
If the supplied executable program fails with <SAMP
CLASS="COMPUTEROUTPUT"
>Error
opening
terminal</SAMP
>, your terminfo database may be located somewhere else. You can
control the terminfo search path
by using the <CODE
CLASS="ENVAR"
>TERMINFO</CODE
> environment
variable. For example, if you're using the <B
CLASS="COMMAND"
>sh</B
>
or <B
CLASS="COMMAND"
>bash</B
> shell, and
your terminfo database is in <TT
CLASS="FILENAME"
>/usr/lib/terminfo</TT
>
(typical for Slackware distributions), you can use the commands: </P
><PRE
CLASS="SYNOPSIS"
>TERMINFO=/usr/lib/terminfo
export TERMINFO</PRE
><P
> You can place these commands in your <TT
CLASS="FILENAME"
>~/.profile</TT
> or the
systemwide <TT
CLASS="FILENAME"
>/etc/profile</TT
> startup files.</P
><P
> You can also create a symbolic
link named <TT
CLASS="FILENAME"
>/usr/share/terminfo</TT
> to let
it point to your existing terminfo (assuming again your terminfo is in
<TT
CLASS="FILENAME"
>/usr/lib/terminfo</TT
>):</P
><PRE
CLASS="SYNOPSIS"
>ln -s /usr/lib/terminfo /usr/share/terminfo</PRE
><P
> Or you can recompile your program to use your existing ncurses library
installation. If you do this, make sure you have ncurses 4.2 or later.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x96.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x171.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Installation</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c66.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Command-line Options</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>