執行下列指令:
D:> diskpart
DISKPART> list disk <- 列出磁碟清單
DISKPART> select disk 0 <- 磁碟代號從 0 開始,若 D 槽在第一顆硬碟,則選擇 0
DISKPART> list partition <- 列出磁碟分割區的清單
DISKPART> select partition 2 <- 分割區代號從 1 開始,若 D 槽在第二個分割區,則選擇 2
DISKPART> extend size=X <- X 請填所要延伸的空間大小,單位 MB,若不加”size=”參數,則是將未分割區完全填滿。
DISKPART> exit <- 離開 diskpart
星期五, 7月 18, 2008
星期三, 12月 13, 2006
CentOS How to import RPM-GPG-KEY
If you want to update by yum,
you must do below step,
rpm -import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
or
rpm -import http://ftp2.tnc.edu.tw/pub1/centos/RPM-GPG-KEY-CentOS-3
you must do below step,
rpm -import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
or
rpm -import http://ftp2.tnc.edu.tw/pub1/centos/RPM-GPG-KEY-CentOS-3
Windows 98 檢查是否啟用密碼快取功能
Windows 98 檢查是否啟用密碼快取功能。
若要檢查,請使用「登錄編輯器」檢視位於下面登錄機碼中的 DisablePwdCaching DWORD 值:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Network
如果沒有啟用密碼快取功能,DisablePwdCaching DWORD 的值會是 1。
若要啟用密碼快取功能,請將此值改為 0。
注意:如果沒有 DisablePwdCaching 值,請在上述登錄機碼中新增 DWORD 值,並將此值設為 0。
您可能需要整個移除此值,然後再重新啟動電腦,以便快取功能可以生效。
------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Network]
"DisablePwdCaching"=dword:00000001
若要檢查,請使用「登錄編輯器」檢視位於下面登錄機碼中的 DisablePwdCaching DWORD 值:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Network
如果沒有啟用密碼快取功能,DisablePwdCaching DWORD 的值會是 1。
若要啟用密碼快取功能,請將此值改為 0。
注意:如果沒有 DisablePwdCaching 值,請在上述登錄機碼中新增 DWORD 值,並將此值設為 0。
您可能需要整個移除此值,然後再重新啟動電腦,以便快取功能可以生效。
------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Network]
"DisablePwdCaching"=dword:00000001
ClamAV install and upgarde
ClamAV
/etc/passwd
clamav:x:100:101:Clam Anti Virus Checker:/var/clamav:/sbin/nologin
/etc/group
clamav:x:101:
/etc/shadow
clamav:!!:12642::::::
tar xzvf clamav-0.80rc3.tar.gz
./configure
make
make install
/usr/local/etc
clamav.conf
freshclam.conf
# Comment or remove the line below.
#Example
------------------------------------------------------------------------------------
What is the recommended procedure to update ClamAV installed from sources?
This is the suggested procedure by an user:
My process for installing a new version:
Preserve the previous build for fall-back purposes
1. dl the source for the version of interest
2. read the dox for build changes
3. create a configure/make script (for repeatability - mine has my chosen options in it)
4. examine the new conf files for interesting entries
5. make backup copies of conf files from previous version
6. stop clamav procs
7. rm -f /usr/local/lib/*clam* (to remove old libraries)
8. make install
9. check again conf files - adjust as needed for new version
10. restart clamav processes
If you run make -n install you will be shown what make would do in an install
and where things will be put. This will tell you what you need to remove.
/etc/passwd
clamav:x:100:101:Clam Anti Virus Checker:/var/clamav:/sbin/nologin
/etc/group
clamav:x:101:
/etc/shadow
clamav:!!:12642::::::
tar xzvf clamav-0.80rc3.tar.gz
./configure
make
make install
/usr/local/etc
clamav.conf
freshclam.conf
# Comment or remove the line below.
#Example
------------------------------------------------------------------------------------
What is the recommended procedure to update ClamAV installed from sources?
This is the suggested procedure by an user:
My process for installing a new version:
Preserve the previous build for fall-back purposes
1. dl the source for the version of interest
2. read the dox for build changes
3. create a configure/make script (for repeatability - mine has my chosen options in it)
4. examine the new conf files for interesting entries
5. make backup copies of conf files from previous version
6. stop clamav procs
7. rm -f /usr/local/lib/*clam* (to remove old libraries)
8. make install
9. check again conf files - adjust as needed for new version
10. restart clamav processes
If you run make -n install you will be shown what make would do in an install
and where things will be put. This will tell you what you need to remove.
awstats config - squid
vi /etc/squid/squid.conf
emulate_httpd_log on
------------------------------------------
vi /etc/awstats/awstats.squid.conf
------------------------------------------
LogFile="/var/log/squid/access.log"
LogType=W
LogFormat=4
SiteDomain="domain.com"
HostAliases="92.168.0.4 localhost 127.0.0.1"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForSearchEnginesDetection=0
LevelForKeywordsDetection=0
LevelForFileTypesDetection=2
LevelForWormsDetection=2
ShowDomainsStats=0
ShowRobotsStats=0
ShowWormsStats=HBL
ShowFileSizesStats=0
ShowOSStats=0
ShowBrowsersStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=squid -update
測試:http://IP/awstats/awstats.pl?config=squid
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=squid -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
emulate_httpd_log on
------------------------------------------
vi /etc/awstats/awstats.squid.conf
------------------------------------------
LogFile="/var/log/squid/access.log"
LogType=W
LogFormat=4
SiteDomain="domain.com"
HostAliases="92.168.0.4 localhost 127.0.0.1"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForSearchEnginesDetection=0
LevelForKeywordsDetection=0
LevelForFileTypesDetection=2
LevelForWormsDetection=2
ShowDomainsStats=0
ShowRobotsStats=0
ShowWormsStats=HBL
ShowFileSizesStats=0
ShowOSStats=0
ShowBrowsersStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=squid -update
測試:http://IP/awstats/awstats.pl?config=squid
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=squid -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
awstats config - mail
vi /etc/awstats/awstats.mail.conf
------------------------------------------
LogFile="perl /usr/local/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=
LevelForFileTypesDetection=
AllowToUpdateStatsFromBrowser=0
SiteDomain="mail.stl-tech.com"
HostAliases="192.168.0.3 localhost 127.0.0.1"
DirData="/var/lib/awstats"
DirIcons="/awstatsicons"
ShowMenu=1
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBML
ShowEMailReceivers=HBML
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update
測試:http://IP/awstats/awstats.pl?config=mail
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
------------------------------------------
LogFile="perl /usr/local/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=
LevelForFileTypesDetection=
AllowToUpdateStatsFromBrowser=0
SiteDomain="mail.stl-tech.com"
HostAliases="192.168.0.3 localhost 127.0.0.1"
DirData="/var/lib/awstats"
DirIcons="/awstatsicons"
ShowMenu=1
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBML
ShowEMailReceivers=HBML
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update
測試:http://IP/awstats/awstats.pl?config=mail
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
awstats config - ftp
vi /etc/awstats/awstats.ftp.conf
------------------------------------------
LogFile="/var/log/xferlog"
LogType=F
LogFormat="%time3 %other %host %bytesd %url %other %other %method %other %logname %other %code %other %other"
LogSeparator="\s"
SiteDomain="Domain.com"
HostAliases="192.168.0.3 localhost 127.0.0.1"
DNSLookup=1
DirData="/var/lib/awstats"
DirIcons="/awstatsicons"
AllowToUpdateStatsFromBrowser=0
NotPageList=""
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
ShowLinksOnUrl=0
ShowMenu=1
ShowMonthStats=UVHB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=HBL
ShowRobotsStats=0
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=0
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update
測試:http://IP/awstats/awstats.pl?config=ftp
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
------------------------------------------
LogFile="/var/log/xferlog"
LogType=F
LogFormat="%time3 %other %host %bytesd %url %other %other %method %other %logname %other %code %other %other"
LogSeparator="\s"
SiteDomain="Domain.com"
HostAliases="192.168.0.3 localhost 127.0.0.1"
DNSLookup=1
DirData="/var/lib/awstats"
DirIcons="/awstatsicons"
AllowToUpdateStatsFromBrowser=0
NotPageList=""
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
ShowLinksOnUrl=0
ShowMenu=1
ShowMonthStats=UVHB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=HBL
ShowRobotsStats=0
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=0
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update
測試:http://IP/awstats/awstats.pl?config=ftp
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
How to setup awstats
rpm -ivh awstats-6.4-1.noarch.rpm
----- AWStats 6.4 - Laurent Destailleur -----
AWStats files have been installed in /usr/local/awstats
If first install, follow instructions in documentation
(/usr/local/awstats/docs/index.html) to setup AWStats in 3 steps:
Step 1 : Install and Setup with awstats_configure.pl (or manually)
Step 2 : Build/Update Statistics with awstats.pl
Step 3 : Read Statistics
---------------------------------------
cd /usr/local/awstats/tools/
perl awstats_configure.pl
Enter full config file path of your Web server.
Config file path ('none' to skip web server setup):
> /etc/httpd/conf/httpd.conf
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?
>y
Your web site, virtual server or profile name:
> www
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
>#直接按下 Enter,使用預設資料夾來放置設定檔
---------------------------------------
chmod 755 /usr/local/awstats
mkdir /var/lib/awstats
---------------------------------------
vi /etc/awstats/awstats.www.conf
LogFile="/var/log/httpd/access_log"
SiteDomain="domain.com"
DNSLookup=1
HostAliases="192.168.0.3 127.0.0.1 localhost"
---------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www -update
service httpd restart
http://ip/awstats/awstats.pl?config=www
---------------------------------------
#定時更新
vi /etc/crontab
50 3 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
----- AWStats 6.4 - Laurent Destailleur -----
AWStats files have been installed in /usr/local/awstats
If first install, follow instructions in documentation
(/usr/local/awstats/docs/index.html) to setup AWStats in 3 steps:
Step 1 : Install and Setup with awstats_configure.pl (or manually)
Step 2 : Build/Update Statistics with awstats.pl
Step 3 : Read Statistics
---------------------------------------
cd /usr/local/awstats/tools/
perl awstats_configure.pl
Enter full config file path of your Web server.
Config file path ('none' to skip web server setup):
> /etc/httpd/conf/httpd.conf
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?
>y
Your web site, virtual server or profile name:
> www
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
>#直接按下 Enter,使用預設資料夾來放置設定檔
---------------------------------------
chmod 755 /usr/local/awstats
mkdir /var/lib/awstats
---------------------------------------
vi /etc/awstats/awstats.www.conf
LogFile="/var/log/httpd/access_log"
SiteDomain="domain.com"
DNSLookup=1
HostAliases="192.168.0.3 127.0.0.1 localhost"
---------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www -update
service httpd restart
http://ip/awstats/awstats.pl?config=www
---------------------------------------
#定時更新
vi /etc/crontab
50 3 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * root /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
CISCO VPN Ports
* UDP port 500
* UDP port 10000 (or any other port number being used for IPSec/UDP)
* IP protocol 50 (ESP)
* TCP port configured for IPSec/TCP
* NAT-T port 4500
The CISCO documentation mentions several other ports, quoting:
* UDP port 500
* UDP port 10000 and 500 (or any other port number being used for IPSec/UDP)
* IP protocol 50 (ESP)
* NAT-T port 4500 UDP
* UDP port 10000 (or any other port number being used for IPSec/UDP)
* IP protocol 50 (ESP)
* TCP port configured for IPSec/TCP
* NAT-T port 4500
The CISCO documentation mentions several other ports, quoting:
* UDP port 500
* UDP port 10000 and 500 (or any other port number being used for IPSec/UDP)
* IP protocol 50 (ESP)
* NAT-T port 4500 UDP
訂閱:
文章 (Atom)