ubuntu tips

1. 使用live-cd 進入 root帳號
ubuntu@ubuntu:~$ sudo su -

root@ubuntu:~#


2. ubuntu grub 調整系統啓動順序

cd  /etc/grub.d

ls -l

-rwxr-xr-x 1 root root 6831 2010-10-06 20:23 00_header
-rwxr-xr-x 1 root root 1481 2010-10-06 20:05 05_debian_theme
-rwxr-xr-x 1 root root 4757 2010-10-06 20:23 10_linux
-rwxr-xr-x 1 root root 5028 2010-10-06 20:23 20_linux_xen
-rwxr-xr-x 1 root root 1588 2010-09-25 01:14 20_memtest86+
-rwxr-xr-x 1 root root 6933 2010-10-06 20:23 30_os-prober
-rwxr-xr-x 1 root root  214 2010-10-06 20:23 40_custom
-rwxr-xr-x 1 root root   95 2010-10-06 20:23 41_custom
-rw-r--r-- 1 root root  483 2010-10-06 20:23 README

30_os-prober即爲安裝的windows系統

cp 30_os-prober 02_os-prober 

這樣windows就在ubuntu啓動前面

再update-grub  或者 grub-mkconfig

參考

blog.csdn.net/fangkailove/article/details/6917388


3. 怎樣打開64位 Ubuntu 的32位支持功能

jingyan.baidu.com/article/7082dc1c539c15e40a89bd3e.html


4. 解決Ubuntu TXT文檔編碼問題(中文爲亂碼)

4.1 gedit解決方法1

打開Gedit-> 打開Open對話框-> 選擇Character encoding,add "Chinese Simplified (GBK)" -> 關閉Gedit重啓,再次打開選用GBK編碼

4.2 gedit解決方法2

在終端輸入sudo apt-get install dconf-tools 安裝dconf-editor
然後輸入命令dconf-editor打開
dconf-editor下 org--->gnome--->gedit--->preferences--->encodings--->auto-detected
最前面添加
'GB18030', 'GB2312', 'GBK',
註銷之後OK

參考:www.linuxidc.com/Linux/2011-12/48867.htm

4.3 vim解決方法設置如下:gedit ~/.vimrc

加入以下內容:

let &termencoding=&encoding
set fileencodings=utf-8,gb18030,gbk,gb2312,big5

(這樣設置後對其他編碼可能不兼容,自己主要使用什麼編碼自己權衡)


5. ubuntu 密碼修改

sudo passwd user(root或對應的用戶名)


6.ubuntu14.04輸入法安裝

自帶的中文輸入法不能正常使用。在ubuntu software center 搜索關鍵字ibus,找到IBus Pinyin Setup,移除重裝,再註銷就可以正常使用了。

個人感覺IBus Pinyin 不怎麼好用,安裝了googlepinyin 感覺也差不多,估計是在windows下用習慣了sougou的原因^_^

sogou輸入法安裝詳見博客 ubuntu14.04tips(markdown試用)


7.ubuntu14.04截圖工具使用

按鍵盤上pirnt鍵截取整個桌面(prt sc sysrq),ctrl+shift+print截取區域,截取完之後在clipboard中,打開libreoffice writer -》paste;右鍵save graphic可以存爲圖片(沒有找到對圖片的編輯功能.....)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章