=》
*第一件事是把sohu和osc加入的/etc/apt/sources.list 當前(20150315)個人sources.list文件內容以下(OSC的源不穩定已經被我註釋掉):php
####sohu sources deb http://mirrors.sohu.com/ubuntu/ precise main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted deb http://mirrors.sohu.com/ubuntu/ precise universe deb-src http://mirrors.sohu.com/ubuntu/ precise universe deb http://mirrors.sohu.com/ubuntu/ precise-updates universe deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe deb http://mirrors.sohu.com/ubuntu/ precise multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted deb http://mirrors.sohu.com/ubuntu/ precise-security universe deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse ####oschina sources #deb http://mirrors.oschina.net/ubuntu/ precise main restricted universe multiverse #deb http://mirrors.oschina.net/ubuntu/ precise-backports main restricted universe multiverse #deb http://mirrors.oschina.net/ubuntu/ precise-proposed main restricted universe multiverse #deb http://mirrors.oschina.net/ubuntu/ precise-security main restricted universe multiverse #deb http://mirrors.oschina.net/ubuntu/ precise-updates main restricted universe multiverse #deb-src http://mirrors.oschina.net/ubuntu/ precise main restricted universe multiverse #deb-src http://mirrors.oschina.net/ubuntu/ precise-backports main restricted universe multiverse #deb-src http://mirrors.oschina.net/ubuntu/ precise-proposed main restricted universe multiverse #deb-src http://mirrors.oschina.net/ubuntu/ precise-security main restricted universe multiverse #deb-src http://mirrors.oschina.net/ubuntu/ precise-updates main restricted universe multiverse ####Following are the default settings ###removed by cyper
* 解決自帶的vi很差用的問題(好比光標鍵很差使)
sudo apt-get install vimhtml
* 幹掉unityjava
ubuntu 12.04 中安裝gnome桌面的命令爲:
sudo apt-get install gnome-session-fallback
也能夠用:
sudo apt-get install gnome-panel
安裝好gnome桌面後註銷從新登陸,在用戶名右邊有一個圖標,能夠選擇使用進入的桌面,我選擇了gnome classic,而後就能夠重返經典的gnome桌面了。
(Cyper的筆記:由於和五筆輸入法有衝突我選擇了gnome classic(no effect),進到桌面後panel中的圖標間隙會比較大,不夠緊湊,能夠在Panel上Alt+右鍵,選擇Properties把Size調小一點,我調的是19px)
後來我升級了五筆輸入法,使用了fcitx nightly build版本,發現使用gnome classic也沒有問題了。classic和classic(no effect)的一個重要區別是,classic中須要在Panel上Fn+Alt+右鍵纔會出來Properties選項,很NC的設計
在刪除unity桌面以前,要把ubuntu默認的登陸界面也改成gnome,命令以下:
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic
這是設置登陸界面爲 gnome classic的,若是你喜歡gnome3,則用:
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
接下來就能夠卸載unity了。python
sudo apt-get -auto-remove purge unity
sudo apt-get -auto-remove purge unity-common
sudo apt-get -auto-remove purge unity-lens*
sudo apt-get -auto-remove purge unity-services
sudo apt-get -y -auto-remove purge unity-asset-poolweb
* 確保系統安裝來python,gcc,g++,若是沒有則安裝:
$ sudo apt-get install python
$ sudo apt-get install build-essential
$ sudo apt-get install gcc
$ sudo apt-get install g++ shell
* 安裝fcitx五筆輸入法input method (see my blog)
* 安裝屏幕抓圖shutter,在preference中設置系統快捷鍵(這個很牛逼,即便shutter程序未開啓也能使用快捷鍵)
ubuntu
* 卸載bluetoothvim
sudo apt-get remove gnome-bluetoothtomcat
sudo apt-get purge "bluez*"網絡
sudo apt-get autoremove
*安裝ff的插件DownloadThemAll, Firebug, RESTClient
* 安裝wps (wps修改office的文件後,其它人在win7上打開排版會比較混亂,浪費時間, 仍是用自帶的LibreOffice)
* 卸載wps:http://my.oschina.net/uniquejava/blog/98436
*安裝FTP客戶端
apt-get install filezilla(and get backup software from my win7 such as jdk7)
*安裝JDK7
install jdk7 (see my blog)
* 安裝open in terminal(這樣能夠在當前目錄右鍵打開terminal)
原文地址是:How To Open Terminal Here In Ubuntu 12.04
操做步驟翻譯以下:
1.打開一個Terminal(ctrl+alt+t),輸入以下指令
sudo apt-get install nautilus-open-terminal
2.使用如下指令來重啓Nautilus
nautilus -q
* 工做須要安裝at&t client
結果期間大膽使用了這裏的命令:http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=368069&start=15
而後 。哈哈,
* 安裝gedit的regex插件(支持regex查找替換)
https://bitbucket.org/brandizzi/gedit-re-search/wiki/Home
* 安裝ssh
sudo apt-get install openssh-server
此時在win7上登陸
$ ssh cyper@192.168.1.101
RSA host key for 192.168.1.101 has changed and you have requested strict checking.
Host key verification failed.
解決辦法是用notepad++打開這個known_hosts文件,刪除與192.168.1.101相關的配置
* 安裝vlc播放器
https://www.videolan.org/vlc/download-ubuntu.html
sudo apt-get install vlc browser-plugin-vlc
*密碼管理
sudo apt-get install keepassx
*安裝SimpleScreenRecorder
* 搭建php開發環境並在PhpStorm中測試
這裏,安裝(應該先修改源,否則安裝的是php5.3,而後升級比較麻煩。
目錄規則, 最經常使用的工具安裝在SSD上以加快啓動速度(原則是對這些目錄寫操做越少越好)
/opt/i 專門用來放ide(eclipse,webstorm等)
/opt/jdk 各類版的jdk
機械硬盤(/home, /var)下存入數據文件(寫操做多的)
~/ws 工做空間目錄(我比較懶,喜歡各類簡寫)
~/server tomcat等目錄
###其它
1. 網絡配置窗口sudo nm-connection-editor