修改 MySql 密碼 終端下輸入: #mysql -u root #mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY “123456″; ’123456‘是root的密碼,可以自由設置,但最好是設個安全點的。 #mysql> quit; 退出mysql
# Ubuntu.cn99.com 更新服務器(江蘇省常州市電信,推薦電信用戶使用。) deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse # mirror.rootguide.org更新服務器 (上海市 電信): deb http://mirror.rootguide.org/ubuntu/ gutsy main restricted universe multiverse deb-src http://mirror.rootguide.org/ubuntu/ gutsy main restricted universe multiverse deb http://mirror.rootguide.org/ubuntu/ gutsy-updates main restricted universe multiverse # Mirror.lupaworld.com 更新服務器(浙江省杭州市電信,亞洲地區官方更新服務器) deb http://cn.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse # ubuntu.cnsite.org 更新服務器(福建省福州市 電信) deb http://ubuntu.cnsite.org/ubuntu/ gutsy main restricted universe multiverse deb-src http://ubuntu.cnsite.org/ubuntu/ gutsy main restricted universe multiverse deb http://ubuntu.cnsite.org/ubuntu/ gutsy-updates main restricted universe multiverse #清華大學 更新服務器(教育網,推薦校園網和網通用戶使用) deb http://mirror9.net9.org/ubuntu/ gutsy main multiverse restricted universe deb http://mirror9.net9.org/ubuntu/ gutsy-backports main multiverse restricted universe deb http://mirror9.net9.org/ubuntu/ gutsy-proposed main multiverse restricted universe 將里面亂七八糟的東西刪了,將你復制的源列表粘貼到里面,保存退出。 在終端輸入 #sudo apt-get update #sudu apt-get upgrade
vim配置 1) 首先安裝 vim 完整版本 #sudo apt-get install vim-full
2) vim中文在線幫助 a. 先下載文檔 vimcdoc-1.5.0.tar.gz b. 解壓, 執行./vimcdoc.sh, vi里面, 執行:help, 就都是中文的了.
3) 啟用本地配置 VIM version 7.1 (說明文檔) #cp etc/vim/vimrc ~/.vimrc #vim ~/.vimrc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " 一般設定 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " 設定默認解碼 set fenc=utf-8 set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936 " 不要使用vi的鍵盤模式,而是vim自己的 set nocompatible