Ubuntu16.04 Development Environment configuration and common software installation after installation, ubuntu16.04 after installation

Source: Internet
Author: User
Tags jupyter jupyter notebook

Ubuntu16.04 Development Environment configuration and common software installation after installation, ubuntu16.04 after installation

Ubuntu16.04 after installation 1. install common software sogou input method + Editor Atom + browser Chome + Video Player vlc + Image Editor GIMP Image Editor installation + video recording software RcordMyDesktop installation. 2. development Environment configuration. JDK environment configuration + Scala environment configuration + nodejs environment configuration + development tool intellij IDEA installation + Python Data Analysis Environment configuration + Jupyter development tool installation + Python multi-version support at the same time.

1. Install common software in Ubuntu16.04 (sogou input method + editor Atom + browser Chome + Video Player vlc + video recording software RcordMyDesktop). 1. Install sogou Input Method

A. Install the ficx input method and visual Configuration tool.

wxl@wxl-pc:~$ sudo apt-get install fcitxwxl@wxl-pc:~$ sudo apt-get install fcitx-config-commonwxl@wxl-pc:~$ sudo apt-get install fcitx-config-gtk

Go to sogou official website to download the linux Input Method
Sudo dpkg-I/home/wxl/Downloads/sogoupinyin_2.0.0.0078_amd64.deb

Update sudo apt-get upgrade-f

Select fcitx (system settings-langure superter) in Language Support)
Select sougo Input Method in fcitx configuration (or open fcitx configuration in the search box)Only Show Current Language "option" is removed. This check box can be found in Sogou Pinyin. 

1. 2. Install atom setup

Download atom's. deb installation package
Install the package first. A prompt is displayed for installing the dependency.

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

Install required Dependencies

sudo apt-get -f install

Install the package again. Search for atom on the dashboard and you can see that the package is successfully installed.

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

1. 3. Install chome
sudo dpkg -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

. Install the vlc player
sudo apt-get install vlc
1.5.GIMP Image Editor Installation

Similar to photoshop, it is used to edit images.
Search for installation in the App Store Ubuntu Software.

1. 6. Command Summary
# View the package to be installed, for example, view all packages with fcitx wxl @ wxl-pc :~ $ Sudo apt-cache search fcitx # Install the downloaded deb package, for example, install Google Chrome wxl @ wxl-pc :~ $ Sudo dpkg-I/home/wxl/Downloads/google-chrome-stable_current_amd64.deb # Install the package wxl @ wxl-pc in ubuntu :~ $ Sudo apt-get install software name # system (or dependency) Update wxl @ wxl-pc :~ $ Ssudo apt-get-f install

 

2. ubuntu16.04 configure the development environment (JDK environment configuration + scala environment configuration + nodejs environment configuration + development tool intellij IDEA + Data Analysis Python Environment + development tool Jupyter) 2.0. configure temporary variables 2.0.1 for three levels of Ubuntu environment variables, that is, they will become invalid after terminal is exited.
export PATH=${PATH}
2.0.2 single user variable, equivalent to windows "User variable"
vim ~/.bashrc
2.0.3 system variables, which is equivalent to "system variables" in windows-the prompt "Never modify environment variables!
vim /etc/environment
Tip: Ubuntu cannot access the system after the environment is modified.

Press ctrl + alt + F1 to enter the command prompt Mode
Enter the user name and password

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

Modified Back

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

Restart.

/usr/bin/sudo reboot
Tip: The Global Environment Variable file in CentOS is/etc/profile, and the single user environment variable file is :~ /. Bash_profile2.1. JDK environment configuration (system environment variable)

Decompress the package and place it under the/opt/Java path.

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

Configure System Variables

Sudo vim/etc/profile. d/java. sh # add content: 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 logout. Login
In this way, the user variables take effect for the current user.

2.2. Scala environment Configuration

Decompress and 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 # Add 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. Install intellij 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 installation on the Interface

 
Select online Activation
 
Add enable icon
 
Select to install scala-supported plug-ins
 
Permissions are required at the end of the installation.
 
Installation Complete

2.4. Install nodejs

Download the latest nodejs version.
Decompress the package and place it in the/opt path.

tar -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

Wxl @ wxl-pc :~ $ Sudo vim/etc/profile. d/nodejs. sh add 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 take effect. The variable automatically takes effect when the machine is restarted or the user logs out./view the version information.

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

2. 5. Configure the pyton Data Science Development Environment

Ubuntu16.04 comes with pyton2.7.12 (input pyton for viewing) and 3.5.1 + (input python3 for viewing)

5.5.1. Configure python2

Install pip

sudo apt install python-pip
  • 1
  • 1

View the python packages installed in the current environment

pip list
  • 1
  • 1

Update pip

pip install --upgrade pip
  • 1
  • 1
2.5.2 configure pyhton3
sudo apt install python3-pip
  • 1
  • 1

View the python packages installed in the current environment

pip3 list
  • 1
  • 1

Update pip3

pip3 install --upgrade pip
  • 1
  • 1

Tip:/usr/share/python-wheels

2.6. Jupyter notebook installation/

Jupyter notebook is a convenient web-based development tool that can be viewed and adjusted in a timely manner.

2.6.1. Install jupyter notebook for python2
sudo pip install jupyter
  • 1
  • 1

Only one type is installed. Otherwise, the latter overwrites the former type. If you need python2 and python3 to use jupyter notebook together. See section 6.

2.6.2. Install jupyter notebook for python3
sudo pip3 install jupyter
  • 1
  • 1
2.7. Jupyter notebook supports both python2 and python3.

If you want to work with python2 and python3 at the same time as I do, we will introduce how to make the two kernels of different python versions coexist.
If you have installed the jupyter notebook of python2, you need to use the python3 kernel when opening the notebook.

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

If the jupyter notebook of python3 is installed in advance, replace 3 of the command with 2.

Documentation Support

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.