Ubuntu development environment to build Tutorial

Ubuntu development environment to build Tutorial

This article Original address: https: //sitoi.cn/posts/18425.html

Update

sudo apt upgrade
sudo apt update

Generate native key

ssh-keygen -t rsa -C "[email protected]"

The default location: ~/.ssh/

Install vim

sudo apt install vim

Free sudo password

echo -e 'Defaults:shitao !requiretty\nshitao ALL = (root) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/shitao

install software

Visualization System Monitoring htop

sudo apt install htop

ssh remote link software

sudo apt-get install openssh-server openssh-client

jdk java development environment

sudo apt install openjdk-8-jdk 

python pip Development Tools

sudo apt install python3 python3-pip

pip upgrade

pip3 install --upgrade pip --user

curl

sudo apt install curl

Install network-related packages

sudo apt install net-tools

docker installation

sudo apt install docker.io

ibus-pinyin Chinese input method

sudo apt install ibus-pinyin
  • Reboot the system

  • Enter the language setting

  • Select Chinese input method chinesand then findpinyin

chromium browser

sudo apt install chromium-browser

All install all of the above software

sudo apt install htop openssh-server openssh-client openjdk-8-jdk python3 python3-pip curl net-tools docker.io ibus-pinyin chromium-browser

Installation nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Install npm

nvm install node

Replacement source

Replacement pipy source

mkdir ~/.pip
vim ~/.pip/pip.conf

File Examples:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Replace the maven source

Into the mavenfolder, conffind the directory settings.xmlfile

sudo vim /usr/share/maven/conf/settings.xml

Configured mirrorschild nodes, add the followingmirror

<mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>central</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

Npm replacement source

npm config set registry https://registry.npm.taobao.org

Replace the docker source

sudo vim /etc/docker/daemon.json
{
    "insecure-registries":[

    ],
    "registry-mirrors":[
        "https://registry.docker-cn.com"
    ]
}

Replace the gem source

sudo gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

Guess you like

Origin www.cnblogs.com/sitoi/p/11819633.html