(Open Source工具開發軟體)
http://www.study-area.org/cyril/opentools/opentools/book1.html
2009年9月21日 星期一
2009年9月6日 星期日
Tutorial for Linux
http://blog.arjin.tw/
http://www.study-area.org/menu1.htm
http://linux.vbird.org/
(「The Linux Kernel」, Chiese-Edition)
http://www.cmlab.csie.ntu.edu.tw/~tcwu/doc/Linux/Kernel/frame.htm
(阿偉蘇的程式記事本)
http://www.wretch.cc/blog/awaysu
(callback function??)
http://www.dev.idv.tw/mediawiki/index.php/%E4%BD%95%E8%AC%82callback_function%EF%BC%9F
(HTTP下載檔案)
http://www.wretch.cc/blog/awaysu/24449222
(NAND FLASH ECC校驗原理與實現 [轉])
http://www.wretch.cc/blog/awaysu/25381218
([Linux] Yaffs檔系統結構 [轉])
http://www.wretch.cc/blog/awaysu/25572973
http://www.study-area.org/menu1.htm
http://linux.vbird.org/
(「The Linux Kernel」, Chiese-Edition)
http://www.cmlab.csie.ntu.edu.tw/~tcwu/doc/Linux/Kernel/frame.htm
(阿偉蘇的程式記事本)
http://www.wretch.cc/blog/awaysu
(callback function??)
http://www.dev.idv.tw/mediawiki/index.php/%E4%BD%95%E8%AC%82callback_function%EF%BC%9F
(HTTP下載檔案)
http://www.wretch.cc/blog/awaysu/24449222
(NAND FLASH ECC校驗原理與實現 [轉])
http://www.wretch.cc/blog/awaysu/25381218
([Linux] Yaffs檔系統結構 [轉])
http://www.wretch.cc/blog/awaysu/25572973
PORT及 Process相關資訊
◆ 查詢PORT及Process相關資訊
當您的機器扮演網路伺服器的角色時,多多少少會開啟一些服務,但有時系統安裝後會開啟許多您不知道的服務,這時就有賴您自己做查詢了。 以下是您在做系統管理或網路管理上很實用的一些指令,可以幫您查詢開放的服務或連線的狀態:
.列出 LISTEN 的 TCP socket 及 UDP socket 的資訊
檢視 TCP 及 UDP 的 LISTEN 資訊
# netstat -l
檢視 TCP 的 LISTEN 資訊
# netstat -tl
檢視 UDP 的 LISTEN 資訊
# netstat -ul
檢視 TCP 的 LISTEN 資訊且不解析(IP及PORT)
# netstat -tln
.列出正在使用某連接埠(PORT)的Process PID
列出指定socket的PID
# fuser 25/tcp 137/udp 138/udp 139/tcp
.查詢PID資訊
檢視PID資訊(PID部份請填入上面查詢到的數字)
# ps -ef | grep PID
# ps aux | grep PID
.列出PID開啟的檔案
# lsof -p PID
.列出哪些Processes正在使用這個檔案
# fuser -mv /path/filename
.殺掉所有正在使用某個路徑或檔案的Processes
殺掉所有正在使用 /home 的Processes
# fuser -km /home
==============================================
(Same with Windows series for console-mode)
netstat:
-a 列出所有被使用的port
-b 列出使用該port的程式名稱
-o 列出使用該port的process id
netstat -a -b -o
try it~ 應該就可以知道!!
當您的機器扮演網路伺服器的角色時,多多少少會開啟一些服務,但有時系統安裝後會開啟許多您不知道的服務,這時就有賴您自己做查詢了。 以下是您在做系統管理或網路管理上很實用的一些指令,可以幫您查詢開放的服務或連線的狀態:
.列出 LISTEN 的 TCP socket 及 UDP socket 的資訊
檢視 TCP 及 UDP 的 LISTEN 資訊
# netstat -l
檢視 TCP 的 LISTEN 資訊
# netstat -tl
檢視 UDP 的 LISTEN 資訊
# netstat -ul
檢視 TCP 的 LISTEN 資訊且不解析(IP及PORT)
# netstat -tln
.列出正在使用某連接埠(PORT)的Process PID
列出指定socket的PID
# fuser 25/tcp 137/udp 138/udp 139/tcp
.查詢PID資訊
檢視PID資訊(PID部份請填入上面查詢到的數字)
# ps -ef | grep PID
# ps aux | grep PID
.列出PID開啟的檔案
# lsof -p PID
.列出哪些Processes正在使用這個檔案
# fuser -mv /path/filename
.殺掉所有正在使用某個路徑或檔案的Processes
殺掉所有正在使用 /home 的Processes
# fuser -km /home
==============================================
(Same with Windows series for console-mode)
netstat:
-a 列出所有被使用的port
-b 列出使用該port的程式名稱
-o 列出使用該port的process id
netstat -a -b -o
try it~ 應該就可以知道!!
2009年9月2日 星期三
2009年9月1日 星期二
[Qt] installation on Linux/Ubuntu
The whole Qt programming IDE and tools is called ,"Qt SDK".
My Linux platform has the below parameters:
1. Ubuntu v8.10
2. Default language: ENGLISH
3. Added language: CHINESE, Input-Method included
4. apt-get install minicom
5. apt-get install tftp-hpa
6. apt-get install tftpd-hpa
7. apt-get install gcc
8. apt-get install g++
==================================================
step 1,
Get the Qt SDK from Qt official web-sit, "http://qt.nokia.com".
step 2,
Choose "Qt SDK for Open Source C++ development on Linux/X11 32-bit (or 64-bit)"
step 3,
Download the above (step 2) installation BIN-file into home/[user-account] directory.
qt-sdk-linux-x86-opensource-2009.03.1.bin
step 4,
Copy the "BIN" file into "/home/[user-account]" directory.
step 5,
And make sure that the have the console-command, "sudo chmod 777 BIN-file"
step 6,
In the console, type the following string:
$ ./qt-sdk-linux-x86-opensource-2009.03.1.bin
step 7,
Make sure that the installation directory located in the "/home/[user-account]" directory.
step 8,
For console-using, if programmer wants to have stand-alone compiling and making to Qt, please have the PATH-environment to refer to QT-installed directory (for ex: "/home/[user-account]/qtsdk-2009.03").
step 9,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lfreetype
$ sudo apt-get install libfreetype6
$ sudo apt-get install libfreetype6-dev
step 10,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lgobject-2.0
$ sudo apt-get install gob2
$ sudo apt-get install libsm6
$ sudo apt-get install libsm-dev
$ sudo apt-get install libxrender-dev
$ sudo apt-get install libfontconfig1-dev
$ sudo apt-get install libgtk2.0-dev
alternative useful reference-site for Qt:
http://www.cuteqt.com/blog/?p=17
My Linux platform has the below parameters:
1. Ubuntu v8.10
2. Default language: ENGLISH
3. Added language: CHINESE, Input-Method included
4. apt-get install minicom
5. apt-get install tftp-hpa
6. apt-get install tftpd-hpa
7. apt-get install gcc
8. apt-get install g++
==================================================
step 1,
Get the Qt SDK from Qt official web-sit, "http://qt.nokia.com".
step 2,
Choose "Qt SDK for Open Source C++ development on Linux/X11 32-bit (or 64-bit)"
step 3,
Download the above (step 2) installation BIN-file into home/[user-account] directory.
qt-sdk-linux-x86-opensource-2009.03.1.bin
step 4,
Copy the "BIN" file into "/home/[user-account]" directory.
step 5,
And make sure that the have the console-command, "sudo chmod 777 BIN-file"
step 6,
In the console, type the following string:
$ ./qt-sdk-linux-x86-opensource-2009.03.1.bin
step 7,
Make sure that the installation directory located in the "/home/[user-account]" directory.
step 8,
For console-using, if programmer wants to have stand-alone compiling and making to Qt, please have the PATH-environment to refer to QT-installed directory (for ex: "/home/[user-account]/qtsdk-2009.03").
step 9,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lfreetype
$ sudo apt-get install libfreetype6
$ sudo apt-get install libfreetype6-dev
step 10,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lgobject-2.0
$ sudo apt-get install gob2
$ sudo apt-get install libsm6
$ sudo apt-get install libsm-dev
$ sudo apt-get install libxrender-dev
$ sudo apt-get install libfontconfig1-dev
$ sudo apt-get install libgtk2.0-dev
alternative useful reference-site for Qt:
http://www.cuteqt.com/blog/?p=17
訂閱:
意見 (Atom)