Ubuntu Development Environment Building

Source: Internet
Author: User
Tags bz2

VM and Utuntu Installation

VMware Installation/ubuntu Installation

VMware Environment Configuration

Install Vmware-tools:

TAR-XF xxx.tar.gz

sudo./vmware-install.pl link

Reboot

Ubuntu Environment Configuration

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

sudo apt-get update

sudo apt-get upgrade

Install Ifconfig:

What's the location of the Ifconfig program

Reference:

Ubuntu releases historical version

Ubuntu 14.04.5 LTS (trusty Tahr)

http://cn.ubuntu.com/download/

Vmware

VMware Workstation 12.5.5 VMS

VMware Workstation (virtual machine) v10.0.1 VMS

Ubuntu

Ubuntu 16.04.2 LTS Official download

Ubuntu (bantu system download) v17.04 Official edition XP

Ubuntu 16.04 LTS Official edition

VMware Ubuntu Installation Detailed process installation

JDK Installation

Installing Jdk:link

Add PPA

sudo add-apt-repository Ppa:webupd8team/java

sudo apt-get update

Installing Oracle-java-installer

sudo apt-get install Oracle-java7-installer

Set the system default JDK

sudo update-java-alternatives-s java-7-oracle

Test JDK

Java-version

OpenJDK---Install first

Search JDK Version

Apt-cache Search OpenJDK

sudo add-apt-repository Ppa:openjdk-r/ppa

sudo apt-get update

sudo apt-get upgrade

Performing the installation

sudo apt-get install OPENJDK-7-JDK

=================

sudo apt-get-y install OPENJDK-7-JDK

Configuration

sudo update-alternatives--config java

sudo update-alternatives--config javac

View version

Java–version

JDK installation Rollup

View System Support version

Apt-cache Search OpenJDK

Major JDK versions

Oracle-java7-installer

Oracle-java8-installer

Oracle-java9-installer

Openjdk-7-jdk

Openjdk-8-jdk

Openjdk-9-jdk

Uninstalling the JDK

sudo apt-get remove Oracle-java7-installer

sudo apt-get autoremove openjdk-8-jre

sudo apt-get remove--purge openjdk-8-jre

Switch JDK version

sudo update-alternatives--config java

sudo update-alternatives--config javac

sudo update-alternatives–config javah

sudo update-alternatives–config jar

sudo update-java-alternatives-s java-7-oracle

modifying environment variables

sudo vi ~/.BASHRC

SOURCE ~/.BASHRC

View installed JDK versions

sudo update-java-alternatives-l

View the currently configured JDK version

Java-version

Javac-version

Reference:

Ubuntu installation JDK and environment variable configuration Linux commune

Ubuntu installs JDK 7/jdk8 in two ways + manual Installation

Ubuntu16.04 Installation Openjdk-7-jdk Installation method

Ubuntu command

Compress/Unzip command

TAR Command

TAR-CVF Archive_name.tar directory_to_compress// Package a directory

TAR-XVF archive_name.tar.gz// Unpacking

tar-xvf archive_name.tar-c/tmp/file/ // To specify the unpacking path

TAR. GZ Command

TAR-ZCVF archive_name.tar.gz directory_to_compress// Package a directory

TAR-ZXVF archive_name.tar.gz// Unpacking

TAR. BZ2 Command

TAR-JCVF archive_name.tar.bz2 directory_to_compress// Package a directory

TAR-JXVF archive_name.tar.bz2-c/tmp/extract_here/// To specify the unpacking path

ZIP Command

zip-r archive_name.zip directory_to_compress// Compress a directory

unzip Archive_name.zip// Unzip

Summarize

1 , *.tar with TAR–XVF decompression

2 , *.gz with gzip-d or gunzip decompression

3 , *.tar.gz and *.tgz extract with Tar–xzf

4 , *.bz2 with bzip2-d or decompression with BUNZIP2

5 , *.tar.bz2 with TAR–XJF decompression

6 , *. Z Extract with Uncompress

7 , *.tar. Z Extract with Tar–xzf

8 , *.rar with Unrar e decompression

9 , *.zip with unzip decompression

Reference:

Extract zip,tar,tar.gz and tar.bz2 files under Ubuntu

Reference:

Ubuntuskills Command Daquan

Linux basic commands are very full of

Ubuntu shortcut keys

Serial number

Shortcut keys

Function

1

TAB

Path Auto-completion

2

CTRL + Insert

Copy

3

SHIFT + Insert

Paste

4

CTRL + ALT + f2-f6

Switch to the command interface

5

CTRL + ALT + F7

Switch to the graphical interface

6

Ctrl + Alt + T

Open a Command Window

7

Ctrl + Shift + T

New Open Tab window

8

9

10

11

12

Ubuntu Development Environment Issues

Q1. . deb file installation error--could not get Lock/var/lib/dpkg/lock link

sudo rm/var/cache/apt/archives/lock

sudo rm/var/lib/dpkg/lock

Finally, install the. deb file:

sudo dpkg-i Install package name

Q2. How to fix unable to locate package under Ubuntu

sudo apt-get update link

Reference:

Ubuntu 16.04 LTS successfully compiled Android 6.0 source tutorial

Build your own Android source code (super verbose)

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.