mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
Mirrors
This commit is contained in:
parent
25398e3b9e
commit
b6aeb26915
5 changed files with 28 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,5 +1,4 @@
|
|||
.private.env.sh
|
||||
.private.env.ps1
|
||||
.private.env.*
|
||||
nvim/tt.*
|
||||
nvim/.tests
|
||||
nvim/doc/tags
|
||||
|
|
|
|||
7
mirror/set_mirror.ps1
Normal file
7
mirror/set_mirror.ps1
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# pip
|
||||
Set-Alias pip pip3
|
||||
Set-Alias python python3
|
||||
python -m pip install --upgrade pip
|
||||
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
# npm
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
15
mirror/tuna_ubuntu.list
Normal file
15
mirror/tuna_ubuntu.list
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
|
||||
|
||||
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
|
||||
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
|
||||
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
|
||||
|
||||
# 预发布软件源,不建议启用
|
||||
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
|
||||
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
|
||||
5
mirror/ubuntu.sh
Normal file
5
mirror/ubuntu.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
echo "Making Backup of /etc/apt/sources.list..."
|
||||
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||
|
||||
echo "Adding Ubuntu Repositories..."
|
||||
sudo cp ./tuna_ubuntu.list /etc/apt/sources.list
|
||||
Loading…
Add table
Add a link
Reference in a new issue