1.先 update
2.把 /etc/locale.gen 檔案中的 zh_TW.UTF8, uncomment
3.sudo locale-gen
就可以找到 中文台灣
2018年8月23日 星期四
2018年5月31日 星期四
掛載 exfat 格式硬碟
Ubuntu 預設未支援 exfat格式硬碟,但在system中,已備有趨動程式。
執行 sudo apt-get install exfat-fuse exfat-utils
即可。
執行 sudo apt-get install exfat-fuse exfat-utils
即可。
2018年5月16日 星期三
2018年4月30日 星期一
2018年4月29日 星期日
apt-get autoclean, autoremove等的差別
apt-get autoremove :
删除为了满足其他软件包的依赖而安装的,系统会自动卸载这些不再需要的软件包
删除为了满足其他软件包的依赖而安装的,系统会自动卸载这些不再需要的软件包
apt-get remove [+软件包名称]:
删除已安装的软件包(保留配置文件)。
apt-get –purge remove [+软件包名称]:
删除已安装包,同时删除配置文件。
删除已安装的软件包(保留配置文件)。
apt-get –purge remove [+软件包名称]:
删除已安装包,同时删除配置文件。
autoclean:
删除已经卸载的软件包的.deb安装文件
删除已经卸载的软件包的.deb安装文件
apt-get clean:
删除安装了的软件包的安装包(如果你确定这些安装包不会再用)。
删除安装了的软件包的安装包(如果你确定这些安装包不会再用)。
clean:
类似上面的命令,但它删除包缓存中的所有包。
----------
參考:https://blog.csdn.net/songyu0120/article/details/45771349
类似上面的命令,但它删除包缓存中的所有包。
----------
參考:https://blog.csdn.net/songyu0120/article/details/45771349
2017年6月1日 星期四
2017年4月15日 星期六
中文字形可放位置
/usr/share/fonts/truetype/
-------------------------------------
For system wide installation, copy the fonts to
make sure
-------------------------------------
For system wide installation, copy the fonts to
/usr/share/fonts and runsudo 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
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 ppa-purge ppa:kdenlive/kdenlive-stable
參考:https://kdenlive.org/download/
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 apt-get update
sudo apt-get install kdenlive
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.
------------------------------------------
選單內設定:
主選單 --> 設定值 --> 滑鼠與觸控板 --> 觸控板 --> 啟用這個裝置
同時可設定 打字時停用觸控板 的間隔時間
synclient touchpadoff=0 : 開啟觸控板
下面這個好用:
syndaemon -d : 啟動 syndaemon 於背景。
參數:
-i
2016年12月13日 星期二
2016年10月17日 星期一
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
最基本的測試方法是利用 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
訂閱:
意見 (Atom)
