Alice52 / dotfiles

gitee.com
0 stars 0 forks source link

[setup] env #11

Closed Alice52 closed 1 year ago

Alice52 commented 1 year ago

centos:7.6

  1. choose system, then reset root password
  2. yum install git -y
  3. clone dotfiles
  4. execute ./centos/zsh-install.sh
  5. execute ./centos/docker-install.sh
  6. execte install.sh
  7. notice: please us root account: reset root password, and use as root

ubuntu:20.04

  1. choose system, then reset root password
  2. sudo apt-get install git -y
  3. clone dotfiles
  4. execute ./ubuntu/zsh-install.sh
  5. execute ./ubuntu/docker-install.sh
  6. execte install.sh
  7. notice: please us root account: reset root password, and use as root

common

  1. config git

    git config --global user.name 'Alice52'
    git config --global user.email 'zzhang_xz@163.com'
    ssh-keygen -t rsa -C 'zzhang_xz@163.com'
  2. install or upgrade pip3

    pip[3] install --upgrade pip
  3. install docker-compose

    pip[3] uninstall docker-compose
  4. config python3 as default python

    # set python3 default
    update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
    update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
    
    # get list alternatives
    update-alternatives --list python
    # choose version
    update-alternatives --config python