Download
指令:
$ ./tcpdump -p -vv -s 0 -w ./aaa.pcap #執行tcpdump來抓封包,並存到.pcap文件
(暫停時就 ctrl + c)
然後再用 wireshark 來分析封包
ref : Findyou
2016年10月12日 星期三
2012年6月14日 星期四
2012年5月28日 星期一
2012年5月10日 星期四
tools
Openoffice
- openoffice.org-writer (debian) <- word
- openoffice.org-calc (debian) <- excel
- openoffice.org-impress (debian) <- powerpoint
Libreoffice
source list 新增: deb http://backports.debian.org/debian-backports squeeze-backports main
下載:aptitude -t squeeze-backports install package_name
檔案總管
蠻方便的Gnome Commander,不過剛安裝好後,不能連samba,
source list 新增: deb http://backports.debian.org/debian-backports squeeze-backports main
下載:aptitude -t squeeze-backports install package_name
- libreoffice-writer <- word
- libreoffice-calc <- excel
- libreoffice-impress <- powerpoint
檔案總管
蠻方便的Gnome Commander,不過剛安裝好後,不能連samba,
所以還要安裝其它的tool
在列表想要打 s 就到 s 開頭的檔案,
要 Ctrl+Alt+s 才可以, 直接打 s 會到最下面命令列去.
不過…裝在debian 6.0.4 (2.6.32-5-686)下,老是自已會crash 冏
還是乖乖開兩個視窗來用吧…
ref:
字典
- aptitude install gnome-commander
- libgnomevfs2-extra
在列表想要打 s 就到 s 開頭的檔案,
要 Ctrl+Alt+s 才可以, 直接打 s 會到最下面命令列去.
不過…裝在debian 6.0.4 (2.6.32-5-686)下,老是自已會crash 冏
還是乖乖開兩個視窗來用吧…
ref:
2012年4月11日 星期三
Debian 6.0.4 中文字型+無蝦米
裝完中文版後,reboot開完機後,
畫面是呈現一堆方塊火星文,
中文字型不知道是放在哪個iso (我通常只會下載cd-iso-1)
所以裝完後還要裝下列字型才行:
aptitude install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-ukai ttf-arphic-uming
畫面是呈現一堆方塊火星文,
中文字型不知道是放在哪個iso (我通常只會下載cd-iso-1)
所以裝完後還要裝下列字型才行:
aptitude install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-ukai ttf-arphic-uming
裝完後,就能看到中文了
接著就是嘸蝦米了
aptitude install scim scim-pinyin scim-chewing scim-tables-zh scim-qtimm im-switch
拉拉渣渣裝這麼多後,(有些可以不用裝才對,但不想花時間確認)
再把 Liu.bin 放到 /usr/share/scim/tables 就行了
(把scim打開,可以關掉用不到的輸入法,但切換輸入法還在研究一下 = =")
ref:
1. 自學程設
背景預設為黑色的terminal --- Terminator
因為debian下的 Gnome-terminal 背景都是白色的,
長久看了很難過,google 方法之餘,找到了這篇,
該terminal是黑色的,就決定裝了,
還能順便分割window (這應該才是主打的功能阿 XD)
但…跟tmux方法不同阿 冏
長久看了很難過,google 方法之餘,找到了這篇,
該terminal是黑色的,就決定裝了,
還能順便分割window (這應該才是主打的功能阿 XD)
但…跟tmux方法不同阿 冏
emesene 1.6.3 無法登入2011msn的解決方法
Debian 6.0.4 的 stable 依然是使用1.6.3(2010)的,這樣無法登入新版(2011)的msn,
google一下,發現1.6.3還是可以用,只要照下面方法改一下即可:
把 /usr/share/emesene/emesenelib/soap 底下的兩個檔案 templates.py & requests.py 將裡面的 contacts.msn.com 改成 local-bay.contacts.msn.com 這樣就可以解決登入問題。
ref: ptt
2012年2月6日 星期一
2009年4月27日 星期一
How to compile "POSIX Pthread" program in Dev-C++
How to compile "POSIX Pthread" program in Dev-C++
環境: Dev-C++ Version 4.9.9.2
1. Tools -> check for updates/packages
2. Swlwct devpak server : devpaks.org Community Devpaks
3. Check for updates
4. Groups : POSIX -> Pthreads-w32
5. Download select
6. close WebUpdates
7. Tools -> compiler options -> Add the following commands when calling compiler
加上「-lpthreadGC2」即可
ref :
How to compile "POSIX Pthread" program in Dev-C++
環境: Dev-C++ Version 4.9.9.2
1. Tools -> check for updates/packages
2. Swlwct devpak server : devpaks.org Community Devpaks
3. Check for updates
4. Groups : POSIX -> Pthreads-w32
5. Download select
6. close WebUpdates
7. Tools -> compiler options -> Add the following commands when calling compiler
加上「-lpthreadGC2」即可
ref :
How to compile "POSIX Pthread" program in Dev-C++
2008年12月19日 星期五
排版 C code 的好工具
排版 C code 的好工具…
astyel how to use
Download
Linux版的要先compiler
有時從網路上看到的某些大大寫的code可能因為某些關係,
造成排版有些淩亂,
當你複制下來貼上,想要看的時候會很辛苦,
用astyle這工具可以很快整理好排版。
useage in vim:
astyel how to use
Download
Linux版的要先compiler
$ tar -xvf astyle_3.1_linux.tar.gz
$ cd build/gcc/
$ ls
$ Makefile
$ ls ./bin/astyle
有時從網路上看到的某些大大寫的code可能因為某些關係,
造成排版有些淩亂,
當你複制下來貼上,想要看的時候會很辛苦,
用astyle這工具可以很快整理好排版。
useage in vim:
%!astyle --style=bsd
訂閱:
文章 (Atom)
