05/30: MySQL > Regular Expressions
05/30: PHP > CR/LF
05/29: Linux > bash
Josh Staiger: .bash_profile vs. .bashrc"According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells."
05/28: Windows > debugger
Debugging Tools for Windows - Overview
Debug Tools for Windows
Debug Tools for Windows
変数名:_NT_EXECUTABLE_IMAGE_PATH 変数値:C:\WINDOWS (Windowsのパス) 変数名:_NT_SYMBOL_PATH 変数値:http://msdl.microsoft.com/download/symbols
05/27: Using TACACS for AAA
Using TACACS for AAA
TAC_PLUS Developer's Kit vF4.0.2.alpha
Note:
1. Modify Makefile
OS=-DLINUX -DGLIBC
OSLIBS=-lcrypt
2. Check /etc/services port 49
3. Sample conf
key = xxxxxxxx
default authentication = file /etc/passwd
accounting file = /var/log/tac.log
# debug log is var/tmp/tac_plus.log
user = tacadmin {
default service = permit
chap = cleartext xxxxxxxx
}
4. Run with debug
#tac_plus -C /etc/tac-plus/tacacs.conf -d 248
debugging output in the var/tmp/tac_plus.log file
TAC_PLUS Developer's Kit vF4.0.2.alpha
Note:
1. Modify Makefile
OS=-DLINUX -DGLIBC
OSLIBS=-lcrypt
2. Check /etc/services port 49
3. Sample conf
key = xxxxxxxx
default authentication = file /etc/passwd
accounting file = /var/log/tac.log
# debug log is var/tmp/tac_plus.log
user = tacadmin {
default service = permit
chap = cleartext xxxxxxxx
}
4. Run with debug
#tac_plus -C /etc/tac-plus/tacacs.conf -d 248
debugging output in the var/tmp/tac_plus.log file
05/23: Terminology > UPN & UNC
What is UNC? - A Word Definition From the Webopedia Computer Dictionary
User Principal Name (UPN) format eg: hajime.@domain.com
Universal Naming Convention (UNC) formateg: \\hostname\dir\
User Principal Name (UPN) format eg: hajime.@domain.com
Universal Naming Convention (UNC) formateg: \\hostname\dir\
05/21: Authentication
TACACS and RADIUS Comparison - Cisco Systems
1. RADIUS uses UDP while TACACS+ uses TCP
2. RADIUS encrypts only the password. TACACS+ encrypts the entire body of the packet but leaves a standard TACACS+ header.
3. RADIUS combines authentication and authorization. TACACS+ uses the AAA architecture
4. TACACS+ offers multiprotocol support.
5. TACACS+ provides two methods to control the authorization of router commands on a per-user or per-group basis.
Remote Authentication Dial In User Service (RADIUS)
Terminal Access Controller Access-Control System Plus (TACACS+)
Authentication, Authorization and Accounting
1. RADIUS uses UDP while TACACS+ uses TCP
2. RADIUS encrypts only the password. TACACS+ encrypts the entire body of the packet but leaves a standard TACACS+ header.
3. RADIUS combines authentication and authorization. TACACS+ uses the AAA architecture
4. TACACS+ offers multiprotocol support.
5. TACACS+ provides two methods to control the authorization of router commands on a per-user or per-group basis.
Remote Authentication Dial In User Service (RADIUS)
Terminal Access Controller Access-Control System Plus (TACACS+)
Authentication, Authorization and Accounting
05/19: Windows > find コマンド
netstat -an | find "LISTENING"
05/19: How to check .Net version
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy
CodeGuru Forums - Check .NET 2.0 installed
CodeGuru Forums - Check .NET 2.0 installed
05/16: Linxu > find by filesize
ファイルやディレクトリを詳細な条件で探すには
$ find . -size +10k -ls
ls: Sort by filesize
$ ls -ls | sort -n
find files modified today
$ find . -daystart -mtime -1 -ls
$ find . -mmin -30 -ls
$ find . -size +10k -ls
ls: Sort by filesize
$ ls -ls | sort -n
find files modified today
$ find . -daystart -mtime -1 -ls
$ find . -mmin -30 -ls
05/15: Linux > bash > kill
1625番のプロセスを強制終了する $ kill -9 1625 httpdを再起動する $ kill -HUP httpd【 kill 】 プロセスおよびジョブを強制終了する:ITpro
計算機と戯れる日々
$ aaa (C-z押) $ bg $ disown %1 $ exit
Trivial Tracks: disown 覚書"disown %[ジョブ番号] これだけでバックグラウンドプロセスをデーモン化することが出来る。 結果的として実行中にログアウトしても大丈夫。"
Setting up a network with Red Hat Enterprise Linux 4.0
/etc/sysconfig/network
/etc/sysconfig/network
05/13: Safari
HOW TO: Use Setup Manager to Create an Answer File in Windows Server 2003
1. Insert the Windows Server 2003 CD-ROM into the computer's CD-ROM drive or DVD-ROM drive. Press and hold down the SHIFT key as you insert the CD to prevent it from starting automatically.
2. Start Windows Explorer, and then open the Support\Tools folder on the Windows Server 2003 CD-ROM.
3. In the right pane, double-click the Deploy.cab file to open it.
4. On the Edit menu, click Select All.
5. On the Edit menu, click Copy.
6. Create a new folder on your local hard disk. To do this:
a. Click Local Disk (C:), or click the drive in which you want to create the new folder.
b. On the File menu, point to New, and then click Folder.
c. In the New Folder name box, type the name that you want, and then press ENTER.
7. Right-click the new folder that you created, and then click Paste.
8. Double-click the new folder to open it, and then double-click the Setupmgr.exe file. The Setup Manager wizard starts. Follow the instructions in the wizard to create an answer file.
1. Insert the Windows Server 2003 CD-ROM into the computer's CD-ROM drive or DVD-ROM drive. Press and hold down the SHIFT key as you insert the CD to prevent it from starting automatically.
2. Start Windows Explorer, and then open the Support\Tools folder on the Windows Server 2003 CD-ROM.
3. In the right pane, double-click the Deploy.cab file to open it.
4. On the Edit menu, click Select All.
5. On the Edit menu, click Copy.
6. Create a new folder on your local hard disk. To do this:
a. Click Local Disk (C:), or click the drive in which you want to create the new folder.
b. On the File menu, point to New, and then click Folder.
c. In the New Folder name box, type the name that you want, and then press ENTER.
7. Right-click the new folder that you created, and then click Paste.
8. Double-click the new folder to open it, and then double-click the Setupmgr.exe file. The Setup Manager wizard starts. Follow the instructions in the wizard to create an answer file.
Go to "Tools > Application catalogue", click "New", enter "matrix" into the "Web Address" field, click "Cancel". Choosing the red pill will activate the red pill mode, obviously, and chosing the blue one will deactivate it.Red pill mode
05/01: MS SQL (MSSQL 2000) tips
To install MSDE:
Better to stop IIS
Need "File and Printer sharing" and netBIOS over TCP/IP
Check "Administrative tools" -> "Local security policy"
"Security setting" -> "Local policies" -> "Security options"
"Unsigned non-driver installation behavior" => Allow
Modify setup.ini
SAPWD="xxxxxxx"
SECURITYMODE=SQL
DISABLENETWORKPROTOCOLS=0
TARGETDIR="c:\"
C:\MSDERelA>setup /settings setup.ini
Restart the PC
Security patch (SQL Server 2000 (32-bit) Security Patch MS03-031)
Detail: http://go.microsoft.com/fwlink/?LinkId=20286
Better to stop IIS
Need "File and Printer sharing" and netBIOS over TCP/IP
Check "Administrative tools" -> "Local security policy"
"Security setting" -> "Local policies" -> "Security options"
"Unsigned non-driver installation behavior" => Allow
Modify setup.ini
SAPWD="xxxxxxx"
SECURITYMODE=SQL
DISABLENETWORKPROTOCOLS=0
TARGETDIR="c:\"
C:\MSDERelA>setup /settings setup.ini
Restart the PC
Security patch (SQL Server 2000 (32-bit) Security Patch MS03-031)
Detail: http://go.microsoft.com/fwlink/?LinkId=20286