安装的是ubuntu16.04.1,分区和具体细节就不多说了,非常简单
安装完之后要做的几件事:
1.设置root密码
#设置root密码
sudo passwd root
2.检查并更新系统
#ubuntu系统更新到最新版本
sudo update-manager –d
#查询ubuntu版本
#简单查询
cat /etc/issue
#详情查询
sudo lsb_release -a
#查询内核版本
uname -r
3.更新系统中的软件
sudo apt-get update && sudo apt-get dist-upgrade
4.移动Untiy所处位置到底部
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
5.点击图标最小化
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
3.安装媒体解码器(Flash的源太慢了,故放弃之)
sudo apt-get install ubuntu-restricted-extras
4.解决apt-get在后台占用的问题,强制解锁
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
5.在软件中心中安装Unity-tweak-tool
7.安装google chrome
#下载源加入到系统源列表
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
#导入google公钥
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
#更新列表
sudo apt-get update
#安装
sudo apt-get install google-chrome-stable
##安装地址在/opt
8.1安装openjdk -- 解决idea开启时字体渲染的问题
出处:https://github.com/achaphiv/ppa-fonts/tree/master/openjdk-fontfix
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-8-jdk
8.2自建bash启动idea -- 美观的使用界面
#!/bin/sh
# change to your location
IDEA_HOME=/opt/idea-IU-171.4073.35
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Note: Can modify $IDEA_HOME/bin/idea{,64}.vmoptions
# instead of setting here.
# "-Dawt.useSystemAAFontSettings=on" seems worse to me
# "-Dsun.java2d.xrender=true" makes fonts darker
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
-Dsun.java2d.xrender=true"
export GNOME_DESKTOP_SESSION_ID=this-is-deprecate
exec $IDEA_HOME/bin/idea.sh "$@"
10.更新系统的vim -- 上下左右的正常使用
#卸载系统自带的vim
sudo apt-get remove vim-common
#安装最新的vim
sudo apt-get install vim
#在vi中输入:version可以查看vi的版本
11.通过apt-get安装Mysql
#su到root权限下
#安装服务端
apt-get install mysql-server
#安装客户端
apt-get install mysql-client
#安装依赖库
apt-get install libmysqlclient-dev
12.要以root权限启动idea并配置项目mvn目录
13.环境变量
#JAVA_HOME
export JAVA_HOME=/opt/jdk1.8.0_131
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
#MAVEN_HOME
export MAVEN_HOME=/opt/apache-maven-3.5.0
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=${MAVEN_HOME}/bin:$PATH
14.*
15.安装eclipse
安装及桌面创建方式
http://www.linuxidc.com/Linux/2016-07/133482.htm
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
菜单栏消失解决办法
http://www.xitongbuluo.com/jiaocheng/16766.html
export UBUNTU_MENUPROXY=0
桌面图标认证的办法
http://www.tuicool.com/articles/fIBJ32n
sudo nautilus
代码注释提示块黑色背景的修改
http://www.cnblogs.com/JT-L/p/5874840.html