=》
*第一件事是把sohu和osc加入的/etc/apt/sources.list 当前(20150315)我的sources.list文件内容如下(OSC的源不稳定已经被我注释掉):
####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
* 干掉unity
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了。
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-pool
* 确保系统安装来python,gcc,g++,如果没有则安装:
$ sudo apt-get install python
$ sudo apt-get install build-essential
$ sudo apt-get install gcc
$ sudo apt-get install g++
* 安装fcitx五笔输入法input method (see my blog)
* 安装屏幕抓图shutter,在preference中设置系统快捷键(这个很牛逼,即使shutter程序未开启也能使用快捷键)
* 卸载bluetooth
* 卸载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 [email protected]
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中测试 目录规则, 最常用的工具安装在SSD上以加快启动速度(原则是对这些目录写操作越少越好)
/opt/i 专门用来放ide(eclipse,webstorm等)
/opt/jdk 各种版的jdk
机械硬盘(/home, /var)下存入数据文件(写操作多的)
~/ws 工作空间目录(我比较懒,喜欢各种简写)
~/server tomcat等目录