Журнал лабораторных работ

Содержание

Журнал

Пятница (12/01/06)

/dev/ttypd
18:08:48
#pppd 192.168.19.254:192.168.19.1
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
pppd: local/remote LL address required for demand-dialling
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:09:03
#man pppd
18:10:13
#vi /etc/ppp/options
18:10:21
#pppd 192.168.19.254:192.168.19.1
pppd: local/remote LL address required for demand-dialling
18:10:24
#vi /etc/ppp/options
18:10:38
#vi /etc/ppp/options
18:10:58
#man pppd
18:11:12
#~q
bash: ~q: command not found
18:11:15
#cd /etc/ppp/

18:11:18
#ls -l
total 8
-rw-r--r--  1 root  wheel    33 Dec  1 16:01 chat
-rw-r--r--  1 root  wheel   182 Dec  1 16:10 options
-rw-------  1 root  wheel    18 Dec  1 15:49 pap-secrets
-rw-------  1 root  wheel  1167 Nov  3  2005 ppp.conf
18:11:19
#cp options options.cuad0

18:11:27
#vi options.cuad0
18:11:35
#vi options.cuad0
18:11:40
#pppd 192.168.19.254:192.168.19.1
pppd: local/remote LL address required for demand-dialling
18:11:44
#pppd
pppd: local/remote LL address required for demand-dialling
18:11:46
#pppd
pppd: local/remote LL address required for demand-dialling
18:11:46
#vi options
18:11:55
#pppd

18:11:56
#ifconfig
#
# SAMPLEinet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255al dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#       ether 00:04:76:a1:f2:5b
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
        media: Ethernet autoselect (100baseTX <full-duplex>)
#
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> mtu 1500
        inet 192.168.19.254 --> 192.168.19.1 netmask 0xffffff00
18:12:21
#cat options
192.168.19.254:192.168.19.1
defaultroute
38400
/dev/cuad0
lock
debug
noauth
user user
connect '/usr/bin/chat -f /etc/ppp/chat'
idle 60
ipcp-accept-remote
ipcp-accept-local
18:13:06
#pkill pppd

18:13:18
#less options
18:13:22
#vi options
18:13:30
#vi options
18:13:49
#pppd
pppd: local/remote LL address required for demand-dialling
18:13:50
#cd /usr/ports/
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
# username may be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:15:07
#make search name=mpd
Port:   libmpd-0.12.0
Path:   /usr/ports/audio/libmpd
Info:   Abstraction around libmpdclient
Maint:  redchrom@gmail.com
B-deps:
R-deps:
WWW:    http://cms.qballcow.nl/index.php?page=libmpd
Port:   mpdcon-1.1.99
Path:   /usr/ports/audio/mpdcon
Info:   A GNUstep MPD client
...
B-deps: autoconf-2.59_2 gettext-0.14.5_2 gmake-3.81_1 libbegemot-1.11 libiconv-1.9.2_2 libltdl-1.5.22 libsmi-0.4.5 m4-1.4.4 perl-5.8.8 pkg-config-0.21
R-deps: libbegemot-1.11 libltdl-1.5.22 libsmi-0.4.5 pkg-config-0.21
WWW:    http://people.freebsd.org/~harti/bsnmp/
Port:   isakmpd-20041207_2
Path:   /usr/ports/security/isakmpd
Info:   OpenBSD IKE daemon
Maint:  simon@FreeBSD.org
B-deps:
R-deps:
WWW:    http://www.openbsd.org/
18:15:11
#make search name=mpd | less
18:15:19
#cd net/mpd

18:15:21
#make install
      these network services to be started at boot time.
/usr/local/etc/rc.d/mpd.sh
      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.
      For more information, and contact details about the security
      status of this software, see the following webpage:
http://sourceforge.net/projects/mpd/
18:15:54
#vi /etc/rc.conf
прошло 24 минуты
18:40:00
#cd /usr/local/etc/rc.d/

