Securing-Optimizing-RH-Linux-1_2_151
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
151
The z option tells tar that the archive is compressed with gzip.
The p option maintains the original and permissions the files had as the archive was created.
The f option tells tar that the very next argument is the file name.
Once the tarball has been decompressed into the appropriate directory, you will almost certainly
find a README and/or a INSTALL file included with the newly decompressed files, with further
instructions on how to prepare the software package for use. Likely, you will need to enter
commands similar to the following example:
./configure
make
make install
The above commands ./configure would configure the software to ensure your system has the
necessary functionality and libraries to successfully compile the package, make compile all
source files into executable binaries, and then make install install the binaries and any
supporting files into the appropriate locations. Other specifics commands that youll see on our
book for compilation and installation procedure will be:
make depend
strip
chown
The "make depend" command would build and make the necessary dependency of different
files. The strip command would discard all symbols from the object files. This means that our
binary file will be smaller in size. This will improve a bit the performance hit to the program since
they will be fewer lines to read by the system when itll execute the binary. The "chown"
command would set the correct files owner and group permission for the binaries.
NOTE: More commands will be explained in the concerned installation parts.
Editing files with the vi editor tool
The vi program is a text editor that you can use to edit any text and particularly programs. During
installation of software, the user will often have to edit text files like Makefiles or configuration
files to make and fit they changes. The following is some of the most important keystroke
commands to get around in vi.
Command
Result
i
a
dd
x
Esc
u
Ctrl+f
Ctrl+b
/string
:f
:q
:q!
:wq
Notifies vi to insert text before the cursor.
Notifies vi to append text after the cursor.
Notifies vi to delete the current line.
Notifies vi to delete the current character.
Notifies vi to end the insert or append mode.
Notifies vi to undo the last command.
Scroll up one page.
Scroll down one page.
Search forward for string.
Display filename and current line nmber.
Quit editor.
Quit editor without saving changes.
Save changes and exit editor.