2014年12月23日 星期二

列出Linux 中 Storage 的資訊 hdparm

列出Linux 中 Storage 的資訊 hdparm
# hdparm -I /dev/sda


http://sourceforge.net/projects/hdparm/
http://linux.die.net/man/8/hdparm
http://www.cyberciti.biz/faq/linux-getting-scsi-ide-harddisk-information/

Install Notepad++ in Ubuntu Linux

Install Notepad++ in Ubuntu Linux

教學: https://www.youtube.com/watch?v=kN6dlROzsmw

先安裝 winne
下載 Notepad++ Windows 版本
Ubuntu下
  npp.6.7.1.Installer.exe
  滑鼠右鍵
  以其它方式開啟
  Wine Windows Program Loader



Ubuntu 中安裝 Microsoft fonts

Microsoft fonts in Ubuntu
$ sudo apt-get install ttf-mscorefonts-installer

將Ubuntu終端機之字型設定為 Courier New 字型


將 Eclipse 的字型都修改為  Courier New 字型
都是等同寬, 看得比較習慣


2014年12月19日 星期五

Ubuntu-Eclipse 使用 libaio


安裝 
  apt-get install libaio1
程式開發 
 apt-get install libaio-dev

原始碼套件: libaio (0.3.109-2ubuntu1)
http://packages.ubuntu.com/source/precise/libaio

gcc c++ Link 小寫的 l

所以 libaio 要用 laio

libaio.a libaio.so 放在  /usr/lib/x86_64-linux-gnu
libaio.h 放在  /usr/include/x86_64-linux-gnu

Eclipse 專案設定如下




2014年12月18日 星期四

Ubuntu 螢幕截圖軟體 Shutter


一套是Ubuntu內含的 螢幕截圖



另一套是shutter

sudo apt-get install shutter

或者
軟體中心中搜尋 Shutter字串



Ubuntu Disable Automount

Ubuntu How to disable automount

原文在此
http://askubuntu.com/questions/89244/how-to-disable-automount-in-nautiluss-preferences

在軟體中新找 dconf


或者

1: 執行 apt-get install -y dconf-editor
2: 執行 dconf-editor
3: org -> gnome -> desktop -> media-handling
   uncheck “automount” and “automount-open”

這是關閉"現在登入"的帳號的 automount功能


或者直接下指令
關閉
gsettings set org.gnome.desktop.media-handling automount false
開啟
gsettings set org.gnome.desktop.media-handling automount true