18:40:08
#ls
000.compat4x.sh         genkdmconf.sh           rsyncd.sh
000.compat5x.sh         kdelibs.sh              sa-spamd.sh
000.mysql-client.sh     mailgraph.sh            samba.sh.sample
001slpd.sh              mdnsd.sh                snmpd.sh
apache.sh               mdnsresponder.sh        snmptrapd.sh
clamav-clamd.sh         mimedefang.sh           squid.sh
clamav-freshclam.sh     mimedefang.sh-dist      xinetd.sh
cups.sh.sample          mpd.sh
18:40:09
#cd ..

18:40:13
#ls
Muttrc                  freshclam.conf          rc.d
Muttrc.dist             freshclam.conf.default  rsyncd.conf
a2ps-site.cfg           ksysguarddrc            rsyncd.conf.sample
a2ps.cfg                mail                    smb.conf.default
apache                  mime.types              snmp
bonobo-activation       mimedefang              squid
cdrecord                minicom                 sudoers
cdrecord.sample         mpd                     sudoers.sample
clamd.conf              mtools.conf             trafshow
clamd.conf.default      mtools.conf.sample      trafshow.dist
codepages               openldap                wgetrc
cups                    openslp                 xdg
esd.conf                orbit2rc                xinetd.conf
esd.conf.default        orbit2rc.default        xml2Conf.sh
etter.conf              pam.d                   xsltConf.sh
etter.conf.sample       qpopper
fam.conf                qpopper.config.sample
18:40:14
#cd mpd

18:40:17
#ls
mpd.conf.sample         mpd.script.sample
mpd.links.sample        mpd.secret.sample
18:40:17
#pwd
/usr/local/etc/mpd
18:40:20
#hosntma
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
bash: hosntma: command not foundfixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:40:36
#hostname
ns.sergey.unix.nt
18:40:44
#ls
mpd.conf.sample         mpd.script.sample
mpd.links.sample        mpd.secret.sample
18:40:49
#a=mpd.conf.sample
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
# username may be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:41:01
#echo ${a##.sample}
mpd.conf.sample
18:41:10
#echo ${a%%.sample}
mpd.conf
18:41:13
#for i in *sample
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
> doername may be prefixed / suffixed by "*" (wildcard)
#
> cp $i ${i%%.sample} er name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
> done
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:41:27
#ls
mpd.conf                mpd.links.sample        mpd.secret
mpd.conf.sample         mpd.script              mpd.secret.sample
mpd.links               mpd.script.sample
18:41:28
#ls -l
total 116
-r--r--r--  1 root  wheel  10401 Dec  1 16:41 mpd.conf
-r--r--r--  1 root  wheel  10401 Dec  1 16:15 mpd.conf.sample
-r--r--r--  1 root  wheel   3734 Dec  1 16:41 mpd.links
-r--r--r--  1 root  wheel   3734 Dec  1 16:15 mpd.links.sample
-r--r--r--  1 root  wheel  39085 Dec  1 16:41 mpd.script
-r--r--r--  1 root  wheel  39085 Dec  1 16:15 mpd.script.sample
-r--r--r--  1 root  wheel    868 Dec  1 16:41 mpd.secret
-r--r--r--  1 root  wheel    868 Dec  1 16:15 mpd.secret.sample
18:41:29
#vi mpd.conf
18:43:37
#[root@ns:mpd]# ls
mpd.conf                mpd.links.sample        mpd.secret
mpd.conf.sample         mpd.script              mpd.secret.sample
mpd.links               mpd.script.sample
18:43:38
#vi mpd.links
18:43:53
#vi mpd.links
18:45:05
#ls
mpd.conf                mpd.links.sample        mpd.secret
mpd.conf.sample         mpd.script              mpd.secret.sample
mpd.links               mpd.script.sample
18:45:06
#vi mpd.secret
18:45:34
#vi mpd.secret
18:45:48
#vi mpd.secret
18:45:58
#vi mpd.secret
18:46:48
#chmod 600 mpd.secret

