1月 12
Grub2 basic of basic
icon1 ken666 | icon2 未分類 | icon4 01 12th, 2010 @ 02:01 am| icon3沒有留言 »

 

Missing menu.lst ???? how to configure grub2 ?

sudo vi /etc/default/grub

sudo update-grub2

Ref: http://ubuntuforums.org/showthread.php?t=1195275

7月 29
武士Tuto - 新世紀便當戰士
icon1 ken666 | icon2 未分類 | icon4 07 29th, 2009 @ 09:07 am| icon3沒有留言 »

 http://www.youtube.com/watch?v=BytFnPMg3n0&eurl=http://www.facebook.com/mikeleung.hk%3Fref%3Dts&feature=player_embedded

7月 23

 Echo to have a look first:

mailq |grep -i -B 1 bad@thisdomain.com |sed ’s/–//g’|cut -f 1 -d ‘ ‘|sed ’s/*//g’|sed ’s/ //g’|sed ‘/^$/d’|while read line; do echo $line ; done

 

Here is real delete !

mailq |grep -i -B 1 bad@thisdomain.com |sed ’s/–//g’|cut -f 1 -d ‘ ‘|sed ’s/*//g’|sed ’s/ //g’|sed ‘/^$/d’|while read line; do echo $line ; done

6月 27
Linux use “find” to search files
icon1 ken666 | icon2 未分類 | icon4 06 27th, 2009 @ 08:06 am| icon3沒有留言 »

 

find -iname "*.*" | xargs grep iR "search content"

6月 21

 KINGMAX SuperStick 4GB 真正防水! 同D衫一齊流都冇事!

經真實測試(其實係意外….) 

Kingmax SuperStick 真係防水! 洗完都一D事都冇, 一樣甘快….D FILE 完全正常 !!!

http://www.kingmax.com.tw/ch_03_product_content.asp?sn=34

 

6月 13

 T60 and T60p:
only 3GB will be addressable regardless of operating system used.

this is a physical limitation and there is absolutely no workaround. 

 

6月 6
Fedora 10 got invisiable Pointer ?
icon1 ken666 | icon2 未分類 | icon4 06 6th, 2009 @ 02:06 pm| icon3沒有留言 »

 

Here are  few steps to fix this issue

0. Install Ubuntu if you wish …

1. Open Terminal  (Applications > System Tools > Terminal )

2. type "su"

3. type your login password

4. edit the /etc/X11/xorg.conf ( i use vi , you may copy it to your home dir and chown and editon with GUI text editor )

5.  in Section "Device"

add two line

Option "HWCursor" "off"

Option "SWCurosr" "on"

6. Control+Alt+Backspace to restart x window

7. You should see the pointer back

Good Luck : )

5月 19
Ubuntu covert wmv to avi
icon1 ken666 | icon2 未分類 | icon4 05 19th, 2009 @ 07:05 pm| icon3沒有留言 »

 

mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

4月 4
Backup Putty Profile
icon1 ken666 | icon2 未分類 | icon4 04 4th, 2009 @ 09:04 pm| icon3沒有留言 »

 

 

Backup Putty Profile

PuTTY does not currently support storing its configuration in a file instead of the Registry. However, you can work around this with a couple of batch files.

You will need a file called (say) PUTTY.BAT which imports the contents of a file into the Registry, then runs PuTTY, exports the contents of the Registry back into the file, and deletes the Registry entries. This can all be done using the Regedit command line options, so it’s all automatic. Here is what you need in PUTTY.BAT:

@ECHO OFFregedit /s putty.regregedit /s puttyrnd.regstart /w putty.exeregedit /ea new.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTYcopy new.reg putty.regdel new.regregedit /s puttydel.reg

This batch file needs two auxiliary files: PUTTYRND.REG which sets up an initial safe location for the PUTTY.RND random seed file, and PUTTYDEL.REG which destroys everything in the Registry once it’s been successfully saved back to the file.

Here is PUTTYDEL.REG:

REGEDIT4

[-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]

Here is an example PUTTYRND.REG file:

REGEDIT4

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]"RandSeedFile"="a:\\putty.rnd"

You should replace a:\putty.rnd with the location where you want to store your random number data. If the aim is to carry around PuTTY and its settings on one floppy, you probably want to store it on the floppy.


 

 

2月 23

統報: 

Apr 17 16:37:26 www kernel: printk: 135 messages suppressed. 

Apr 17 16:37:26 www kernel: ip_conntrack: table full, dropping packet. 

Apr 17 16:37:26 www kernel: ip_conntrack: table full, dropping packet. 

Apr 17 16:37:33 www kernel: printk: 139 messages suppressed. 

