old-www/LDP/intro-linux/html/sect_10_09.html

269 lines
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Exercises</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Introduction to Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Networking"
HREF="chap_10.html"><LINK
REL="PREVIOUS"
TITLE="Summary"
HREF="sect_10_08.html"><LINK
REL="NEXT"
TITLE="Sound and Video"
HREF="chap_11.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"
>Introduction to Linux: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sect_10_08.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 10. Networking</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chap_11.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="sect_10_09"
></A
>10.7. Exercises</H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="sect_10_09_01"
></A
>10.7.1. General networking</H2
><P
></P
><UL
><LI
><P
>Display network information for your workstation: IP address, routes, name servers.</P
></LI
><LI
><P
>Suppose no DNS is available. What would you do to reach your neighbour's machine without typing the IP address all the time?</P
></LI
><LI
><P
>How would you permanently store proxy information for a text mode browser such as <B
CLASS="command"
>links</B
>?</P
></LI
><LI
><P
>Which name servers handle the redhat.com domain?</P
></LI
><LI
><P
>Send an E-mail to your local account. Try two different ways to send and read it. How can you check that it really arrived?</P
></LI
><LI
><P
>Does your machine accept anonymous FTP connections? How do you use the <B
CLASS="command"
>ncftp</B
> program to authenticate with your user name and password?</P
></LI
><LI
><P
>Does your machine run a web server? If not, make it do so. Check the log files!</P
></LI
></UL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="sect_10_09_02"
></A
>10.7.2. Remote connections</H2
><P
></P
><UL
><LI
><P
>From your local workstation, display a graphical application, such as <B
CLASS="command"
>xclock</B
> on your neighbour's screen. The necessary accounts will have to be set up. Use a secure connection!</P
></LI
><LI
><P
>Set up SSH keys so you can connect to your neighbour's machine without having to enter a password.</P
></LI
><LI
><P
>Make a backup copy of your home directory in <TT
CLASS="filename"
>/var/tmp</TT
> on your neighbour's <SPAN
CLASS="QUOTE"
>"backup server,"</SPAN
> using <B
CLASS="command"
>scp</B
>. Archive and compress before starting the data transfer! Connect to the remote host using <B
CLASS="command"
>ssh</B
>, unpack the backup, and put one file back on the original machine using <B
CLASS="command"
>sftp</B
>.</P
></LI
></UL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="sect_10_09_03"
></A
>10.7.3. Security</H2
><P
></P
><UL
><LI
><P
>Make a list of open (listening) ports on your machine.</P
></LI
><LI
><P
>Supposing you want to run a web server. Which services would you deactivate? How would you do that?</P
></LI
><LI
><P
>Install available updates.</P
></LI
><LI
><P
>How can you see who connected to your system?</P
></LI
><LI
><P
>Make a repetitive job that reminds you to change your password every month, and preferably the <EM
>root</EM
> password as well.</P
></LI
></UL
></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="sect_10_08.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="chap_11.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Summary</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="chap_10.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Sound and Video</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>