Giter VIP home page Giter VIP logo

ubuntu-config's Introduction

ubuntu-config

使用之前

关闭 swap 分区

修改 /etc/fstab ,注释最后一行,然后重启系统

# vim /etc/fstab
# reboot

调整主机名

# hostnamectl set-hostname new_hostname    # 永久修改

# hostname    # 查询当前主机名

p.s. 主要把新主机名添加到 /etc/hosts

echo "127.0.0.1 new_hostname" >> /etc/hosts

调整时区

根据各自的时区调整,设定为主要的时区

# timedatectl list-timezones   # 查看全部时区
# timedatectl set-timezone "Asia/Shanghai"    # 指定时区
# timedatectl    # 获取当前时区信息

可选方式二:

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

docker 安装源

这里替换到 docker 的 安装源,保证安装合适和后续更新

# step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common

# step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

# Step 3: 写入软件源信息
sudo add-apt-repository "deb http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

# Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io

ubuntu-config's People

Contributors

samzong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.