Ubuntu notes-software installation

Source: Internet
Author: User
Do not want to take notes when reading or reviewing. Enter the topic. Currently, the application installation formats include. deb,. bin, and executable type (the suffix cannot be seen, and the display type is executable when viewing the attribute ). The following methods are available: 1. install the SDK through the source. Open the terminal (1 .. information
Do not want to take notes when reading or reviewing. Enter the topic. Currently, the application installation formats include. deb,. bin, and executable type (the suffix cannot be seen, and the display type is executable when viewing the attribute ). The following methods are available: 1. install the SDK through the source. Open the terminal (similar to cmd in windows. Ctrl + alt + t), and then enter: sudo apt-get install package name press enter, enter the password, this method, a little trouble, because you need to first know the package name of the software to be installed, and release the package before the internet connection. Www.2cto.com 2. software center (software center) or new. These two are like software manager, which has a bunch of software. you can search for the software you want to install, click install, enter the password, and then install it directly. of course, this is on the premise of networking. Then, if you do not want to use the software later, you can uninstall it here. This method is actually a visual form of method 1, and the two file sources are the same. I personally think it is a bit like those app stores. 3. install the. deb file. This type of program is generally downloaded to the deb package on the internet. you can double-click it, install the program through the software center, or open the terminal, enter the deb package location, and run the command: sudo dpkg-I xxxxxx. deb, and then enter your boot password ,.. Get used to it. in linux, the system has strict permission restrictions), and the program will start to install. 4. binfile installation. I checked on the Internet that the. binfile extension is binary, and it is also the machine language obtained after the source program is compiled. Some software can be released as an installation package suffixed with. bin, such as JDK. Installation method: enter the terminal again, enter the directory where the binfile is located, enter the command: sudo chmod + x xxxxx. bin and press enter: sudo./xxxxx. bin and press enter. Enter the password again. OK. The installation process of JDK is attached below (the following process is for copying the internet, so I am too lazy to knock on it myself .)
First, download jdk from the http://java.sun.com, my version is jdk1.6.0 _ 32, I downloaded the binfile, I will download jdk1.6.0 _ 12. binfile is placed in/usr/lib/jvm/java and then executed in shell: Code: sudo chmod u + x/usr/lib/jvm/java/jdk1.6.0 _ 12. bin modify the binfile permission so that it can be executed and then execute the code: sudo/usr/lib/jvm/java/jdk1.6.0 _ 12. bin will show subtitles, continue to press the Enter key until the screen display requires that you enter yes/no, then enter y and press enter, jdk will be decompressed to the folder to get the jdk 1.6.0 _ 12 directory. Now that jdk has been installed, run the code www.2cto.com: sudo vi/etc/environment in environment. the following reference is displayed: PATH = "...... :/usr/lib/jvm/java/jdk1.6.0 _ 12/bin "CLASSPATH =. :/usr/lib/jvm/java/jdk1.6.0 _ 12/libJAVA_HOME =/usr/lib/jvm/java/jdk1.6.0 _ 12
(Here, pay attention to classpath. many of the online resources are directly/usr/lib/jvm/java/jdk1.6.0 _ 12/lib, but there is no ".; ", if not, you can install it successfully, but it has been tested and will be executed later. the main program cannot be found, that is, the java executor cannot be found .. So remember to add it here. Run the code: sudo source/home/ghoul /. bashrc at this time, the environment variables are successfully set (there are many ways to set the environment variables, not to list them one by one) because ubuntu may have the default jdk, such as openjdk, so, to use the jdk we installed by default, perform the following work. Run the code: update-alternatives -- install/usr/bin/java/usr/lib/jvm/java/jdk1.6.0 _ 12/bin/java 300update-alternatives -- install/usr/bin/javac/usr /lib/jvm/java/jdk1.6.0 _ 12/bin/javac 300 www.2cto.com add the installed jdk to the java menu through this step. Then run the code: update-alternatives -- config java to select the system's default jdk through this step, and then enter the code in the shell: java-version, the system uses sun java. (Many people write this on the Internet and execute the version. However, I suggest writing a java program in another directory for actual testing to avoid errors .) If you are a newbie, correct yourself.
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.