Here is my objective:
- NCLP
- LPIC level 1
- LPIC level 2
- CCNA
- SCJP
NCLP打算今年取得,明年應該是CCNA了。
Monday, July 31, 2006
Friday, July 28, 2006
Master
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
ATrpms - This is a 3rd party rpm repository.
除了rpmfind.net之外,這是我常用來找tools的一個網站,同時它也提供許多硬體裝置的驅動程式,我的兩張無線網卡(dwl650, dwlag650)也是拜它所賜才順利裝起來,不過目前它只提供RH的rpm。
如果您也有無線網卡想在Linux下使用,不訪來找看看吧!
網址: http://atrpms.net/
如果您也有無線網卡想在Linux下使用,不訪來找看看吧!
網址: http://atrpms.net/
Monday, July 24, 2006
Shell練習 from 鳥哥 Linux 私房菜
我想要建立三個空的檔案,檔名最開頭由使用者輸入決定,假設使用者輸入 filename 好了, 那今天的日期是 2005/08/23 ,我想要以前天、昨天、今天的日期來建立這個檔案,亦即 filename_20050821, filename_20050822, filename_20050823 ,該如何是好?
這個練習題是來自於鳥哥的網站,以下是我自己的寫法:
#!/bin/bash
echo -e "System will create 3 file automatic"
read -p "Please enter your filename: " filename
date1=`date +%Y%m%d --date="-1 day"`
date2=`date +%Y%m%d`
date3=`date +%Y%m%d --date="+1 day"`
filename1="$filename$date1"
filename2="$filename$date2"
filename3="$filename$date3"
touch $filename1
touch $filename2
touch $filename3
這個練習題是來自於鳥哥的網站,以下是我自己的寫法:
#!/bin/bash
echo -e "System will create 3 file automatic"
read -p "Please enter your filename: " filename
date1=`date +%Y%m%d --date="-1 day"`
date2=`date +%Y%m%d`
date3=`date +%Y%m%d --date="+1 day"`
filename1="$filename$date1"
filename2="$filename$date2"
filename3="$filename$date3"
touch $filename1
touch $filename2
touch $filename3
Thursday, July 20, 2006
Linux好用的軟體
介紹一下我常用的Linux軟體,好在有這麼多的免費軟體讓我可以把Linux當desktop使用。
- Xine: 多媒體撥放軟體
- beep-media-player: mp3撥放軟體 (support big5 and utf8)
- gthumb: 看圖軟體
- 星際譯王: 翻譯軟體 不比Dr. eye差唷!
- Openoffice
- gaim: 即時通軟體
- Real player: 多媒體撥放軟體
- Ethereal: 分析網路封包
- Xchm: 可以閱讀 MS chm的文件
- Amule: 不要懷疑,它就是windows的eMule
- Azureus: 就是BT囉
- AdobeReader: 是的!也有for Linux version
- Rarlinux: 讓linux也可解rar的檔案
.................當然還有很多很多的好軟體!感謝這些默默耕耘的前輩們,因為他們的付出,讓大家有這麼多的好軟體可以使用!
- Xine: 多媒體撥放軟體
- beep-media-player: mp3撥放軟體 (support big5 and utf8)
- gthumb: 看圖軟體
- 星際譯王: 翻譯軟體 不比Dr. eye差唷!
- Openoffice
- gaim: 即時通軟體
- Real player: 多媒體撥放軟體
- Ethereal: 分析網路封包
- Xchm: 可以閱讀 MS chm的文件
- Amule: 不要懷疑,它就是windows的eMule
- Azureus: 就是BT囉
- AdobeReader: 是的!也有for Linux version
- Rarlinux: 讓linux也可解rar的檔案
.................當然還有很多很多的好軟體!感謝這些默默耕耘的前輩們,因為他們的付出,讓大家有這麼多的好軟體可以使用!
Use Linux to Setup L2TP Server (without IPSec)
在此分享一下,小弟在Linux下成功架起VPN - L2TP Server 的方法,不過要注意的是並沒有實現over IPSec。
測試環境:
L2TP Server -- L2TP Client
L2TP Server:
-OS: CentOS 4.x
- L2TP package: l2tpd
- IP address: 10.10.99.100/24
L2TP Client:
- OS: Windows XP PRO
- IP address: 10.10.99.101/24
步驟:
1. Install l2tpd:
rpm -ivh l2tpd*
2. Create L2TP User:
# vi /etc/l2tpd/l2tp-secrects
l2tpuser * "password"
3. Configure L2TP configure file
# vi /etc/l2tpd/l2tpd.conf
[global]
; listen-addr = 192.168.1.98 // Allow all L2TP Client dial in
auth file = /etc/l2tpd/l2tp-secrets
[lns default]
ip range = 192.168.0.128-192.168.0.150 // L2TP Client scope
local ip = 192.168.0.254 // L2TP Server IP address
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd
length bit = yes
4. Initial L2TP Server:
# service l2tpd start
# chkconfig --level 35 l2tpd on
5. Configure L2TP client (Windows 2000 / XP PRO)
The default Windows 2000/XP does not allow L2TP traffic without IPSec encryption. You can disable default behvior by editing the registry as follow:
- Use the registry editor (regedit) to locate the following key in the registry:
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ Rasman \ Parameters
- Add the following registry value to this key
Value Name: ProhibitIpSec
Data Type: REG_DWORD
Value: 1
- Reboot Windows 2000/XP
6. Use Windows 2000/XP to setup L2TP client profile.
測試環境:
L2TP Server -- L2TP Client
L2TP Server:
-OS: CentOS 4.x
- L2TP package: l2tpd
- IP address: 10.10.99.100/24
L2TP Client:
- OS: Windows XP PRO
- IP address: 10.10.99.101/24
步驟:
1. Install l2tpd:
rpm -ivh l2tpd*
2. Create L2TP User:
# vi /etc/l2tpd/l2tp-secrects
l2tpuser * "password"
3. Configure L2TP configure file
# vi /etc/l2tpd/l2tpd.conf
[global]
; listen-addr = 192.168.1.98 // Allow all L2TP Client dial in
auth file = /etc/l2tpd/l2tp-secrets
[lns default]
ip range = 192.168.0.128-192.168.0.150 // L2TP Client scope
local ip = 192.168.0.254 // L2TP Server IP address
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd
length bit = yes
4. Initial L2TP Server:
# service l2tpd start
# chkconfig --level 35 l2tpd on
5. Configure L2TP client (Windows 2000 / XP PRO)
The default Windows 2000/XP does not allow L2TP traffic without IPSec encryption. You can disable default behvior by editing the registry as follow:
- Use the registry editor (regedit) to locate the following key in the registry:
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ Rasman \ Parameters
- Add the following registry value to this key
Value Name: ProhibitIpSec
Data Type: REG_DWORD
Value: 1
- Reboot Windows 2000/XP
6. Use Windows 2000/XP to setup L2TP client profile.
Thursday, July 13, 2006
VMware Server免費開放下載
這真是個好消息,VMware Server現在開放免費下載,當下載完畢後,在到官方網站申請序號即可!目前只支援Linux與Windows的平台,未來不知是否會支援MAC OSX。
VMware Server 1.0下載處:
http://www.vmware.com/products/server/
Friday, July 07, 2006
Rsync遠端備份+SSH免密碼登入
上次介紹過利用Rsync做遠端備份資料用,發覺美中不足的地方是,要輸入密碼後才能登入遠端Server,然後才能執行備份的動作,稍嫌麻煩,故利用了SSH免密碼登入的方式,果然方便了很多,現在寫了一個備份的 shell script,備份資料對我來說是輕鬆了許多。
Monday, July 03, 2006
crontab練習題
需求: 每30分鐘,記錄系統記憶體的使用狀況,並存入/var/log/Year-Month-Day.log;每天早上8:00將昨天的記憶體記錄檔mail給root.
解答:
1.先寫個收集記憶體使用狀況的shell script:
# cd ~root/bin
# vi collect.sh
#!/bin/bash
FILE=/var/log/`date +%Y-%m-%d`.log
date >> $FILE
free >> $FILE
echo >> $FILE
# chmod 755 collect.sh -v
2. # crontab -e
*/30 * * * * /root/bin/collect.sh
3. 撰寫每日發信給root的shell script:
# cd ~root/bin
# vi sendinfo.sh
#!/bin/bash
FILE=/var/log/`date +%Y-%m-%d --date="-1 day"`.log
echo "This is memory info" | mutt -s "Memory info" -a $FILE root
# chmod 755 sendinfo.sh -v
4. # crontab -e
0 8 * * * /root/bin/sendinfo.sh
解答:
1.先寫個收集記憶體使用狀況的shell script:
# cd ~root/bin
# vi collect.sh
#!/bin/bash
FILE=/var/log/`date +%Y-%m-%d`.log
date >> $FILE
free >> $FILE
echo >> $FILE
# chmod 755 collect.sh -v
2. # crontab -e
*/30 * * * * /root/bin/collect.sh
3. 撰寫每日發信給root的shell script:
# cd ~root/bin
# vi sendinfo.sh
#!/bin/bash
FILE=/var/log/`date +%Y-%m-%d --date="-1 day"`.log
echo "This is memory info" | mutt -s "Memory info" -a $FILE root
# chmod 755 sendinfo.sh -v
4. # crontab -e
0 8 * * * /root/bin/sendinfo.sh
Subscribe to:
Posts (Atom)