-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: post | ||
title: "ubuntu镜像源安装docker-ce" | ||
date: 2024-09-30 16:41:54 | ||
categories: [linux,ubuntu,docker] | ||
tags: [ubuntu, docker] | ||
draft: false | ||
excerpt_separator: <!--more--> | ||
--- | ||
ubuntu镜像源安装docker-ce | ||
<!--more--> | ||
|
||
命令 | ||
```bash | ||
sudo groupadd docker | ||
sudo usermod -aG docker $USER | ||
newgrp docker | ||
``` | ||
|
||
安装docker-ce | ||
```bash | ||
sudo apt-get update | ||
sudo apt-get install ca-certificates curl gnupg | ||
|
||
sudo install -m 0755 -d /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \ | ||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ | ||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
sudo apt-get update | ||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: post | ||
title: "python中的pip镜像源设置" | ||
date: 2024-09-30 16:44:54 | ||
categories: [linux,ubuntu,python] | ||
tags: [ubuntu,python] | ||
draft: false | ||
excerpt_separator: <!--more--> | ||
--- | ||
python中的pip镜像源设置 | ||
<!--more--> | ||
|
||
命令 | ||
```bash | ||
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
layout: post | ||
title: "ubuntu删除娱乐软件" | ||
date: 2024-09-30 16:31:54 | ||
categories: [linux,ubuntu] | ||
tags: [ubuntu] | ||
draft: false | ||
excerpt_separator: <!--more--> | ||
--- | ||
ubuntu删除娱乐软件 | ||
<!--more--> | ||
|
||
命令 | ||
```bash | ||
sudo apt-get purge unity-webapps-common | ||
sudo apt-get purge thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese gnome-sudoku transmission-common gnome-orca webbrowser-app landscape-client-ui-install | ||
sudo apt-get purge deja-dup | ||
sudo apt-get remove --purge "libreoffice*" | ||
sudo apt-get clean | ||
sudo apt-get autoremove | ||
``` |