/l3/users/gw.local/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 |
|
#vim /etc/squid/squid.conf
|
#:q
cachemgr.conf cachemgr.conf.default squid.conf |
#cat /etc/squid/squid.conf.new
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#cat /etc/squid/squid.conf.new
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#ls /etc/squid
# run-time problems. In some cases "none" refers to no default #/etc/sqsetting at all, while in other cases it refers to a valid # option - the comments for that keyword indicate if this is the # case. # # Configuration options can be included using the "include" directive. # Include takes a list of files to include. Quoting and wildcards is # supported. # |
#cat /etc/squid/squid.conf|grep -v "^# "
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # #Default: # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: |
#cat /etc/squid/squid.conf|grep -V "^# "
GNU grep 2.5.3 Copyright (C) 1988, 1992-2002, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
#cat /etc/squid/squid.conf|grep "^# "
# Configuration options can be included using the "include" directive. # Include takes a list of files to include. Quoting and wildcards is # supported. # For example, # include /path/to/included/file/squid.acl.config # Includes can be nested up to a hard-coded depth of 16 levels. # This arbitrary restriction is to prevent recursive include references # from causing Squid entering an infinite loop whilst trying to load # configuration files. # OPTIONS FOR AUTHENTICATION ... # TAG: high_response_time_warning (msec) # high_response_time_warning 0 # TAG: high_page_fault_warning # high_page_fault_warning 0 # TAG: high_memory_warning # high_memory_warning 0 KB # TAG: sleep_after_fork (microseconds) # sleep_after_fork 0 # TAG: windows_ipaddrchangemonitor on|off # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -V "^# *"
GNU grep 2.5.3 Copyright (C) 1988, 1992-2002, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
#cat /etc/squid/squid.conf|grep -v "^# *"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#cat /etc/squid/squid.conf|grep -v "^# ^C"
|
#man grep
|
#cat /etc/squid/squid.conf|grep -v -e "^# "
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # #Default: # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: |
#cat /etc/squid/squid.conf|grep -e "^# "
# Configuration options can be included using the "include" directive. # Include takes a list of files to include. Quoting and wildcards is # supported. # For example, # include /path/to/included/file/squid.acl.config # Includes can be nested up to a hard-coded depth of 16 levels. # This arbitrary restriction is to prevent recursive include references # from causing Squid entering an infinite loop whilst trying to load # configuration files. # OPTIONS FOR AUTHENTICATION ... # TAG: high_response_time_warning (msec) # high_response_time_warning 0 # TAG: high_page_fault_warning # high_page_fault_warning 0 # TAG: high_memory_warning # high_memory_warning 0 KB # TAG: sleep_after_fork (microseconds) # sleep_after_fork 0 # TAG: windows_ipaddrchangemonitor on|off # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -e "^#[ ]"
# Configuration options can be included using the "include" directive. # Include takes a list of files to include. Quoting and wildcards is # supported. # For example, # include /path/to/included/file/squid.acl.config # Includes can be nested up to a hard-coded depth of 16 levels. # This arbitrary restriction is to prevent recursive include references # from causing Squid entering an infinite loop whilst trying to load # configuration files. # OPTIONS FOR AUTHENTICATION ... # TAG: high_response_time_warning (msec) # high_response_time_warning 0 # TAG: high_page_fault_warning # high_page_fault_warning 0 # TAG: high_memory_warning # high_memory_warning 0 KB # TAG: sleep_after_fork (microseconds) # sleep_after_fork 0 # TAG: windows_ipaddrchangemonitor on|off # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -v-e "^#[ ]"
grep: неверный ключ -- - Использование: grep [OPTION]... PATTERN [FILE]... Попробуйте `grep --help' для получения более подробного описания. |
#cat /etc/squid/squid.conf|grep -v -e "^#[ ]"
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # #Default: # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: |
#cat /etc/squid/squid.conf|grep -v -e "^#{*}[ ]"
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # TAG: windows_ipaddrchangemonitor on|off # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -v -e "^#{* }"
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # TAG: windows_ipaddrchangemonitor on|off # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -v "def"
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # various options happen to be. If you don't need to change the # setting at all, while in other cases it refers to a valid # option - the comments for that keyword indicate if this is the # case. ... # sleep_after_fork 0 # TAG: windows_ipaddrchangemonitor on|off # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep "def"
# This is the default Squid configuration file. You may wish # The default Squid config file shows what the defaults for # default, you shouldn't uncomment the line. Doing so may cause # run-time problems. In some cases "none" refers to no default # This is used to define parameters for the various authentication # Please note that while this directive defines how Squid processes # By default, the basic authentication scheme is not used unless a # The default of 0 is used for helpers who only supports # password). There is no default. # See rfc 2616 for the definition of H(A1). ... # (%SystemRoot% value install default is c:\windows) # The file contains newline-separated definitions, in the # definitions. # By default Squid checks that DNS responses are received # in the HTTP requests it forwards. By default it looks like # By default (off), squid may return a Not Modified response # The default value is one attempt, the (not recommended) # By default Squid leaves core files in the directory from where # By default Squid rotates IP's per request. By disabling # On Windows Squid by default will monitor IP address changes and will |
#cat /etc/squid/squid.conf|grep "# "
# Configuration options can be included using the "include" directive. # Include takes a list of files to include. Quoting and wildcards is # supported. # For example, # include /path/to/included/file/squid.acl.config # Includes can be nested up to a hard-coded depth of 16 levels. # This arbitrary restriction is to prevent recursive include references # from causing Squid entering an infinite loop whilst trying to load # configuration files. # OPTIONS FOR AUTHENTICATION ... # TAG: high_response_time_warning (msec) # high_response_time_warning 0 # TAG: high_page_fault_warning # high_page_fault_warning 0 # TAG: high_memory_warning # high_memory_warning 0 KB # TAG: sleep_after_fork (microseconds) # sleep_after_fork 0 # TAG: windows_ipaddrchangemonitor on|off # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -v "#"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl SSL_ports port 443 acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localnet ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#cat /etc/squid/squid.conf|grep -v "^#"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#cat /etc/squid/squid.conf|grep -v "\^#"
# WELCOME TO SQUID 3.0.STABLE24 # ---------------------------- # # This is the default Squid configuration file. You may wish # to look at the Squid home page (http://www.squid-cache.org/) # for the FAQ and other documentation. # # The default Squid config file shows what the defaults for # various options happen to be. If you don't need to change the # default, you shouldn't uncomment the line. Doing so may cause ... # TAG: windows_ipaddrchangemonitor on|off # On Windows Squid by default will monitor IP address changes and will # reconfigure itself after any detected event. This is very useful for # proxies connected to internet with dial-up interfaces. # In some cases (a Proxy server acting as VPN gateway is one) it could be # desiderable to disable this behaviour setting this to 'off'. # Note: after changing this, Squid service must be restarted. # #Default: # windows_ipaddrchangemonitor on |
#cat /etc/squid/squid.conf|grep -v "^#"
|
#grep -v "^ #" /etc/keepalived/keepalived.conf|grep -v "^#"
global_defs { notification_email { amel@sperco.com.ua } notification_email_from amel@sperco.com.ua smtp_server 192.168.8.100 smtp_connect_timeout 30 } vrrp_instance VI_1 { state MASTER ... url { path http://ya.ru/ status_code 200 } connect_timeout 10 nb_get_retry 3 delay_before_retry 800 } } } |
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "^\>"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "^\<"
|
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "^"
|
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "^"
|
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "\B"
|
#grep -v "^ #" /etc/squid/squid.conf|grep -v "^#"|grep -v "^\B"
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https ... logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache |
#mv /etc/squid/squid.conf{,.orig}
|
#mv /etc/squid/squid.conf{.new,}
|
#vim /etc/squid/squid.conf
--- /tmp/l3-saved-4474.23096.19282 2010-03-18 09:56:08.000000000 +0000 +++ /etc/squid/squid.conf 2010-03-18 09:57:34.000000000 +0000 @@ -37,5 +37,6 @@ refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 -icp_port 3130 +icp_port 0 coredump_dir /var/cache +tcp_outgoing src |
#squid
bash: squid: команда не найдена |
#whereis squid
squid: /etc/squid /lib/squid /lib64/squid |
#cd /var/downloads/squid/
lang/ squid-3.0.STABLE24/ |
#cd /var/downloads/squid/squid-3.0.STABLE24/
|
#make install
Making install in lib make[1]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24/lib' Making all in libTrie make[2]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24/lib/libTrie' make all-recursive make[3]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24/lib/libTrie' Making all in src make[4]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24/lib/libTrie/src' make[4]: Цель `all' не требует выполнения команд. make[4]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24/lib/libTrie/src' ... make[3]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24/tools' make[2]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24/tools' make[1]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24/tools' make[1]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24' Build Successful. make[2]: Entering directory `/var/downloads/squid/squid-3.0.STABLE24' make[2]: Цель `install-exec-am' не требует выполнения команд. make[2]: Цель `install-data-am' не требует выполнения команд. make[2]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24' make[1]: Leaving directory `/var/downloads/squid/squid-3.0.STABLE24' |
#squid
2010/03/18 09:58:12| cache_cf.cc(346) squid.conf:42 unrecognized: 'tcp_outgoing' FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 3.0.STABLE24): Terminated abnormally. CPU Usage: 0.008 seconds = 0.003 user + 0.005 sys Maximum Resident Size: 13664 KB Page faults with physical i/o: 7 |
#squid
FATAL: Bungled squid.conf line 42: tcp_outgoing_address src Squid Cache (Version 3.0.STABLE24): Terminated abnormally. CPU Usage: 0.008 seconds = 0.002 user + 0.006 sys Maximum Resident Size: 13552 KB Page faults with physical i/o: 0 |
#vim /etc/squid/squid.conf
--- /tmp/l3-saved-4474.30148.20339 2010-03-18 10:00:27.000000000 +0000 +++ /etc/squid/squid.conf 2010-03-18 10:00:37.000000000 +0000 @@ -39,4 +39,4 @@ refresh_pattern . 0 20% 4320 icp_port 0 coredump_dir /var/cache -tcp_outgoing_address src +tcp_outgoing_address %SRC |
#squid
FATAL: Bungled squid.conf line 42: tcp_outgoing_address %SRC Squid Cache (Version 3.0.STABLE24): Terminated abnormally. CPU Usage: 0.008 seconds = 0.002 user + 0.006 sys Maximum Resident Size: 13552 KB Page faults with physical i/o: 0 |
#as libosip2
libosip2-4 - Session Initiation Protocol (SIP) library libosip2-dev - development files for the SIP library |
#ai libosip2
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет libosip2 |
#ai libosip2-4
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: libosip2-4 обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 250 пакетов не обновлено. Необходимо скачать 106kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 324kB. Получено:1 http://ftp.debian.org squeeze/main libosip2-4 3.3.0-1 [106kB] Получено 106kБ за 2s (40,1kБ/c) Выбор ранее не выбранного пакета libosip2-4. (Чтение базы данных... на данный момент установлено 20313 файлов и каталогов.) Распаковывается пакет libosip2-4 (из файла .../libosip2-4_3.3.0-1_amd64.deb)... Настраивается пакет libosip2-4 (3.3.0-1) ... |
#ai libosip2-dev
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: libosip2-dev обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 250 пакетов не обновлено. Необходимо скачать 155kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 926kB. Получено:1 http://ftp.debian.org squeeze/main libosip2-dev 3.3.0-1 [155kB] Получено 155kБ за 1s (80,2kБ/c) Выбор ранее не выбранного пакета libosip2-dev. (Чтение базы данных... на данный момент установлено 20326 файлов и каталогов.) Распаковывается пакет libosip2-dev (из файла .../libosip2-dev_3.3.0-1_amd64.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libosip2-dev (3.3.0-1) ... |
#cd ../..
|
#tarzxvf siproxd-0.8.0.tar.gz
bash: tarzxvf: команда не найдена |
#tar zxvf siproxd-0.8.0.tar.gz
siproxd-0.8.0/ siproxd-0.8.0/COPYING siproxd-0.8.0/INSTALL siproxd-0.8.0/aclocal.m4 siproxd-0.8.0/AUTHORS siproxd-0.8.0/NEWS siproxd-0.8.0/doc/ siproxd-0.8.0/doc/FAQ siproxd-0.8.0/doc/sample_cfg_x-lite.txt siproxd-0.8.0/doc/FLI4L_HOWTO.txt ... siproxd-0.8.0/scripts/config.guess siproxd-0.8.0/scripts/config.sub siproxd-0.8.0/scripts/Makefile.in siproxd-0.8.0/scripts/install-sh siproxd-0.8.0/scripts/depcomp siproxd-0.8.0/ChangeLog siproxd-0.8.0/acinclude.m4 siproxd-0.8.0/TODO siproxd-0.8.0/configure siproxd-0.8.0/README |
#cd siproxd-0.8.0/
|
#./configure --help
`configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit ... CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. |
#cp ../squid/squid-
squid-3.0.STABLE24/ squid-langpack-20100213.tar.gz squid-3.0.STABLE24.tar.bz2 |
#cp ../squid/squid-3.0.STABLE24/start ./start
|
#vim ./start
--- /tmp/l3-saved-4474.30460.10909 2010-03-18 10:28:49.000000000 +0000 +++ ./start 2010-03-18 10:30:08.000000000 +0000 @@ -1,4 +1,2 @@ -./configure --prefix=/usr --localstatedir=/var --libexecdir=${prefix}/lib/squid --srcdir=. --datadir=${prefix}/share/squid --sysconfdir=/etc/squid --with-default-user=proxy --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --enable-delay-pools --enable-icap-client --enable-linux-netfilter --disable-ipv6 --disable-auto-locale -make -make install +./configure --prefix=/usr --localstatedir=/var --srcdir=. --sysconfdir=/etc/siproxd --with-default-user=proxy --with-logdir=/var/log/siproxd --with-pidfile=/var/run/siproxd.pid && make && make install |
#./start
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gawk... (cached) mawk checking for gcc... gcc ... make[2]: Цель `install-exec-am' не требует выполнения команд. make[2]: Цель `install-data-am' не требует выполнения команд. make[2]: Leaving directory `/var/downloads/siproxd-0.8.0/contrib' make[1]: Leaving directory `/var/downloads/siproxd-0.8.0/contrib' make[1]: Entering directory `/var/downloads/siproxd-0.8.0' make[2]: Entering directory `/var/downloads/siproxd-0.8.0' make[2]: Цель `install-exec-am' не требует выполнения команд. make[2]: Цель `install-data-am' не требует выполнения команд. make[2]: Leaving directory `/var/downloads/siproxd-0.8.0' make[1]: Leaving directory `/var/downloads/siproxd-0.8.0' |
#vim /etc/siproxd/siproxd
|
#vim /etc/siproxd/siproxd.conf.example
|
#odebug output on embedded systems that do not have enough
bash: arch: команда не найдена |
#uname -r
2.6.32.3 |
#uname -m
x86_64 |
#less /var/log/syslog
|
#ls -al /var/lilalo/lablogs-xml/backend.xml
-rw-r--r-- 1 root www-data 20 Фев 25 17:34 /var/lilalo/lablogs-xml/backend.xml |
#chmod -R g+ws /var/lilalo/lablogs-xml
|
#ps ax|grep l3
4156 ? Ss 0:00 l3-backend 4432 ? Ss 6:36 l3-agent 26061 pts/1 S+ 0:00 grep l3 |
#/etc/init.d/l3-backend restart
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] |
#pkill l3-backend
|
#pkill l3-backend
|
#/etc/init.d/l3-backend start
|
#pkill l3-agent
|
#pkill l3-agent
|
#ls -al /var/lilalo/lablogs-xml/
итого 12K drwxrwsr-x 2 root www-data 4,0K Фев 25 17:34 . drwxr-xr-x 3 root root 4,0K Фев 25 16:52 .. -rw-rwSr-- 1 root www-data 20 Фев 25 17:34 backend.xml |
#l3pwd
/users///gw.local/root |
#l3cd /users/gw1.local/root
|
#top
top - 16:38:14 up 6 days, 1:37, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie Cpu(s): 2.9%us, 0.1%sy, 0.0%ni, 97.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 248532k total, 221308k used, 27224k free, 5176k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 0k total, 0k used, 0k free, 161120k cached 26339 root 40 0 18824 1212 940 R 0 0.5 0:00.01 top 1 root 40 0 10312 836 700 S 0 0.3 0:00.21 init 2 root 40 0 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT 0 0 0 0 S 0 0.0 0:00.05 migration/0 ... 8 root 20 0 0 0 0 S 0 0.0 0:00.03 events/1 9 root 20 0 0 0 0 S 0 0.0 0:00.00 cpuset 10 root 20 0 0 0 0 S 0 0.0 0:00.04 khelper 13 root 20 0 0 0 0 S 0 0.0 0:00.00 netns 14 root 20 0 0 0 0 S 0 0.0 0:00.00 async/mgr 21 root 20 0 0 0 0 S 0 0.0 0:00.00 xenwatch 22 root 20 0 0 0 0 S 0 0.0 0:00.00 xenbus 184 root 20 0 0 0 0 S 0 0.0 0:00.00 sync_supers 186 root 20 0 0 0 0 S 0 0.0 0:00.00 bdi-default 188 root 20 0 0 0 0 S 0 0.0 0:00.00 kblockd/0 |
#ls -al /
итого 83K drwxr-xr-x 24 root root 4,0K Мар 12 12:58 . drwxr-xr-x 24 root root 4,0K Мар 12 12:58 .. drwxr-xr-x 2 root root 4,0K Мар 12 12:58 bin drwxr-xr-x 2 root root 4,0K Мар 12 12:58 boot drwxr-xr-x 14 root root 14K Мар 18 06:25 dev drwxr-xr-x 71 root root 3,0K Мар 18 10:30 etc drwxr-xr-x 2 root root 4,0K Мар 12 12:58 home drwxr-xr-x 3 root root 4,0K Мар 12 12:58 include drwxr-xr-x 14 root root 4,0K Мар 12 12:58 lib ... dr-xr-xr-x 74 root root 0 Мар 12 15:00 proc drwxr-xr-x 6 root root 4,0K Мар 12 12:58 root drwxr-xr-x 2 root root 4,0K Мар 12 12:58 sbin drwxr-xr-x 7 root root 0 Мар 12 15:00 selinux drwxr-xr-x 5 root root 4,0K Мар 12 12:58 share drwxr-xr-x 3 root root 4,0K Мар 12 12:58 srv drwxr-xr-x 13 root root 0 Мар 12 15:00 sys drwxr-xr-x 6 root root 4,0K Мар 18 16:36 tmp drwxr-xr-x 15 root root 4,0K Мар 12 12:58 usr drwxr-xr-x 17 root root 4,0K Мар 12 12:58 var |
#ls /log
/log |
#ls -al /log
-rw-r--r-- 1 root root 85 Фев 25 17:22 /log |
#rm /log
|
#ls -al /var/log
итого 1,1M drwxr-xr-x 9 root root 2,0K Мар 18 06:25 . drwxr-xr-x 17 root root 4,0K Мар 12 12:58 .. drwxr-x--- 2 root root 1,0K Мар 14 06:25 apache2 drwxr-xr-x 2 root root 1,0K Мар 12 12:55 apt -rw-r----- 1 root root 21K Мар 18 16:36 auth.log -rw-r----- 1 root root 32K Мар 14 06:25 auth.log.1 -rw-r----- 1 root root 2,7K Мар 12 12:55 auth.log.2.gz -rw-r----- 1 root root 2,3K Мар 12 12:55 auth.log.3.gz -rw-r----- 1 root root 31 Мар 12 12:55 boot ... -rw-r----- 1 root root 663 Мар 15 06:25 syslog.4.gz -rw-r----- 1 root root 429 Мар 14 06:25 syslog.5.gz -rw-r----- 1 root root 9,7K Мар 13 06:25 syslog.6.gz -rw-r----- 1 root root 6,1K Мар 12 12:55 syslog.7.gz -rw-r----- 1 root root 265 Мар 18 10:00 user.log -rw-r----- 1 root root 262 Мар 12 12:55 user.log.1 -rw-r----- 1 root root 512 Мар 12 12:55 user.log.2.gz -rw-r----- 1 root root 260 Мар 12 12:55 user.log.3.gz -rw-r--r-- 1 root root 136K Мар 18 16:36 wtmp -rw-r--r-- 1 root root 130K Мар 12 12:55 wtmp.1 |
#H
bash: H: команда не найдена |
#l3
l3 l3_close_session l3mass_upload l3shot l3-agent l3-config l3pwd l3upload l3-backend l3_fix_prompt l3_save_last_line l3cd l3-frontend l3script |
#l3-frontend
Can't open /home/igor/mywi/mywi.txt for reading at /usr/local/bin/l3-frontend line 2087. |
#cd /var/downloads/
|
#ls
ChangeLog iptables-1.4.6.tar.bz2 esfq-0.3 ipvs esfq-0.3.tar.gz l7 esfq-iproute2.patch libnetfilter_log-0.0.16 iproute2-2.6.33 libnetfilter_log-0.0.16.tar.bz2 iproute2-2.6.33.tar.bz2 lilalo iproute2-2.6.x-esfq.diff pom iproute2-2.6.x-esfq.diff.tar.gz README iptables-1.4.2-tarpit.diff sfq-iproute.patch iptables-1.4.4 siproxd-0.8.0 iptables-1.4.4-imq.diff siproxd-0.8.0.tar.gz iptables-1.4.4-imq.diff.1 squid iptables-1.4.4-imq.diff.2 xtables-addons-1.23 iptables-1.4.4.tar.bz2 xtables-addons-1.23.tar.bz2 iptables-1.4.6 |
#cd /root/
|
#ls
ezshaper-1.1rc grep myfirewall.sh.mport ultimate.sh ezshaper-1.1rc.tar.gz ipt.100310 ultimate-2.6.sh firewall.sh myfirewall.sh ultimatePM.sh |
#ls /
bin etc lib lost+found opt sbin srv usr boot home lib64 media proc selinux sys var dev include libexec mnt root share tmp |
#vim /etc/lilalo/l3config.pm
|
#:q
# set -x L3_PATH="/usr/bin/" L3_BACKEND="./l3-backend" case "$1" in }'`tart) if [ -z "$l3_backend_pid" ] echo "l3-backend is not running" thenp ${L3_BACKEND} > /dev/null 2>&1 & elsekill ${mywi_pid} ;; fi stop) ;;init.d/l3-backend" 33L, 567C l3_backend_pid=`ps waux | grep -v grep | grep 'l3.backend' | awk '{print $2;; restart|reload) |
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localnet http_access deny all icp_access allow localnet icp_access deny all htcp_access allow localnet htcp_access deny all http_port 3128 hierarchy_stoplist cgi-bin ? cache_dir ufs /var/cache/squid 100 16 256 logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh access_log /var/logs/squid/access.log common cache_log /var/logs/squid/cache.log cache_store_log /var/logs/squid/store.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /var/cache
Время первой команды журнала | 10:07:32 2010- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:57:33 2010- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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