2017年6月1日 星期四

檢查硬碟壞磁區

1. sudo fdisk -l
2. sudo badblocks -v /dev/sda10 > badsectors.txt
參考: https://www.tecmint.com/check-linux-hard-disk-bad-sectors-bad-blocks/

2017年4月15日 星期六

中文字形可放位置

/usr/share/fonts/truetype/
-------------------------------------
For system wide installation, copy the fonts to /usr/share/fonts and run
sudo fc-cache to rebuild the font cache, or for user local installation,
make sure ~/.fonts exists, copy them into there, then rebuild the font cache.

2017年1月2日 星期一

Inkscape 0.91閃退問題

inkscape 0.91容易閃退問題解決 :
原來是繁體中文的語系檔的bug,難怪英文界面沒問題。
解決方法:
先下載修改過的 inkscape.zip 解壓縮後,複製「inkscape.mo

◎在Linux下,找到下面這個路徑,取代原檔。
/usr/share/locale-langpack/zh_TW/LC_MESSAGES/inkscape.mo
/usr/share/locale/zh_TW/LC_MESSAGES/inkscape.mo 
參考網址:http://jackedu.blogspot.tw/2016/03/inkscape-091.html

2016年12月23日 星期五

kdenlive ppa 新增

For Ubuntu >= 15.04 and other *buntu based distros like LinuxMint you can download latest Kdenlive from our official PPA’s:
sudo add-apt-repository ppa:kdenlive/kdenlive-stable
sudo apt-get update
sudo apt-get install kdenlive
Note: you can easily remove our PPA and revert back to official distro package using:
sudo ppa-purge ppa:kdenlive/kdenlive-stable
參考:https://kdenlive.org/download/

2016年12月15日 星期四

開機自動啟動程式

執行「工作階段與初始啟動」,選「應用程式自動啟動」-->「加入」
將要執行的指令加入。

關掉筆電的觸控面板

synclient touchpadoff=1 : 關閉觸控板
synclient touchpadoff=0 : 開啟觸控板
下面這個好用:
syndaemon -d : 啟動 syndaemon 於背景。
參數:
-i How many seconds to wait after the last key press before enabling the touchpad. (default is 2s). 
-d Start as a daemon, ie in the background. 
-t Only disable tapping, not mouse movements, in response to key- board activity.
------------------------------------------
選單內設定:
主選單 --> 設定值 --> 滑鼠與觸控板 --> 觸控板 --> 啟用這個裝置
同時可設定 打字時停用觸控板 的間隔時間

2016年12月13日 星期二

2016年10月17日 星期一

格式化 usb碟

1.先 dmesg 找出 usb device.
若找出為 [sdb].
2.先 sudo umount /dev/sdb
3.格式化為fat格式: sudo mkfs.vfat /dev/sdb -I

2015年12月16日 星期三

硬碟檢測

硬碟檢測指令
最基本的測試方法是利用 badblocks (8) 來檢測硬碟是否存在壞軌.
預設的非破壞性唯讀測試 (non-destructive read-only test),
以避免寫入測試時異常,造成磁碟重置離線。
badblocks -vs /dev/sda

若是可承受資料損失,可以使用 「-n」 的非破壞性寫入式測試。
這基本上會嘗試寫入資料,再三確認硬碟運作正常。
badblocks -nvs /dev/sda

備份整個硬碟資料
dd if=/dev/sda of=sda.img

如果確認整顆硬碟資料都不需要保留,
可以直接下達一下 dd 指令,重寫整顆硬碟。

dd if=/dev/zero of=/dev/sda

或者在格式化時下達 -c -c 參數,讓 mkfs.ext3 順便檢查壞軌。
mkfs.ext3 -c -c /dev/sda1

讓 e2fsck 用 badblocks 去作壞軌檢查,指令如下
e2fsck -k -c  -c /dev/sda1

如此 e2fsck 會將壞軌寫入檔案系統列表中,
可以用下述指令查詢目前壞軌列表
dumpe2fs -b /dev/sda1

# 參考 : http://sfs.chc.edu.tw/~chi/blog/index.php?load=read&id=298

2015年11月29日 星期日

查詢硬體資訊 (inxi)

# 轉載自 http://xubuntu.org/news/inxi/
Information typeCommand, usage, and more information
System informationinxi -b and inxi -F
The b option output basic system information, while the Foption will output full system information.
Hard drive detailsinxi -D
Outputs information on your hard drives, like make, model and size
Hard drive partitionsinxi -p
Outputs information about all mounted partitions, mount points and space usage
Networkinginxi -n and inxi -ni
Outputs information about the details of the network interfaces and configuration. When the i option is used withn, Inxi will output IP address details (for both WAN and LAN).
Hardwareinxi -AG and inxi -h
The A and G options output information about the audio and graphics hardware respectively. You usually want to use them together. The h option outputs you the full list of options you can use to get even more information about your hardware.