18:46:57
#cat mpd.secret
#################################################################
#
#       MPD secrets file
#
# This file contains login, password pairs, called "secrets".
# Entries are used for authentication in either or both directions,
# as well as telnet console login.
#
# For example, to use the "MyLogin" secret, use this command:
#
...
#
#################################################################
user            password
MyLogin         MyPassword
PeerLogin       PeerPassword
ConsoleLogin    ConsolePassword
fred            "fred-pw"
joe             "foobar"        192.168.1.1
bob             "\x34\"foo\n"   192.168.1.10/24
sal             "yipee"         192.168.1.254
18:46:59
#/usr/local/etc/rc.d/mpd.sh start
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
Starting mpd.y be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:48:25
#tail /var/log/messages
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
Dec  1 16:11:44 ns pppd[59518]: local/remote LL address required for demand-dialling
#
Dec  1 16:11:46 ns pppd[59524]: local/remote LL address required for demand-dialling
#  a login user id and keep the uid/euid root (needed for /bin/login)
Dec  1 16:11:46 ns pppd[59530]: local/remote LL address required for demand-dialling
# utmp_entry is what will appear in the "who" listing. Use "-" to not
Dec  1 16:11:56 ns pppd[59551]: pppd 2.3.5 started by root, uid 0o the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
Dec  1 16:12:21 ns pppd[59551]: local  IP address 192.168.19.254
#
Dec  1 16:12:21 ns pppd[59551]: remote IP address 192.168.19.1
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
Dec  1 16:13:18 ns pppd[59551]: Connection terminated, connected for 1 minutes
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
Dec  1 16:13:50 ns pppd[59626]: local/remote LL address required for demand-dialling
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
18:53:02
#sysctl -a | grep forw
net.inet.ip.forwarding: 0
net.inet.ip.fastforwarding: 0
net.inet6.ip6.forwarding: 0
18:53:09
#sysctl net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1
18:53:20
#sysctl net.inet.ip.forwarding=1
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
net.inet.ip.forwarding: 1 -> 1uffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
прошло 20 минут
19:13:41
#cat mpd.
mpd.conf           mpd.links          mpd.script         mpd.secret
mpd.conf.sample    mpd.links.sample   mpd.script.sample  mpd.secret.sample
19:13:41
#cat mpd.conf
        set iface idle 1800
        set iface enable tcpmssfix
        set bundle enable multilink
# enable TCP-Wrapper (hosts_access(5)) to block unfriendly clients
#       set bundle enable tcp-wrapper
# use RADIUS servers
#       load radius
        set link yes acfcomp protocomp
        set link no pap chap
        set link enable chap
...
        set bundle authname "<change_this>"
        set bundle password "<change_this>"
        set link yes acfcomp protocomp
        set link no pap chap
        set link accept chap
        set link mtu 1460
        set link keep-alive 10 75
        set ipcp yes vjcomp
        set ipcp ranges 0/0 10.0.0.138/0
        open
19:13:57
#cat mpd.
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
mpd.conf           mpd.links          mpd.script         mpd.secret
#
mpd.conf.sample    mpd.links.sample   mpd.script.sample  mpd.secret.sample
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
...
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/lib/uucp/uucico -l -u @
#
19:13:57
#cat mpd.links
pptp:
        set link type pptp
        set pptp self 192.168.15.21
        set pptp enable incoming
        set pptp disable originate
19:14:05
#cat mpd.script
##
ModemCmd2:
        call ModemCmd
        if $modemCmdResult == "OK" return
        log $ErrorMsg
        failure
##
## ModemCmdSend
##
## Send a modem command and read the echo'ed CR-LF
...
# the peer, otherwise we'll just timeout.
        match "ogin" AutoLoginPrompt
        match "name" AutoLoginPrompt
        wait 1
        print "\r"
        match "ogin" AutoLoginPrompt
        match "name" AutoLoginPrompt
        wait
# At this point we'veConnection to 192.168.15.21 closed by remote host.
Connection to 192.168.15.21 closed.

