Ubuntu Development Environment Building

Source: Internet
Author: User
Tags aliyun

1. Sogou

sudo add-apt-repository ppa:fcitx-team/nightly

sudo apt-get update

sudo apt-get-f install FCITX

sudo apt-get install FCITX-CONFIG-GTK

sudo apt-get install Fcitx-table-all

sudo apt-get install Im-switch

2. Update the source

cd /etc/apt

sudo cp sources.list Sources.list.bak

sudo vi sources.list

Aliyun:

DEB-SRC Http://archive.ubuntu.com/ubuntu xenial Main restricted

Deb Http://mirrors.aliyun.com/ubuntu/xenial main restricted

DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted

DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial Universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial Multiverse

Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Multiverse

Deb Http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse

DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse

Deb Http://archive.canonical.com/ubuntu xenial Partner

DEB-SRC Http://archive.canonical.com/ubuntu xenial Partner

Deb Http://mirrors.aliyun.com/ubuntu/xenial-security main restricted

DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-security main restricted Multiverse universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Universe

Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse

sudo apt-get update

sudo apt-get upgrade

3.jdk

sudo mkdir/usr/lib/jdk

TAR-ZXVF jdk-8u161-linux-x64.tar.gz

(

tar cvf etcbak.tar etc/ Pack a tar Tar xvf etcbak.tar untie a tartar cvzf etcbak.tar.gz etc/Pack compress a Tartar zxvf etcbak.tar.gz unzip a tar-C: Create a compressed file parameter directive (the meaning of Create);
-x: Unlock the parameter instructions for a compressed file!
-T: View the files inside the Tarfile!
-Z: Do you have the properties of gzip at the same time? i.e. do I need gzip compression?
-j: Do you have bzip2 properties at the same time? i.e. is it necessary to compress with bzip2?
-V: Files are displayed during compression! This is commonly used, but is not recommended for use in the background execution process!
-F: Use the file name, please note, after F to immediately answer the file name Oh! Don't add any more arguments!
-P: Use original file properties (attributes are not changed according to user)
-P: You can use absolute path to compress!
-N: Newer than next date (YYYY/MM/DD) will be packaged in the new file!

)

MV jdk1.8.0_161/usr/lib/jdk/

sudo vi ~/.BASHRC

Export java_home=/usr/lib/jdk/jdk1.8.0_161

Export JRE_HOME=${JAVA_HOME}/JRE

Export Classpath=.:${java_home}/lib:${jre_home}/lib

Export Path=.:${java_home}/bin: $PATH

SOURCE ~/.BASHRC

4.maven settings.xml

<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

Export m2_home=/home/weaponking/develop/apache-maven-3.5.3
Path= $M 2_home/bin: $PATH

5.mysql

sudo dpkg-i mysql-apt-config_0.8.9-1_all.deb

sudo apt-get update

sudo apt-get install Mysql-server

Database directory:/var/lib/mysql/

Configuration file:/usr/share/mysql (Command and configuration file),/etc/mysql (e.g. my.cnf)

Related commands:/usr/bin (mysqladmin mysqldump and other commands) and/usr/sbin

Startup script:/etc/init.d/mysql (startup script file mysql directory)

sudo netstat-anp | grep MySQL

# Start

sudo service MySQL start

# Stop

sudo service MySQL stop

# Service Status

sudo service MySQL status

Mysql-h 127.0.0.1-p 3306 -uroot-p123456

6.git

sudo add-apt-repository ppa:git-core/ppa

sudo apt-get update

sudo apt-get install git

git config--global user.name "name"

git config--global user.email [email protected]

sudo vi. git-crdentials

git config--global credential.helper store

Ubuntu Development Environment Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.