Installing Ubuntu requires configuration files and installs many software, because you do not have a deep understanding of Ubuntu, some problems will reinstall the system. A few more times after summing up some of the commonly used configurations and trampled pits:
Partitioning scheme
/boot boot分区,引导系统程序所需要的文件,安装多个操作系统时用来引导/ 根分区/usr 系统用户工具和程序/home 用户目录swap分区 大小约等于内存的大小,相当于win下的虚拟内存
Change root privilege password
The newly installed Ubuntu root privilege password needs to be activated
sudo passwd
Update the software source
Setting –> software and updating –> changing the server, canceling the 下载源码 option saves a lot of time.
sudosudo apt-get upgrade
Remove unnecessary software
Amazon and other packages in Ubuntu software are useless to us, new deleted in the software
Install Sogou Pinyin
Check if it is installed fcitx ,bssh
sudo-l-l|grep libssh
Go to Sogou Enter the Judge network download installation, restart after the effective
Configure Java
- Download JDK
- Configuring Environment variables
sudo vim /etc/profileaddexport JAVA_HOME=your jdk direxport CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATHEXITsource /etc/profile
- The difference between/etc/environment and/etc/profile
/etc/environmentsetting for the entire system, and for users in the/home /etc/profile directory
If the configuration of the above two files is the same, the configuration in/etc/profile is displayed in the user's desktop environment
Install Git
GIT official website
Git help
$ git help <verb>$ git <verb> --help$ man git-<verb>e.g.git help config
Ssh
SSH with git and github-related configurations
Public and private keys
ssh-keygen-t-C"your email"cd ~/.ssh将id_rsa.-T [email protected].com
Install MySQL
Ubuntu comes with a package version and a community-maintained version of the difference, the general official Community maintenance version is faster than the Ubuntu team version update, so we install the Community version
- Download. deb file, note Select version
- Adding the MySQL APT Repository
sudo dpkg -i mysql-apt-config_w.x.y-zubuntu14.04_all.deb
- During the installation of the package, you'll be asked to choose the versions of the MySQL server and other components (for example, the MySQL Workbench) that's want to install. If you is not sure which version to choose, don't change the default options selected for you. You can also choose None if you don't want a particular component to be installed. After making the choices for all components, choose Apply to finish the configuration and installation of the release pack Age.
- The selected package can be reconfigured
sudo dpkg-reconfigure mysql-apt-config
sudo apt-get update(Update software list) point I view updated those packages
sudo apt-get install package-name
- Installation
sudo apt-get install mysql-server
Starting and stopping the MySQL Server
shell> sudo service mysql status
Stop the MySQL server with the following command:
shell> sudo service mysql stop
To restart the MySQL server, use the following command:
shell> sudo service mysql start
Reference
- MySQL Official Installation Guide
The above is the experience of installing Linux summary multiple times.
Linux Configure for Java Web develop