Analysis of Android source code (ii)--ubuntu root,git,vmware Tools, installation Input method, theme beautification, Dock, installation JDK and configuration environment
Next, on the film is mainly introduced some of the installation tools of the small knowledge Point Android source Analysis (a)--vmware Workstation Pro and Ubuntu Kylin 16.04 lts installation configuration, in fact Ubuntu Kylin 16.04 LTS is just for the sake of experience, we still use Ubuntu14.04 for stability
Here to provide a domestic image of the download link, you can use thunder, download the suffix after the conversion to ISO can be
- Download Link: Http://ftp.sjtu.edu.cn/ubuntu-cd/14.04/ubuntu-14.04-desktop-amd64.iso
Here, when we installed Ubuntu, you will find his language is English, here to teach you how to change to Chinese, many people may not notice this detail, we directly open the settings-language support, although it is because, but these two words I believe hard to fall
We choose to install/uninstall the language
Find the Chinese, you there should be displayed Chinese, seemingly have the difference between the simplified monomer, you directly click on the bottom right corner of the download on the line, after the download is in the language list of the bottom of the
You can double-click and drag to the top, then restart the computer
Okay, let's do it.
I. Permissions (Root)
We as a developer, how can a privilege not, here directly can get root permissions, specifically how to do, Application-terminal, shortcut key is: ctrl+alt+t, and then enter
sudo passwd root
You need to enter three times here
- Password for LGL: Enter the Administrator password
- Enter new UNIX password: Enter the root password
- Retype new UNIX password: lose the root password again
When the password updated successfully is displayed, it indicates that the root password was set successfully.
But don't be impatient, here is just set the root password, we are still ordinary users, we just enter the terminal
su
You can switch from the root user.
Everyone knows # is the meaning of the root permission, so far, our permission is OK
Two. Install Git
Since we want to download the source code to compile, then we have to use git, why, because Google hosted the source on GitHub, how to install it? That's an order.
apt-get install git
Apt-get is to get the software source and then install Git
You see, he found git, asked if we could install it, we entered Y, and then press ENTER.
Wait a few minutes, after the installation is complete, we can enter
version
To see the git version.
Three. Installing VMware Tools
This tool is for our virtual machines and windows to connect, can drag each other files, but generally after the installation of virtual machine, will automatically install VMware Tools, you can try to drag files, here I worry that someone may not have installed, so I will say again, First click on the menu of our virtual machine
Here I have installed, the words that are not installed should be shown in the VMware Tools installation, we will see the files in the CD directory
We dragged this VMware Tools installation package to the desktop, which made it a little easier and then entered our desktop on our terminal
As you can see here, we are first
cd Desktop/
Went to the desktop, and then the red part here is our installation package, here we can go through the command to unzip him, but I directly simple rude, double-click the point to open the drag out, you can see a blue folder, we then
cd vmware-tools-distrib/
Into this directory, a bunch of directories
We enter
./vmware-install.pl
To install tools
Here, the installation is over.
Four. Install Sogou Input Method
Why this, or because Ubuntu is not everyone will use, in order to let you avoid some unnecessary trouble, I would like to say, as long as the official website download Sogou Input Method Linux installation package, It's the. Deb end, we just double click, then he automatically jumps to the store to search for this app, we just need to click Install, then enter the administrator password to do it
- : http://pinyin.sogou.com/linux/
Here, one thing to note is that after installing the configuration, we need to set up-language support
Change to FCITX, then log off the account, login again can use, you ask, this style you have not seen, yes, this is the theme of Win10, we go on how to install some topics
Five. Theme beautification
Special effects I do not say, no need, this main figure is nothing more than when we hit the code when the mood relaxed, the theme can go online or paste it inside to find, I contribute three
- : Link: Http://pan.baidu.com/s/1jIpRYZG Password: UDL1
They are the same, the. deb suffix file that you double-click on to install and then download a unity Tweak Tool in the store
Go to the theme and then freely select the theme you just installed, the effect
Six. File sharing
File sharing this feature is not very useful after VMware Tools is available, and we can open it in the virtual machine settings and configure
Remember to tick always enable Oh!
Seven. Dock
Everyone should be familiar with the hover panel of Mac computer, that is, the menu bar at the bottom of the screen, Ubuntu can do it, the dock software a lot, we here to download a random, we in the store search cairo-dock, and then install
Here to indicate whether to start the 2D acceleration, we look at their own situation, and then we installed the success, but after the installation of the style is too ugly, we need to configure the
We right-click Configure, here choose to enumerate all the topics
The theme I chose here is clear, let's take a look at the effect
I asked, handsome not handsome, of course, the subject so much, you can choose their own favorite
Eight. Installing the JDK
Old stuff, we go to the official website
- Official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Here, I'll put it on the desktop and unzip, get the file is this look yo
You can either double-click the unzip or enter the command
sudo tar xvf 文件名
You can put it anywhere you like, but the path to remember is to configure the environment variable for later use, and then enter it in the terminal
sudo gedit ~/.bashrc
He will open the script configuration file, and you add it at the end
export JAVA_HOME=/home/lgl/桌面/jdk1.8.0_91export CLASSPATH=${JAVA_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATH
Here's the java_home is your path, OK we, let's check, in the terminal input
java -version
Can see
Similarly, the input Javac
is not the same as windows, to this, I believe you have a skilled use of Ubuntu some simple operation, we will download the next article and compile the Android source code
My group, the Magical Journey to Android: 555974449, Welcome to come in exchange technology!
Analysis of Android source code (ii)--ubuntu root,git,vmware Tools, installation Input method, theme beautification, Dock, installation JDK and configuration environment