Apr 17 16:37:33 www kernel: ip_conntrack: table full, dropping packet. 

Apr 17 16:37:37 www kernel: printk: 60 messages suppressed. 

Apr 17 16:37:37 www kernel: ip_conntrack: table full, dropping packet. 

Apr 17 16:37:52 www kernel: printk: 19 messages suppressed. 

Apr 17 16:37:52 www kernel: ip_conntrack: table full, dropping packet. 

 

有丟包現象 

 

[root@www ~]# wc -l /proc/net/ip_conntrack 

68463 /proc/net/ip_conntrack 

 

[root@www ~]# cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max 

65536 

 

可調整以下參數: 

 

echo 180 > 

/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established

echo 262144 > /proc/sys/net/ipv4/netfilter/ip_conntrack_max 

echo 120 > /proc/sys/net/ipv4/neigh/default/gc_stale_time 

echo 1024 > /proc/sys/net/ipv4/neigh/default/gc_thresh1 

echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh2 

echo 8192 > /proc/sys/net/ipv4/neigh/default/gc_thresh3 

 

或vi /etc/sysctl.conf 

 

net.ipv4.ip_conntrack_max = 655360 

net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 180 

 

再sysctl -p 

 

相關參數說明: 

 

ARP支持一個sysctl接口,可以用以配置全局參數或逐個網絡接口地進行配製。該sysctl

可以通過/proc/sys/net/ipv4/neigh/*/*文件或者使用sysctl(2)接口來訪問。系統中 

每個接口都在/proc/sys/net/ipv4/neigh/.中有自己的目錄。 `default’目錄中的設置用於 

所有新建的設備。 sysctl相關的時間是以秒為單位,除非特別聲明過. 

IXDBA.NET社區論壇 

anycast_delay 

對IPv6相鄰請求信息的回复的最大延遲時間;目前還不支持anycast。缺省值為1秒。 

app_solicit 

這是在使用多路廣播探測(multicast probe)前,經過網絡連接送到用戶間隙ARP端口監控程序 

的探測(probe)最大數目(見mcast_solicit )。缺省值為0。 

base_reachable_time 

一旦發現相鄰記錄,至少在一段介於base_reachable_time/2和 

3*base_reachable_time/2之間的隨機時間內,該記錄是有效的。如果收到上層協議的肯定反 

饋,那麼記錄的有效期將延長。缺省值是30秒。 

delay_first_probe_time 

發現某個相鄰層記錄無效(stale)後,發出第一個探測要等待的時間。缺省值是5秒。 

gc_interval 

收集相鄰層記錄的無用記錄的垃圾收集程序的運行週期,缺省為30秒。 

gc_stale_time 

決定檢查一次相鄰層記錄的有效性的周期。當相鄰層記錄失效時,將在給它發送數據前,再解析一 

次。缺省值是60秒。 

gc_thresh1 

存在於ARP高速緩存中的最少層數,如果少於這個數,垃圾收集器將不會運行。缺省值是128。 

gc_thresh2 

保存在ARP高速緩存中的最多的記錄軟限制。垃圾收集器在開始收集前,允許記錄數超過這個數 

字5秒。缺省值是512。 

gc_thresh3 

保存在ARP高速緩存中的最多記錄的硬限制,一旦高速緩存中的數目高於此,垃圾收集器將馬上 

運行。缺省值是1024。 

locktime 

ARP記錄保存在高速緩存內的最短時間(jiffy數),以防止存在多個可能的映射(potential 

mapping)時, ARP高速緩存系統的顛簸(經常是由於網絡的錯誤配置而引起)。缺省值是1

秒。 

mcast_solicit 

在把記錄標記為不可抵達的之前,用多路廣播/廣播(multicast/broadcast)方式解析地址的 

最大次數。

 

缺省值是3。 

proxy_delay 

當接收到有一個請求已知的代理ARP地址的ARP請求時,在回應前可以延遲的jiffy(時間單位,見BUG)數目。這樣,以防止網絡風暴。缺省值是0.8秒。 

proxy_qlen 

能放入代理ARP地址隊列(proxy-ARP addresses)的數據包最大數目。缺省值是64。 

IXDBA.NET技術社區

retrans_time 

重發一個請求前的等待jiffy(時間單位,見BUG)的數目。缺省值是1秒。 

ucast_solicit 

詢問ARP端口監控程序前,試圖發送單探測(unicast probe)的次數。 (見app_solicit).缺省值是3秒。 

unres_qlen 

每個沒有被其它網絡層解析的地址,在隊列中可存放包的最大數目。缺省值是3.

« 上一頁