2015年11月13日 星期五

查硬體資訊

可用 lshw 這程式來檢查的話,可用下面的指令來安裝,因為是指令式的程式,所以,裝好也不會出現在選單上。
apt-get install lshw

lshw 可以產出多種報表的格式,lshw 可以產出文字檔,HTML 和 XML 等三種格式,HTML 格式比較方便人來看,而 XML 格式則是可以方便程式來對產出的報表做後續的處理,下面就是分別產出三種格式的指令。

sudo lshw > hwmessage.txt

sudo lshw -html > hwmessage.html

sudo lshw -xml > hwmessage.xml
--
參考「阿舍的隨手記記」資料 : http://www.arthurtoday.com/2012/11/lshw-tutorial.html

2015年8月11日 星期二

2014年5月8日 星期四

螢幕錄影 Kazam 的操作

註: (遇到Kazam無法錄下螢幕畫筆的狀況 . 改用SimpleScreenRecord來操作.)
操作過程中的熱鍵 (hotkeys)
進入Kazam之後,Kazam 1.3.2 此一版本,提供以下的鍵盤按鍵組合,來讓Kazam整個操作的過程更為方便:
Control+Super+r:開始擷取畫面,其中Super鍵一般是指鍵盤上的「Windows圖示」的那一個按鍵。r 鍵代表的是 recording (錄攝) 的意思。
Control+Super+f:結束畫面的擷取。f 鍵所代表的是finish (結束) 的意思。
Control+Super+p:暫停畫面的擷取。p 鍵所代表的是 pause (暫停) 的意思。
Control+Super+s:顯示Kazam的主程式視窗,s 鍵代表的是 show (顯示) 的意思。
Control+Super+q:結束Kazam主程式的執行,q 鍵代表的是 quit (退出離開) 的意思。

上述的熱鍵,目前使用的經驗是只能在Host主機上有效,若是由VMware Workstation 9.0 進入虛擬機器後,這些按鍵就無效了。也就是說,若想要錄攝虛擬機器中的操作畫面,則要先在Host主機上,亦即Linux系統上,先點按Kazam的 capture按鈕後,開始錄製,再進入虛擬機器的畫面進行相關的操作,直到操作完成後,再回到Host主機Linux系統,然後再按 Control+Super+f 來停止錄影,並繼續後續另存新檔或進行影片編輯的作業。因此,當由虛擬機器回到Host主機Linux系統時的操作過程也會被錄攝起來,這是目前似乎無法 避免的狀況,只好再由影片編輯軟體來剪輯已儲存的影片檔了。
[取自: http://xx3d2ybnf.pixnet.net/blog/post/114144795-linux-ubuntu-12.04%E8%9E%A2%E5%B9%95%E7%95%AB%E9%9D%A2%E6%93%B7%E5%8F%96%E8%BB%9F%E9%AB%94%E5%A5%97%E4%BB%B6-kazam]

2014年5月7日 星期三

Xubuntu 上的螢幕畫筆

安裝 gromit-mpx 即可使用螢幕畫筆。
<Pause>: 啟動/停止 畫筆功能。
滑鼠左鍵: 紅筆繪圖
<Control>+ 滑鼠左鍵:黃筆繪圖
<Shift>+ 滑鼠左鍵:藍筆繪圖
滑鼠中鍵:繪綠色箭頭
滑鼠右鍵:橡皮擦
<Control>+<Pause>: 顯示/隱藏  螢幕所繪筆跡。
<Shift>+<Pause>: 清除螢幕所繪筆跡。
<Alt>+<Pause>:  離開 gromit-mpx 程式


原先安裝 gromit, 但使用時, 會從螢幕左上角為起點, 畫到滑鼠點處, 且後面畫的線, 全部都連接,不能正常使用。移除後改裝 gromit-mpx 就OK。

2014年4月20日 星期日

Xubuntu 手記

1. <Super> + t :啟動 Terminal
2. 於 檔案管理員 之資料夾視窗內, 按滑鼠右鍵, 有「在此開啟終端機」選項。終端機開啟後, 即直接在此資料夾之路徑內。
3. 位於頂端的上面板為「面板0」, 可自行加工具, 也可再增加面板。(在面板列按右鍵)
4. 面板寬度、自動隱藏、透明狀況等, 都可自行設定。
5. 聲音控制無效: Terminal 輸入 pavucontrol, 進行調整。