Ubuntu16.04 post-Installation development environment configuration and common software installation

Source: Internet
Author: User
Tags jupyter jupyter notebook

Ubuntu16.04 after installation 1. Install common software Sogou Input method + editor atom+ browser chome+ video player vlc+ Image editor gimp image editors install + Video recording software Rcordmydesktop installation. 2. Development environment Configuration. JDK Environment configuration +scala Environment Configuration +nodejs Environment Configuration + development tools IntelliJ IDEA installation +python data Analysis Environment configuration +jupyter Development Tools Installation + Python multi-version support at the same time.

1.ubuntu16.04 Install common software (Sogou Input method + editor atom+ browser chome+ video player vlc+ video recording software rcordmydesktop) 1.1. Install Sogou Input Method

A installation Ficx input method and visual configuration tool

[Email protected]:~$ sudo apt-get install fcitx[email protected]:~$ sudo apt-get install fcitx-config-common[email Protec ted]:~$ sudo apt-get install FCITX-CONFIG-GTK

Go to Sogou official website Download the Linux version input method
sudo dpkg-i/home/wxl/downloads/sogoupinyin_2.0.0.0078_amd64.deb

Update sudo apt-get upgrade-f

Select Fcitx in Language support (System settings–langure Superter)
Select the Sougo input method in the FCITX configuration (or open the FCITX configuration in the search box) to Remove the "option" from Show current Language and remove the tick to search for Sogou Pinyin

1.2. Install Atom Setup

Download Atom's. Deb installation package
First package installation, you will be prompted to install dependencies

-i /home/wxl/Downloads/atom-amd64.deb

Dependencies required for installation

sudo apt-get -f install

Once again the package installation is successful, in the dashboard search atom can see, has been successfully installed.

-i /home/wxl/Downloads/atom-amd64.deb

1.3. Installing Chome
-i /home/wxl/Downloads/google-chrome-stable_current_amd64.debsudo apt-get -f installsudo dpkg -i /home/wxl/Downloads/google-chrome-stable_current_amd64.deb

1.4. Install VLC Player
sudo apt-get install vlc
1.5.GIMP Image Editor Installation

Similar to Photoshop, used for picture editing.
Search for installation directly in the store Ubuntu software.

1.6. Summary of commands
#查看想要安装的包,如查看带有fcitx的所有包wxl@wxl-pc:~$ sudo apt-cache search fcitx#安装已经下载好的deb包,如安装谷歌浏览器wxl@wxl-pc:~$ sudo dpkg -i /home/wxl/Downloads/google-chrome-stable_current_amd64.deb#安装ubuntu自带源中有的包wxl@wxl-pc:~$ sudo apt-get install 软件名字#系统(或依赖)更新wxl@wxl-pc:~$ ssudo apt-get -f install

2.ubuntu16.04 Configuration Development Environment (JDK Environment configuration +scala Environment Configuration +nodejs Environment Configuration + development tools IntelliJ idea+ Data Analysis Python environment + development tools Jupyter) 2.0. Ubuntu three levels of environment variables are configured 2.0.1 temporary variables, which are invalidated after exiting terminal.
export PATH=${PATH}
2.0.2 single user variable, equivalent to "User variable" of windows
vim ~/.bashrc
2.0.3 system variables, equivalent to "System variables" in Windows – Tip never modify environment variables!
vim /etc/environment
Tip:ubuntu modified Environment Unable to enter the system

Press CTRL+ALT+F1 to enter command prompt mode
Enter user name and password

/usr/bin/sudo /usr/bin/vi /etc/environment

Change back

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Restart, you can

/usr/bin/sudo reboot
The Global environment variable file under Tip:centos is:/etc/profile, the single user environment variable file is: ~/.bash_profile2.1. JDK Environment configuration (System environment variables)

Unzip and place the/opt/java road through the

-zxf jdk-8u92-linux-x64.tar.gzsudo mv jdk1.8.0_92 /opt/java

Configuring System Variables

sudo vim /etc/profile.d/java.sh#增加内容export JAVA_HOME=/opt/javaexport JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATH

The source variable takes effect and takes effect under the current terminal

source /etc/profile


or logout/user logoff. Login
This allows the user variable to take effect under the current user

2.2. Scala Environment configuration

Unzip, move to/opt

cd /home/wxl/Downloadstar -zxf scala-2.11.8.tgzsudo mv scala-2.11.8 /opt/scala

Scala environment variable Configuration

sudo vim /etc/profile.d/scala.sh#增加内容export SCALA_HOME=/opt/scalaexport PATH=${SCALA_HOME}/bin:$PATH

The source variable takes effect and takes effect under the current terminal

source /etc/profile

View Scala-version

2.3. Installing INTELLJ Idea
tar -zxf ideaIU-2016.2.tar.gzsudo mv idea-IU-162.1121.32 idea

Start the installation script in the/bin directory

./idea.sh

Start installing through the interface


Select online activation

Add an open icon

Choose to install a scala-enabled plugin

Installation needs to be given permission at the end

Installation Complete

2.4. Installing Nodejs

Download the latest version of Nodejs
Unzip and place it under the/OPT path

-xf node-v6.3.0-linux-x64.tar.xz
    • 1
    • 1
sudo mv node-v6.3.0-linux-x64 /opt/nodejs
    • 1
    • 1

Configuration variables

sudo vim /etc/profile.d/nodejs.sh增加内容export NODE_HOME=/opt/nodejsexport PATH=$PATH:$NODE_HOME/binexport NODE_PATH=$NODE_HOME/lib/node_modules
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1
    • 2
    • 3
    • 4
    • 5

Make the variable effective when the machine is restarted or the user logs off automatically when the user takes effect/view version

source /etc/profilenode -v
    • 1
    • 2
    • 1
    • 2

2.5. Configuring the Pyton Data Science development environment

ubuntu16.04 itself comes with pyton2.7.12 (input Pyton viewable) and 3.5.1+ (input python3, viewable)

5.5.1. Configuring Python2

Install PIP

sudo apt install python-pip
    • 1
    • 1

View Python packages that are already installed in the current environment

list
    • 1
    • 1

Update pip

pip install --upgrade pip
    • 1
    • 1
2.5.2 Configuration Pyhton3
sudo apt install python3-pip
    • 1
    • 1

View Python packages that are already installed in the current environment

list
    • 1
    • 1

Update PIP3

pip3 install --upgrade pip
    • 1
    • 1

Tip:/usr/share/python-wheels

2.6. Jupyter Notebook Installation/

Jupyter notebook Convenient web-based development tools that can be browsed and adjusted in a timely manner.

2.6.1. Installing Jupyter for Python2 Notebook
sudo pip install jupyter
    • 1
    • 1

Both install only one, otherwise the latter covers the former, if necessary python2 and Python3 common use Jupyter notebook. Please look at 6.

2.6.2. Installing Jupyter for Python3 Notebook
sudo pip3 install jupyter
    • 1
    • 1
2.7. Jupyter notebook also supports Python2 and Python3.

If you're like me, because the job requires both Python2 and Python3 to work together, then here's how to make two different versions of Python's kernels coexist.
If you have installed the Python2 jupyter notebook, then you want to be able to use the Python3 kernel when you open notebook.

install ipykernelpython3 -m ipykernel install --user
    • 1
    • 2
    • 1
    • 2

If the Python3 Jupyter notebook is installed in advance, replace 3 of the command part with 2.

Document support

Ubuntu16.04 post-Installation development environment configuration and common software installation

Related Article

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.