Файлы

  • mpd.
  • mpd.conf
  • mpd.links
  • mpd.secret
  • options
  • mpd.
    >
    #       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
    #
    mpd.conf           mpd.links          mpd.script         mpd.secret
    #
    mpd.conf.sample    mpd.links.sample   mpd.script.sample  mpd.secret.sample
    #  a login user id and keep the uid/euid root (needed for /bin/login)
    #
    # utmp_entry is what will appear in the "who" listing. Use "-" to not
    #  set an utmp entry (a must for /bin/login), use "@" to set it to the
    #  username entered. Maximum length is 8 characters.
    #
    # login_program is the program that will be exec()ed, with the arguments
    #  passed in [arguments]. A "@" in the arguments will be replaced with the
    #  username entered. Warning: if no "@" is given, the login_program has
    #  no way to know what user name the user entered.
    #
    # SAMPLES:
    # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
    #  (Big advantage: tuucp can use the same passwd file for serial dial-in
    #   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
    #
    #U*     uucp    @       /usr/lib/uucp/uucico -l -u @
    #
    
    mpd.conf
    >
            set iface idle 1800
            set iface enable tcpmssfix
            set bundle enable multilink
    # enable TCP-Wrapper (hosts_access(5)) to block unfriendly clients
    #       set bundle enable tcp-wrapper
    # use RADIUS servers
    #       load radius
            set link yes acfcomp protocomp
            set link no pap chap
            set link enable chap
            set link keep-alive 10 60
            set link mtu 1460
            set ipcp yes vjcomp
            set ipcp ranges 192.168.15.101/32 192.168.15.150/32
            set ipcp dns 192.168.15.254
            set ipcp nbns 192.168.1.4
    #
    # The five lines below enable Microsoft Point-to-Point encryption
    # (MPPE) using the ng_mppc(8) netgraph node type.
    #
            set bundle enable compression
            set ccp yes mppc
            set ccp yes mpp-e40
            set ccp yes mpp-e128
            set ccp yes mpp-stateless
    #
    # Mpd using PPTP for LAN to LAN VPN, always connected.
    #
    # Suppose you have a private Office LAN numbered 192.168.1.0/24 and another
    # remote private Office LAN numbered 192.168.2.0/24, and you wanted to route
    # between these two private networks using a PPTP VPN over the Internet.
    #
    # You run mpd on dual-homed machines on either end. Say the local machine
    # has internal address 192.168.1.1 and externally visible address 1.2.3.4,
    # and the remote machine has internal address 192.168.2.1 and externally
    # visible address 2.3.4.5.
    #
    # Note: mpd does not support the peer's "inside" IP address being the same
    # as its "outside" IP address. In the above example, this means that
    # 192.168.2.1 != 2.3.4.5.
    #
    # The "inside" IP addresses are configured by "set ipcp ranges ..."
    # (in mpd.conf) while the "outside" IP addreses are configured by
    # "set pptp self ..." and "set pptp peer ..." (in mpd.links).
    #
    # See also the 'vpn' link entry in mpd.links.sample.
    #
    vpn:
            new -i ng1 vpn vpn
            set iface disable on-demand
            set iface addrs 192.168.1.1 192.168.2.1
            set iface idle 0
    # disconnect the client after 8 hours
            set iface session 28800
            set iface route 192.168.2.0/24
            set bundle disable multilink
            set bundle authname "VpnLogin"
            set bundle password "VpnPassword"
            set link yes acfcomp protocomp
            set link no pap
            set link yes chap
            set link mtu 1460
    # If remote machine is NT you need this..
    #       set link enable no-orig-auth
            set link keep-alive 10 75
            set ipcp yes vjcomp
            set ipcp ranges 192.168.1.1/32 192.168.2.1/32
    #
    # The five lines below enable Microsoft Point-to-Point encryption
    # (MPPE) using the ng_mppc(8) netgraph node type.
    #
            set bundle enable compression
            set ccp yes mppc
            set ccp yes mpp-e40
            set ccp yes mpp-e128
            set bundle enable crypt-reqd
            set ccp yes mpp-stateless
            open
    #
    # PPPoE client example (see also mpd.links.sample entry "PPPoE")
    #
    PPPoE:
            new -i ng0 PPPoE PPPoE
            set iface addrs 1.1.1.1 2.2.2.2
            set iface route default
            set iface disable on-demand
            set iface idle 0
            set bundle disable multilink
            set bundle authname MyLogin
            set link no acfcomp protocomp
            set link disable pap chap
            set link accept chap
            set link mtu 1492
            set link keep-alive 10 60
            set ipcp yes vjcomp
            set ipcp ranges 0.0.0.0/0 0.0.0.0/0
            open iface
    radius:
    # You can use radius.conf(5), its useful, because you can share the
    # same config with userland-ppp and other apps.
            set radius config /etc/radius.conf
    # and/or specify the server directly here
            set radius retries 3
            set radius timeout 3
            set radius server localhost testing123 1812 1813
    # send the given IP in the RAD_NAS_IP_ADDRESS attribute to the server.
            set radius me 1.1.1.1
    # send accounting updates every 5 minutes
            set radius acct-update 300
    # let the RADIUS server assign the IP
            set ipcp enable radius-ip
    # enable RADIUS, and fallback to mpd.secret, if RADIUS auth failed
            set bundle enable radius-auth radius-fallback
    # enable RADIUS accounting
            set bundle enable radius-acct
    # use idle-timeout, session-timeout, routes list and mtu from the RADIUS server
            set iface enable radius-idle radius-session radius-mtu radius-route
    # activate MPPE and let the RADIUS server assign MPPE-types and MPPE-policies
            set bundle enable compression
            set ccp yes mppc
            set ccp enable radius
    #
    # Country specific configuration examples
    #
    # Austria ADSL
    adslat:
            new -i ng0 adslat adslat
            set iface disable on-demand
            set iface idle 0
            set iface session 0
            set iface route default
            set bundle disable multilink
            set bundle authname "<change_this>"
            set bundle password "<change_this>"
            set link yes acfcomp protocomp
            set link no pap chap
            set link accept chap
            set link mtu 1460
            set link keep-alive 10 75
            set ipcp yes vjcomp
            set ipcp ranges 0/0 10.0.0.138/0
            open
    
    >
    pptp:
            set link type pptp
            set pptp self 192.168.15.21
            set pptp enable incoming
            set pptp disable originate
    
    mpd.secret
    >
    #################################################################
    #
    #       MPD secrets file
    #
    # This file contains login, password pairs, called "secrets".
    # Entries are used for authentication in either or both directions,
    # as well as telnet console login.
    #
    # For example, to use the "MyLogin" secret, use this command:
    #
    #       set bundle authname MyLogin
    #
    # Each entry may have a third field containing an IP address range
    # specifying the allowable address assignments for that # peer.
    #
    # NOTE: this file should not be readable by anyone except root!
    #
    # $Id: mpd.secret.sample,v 1.1 2001/03/10 06:06:47 archiecobbs Exp $
    #
    #################################################################
    user            password
    MyLogin         MyPassword
    PeerLogin       PeerPassword
    ConsoleLogin    ConsolePassword
    fred            "fred-pw"
    joe             "foobar"        192.168.1.1
    bob             "\x34\"foo\n"   192.168.1.10/24
    sal             "yipee"         192.168.1.254
    
    options
    >
    192.168.19.254:192.168.19.1
    defaultroute
    38400
    /dev/cuad0
    lock
    debug
    noauth
    user user
    connect '/usr/bin/chat -f /etc/ppp/chat'
    idle 60
    ipcp-accept-remote
    ipcp-accept-local
    

    Статистика

    Время первой команды журнала18:08:48 2006-12- 1
    Время последней команды журнала19:14:05 2006-12- 1
    Количество командных строк в журнале68
    Процент команд с ненулевым кодом завершения, %10.29
    Процент синтаксически неверно набранных команд, % 2.94
    Суммарное время работы с терминалом *, час 1.09
    Количество командных строк в единицу времени, команда/мин 1.04
    Частота использования команд
    vi16|======================| 22.86%
    ls8|===========| 11.43%
    pppd7|==========| 10.00%
    cat7|==========| 10.00%
    cd6|========| 8.57%
    sysctl3|====| 4.29%
    make3|====| 4.29%
    man2|==| 2.86%
    echo2|==| 2.86%
    less2|==| 2.86%
    ifconfig1|=| 1.43%
    [root@ns:mpd]#1|=| 1.43%
    hosntma1|=| 1.43%
    pwd1|=| 1.43%
    chmod1|=| 1.43%
    cp1|=| 1.43%
    for1|=| 1.43%
    pkill1|=| 1.43%
    a=mpd.conf.sample1|=| 1.43%
    tail1|=| 1.43%
    grep1|=| 1.43%
    /usr/local/etc/rc.d/mpd.sh1|=| 1.43%
    hostname1|=| 1.43%
    ~q1|=| 1.43%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$