星期五, 6月 13, 2008

3COM 3CRWE154G72 on OpenSuSE 10.3

之前有一張3com的PCMCIA網卡
在裝Fedora時候有安裝起來使用(因為那個時候內建的網卡沒抓到)
後來抓到內建的Intel網卡就沒有使用

上次心血來潮在OpenSuSE 上面安裝發現沒有連接
昨天找時間Lab 安裝一下
有看了其他人裝這個套件
p54-kmp-default-20070806_2.6.22.17_0.1-2.1
但是沒有效果^^

後來是把光碟內的Driver 複製到 /lib/firmware
cp /media/3ComWLAN/Driver/3CRWE154G72/3C154G72.arm /lib/firmware/isl3890

一切都ok了 @@

那昨天的熬夜到底算啥
>.<

星期三, 6月 04, 2008

停用compiz設定 in Linux

之前曾經因為豬頭啟用 compiz-fusion導致 X Windos 啟動不正常
所以花費了很多時間
之後爬文, 簡單的解決方式是
#touch ~/.config/compiz/disable-compiz
就不會啟動compiz ^^
趕快把他記起來^^~~~~

星期二, 6月 03, 2008

讓VMWare內的網卡可以執行promiscuous mode

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=287

How do I set my virtual Ethernet adapter on my Linux host to run in promiscuous mode?

VMware software does not allow the virtual Ethernet adapter to go into promiscuous mode unless the user running the VMware software has permission to make that setting. This follows the standard Linux practice that only root can put a network interface into promiscuous mode.

When you install and configure your VMware software, you run the installation as root, and we create the vmnet0-vmnet3 devices with root ownership and root group ownership. We also give those devices read/write access for the owner root only. For a user to be able to set the virtual machine's network adapter to promiscuous mode, the user who launches the VMware product needs to have read/write access to the vmnetx device (/dev/vmnet0 if using basic bridged mode).

One way to do this is to create a new group, add the appropriate users to the group, and give that group read/write access to the appropriate device. These changes need to be made on the host operating system as root (su). For example:

chgrp newgroup /dev/vmnet0
chmod g+rw /dev/vmnet0
where newgroup is the group that should have the ability to set vmnet0 to promiscuous mode.

If you want all users to be able to set the virtual network adapter (/dev/vmnet0 in our example) to promiscuous mode, you can simply run the following command on the host operating system as root:

chmod a+rw /dev/vmnet0

More issues regarding promiscuous mode are discussed in Knowledge Base article 514. Please see:

www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=514.

星期五, 4月 18, 2008

iptables LOG 機制 at SuSE Linux

之前在使用RedHat 系列的Linux時候
在使用 iptabls的時候會使用, 例如
#iptables -A INPUT -p icmp --icmp-type 8 -j LOG
來將ping的動作紀錄起來
以RedHat 系列會去檢查 /var/log/messages

但是由於SuSE Linux使用 syslog-ng的關係
在/etc/syslog-ng/syslog-ng.conf 設定中有把iptables 獨立出來
linux-nb:/var/log # cat /etc/syslog-ng/syslog-ng.conf | grep iptables
filter f_iptables { facility(kern) and match("IN=") and match("OUT="); };
filter f_console { level(warn) and facility(kern) and not filter(f_iptables)
filter f_messages { not facility(news, mail) and not filter(f_iptables); };
filter f_warn { level(warn, err, crit) and not filter(f_iptables); };
# All messages except iptables and the facilities news and mail:
# Firewall (iptables) messages in one file:
log { source(src); filter(f_iptables); destination(firewall); };
# Warnings (except iptables) in one file:

所以有關於iptables的LOG在 SuSE Linux 內
會被儲存在/var/log/firewall

︿︿

星期四, 1月 31, 2008

VMWare 內的滑鼠滾輪功能

在VMWare內使用linux有的時候會發現滑鼠滾輪功能沒有作用
其解決方式為
#vi /etc/X11/xorg.conf
找到滑鼠 protocol那段
Option “Protocol” “ps/2”   
改成   
Option “Protocol” “imps/2"

重新啟動 X就可以使用滑鼠滾輪功能^^

星期二, 1月 29, 2008

Openwebmail 2.52 in Fedora 7

參考
http://b2d.phc.edu.tw/modules/tadbook2/view.php?book_sn=21&bdsn=690

1.先設定 sendmail and dovecot 還有安裝httpd

2.下載 rpm
http://www.openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail-2.52-1.i386.rpm

3.檢查相關套件是否有安裝
perl-suidperl
perl-Compress-Zlib
perl-Text-Iconv

4.安裝 Openwebmail
#rpm -ivh openwebmail-2.52-1.i386.rpm
此時會被告知
You may login with non-root account from
http://localhost.localdomain/cgi-bin/openwebmail/openwebmail.pl


5.但是實際去登入
http://localhost.localdomain/cgi-bin/openwebmail/openwebmail.pl
的時候會出現
Please execute '/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init' on server first!

6. 所以去執行
#/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
但是又會被告知
Please change '/var/www/cgi-bin/openwebmail/etc/dbm.conf' from

dbm_ext .db
dbmopen_ext none
dbmopen_haslock no

to

dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no

And execute '/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init' again!

7.修改相關檔案 請注意位置的部份
#vi /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf
dbm_ext .db
dbmopen_ext none
dbmopen_haslock no

修改為

dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no

8.再次執行初始化
#/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init

設定完成

星期一, 1月 14, 2008

Master / Slave DNS 小Memo

之前在實作Master 還有Slave DNS的時候
沒有把 Master 更新 Resource Record 的細節寫上來
在這邊做一下Memo

條件
1.在 Zone file 內有 slave DNS 的NS紀錄及A紀錄
2.Slave DNS 的zone file 有指定masters
3.該資料夾 bind 有寫入的權限

^^
找個時間補上去吧

星期四, 1月 10, 2008

Debian 的vi

Debian 內建的vi 為 vim-tiny 所以有一些常用的功能
都沒有內建在裡面
建議可以安裝 vim-tcl 來讓自己習慣
有了vim-tcl 就可以使用
syntax on
set hlsearch
那些可愛的功能了
^^

星期二, 12月 11, 2007

B2D 安裝小記於VMWare

最近因為黑貓的Debian讀書會
所以開始來玩Debian
所以使用臥龍小三大大的B2D

B2D版本: B2D Server Jacana (配合書籍)


相關討論區
http://b2d.tnc.edu.tw/phpBB2/index.php
官網
http://b2d.tnc.edu.tw/

首先於VMWare內安裝, 但是VMWare內沒有B2D的選項
所以選Ubuntu代替

Notes:
1.在安裝的時候, 由於VMWare的硬碟是模擬SCSI, 所以boot選項要輸入
b2d-scsi
可以按F2來看相關的option

2.B2D Server必須安裝在第一顆硬碟才能安裝使用(不知道新版修正了沒? ^^)

其他都與一般linux安裝無異
^^