/l3/trainings/f2f/bat/2006-06-26/fbsd.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#grep host *
nagios.cfg:# These options allow you to specify a host and service event handler nagios.cfg:# command that is to be run for every host or service state change. nagios.cfg:# handler that you have optionally specified in each host or nagios.cfg:# command definition that you define in your host configuration file. nagios.cfg:#global_host_event_handler=somecommand nagios.cfg:# hosts. Setting this value to 1 is equivalent to how versions nagios.cfg:# "spreading out" host checks when it starts monitoring. The nagios.cfg:# space all host checks out evenly to minimize CPU load. nagios.cfg:host_inter_check_delay_method=s nagios.cfg:# program start time that an initial check of all hosts should ... nagios.cfg-sample:# Flapping occurs when a host or service changes between nagios.cfg-sample:# host or service is flapping, it will temporarily suppress nagios.cfg-sample:# notifications for that host/service until it stops nagios.cfg-sample:low_host_flap_threshold=5.0 nagios.cfg-sample:high_host_flap_threshold=20.0 nagios.cfg-sample:# be used in host names, service descriptions, or names of other nagios.cfg-sample:# host check commands. nagios.cfg-sample:# matching is used to match host, hostgroup, service, and service resource.cfg:# in command definitions in your host config file(s). $USERx$ macros are resource.cfg-sample:# in command definitions in your host config file(s). $USERx$ macros are |
#grep group
bigger.cfg: contact_groups linux-admins bigger.cfg: contact_groups linux-admins bigger.cfg: contact_groups switch-admins bigger.cfg: contact_groups switch-admins bigger.cfg: contact_groups switch-admins bigger.cfg: contact_groups switch-admins bigger.cfg: contact_groups switch-admins bigger.cfg: contact_groups router-admins bigger.cfg: contact_groups printer-admins bigger.cfg: contact_groups printer-admins ... nagios.cfg:# matching is used to match host, hostgroup, service, and service nagios.cfg:# group names/descriptions in some fields of various object types. nagios.cfg-sample:# groups, contacts, contact groups, services, etc. I guess it would nagios.cfg-sample:#cfg_file=/usr/local/etc/nagios/contactgroups.cfg nagios.cfg-sample:#cfg_file=/usr/local/etc/nagios/hostgroups.cfg nagios.cfg-sample:# This determines the effective group that Nagios should run as. nagios.cfg-sample:# You can either supply a group name or a GID. nagios.cfg-sample:nagios_group=nagios nagios.cfg-sample:# matching is used to match host, hostgroup, service, and service nagios.cfg-sample:# group names/descriptions in some fields of various object types. |
#vi nagios.cfg
|
#nagios -v nagios.cfg
Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Error: Command 'host-notify-by-email' has already been defined Error: Could not register command (config file '/usr/local/etc/nagios/minimal.cfg', starting on line 68) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. |
#vi nagios.cfg
|
#nagios -v nagios.cfg
Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 5 services. Checking hosts... Checked 1 hosts. ... Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check |
#nagios -v nagios.cfg
Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 5 services. Checking hosts... Checked 1 hosts. ... Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check |
#nagios -nagios.cfg
nagios: invalid option -- n nagios: invalid option -- a nagios: invalid option -- g nagios: invalid option -- i nagios: invalid option -- o nagios: invalid option -- . nagios: invalid option -- c nagios: invalid option -- f nagios: invalid option -- g Nagios 2.0 ... -v Reads all data in the configuration files and performs a basic verification/sanity check. Always make sure you verify your config data before (re)starting Nagios. -s Shows projected/recommended check scheduling information based on the current data in the configuration files. -d Starts Nagios in daemon mode (instead of as a foreground process). This is the recommended way of starting Nagios for normal operation. Visit the Nagios website at http://www.nagios.org for bug fixes, new releases, online documentation, FAQs, information on subscribing to the mailing lists, and commercial and contract support for Nagios. |
#nagios -d gios.cfg
|
#ps aux | grep nagi
nagios 40717 0.0 0.6 3908 3252 ?? Ss 6:19PM 0:00.01 nagios -d nagios |
#vi minimal.cfg
|
#vi
|
#vi bigger.cfg
|
#vi cgi.cfg
|
#grep password *
cgi.cfg:# authentication transmits passwords in the clear. cgi.cfg-sample:# authentication transmits passwords in the clear. nagios.cfg:# considered to be sensitive (usernames, passwords, etc) can be nagios.cfg-sample:# considered to be sensitive (usernames, passwords, etc) can be resource.cfg:# useful for storing sensitive information such as usernames, passwords, resource.cfg:# Store some usernames and passwords (hidden from the CGIs) resource.cfg:#$USER4$=somepassword resource.cfg-sample:# useful for storing sensitive information such as usernames, passwords, resource.cfg-sample:# Store some usernames and passwords (hidden from the CGIs) resource.cfg-sample:#$USER4$=somepassword |
#ls
filters profiles run |
#cd profiles/
|
#ls
Test live |
#cd /usr/local/etc/
|
#ls
apache flow-tools orbit2rc rc.d bonobo-activation ksysguarddrc orbit2rc.default snmp cdrecord lynx.cfg pam.d sudoers cdrecord.sample lynx.cfg.default php sudoers.default cfdcollect.conf.example nagios php.conf sudoers.sample cflowd.conf.example nfsen-dist.conf php.ini-dist xdg cups nfsen-shell-param php.ini-recommended xml2Conf.sh dbus-1 nfsen.conf pkgtools.conf xsltConf.sh esd.conf openldap pkgtools.conf.sample esd.conf.default openslp pkgtools.status-pkg.sh |
#netstat -rn
exit Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#1 UC 0 0 xl0 192.168.15.254 link#1 UHLW 2 11 xl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%xl0/64 link#1 UC xl0 fe80::201:2ff:feb4:6197%xl0 00:01:02:b4:61:97 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:1::/32 link#1 UC xl0 ff01:4::/32 ::1 UC lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%lo0/32 ::1 UC lo0 |
#cd /usr/src/sys/i386/conf/
.cvsignore GENERIC Makefile PAE DEFAULTS GENERIC.hints NOTES SMP |
#cd /usr/src/sys/i386/conf/
|
#ls
.cvsignore GENERIC Makefile PAE DEFAULTS GENERIC.hints NOTES SMP |
#: f/
[root@fbsd1:conf]# onf]# : |
#cp GENERIC bsd1
|
#ee bsd1
22,23c22,23 < cpu I486_CPU < cpu I586_CPU --- > #cpu I486_CPU > #cpu I586_CPU 25c25 < ident GENERIC --- > ident bsd1 36c36 < options INET6 # IPv6 communications protocols --- > #options INET6 # IPv6 communications protocols |
#cd /usr/src/
|
#make buildkernel KERNONF=bsd1 && make installkernel KERNCONG=
===> i2c/iicbb (cleandir) rm -f export_syms iicbb.ko iicbb.kld iicbb_if.o iicbb.o @ machine iicbb.ko.debug iicbb_if.c iicbb_if.h iicbus_if.h bus_if.h device_if.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> i2c/iicsmb (cleandir) rm -f export_syms iicsmb.ko iicsmb.kld iicsmb.o @ machine iicsmb.ko.debug iicbus_if.h smbus_if.h bus_if.h device_if.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> i2c/iic (cleandir) rm -f export_syms iic.ko iic.kld iic.o @ machine iic.ko.debug iicbus_if.h bus_if.h device_if.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> i2c/smb (cleandir) ... rm -f export_syms lpt.ko lpt.kld lpt.o @ machine lpt.ko.debug opt_lpt.h ppbus_if.h bus_if.h device_if.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> mac_biba (cleandir) rm -f export_syms mac_biba.ko mac_biba.kld mac_biba.o @ machine mac_biba.ko.debug vnode_if.h vnode_if_newproto.h vnode_if_typedef.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> mac_bsdextended (cleandir) rm -f export_syms mac_bsdextended.ko mac_bsdextended.kld mac_bsdextended.o @ machine mac_bsdextended.ko.debug vnode_if.h vnode_if_newproto.h vnode_if_typedef.h rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> mac_ifoff (cleandir) rm -f export_syms mac_ifoff.ko mac_ifoff.kld mac_ifoff.o @ machine mac_ifoff.ko.debug vnode_if.h vnode_if_newproto.h vnode_if_typedef.h |
#cd /usr/ports/net/free
freebsd-uucp/ freenet6/ freeradius/ freewais-sf/ freedbd/ freenx/ freevrrpd/ |
#cd /usr/ports/net/freeradius/
|
#make install clean
[ ] KERBEROS With Kerberos support [ ] HEIMDALS With Heimdal Kerberos support [ ] LDAPDAL With LDAP user databaseupport [ ] MYSQL With MySQL user database [ ] PGSQL With PostgreSQL use database [X] SNMPL With SNMP supportse database [ ] EXPERIMENTAL Build experimental modules ===> Vulnerability check disabled, database not found ===> Found saved configuration for freeradius-1.1.1 ... => Attempting to fetch from http://freeradius.portal-to-web.de/. fetch: http://freeradius.portal-to-web.de/freeradius-1.1.1.tar.gz: No address record => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/freeradius-1.1.1.tar.gz: No address record => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/net/freeradius. *** Error code 1 Stop in /usr/ports/net/freeradius. |
#ping lucky.net
ping: cannot resolve lucky.net: Host name lookup failure |
#ee /etc/resolv.conf
|
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::201:2ff:feb4:6197%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:01:02:b4:61:97 media: Ethernet autoselect (none) status: no carrier xl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 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 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.22
PING 192.168.15.22 (192.168.15.22): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.22 ping statistics --- 7 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.22
PING 192.168.15.22 (192.168.15.22): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.22 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::201:2ff:feb4:6197%xl0 prefixlen 64 scopeid 0x1 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:01:02:b4:61:97 media: Ethernet autoselect (none) status: no carrier xl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 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 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.22
PING 192.168.15.22 (192.168.15.22): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down 64 bytes from 192.168.15.22: icmp_seq=1 ttl=64 time=0.719 ms 64 bytes from 192.168.15.22: icmp_seq=2 ttl=64 time=0.225 ms ^C --- 192.168.15.22 ping statistics --- 3 packets transmitted, 2 packets received, 33% packet loss round-trip min/avg/max/stddev = 0.225/0.472/0.719/0.247 ms |
#pwd
/usr/ports/net/freeradius |
#make install clean
checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd6.1 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool ./configure.lineno: ./ltconfig: not found ... rm -f libgdbm.la /bin/sh ./libtool --mode=link cc -o libgdbm.la -rpath /usr/local/lib \ -version-info 3 0 0 gdbmopen.lo gdbmdelete.lo gdbmfetch.lo gdbmstore.lo gdbmclose.lo gdbmreorg.lo gdbmseq.lo gdbmsync.lo gdbmerrno.lo gdbmexists.lo gdbmfdesc.lo gdbmsetopt.lo bucket.lo falloc.lo findkey.lo global.lo hash.lo update.lo version.lo rm -fr .libs/libgdbm.la .libs/libgdbm.* .libs/libgdbm.* cc -shared gdbmopen.lo gdbmdelete.lo gdbmfetch.lo gdbmstore.lo gdbmclose.lo gdbmreorg.lo gdbmseq.lo gdbmsync.lo gdbmerrno.lo gdbmexists.lo gdbmfdesc.lo gdbmsetopt.lo bucket.lo falloc.lo findkey.lo global.lo hash.lo update.lo version.lo -lc -Wl,-soname -Wl,libgdbm.so.3 -o .libs/libgdbm.so.3 (cd .libs && rm -f libgdbm.so && ln -s libgdbm.so.3 libgdbm.so) (cd .libs && rm -f libgdbm.so && ln -s libgdbm.so.3 libgdbm.so) ar cru .libs/libgdbm.a gdbmopen.o gdbmdelete.o gdbmfetch.o gdbmstore.o gdbmclose.o gdbmreorg.o gdbmseq.o gdbmsync.o gdbmerrno.o gdbmexists.o gdbmfdesc.o gdbmsetopt.o bucket.o falloc.o findkey.o global.o hash.o update.o version.o ranlib .libs/libgdbm.a creating libgdbm.la |
#pkg_info | grep samba
samba-libsmbclient-3.0.21b Shared libs from the samba package |
#cd /usr/ports/net/samba3/
|
#make install clean
^(-) [X] WINBIND With WinBIND support [ ] ACL_SUPPORT With ACL support [ ] AIO_SUPPORT With experimental AIO support [ ] SYSLOG With Syslog support [ ] QUOTAS With Quota support [X] UTMP With UTMP support [ ] MSDFS With MSDFS support [ ] SAM_XML With XML smbpasswd backend ... [ ] EXP_MODULES With experimental module(s) [X] POPT With system-wide POPT library ===> Vulnerability check disabled, database not found ===> Found saved configuration for samba-3.0.22,1 ===> ------------------------------------------- ===> Run 'make config' to (re)configure the port ===> ------------------------------------------- => samba-3.0.22.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://us1.samba.org/samba/ftp/./. |
#make search key="dialup"
Port: abills-0.31 Path: /usr/ports/net/abills Info: Billing system for dialup and VPN users Maint: liettneff@bk.ru B-deps: R-deps: freeradius-1.1.1 gdbm-1.8.3_2 libltdl-1.5.22 mysql-client-4.1.19 p5-Crypt-CBC-2.17 p5-Crypt-DES-2.05 p5-DBD-mysql-3.0004 p5-DBI-1.50 p5-Digest-1.15 p5-Digest-MD4-1.5 p5-Digest-MD5-2.36 p5-Digest-SHA1-2.11 p5-MIME-Base64-3.07 p5-Storable-2.15 perl-5.8.8 WWW: http://abills.sourceforge.net/ |
#make search key="admin"
Maint: ehaupt@FreeBSD.org B-deps: R-deps: WWW: http://packages.debian.org/stable/admin/tmpreaper.html Port: webmin-1.270_4 Path: /usr/ports/sysutils/webmin Info: Web-based interface for system administration for Unix Maint: olgeni@FreeBSD.org B-deps: perl-5.8.8 R-deps: p5-Authen-PAM-0.16_1 p5-Net-SSLeay-1.30_1 perl-5.8.8 ... B-deps: OpenEXR-1.2.2_1 arts-1.5.2,1 artswrapper-1.2.2 aspell-0.60.4_3 bitstream-vera-1.10_2 cups-base-1.1.23.0_9 cyrus-sasl-2.1.22 expat-2.0.0_1 flac-1.1.2_1 fontconfig-2.3.2_5,1 freetype2-2.1.10_3 gamin-0.1.7_2 gettext-0.14.5_2 glib-2.10.3 gnutls-1.2.11 jackit-0.100.0_2 jasper-1.701.0_1 jpeg-6b_4 kdebase-3.5.2_1 kdebase-kompmgr-3.5.2 kdehier-1.0_9 kdelibs-3.5.2_1 lcms-1.14_1,1 libXft-2.1.7_1 lib R-deps: OpenEXR-1.2.2_1 akode-2.0,1 akode-plugins-mpc-2.0,1 akode-plugins-mpeg-2.0,1 akode-plugins-oss-2.0,1 akode-plugins-resampler-2.0,1 akode-plugins-xiph-2.0,1 arts-1.5.2,1 artswrapper-1.2.2 aspell-0.60.4_3 bitstream-vera-1.10_2 cdparanoia-3.9.8_8 cups-base-1.1.23.0_9 cyrus-sasl-2.1.22 expat-2.0.0_1 fftw3-3.1.1 flac-1.1.2_1 fontconfig-2.3.2_5,1 freetype2-2.1.10_3 fribidi-0.10.7 gamin-0.1.7_2 g WWW: http://www.kde.org/ Port: kde-3.5.2 Path: /usr/ports/x11/kde3 Info: The "meta-port" for KDE Maint: kde@FreeBSD.org B-deps: OpenEXR-1.2.2_1 arts-1.5.2,1 artswrapper-1.2.2 aspell-0.60.4_3 bitstream-vera-1.10_2 cups-base-1.1.23.0_9 cyrus-sasl-2.1.22 expat-2.0.0_1 flac-1.1.2_1 fontconfig-2.3.2_5,1 freetype2-2.1.10_3 gamin-0.1.7_2 gettext-0.14.5_2 glib-2.10.3 gnutls-1.2.11 jackit-0.100.0_2 jasper-1.701.0_1 jpeg-6b_4 kdebase-3.5.2_1 kdebase-kompmgr-3.5.2 kdehier-1.0_9 kdelibs-3.5.2_1 lcms-1.14_1,1 libXft-2.1.7_1 lib R-deps: ORBit2-2.14.0_1 OpenEXR-1.2.2_1 akode-2.0,1 akode-plugins-mpc-2.0,1 akode-plugins-mpeg-2.0,1 akode-plugins-oss-2.0,1 akode-plugins-resampler-2.0,1 akode-plugins-xiph-2.0,1 apr-db42-1.2.2_3 arts-1.5.2,1 artswrapper-1.2.2 aspell-0.60.4_3 atk-1.11.4_1 bash-3.1.16 bitstream-vera-1.10_2 boost-python-1.33.1 cairo-1.0.4_1 cdparanoia-3.9.8_8 cups-base-1.1.23.0_9 cyrus-sasl-2.1.22 db4-4.0.14_1,1 db WWW: http://www.kde.org/ |
#make search key="admin" | more
|
#make search key="radius" | more
|
#pkg_info mysql
pkg_info: can't find package 'mysql' installed or in a file! |
#make install clean
cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c snmp_logging.c -o snmp_logging.o >/dev/null 2>&1 mv -f .libs/snmp_logging.lo snmp_logging.lo /bin/sh ../libtool --mode=compile cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c -o snmpv3.lo snmpv3.c rm -f .libs/snmpv3.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c snmpv3.c -fPIC -DPIC -o .libs/snmpv3.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c snmpv3.c -o snmpv3.o >/dev/null 2>&1 mv -f .libs/snmpv3.lo snmpv3.lo /bin/sh ../libtool --mode=compile cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c -o snmpusm.lo snmpusm.c rm -f .libs/snmpusm.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I.. -I. -I./.. -I/usr/include -c snmpusm.c -fPIC -DPIC -o .libs/snmpusm.lo ... rm -f mibII/.libs/vacm_vars.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c mibII/vacm_vars.c -fPIC -DPIC -o mibII/.libs/vacm_vars.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c mibII/vacm_vars.c -o mibII/vacm_vars.o >/dev/null 2>&1 mv -f mibII/.libs/vacm_vars.lo mibII/vacm_vars.lo /bin/sh ../../libtool --mode=compile cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c -o ucd-snmp/proc.lo ucd-snmp/proc.c rm -f ucd-snmp/.libs/proc.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c ucd-snmp/proc.c -fPIC -DPIC -o ucd-snmp/.libs/proc.lo cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c ucd-snmp/proc.c -o ucd-snmp/proc.o >/dev/null 2>&1 mv -f ucd-snmp/.libs/proc.lo ucd-snmp/proc.lo /bin/sh ../../libtool --mode=compile cc -DINET6 -O2 -fno-strict-aliasing -pipe -fPIC -DOPENSSL_DES_LIBDES_COMPATIBILITY -Dfreebsd5 -Dfreebsd6 -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include -c -o ucd-snmp/versioninfo.lo ucd-snmp/versioninfo.c |
#ls -la /usr/local/etc/rc.d/
total 32 drwxr-xr-x 2 root wheel 512 May 27 17:43 . drwxr-xr-x 15 root wheel 1024 May 27 17:43 .. -r-xr-xr-x 1 root wheel 413 Mar 15 17:24 000.pkgtools.sh -r-xr-xr-x 1 root wheel 472 Mar 15 11:28 001slpd.sh -r-xr-xr-x 1 root wheel 733 May 27 12:10 apache.sh -r-xr-xr-x 1 root wheel 1005 May 27 11:11 cflowd-base.sh.sample -r-xr-xr-x 1 root wheel 846 May 27 11:11 cflowd-flowscan.sh.sample -r-xr-xr-x 1 root wheel 508 Mar 16 05:15 cupsd -r-xr-xr-x 1 root wheel 530 Mar 16 05:01 dbus -r-xr-xr-x 1 root wheel 544 Mar 19 16:03 genkdmconf.sh -r-xr-xr-x 1 root wheel 57 Mar 18 22:52 kdelibs.sh -r-xr-xr-x 1 root wheel 345 Mar 15 22:10 mdnsd -r-xr-xr-x 1 root wheel 765 Mar 16 01:58 mdnsresponder.sh -r-xr-xr-x 1 root wheel 1603 May 27 17:43 nagios -r-xr-xr-x 1 root wheel 755 Mar 16 05:29 snmpd.sh -r-xr-xr-x 1 root wheel 816 Mar 16 05:29 snmptrapd.sh |
#trafsho
bash: trafsho: command not found |
#trafshow
|
#clear
|
#cd /usr/ports/net/mp
mpd/ mpd4/ mpich/ mping/ |
#cd /usr/ports/net/mpd4/
|
#make config
|
#make install clean
/usr/ports/net/freeradius/work/freeradius-1.1.1/libtool --mode=compile cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c isaac.c rm -f .libs/isaac.lo cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c isaac.c -fPIC -DPIC -o .libs/isaac.lo cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c isaac.c -o isaac.o >/dev/null 2>&1 mv -f .libs/isaac.lo isaac.lo /usr/ports/net/freeradius/work/freeradius-1.1.1/libtool --mode=compile cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c log.c rm -f .libs/log.lo cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c log.c -fPIC -DPIC -o .libs/log.lo cc -O2 -fno-strict-aliasing -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c log.c -o log.o >/dev/null 2>&1 mv -f .libs/log.lo log.lo ... -rpath /usr/local/lib rlm_attr_filter.lo rlm_attr_filter.c /usr/ports/net/freeradius/work/freeradius-1.1.1/src/lib/libradius.la \ -lpthread rm -fr .libs/rlm_attr_filter.la .libs/rlm_attr_filter.* .libs/rlm_attr_filter-1.1.1.* cc -shared rlm_attr_filter.lo -Wl,--rpath -Wl,/usr/ports/net/freeradius/work/freeradius-1.1.1/src/lib/.libs -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/ports/net/freeradius/work/freeradius-1.1.1/src/lib/.libs/libradius.so -lpthread -lc -Wl,-soname -Wl,rlm_attr_filter-1.1.1.so -o .libs/rlm_attr_filter-1.1.1.so (cd .libs && rm -f rlm_attr_filter.so && ln -s rlm_attr_filter-1.1.1.so rlm_attr_filter.so) ar cru .libs/rlm_attr_filter.a rlm_attr_filter.o ranlib .libs/rlm_attr_filter.a creating rlm_attr_filter.la (cd .libs && rm -f rlm_attr_filter.la && ln -s ../rlm_attr_filter.la rlm_attr_filter.la) gmake[6]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.1.1/src/modules/rlm_attr_filter' |
#less ./../mpd/distinfo
|
#make install clean
===> Vulnerability check disabled, database not found => mpd4-4.0b4.tar.gz doesn't seem to exist in /usr/ports/distfiles/mpd4. => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/glebius/. mpd4-4.0b4.tar.gz 100% of 330 kB 52 kBps ===> Extracting for mpd4-4.0b4 => MD5 Checksum OK for mpd4/mpd4-4.0b4.tar.gz. => SHA256 Checksum OK for mpd4/mpd4-4.0b4.tar.gz. ===> Patching for mpd4-4.0b4 ===> mpd4-4.0b4 depends on shared library: pdel.0 - not found ===> Verifying install for pdel.0 in /usr/ports/devel/libpdel ... cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri cc -O2 -fno-strict-aliasing -pipe -I/usr/ports/devel/libpdel/work/libpdel-0.5.3 -I/usr/local/include -DTYPED_MEM_UNDEFINE_ORIGINALS -O2 -Wall -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-stri |
#ls
.cvsignore archivers finance misc textproc CHANGES astro french multimedia ukrainian COPYRIGHT audio ftp net vietnamese INDEX-6 benchmarks games net-im www INDEX-6.bz2 biology german net-mgmt x11 KNOBS cad graphics net-p2p x11-clocks LEGAL chinese hebrew news x11-fm MOVED comms hungarian palm x11-fonts Makefile converters irc polish x11-servers Mk databases japanese portuguese x11-themes README deskutils java print x11-toolkits Templates devel korean russian x11-wm Tools distfiles lang science UPDATING dns mail security accessibility editors math shells arabic emulators mbone sysutils |
#cd MK
bash: cd: MK: No such file or directory |
#cd Mk
|
#ls
bsd.apache.mk bsd.java.mk bsd.port.post.mk bsd.autotools.mk bsd.kde.mk bsd.port.pre.mk bsd.database.mk bsd.linux-rpm.mk bsd.port.subdir.mk bsd.emacs.mk bsd.local.mk bsd.python.mk bsd.gcc.mk bsd.mail.mk bsd.ruby.mk bsd.gnome.mk bsd.openssl.mk bsd.sdl.mk bsd.gnustep.mk bsd.php.mk bsd.sites.mk bsd.gstreamer.mk bsd.port.mk bsd.tcl.mk |
#less bsd.sites.mk
|
#man ports
|
#export MASTER_SITE_FREEBSD=yes
|
#echo path
path |
#export
declare -x BLOCKSIZE="K" declare -x FTP_PASSIVE_MODE="YES" declare -x HOME="/root" declare -x L3_HOME="/root/.lilalo/" declare -x L3_PARENT_TTY="/dev/ttyv5" declare -x L3_SESSION_ID="2212713910337127643-1151135576" declare -x L3_TAMPERED_EDITORS=" vi ee vim" declare -x LOGNAME="root" declare -x MAIL="/var/mail/root" declare -x MASTER_SITE_FREEBSD="yes" declare -x OLDPWD="/usr/ports" declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin" declare -x PS1="\\[v2#\\!#\$?#\$UID#\$\$#\$(/bin/date +%s)#\$PWD#\\033[1024D\\033[K\\]\\[\\033[0;31m\\][\\u@\\h:\\W]\\\$ \\[\\033[0m\\]" declare -x PWD="/usr/ports/Mk" declare -x SHELL="/usr/local/bin/bash" declare -x SHLVL="1" declare -x TERM="cons25r" declare -x USER="root" |
#env
TERM=cons25r SHELL=/usr/local/bin/bash L3_PARENT_TTY=/dev/ttyv5 OLDPWD=/usr/ports L3_TAMPERED_EDITORS= vi ee vim USER=root MASTER_SITE_FREEBSD=yes FTP_PASSIVE_MODE=YES PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin MAIL=/var/mail/root L3_SESSION_ID=2212713910337127643-1151135576 BLOCKSIZE=K PWD=/usr/ports/Mk PS1=\[v2#\!#$?#$UID#$$#$(/bin/date +%s)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\] L3_HOME=/root/.lilalo/ HOME=/root SHLVL=1 LOGNAME=root _=/usr/bin/env |
#cd /usr/ports/net/isc-dhcp3-server/
|
#make
Making links in common Making links in minires Making links in dst Making links in omapip Making links in dhcpctl Making links in omshell Making links in server ===> Building for isc-dhcp3-server-3.0.4_2 Making all in common cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ ... cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\"/usr/local/etc/dhcpd.conf\" -D_PATH_DHCPD_DB=\"/var/db/dhcpd.leases\" -D_PATH_DHCPD_PID=\"/var/run/dhcpd.pid\" -D_PATH_DHCRELAY_PID=\"/var/run/dhcrelay.pid\" -D_PATH_DHCLIENT_CONF=\"/usr/local/etc/dhclient.conf\" -D_PATH_DHCLIENT_SCRIPT=\"/usr/local/sbin/dhclient-script\" -D_PATH_DHCLIENT_DB=\"/var/db/dhclient.leases\" -D_PATH_DHCLIENT_PID=\ rm -f libomapi.a ar cruv libomapi.a protocol.o buffer.o alloc.o result.o connection.o errwarn.o listener.o dispatch.o generic.o support.o handle.o message.o convert.o hash.o auth.o inet_addr.o array.o trace.o mrtrace.o toisc.o iscprint.o a - protocol.o a - buffer.o a - alloc.o |
#make
===> Vulnerability check disabled, database not found => screen-4.0.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.uni-erlangen.de/pub/utilities/screen/. ^Cfetch: transfer interrupted |
#export MASTER_SITE_FREEBSD
|
#export MASTER_SITE_FREEBSD=yes
|
#make
checking whether cc needs -traditional... no checking for library containing strerror... none required checking for gawk... no checking for mawk... no checking for nawk... nawk checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel configure: checking for buggy tools... checking if a system-wide socket dir should be used... yes checking for the socket dir... (eff_uid ? "/tmp/uscreens" : "/tmp/screens") configure: checking for MIPS... ... cc -c -I. -I. -O2 -fno-strict-aliasing -pipe braille_tsi.c cc -c -I. -I. -O2 -fno-strict-aliasing -pipe logfile.c cc -c -I. -I. -O2 -fno-strict-aliasing -pipe layer.c layer.c: In function `LMsg': layer.c:1100: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast cc -c -I. -I. -O2 -fno-strict-aliasing -pipe sched.c cc -c -I. -I. -O2 -fno-strict-aliasing -pipe teln.c cc -c -I. -I. -O2 -fno-strict-aliasing -pipe nethack.c cc -c -I. -I. -O2 -fno-strict-aliasing -pipe encoding.c cc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o process.o display.o comm.o kmapdef.o acls.o braille.o braille_tsi.o logfile.o layer.o sched.o teln.o nethack.o encoding.o -ltermcap -lutil -lutil -lcrypt |
#make install clean
===> Installing for isc-dhcp3-server-3.0.4_2 ===> Generating temporary packing list ===> Checking if net/isc-dhcp3-server already installed Installing in common for dir in /usr/local/man/man5; do foo=""; for bar in `echo ${dir} |tr / ' '`; do foo=${foo}/$bar; if [ ! -d $foo ]; then mkdir $foo; chmod 755 $foo; fi; done; done install -c dhcp-options.man5 /usr/local/man/man5/dhcp-options.5 install -c dhcp-eval.man5 /usr/local/man/man5/dhcp-eval.5 Installing in omshell for dir in /usr/local/man/man1 /usr/local/bin; do foo=""; for bar in `echo ${dir} |tr / ' '`; do foo=${foo}/$bar; if [ ! -d $foo ]; then mkdir $foo; chmod 755 $foo; fi; done; done install -c -m 444 omshell /usr/local/bin ... these network services to be started at boot time. /usr/local/etc/rc.d/isc-dhcpd.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://www.isc.org/products/DHCP/ ===> Cleaning for isc-dhcp3-server-3.0.4_2 |
#rehash
bash: rehash: command not found |
#make install clean
===> Installing for screen-4.0.2_3 ===> Generating temporary packing list ===> Checking if sysutils/screen already installed ./etc/mkinstalldirs /usr/local/bin `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'` mkdir /usr/local/share/screen mkdir /usr/local/share/screen/utf8encodings cd doc ; make installdirs ./../etc/mkinstalldirs /usr/local/man/man1 /usr/local/info install -s -o root -g wheel -m 555 screen /usr/local/bin/screen chown root:wheel /usr/local/bin/screen && chmod 4755 /usr/local/bin/screen ... increased privileges. /usr/local/bin/screen 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://www.gnu.org/software/screen/ ===> Cleaning for screen-4.0.2_3 |
#cd /usr/ports/databases/my
mysql++/ mysql323-scripts/ mysql51-client/ mysql++1/ mysql323-server/ mysql51-scripts/ mysql-administrator/ mysql40-client/ mysql51-server/ mysql-connector-java/ mysql40-scripts/ mysql_last_value/ mysql-connector-odbc/ mysql40-server/ mysqlcc/ mysql-editor/ mysql41-client/ mysqlcppapi/ mysql-navigator/ mysql41-scripts/ mysqlman/ mysql-query-browser/ mysql41-server/ mysqltcl/ mysql2odbc/ mysql50-client/ mytop/ mysql2pgsql/ mysql50-scripts/ mysql323-client/ mysql50-server/ |
#cd /usr/ports/databases/mysql40-server/
|
#make install clean
===> mysql-server-4.0.27 cannot install: MySQL versions mismatch: mysql41-client is installed and wanted version is mysql40-client. *** Error code 1 Stop in /usr/ports/databases/mysql40-server. |
#cd /usr/ports/databases/mysql41-server/
|
#make install clean
checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by c++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking for c++ option to produce PIC... -fPIC checking if c++ PIC flag -fPIC works... yes checking if c++ static flag -static works... yes checking if c++ supports -c -o file.o... yes ... checking for sched.h... yes checking crypt.h usability... no checking crypt.h presence... no checking for crypt.h... no checking alloca.h usability... no checking alloca.h presence... no checking for alloca.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes |
#pkg
exit pkg-config pkg_create pkg_fetch pkg_sign pkg_which pkg_add pkg_deinstall pkg_glob pkg_sort pkgdb pkg_check pkg_delete pkg_info pkg_version |
#pkg
pkg-config pkg_create pkg_fetch pkg_sign pkg_which pkg_add pkg_deinstall pkg_glob pkg_sort pkgdb pkg_check pkg_delete pkg_info pkg_version |
Время первой команды журнала | 18:17:54 2006- 5-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:21:06 2006- 6-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.52 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008