“This is the ninth day of my participation in the First Challenge 2022. For details: First Challenge 2022”

  • πŸŽ‰ statement: as one of the bloggers in AI field, ❀️ lives up to your time and your ❀️
    • 🍊 readers, happy New Year
    • πŸ“† Last updated: January 25, 2022

    πŸ“• Root user installation


    πŸ‘€ Viewing the System

    • Applicable to RedHat and CentOS
    cat /etc/redhat-release
     
    CentOS Linux release 8.22004. (Core) 
    Copy the code
    • Suitable for ubuntu
    cat /etc/issue
    
    Copy the code

    β˜‘οΈ CentOS 8 JDK 11 Installation

    sudo yum install java-11-openjdk -y
    Copy the code

    β˜‘οΈ Ubuntu JDK 11 installation

    sudo apt-get install openjdk-11-jre -y
    Copy the code

    πŸ”’ Checking the version

    java -version
    
    # output:
    
    openjdk version "11.0.13"2021-10-19 LTS OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS) OpenJDK 64-bit Server VM 18.9 (build 11.0.13+8-LTS 11.0.13 + 8 - LTS, mixed mode, sharing)Copy the code

    πŸ”’ Configure environment variables

    • 🍊 CentOS 8 The default JDK installation directory is/usr/lib/jvm/In the directory, the configuration file isvim /etc/profile
    vim /etc/profile
    
    source /etc/profile
    
    Copy the code
    • 🍊 Ubuntu,vim .bashrc
    Back to the current user root directory
    cd 
    vim .bashrc 
    
    source .bashrc 
    Copy the code

    The effect of variables such as JAVA_HOME is as follows

    # User specific config
    
    exportJAVA_HOME = / usr/lib/JVM/jre - 11 - its 11.0.13.0.8-4. El8_5. X86_64export JRE_HOME=${JAVA_HOME}/jre
    export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
    export PATH=${JAVA_HOME}/bin:$PATH
    
    
    Copy the code

    Run the following command to check whether the configuration is successful

    java
    
    javac
    
    java -version
    
    openjdk version "11.0.13"2021-10-19 LTS OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS) OpenJDK 64-bit Server VM 18.9 (build 11.0.13+8-LTS 11.0.13 + 8 - LTS, mixed mode, sharing)Copy the code

    πŸ“• Decompress Linux and install JDK1.8


    Why install the JDK for your own users? In production, if you are not the only one using a server, you will understand that many environments and libraries are installed for your own use and can really solve a lot of problems

    β˜‘οΈ View the current system

    # Ubuntu commandCat /etc/issue Ubuntu 16.04.7lts \n \ L# RedHat, CentOS
    
    cat /etc/redhat-release
    
    Copy the code

    β˜‘ JDK1.8 ️ download

    • www.oracle.com/java/techno…
    • Jdk.java.net/java-se-ri/…

    β˜‘οΈ Decompress installation

    Copy to the server, decompress the installation

    tar -zxvf openjdk-8u41-b04-linux-x64-14_jan_2020.tar.gz 
    
    # Simplify the file name
    
    mv  xx  jdk1_8
    
    # PWD Get the JDK decompression path
    
    pwd
    
    Copy the code

    β˜‘οΈ Configure environment variables

    • Temporary effect, the shell window to run the export JAVA_HOME = / home/moli/usr/local/jdk1_8 can

    • Bashrc in the root directory of the current user

    Vim. bashrc Configures the JAVA_HOME path

    export JAVA_HOME=/home/moli/usr/local/jdk1_8
    export JRE_HOME=${JAVA_HOME}/jre 
    export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib 
    export PATH=${JAVA_HOME}/bin:$PATH
    Copy the code

    .. bashrc makes the configuration take effect

    . .bashrc 
    
    # Or did you learn a new skill?
    
    source .bashrc 
    Copy the code

    Verify success

    If the following three commands are displayed, the configuration is successful
    
    java
    
    javac
    
    java -version
    
    
    # output:
    openjdk version "1.8.0 comes with _41"
    
    Copy the code

    πŸš€πŸš€ So far the gold digging platform has created the following classic blog post πŸš€πŸš€


    Computer vision field, classic blog post

    • 🍊 Use AI to convert photos of good friends into pencil sketches — 🍊2020 U2Net🍊

    • 🍊 NiceGAN environment to build, style migration (with source) | 【 2020 】 CVPR

    • 🍊 multi-stage progressive image restoration – go rain, denoising, fuzzy – effective tutorial (with source) | 【 2021 】 CVPR

    • 🍊 Image inpainting Based on Deep Learning – A Review

    • 🍊 graduation thesis, academic paper writing basic skills and experience – one read

    • 🍊 LaTeX2021 formula preparation, graphic installation, detailed tutorial, a read

    AI learning and deep learning environment construction

    • 🍊 # Ubuntu install CUDa11.2 for current users

    • 🍊 # Linux and Windows setup PIP image source – the most practical machine learning library download acceleration setup

    • 🍊 # Specify the GPU to run and train Python programs, deep learning single card, multi-card training GPU Settings

    • 🍊 # Install Pytorch and Torchvision in Cuda10.0 for Linux

    • 🍊 # Read SSH password login, public key authentication login


    πŸš€πŸš€ Mexic AI


  • πŸŽ‰ as one of the bloggers with the most dry goods in the field of AI, ❀️ lives up to his time and qing ❀️
  • ❀️ If the article is helpful to you, like, comment encourage bloggers every minute to seriously create