Daily use of Linux small notes

Source: Internet
Author: User
Tags curl gz file

One, Oracle VirtualBox installation Linux7.0 fullscreen settings

1. Click the menu bar device –> Assign the optical drive –> Select a virtual disc, locate the Vboxguestadditions.iso in the VirtualBox installation directory, and load the image.
2. Start the Linux system and log into the system as root
3. Execute the Mount command to hang the virtual disc in the/mnt/cdrom, if there is no CDROM directory, create it first.

mkdir /mnt/cdrommount -t auto-r  /dev/cdrom/mnt/cdrom

4. Copy script to/tmp directory

cd/mnt/cdromcp vboxlinuxadditions.run/tmpchmod a+x Vboxlinuxadditions.run

5. The above scripts need to install tools such as gcc,make,kernel-devel and development kits, executable (Please choose the installation tool according to the actual system, CentOS with Yum, others please select separately)

Yum Install GCC GCC GCC GCC  make Kernel-devel

6. Perform the installation (desktop support is not installed here)

sh ./vboxlinuxadditions.run--noexec--nox11

7. Rebooting the system

Shutdown-r now

Second, set up desktop shortcuts

Create a new ****.desktop file in the Desktop directory, paste in the following content, where version is the name of the shortcut, Exec is the execution file, icon for the desktop display icons.

#!/usr/bin/env xdg-open[desktop entry]version=17.2Type=ApplicationName  17.2Comment  for code, markup and proseexec=/usr/local/src/idea-ic-  172.3544. /bin/idea. SH Terminal=falseIcon=/usr/local/src/idea-ic-172.3544. /bin/idea.pngcategories=development;

Third, install the JDK

1. Remove OPENJDK from Linux

See which Java versions are currently available RPM-QA | grep java

Execute Delete command rpm-e--nodeps software name

2. Create a Java directory under the/usr/directory

mkdir/usr/~]# Cd/usr/java

3. Download the JDK and unzip it.

[Email protected] java]# Curl-o http://tar -zxvf jdk-7u79-linux-x64. tar. gz

4. Setting Environment variables

vi /etc/profileadds the following to the profile: #set java environmentjava_home=/usr/java/jdk1. 7 . 0_79jre_home=/usr/java/jdk1. 7. 0_79/Jreclass_path=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/LibPATH = $PATH: $JAVA _home/bin: $JRE _home//etc/profile

5. Verifying JDK Validity

[Email protected] java]# java-version

Java Version "1.7.0_79"
Java (TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)

Iv. installation of Tomcat

1, go to http://tomcat.apache.org/download-80.cgi download Tomcat8 installation file apache-tomcat-8.0.26.tar.gz.

2. Put the apache-tomcat-8.0.26.tar.gz file in the/usr/local directory and execute the following script:

# cd/usr/Local #Tar-ZXVF apache-tomcat-8.0. -.Tar. gz//Unpack the Tarball#RM-RF apache-tomcat-8.0. -.Tar. gz.Tar. gz//Delete a compressed package#MVapache-tomcat-8.0. -Tomcat// Renaming#/usr/local/tomcat/bin/startup.SH //Start Tomcat

3. Browser Access http://localhost:8080/


Firewall issues (I haven't encountered it when I installed it)

1, firewall open 8080 port, add 8080 port to the firewall configuration, do the following:

vi /etc/sysconfig/iptables# Add the following   code -A rh-firewall-18080 -j ACCEPT

2. Restart the firewall

# Service Iptables Restart

Five, install Git

1, in the directory you want to save the execution of Wegt https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz

2, install the associated software. Execute the following command:

    Yum InstallCurlYum Installcurl-develYum Installzlib-develYum Installopenssl-develYum Install Perl      Yum InstallCpioYum Installexpat-develYum InstallGettext-devel

3. Extracting files Tar-z-xv-f compressed files

4. installation files

CD git-xxxx-xx-xx   autoconf  . /Configure  make do  Install  

5. Verify that Git is valid

Git--version

Daily use of Linux small notes

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.