2010年2月1日 星期一

分享

Eclipse 開發C++

1.安裝eclipse,做C++開發直接在ubuntu終端機輸入下面指令就可以直接下載已經包含C++開發的CDT

sudo apt-get install eclipse-cdt eclipse

2.新建專案

file->new->project->c++->managed make c++ project




reference:

Eclipse使用技巧分享區:熱鍵、外掛、相關技巧

http://www.javaworld.com.tw/jute/post/view?bid=10&id=53262&sty=1&tpg=1&age=0



Window+GCC+CDT用Eclipse開發C、C++

http://www.javaworld.com.tw/jute/post/view?bid=10&id=40626
分享

Ubuntu常用命令與技巧

Ubuntu常用命令與技巧
sudo apt-get install 軟體名 安裝軟體命令
sudo nautilus 打開文件(有root權限)
su root 切換到“root”

ls 列出當前目錄文件(不包括隱含文件)
ls -a 列出當前目錄文件(包括隱含文件)
ls -l 列出當前目錄下文件的詳細資訊

cd .. 回當前目錄的上一級目錄
cd - 回上一次所在的目錄
cd ~ 或 cd 回當前使用者的宿主目錄
mkdir 目錄名 創建一個目錄
rmdir 空目錄名 刪除一個空目錄
rm 文件名 文件名 刪除一個文件或多個文件
rm -rf 非空目錄名 刪除一個非空目錄下的一切

mv 路經/文件 /經/文件 移動相對路經下的文件到絕對路經下
mv 文件名 新名稱 在當前目錄下改名
find 路經 -name “字符串” 搜尋路經所在範圍內滿足字符串匹配的文件和目錄

fdisk fdisk -l 查看系統分區資訊
fdisk fdisk /dev/sdb 為一塊新的SCSI硬碟進行分區
chown chown root /home 把/home的屬主改成root使用者
chgrp chgrp root /home 把/home的屬組改成root組

Useradd 創建一個新的使用者
Groupadd 組名 創建一個新的組
Passwd 使用者名 為使用者創建密碼
Passwd -d使用者名 刪除使用者密碼也能登陸
Passwd -S使用者名 查詢賬號密碼
Usermod -l 新使用者名 老使用者名 為使用者改名
Userdel–r 使用者名 刪除使用者一切

tar -c 創建包 –x 釋放包 -v 顯示命令過程 –z 代表壓縮包
tar –cvf benet.tar /home/benet 把/home/benet目錄打包
tar –zcvf benet.tar.gz /mnt 把目錄打包並壓縮
tar –zxvf benet.tar.gz 壓縮包的文件解壓恢復
tar –jxvf benet.tar.bz2 解壓縮

make 編譯
make install 安裝編譯好的源碼包
reboot Init 6 重啟LINUX系統
Halt Init 0 Shutdown –h now 關閉LINUX系統

uname -a 查看內核版本
cat /etc/issue 查看ubuntu版本
lsusb 查看usb設備
sudo ethtool eth0 查看網卡狀態
cat /proc/cpuinfo 查看cpu資訊
lshw 查看當前硬體資訊
sudo fdisk -l 查看磁盤資訊
df -h 查看硬碟剩余空間
free -m 查看當前的記憶體使用情況
ps -A 查看當前有哪些進程
kill 進程號(就是ps -A中的第一列的數字)或者 killall 進程名( 殺死一個進程)
kill -9 進程號 強制殺死一個進程

常用apt命令:

apt-cache search package 搜索包
apt-cache show package 獲取包的相關資訊,如說明、大小、版本等
sudo apt-get install package 安裝包
sudo apt-get install package - - reinstall 重新安裝包
sudo apt-get -f install 修復安裝”-f = –fix-missing”
sudo apt-get remove package 刪除包
sudo apt-get remove package - - purge 刪除包,包括刪除配置文件等
sudo apt-get update 更新源
sudo apt-get upgrade 更新已安裝的包
sudo apt-get dist-upgrade 昇級系統
sudo apt-get dselect-upgrade 使用 dselect 昇級
apt-cache depends package 了解使用依賴
apt-cache rdepends package 是查看該包被哪些包依賴
sudo apt-get build-dep package 安裝相關的編譯環境
apt-get source package 下載該包的源代碼
sudo apt-get clean && sudo apt-get autoclean 清理無用的包
sudo apt-get check 檢查是否有損坏的依賴

清理所有軟體緩存(即緩存在/var/cache/apt/archives目錄里的deb包 )
sudo apt-get clean

刪除系統不再使用的孤立軟體
sudo apt-get autoremove

資料來源:http://www.busfly.cn/post/Ubuntu-cmd.html
分享

Install vmtools in Ubuntu 9.04

當你的 Ubuntu 開完機後便可以開始來安裝這個 Tools,點下去之後,桌面則會出現一個裝置,

裝置內有"VMwareTools-8.1.3-203739.tar.gz",

之後解開 VMwareTools-8.1.3-203739.tar.gz 進行安裝

tar zxvf VMwareTools-8.1.3-203739.tar.gz


cd vmware-tools-distrib


uname -r


sudo apt-get install gcc make linux-headers-2.6.28-11-generic
後面紅色這段要換成自己的 Kernel Release


sudo ./vmware-install.pl
分享

Linkin Park - Not Alone






Linkin Park has contributed a BRAND NEW SONG


Download:http://www.musicforrelief.org/
分享

Pushing me away






I've lied to you


the same way that I always do


This is the last smile


that I'll fake for the sake of being with you


[everything falls apart even the people who never frown eventually break down]


the sacrifice of hiding in a lie


[Everything has to end, you'll soon find we're out of time left to watch it all unwind]


the sacrifice is never knowing



why I never walked away


why I played myself this way


now I see your testing me pushes me away



I've tried like you


to do everything you wanted to


this is the last time


I'll take the blame for the sake of being with you



[everything falls apart even the people who never frown eventuallt break down]


the sacrifice of hiding in a lie


[Everything has to end, you'll soon find we're out of time left to watch it all unwind]


the sacrifice is never knowing



why I never walked away


why I played myself this way


now I see your testing me pushes me away
分享

S.H.E 我愛你







依舊讓我感動的MV
分享

Being happy

I read a book recently.

It's name is "The happy door",

it says that being happy is important in our mind.

Being unhappy is like an infectious disease;

it causes people to shrink away from the sufferer.

He soon finds himself alone,miserable and embiiered.

There is,however,a cure so simple as to seem,

at first glance,ridiculous:If u don't feel happy,pretend to be.

It works.

Then the make-believe becomes a reality.

I will try it,

because i want to be happy forever.
分享

Solo Piano Radio



 網站名稱: 
Whisperings : Solo Piano Radio
網站網址: 
http://www.solopianoradio.com/
收聽捷徑:
http://www.solopianoradio.com/free/pianosolo64wma.asx