咕噜猫小站

do it, do it right, do it right now

0%

Shadowsocks 安装指南

1. 简介

shadowsocks 原版是使用 python 开发的,后来推出了其他语言实现的版本。这里推荐使用 shadowsocks-libev 版本,这是 C 语言的实现版,运行速度更快,占用资源更少。

shadowsocks-libev 主要包含以下组件:

Git 设置代理

1. 设置代理

全局代理

1
git config --global http.proxy 127.0.0.1:1080

局部代理

在 git 仓库内执行

1
git config --local http.proxy 127.0.0.1:1080

注意:

  • 这里的 127.0.0.1:1080 只是示例,代理地址请按实际情况填写。
  • 无论仓库的地址是 http 还是 https ,都是使用 http.proxy 这个设置。

2. 取消代理

1
2
git config --global --unset http.proxy
git config --local --unset http.proxy

3. 查询当前代理设置

1
2
3
4
5
6
7
8
# 查询全局代理
git config --global http.proxy

# 查询局部代理
git config --local http.proxy

# 查询所有设置
git config -l

Maven 镜像配置

参考: https://maven.aliyun.com

全局

修改 ~/.m2/settings.xml 或者 maven 安装目录下的 conf/settings.xml 文件,在 mirrors 配置中加上如下代码

1
2
3
4
5
6
7
8
9
  <mirrors>
    <!-- 阿里云仓库 -->
    <mirror>
      <id>alimaven</id>
      <mirrorOf>central</mirrorOf>
      <name>aliyun maven</name>
      <url>https://maven.aliyun.com/repository/central</url>
    </mirror>
  </mirrors>

单个项目

在项目的 pom.xml 中添加

Node.js 安装说明

安装

参考资料:

For Debian / Ubuntu

Node.js LTS (v16.x)

1
2
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install nodejs

Node.js v13.x:

1
2
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs

Node.js v12.x:

1
2
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install nodejs

设置 npm 代理

国内使用 npm 速度很慢,你可以使用淘宝的代理服务器来加速下载。

Docker 配置代理

一、 docker 使用国内镜像源

编辑文件 /etc/docker/daemon.json

1
2
3
4
5
6
{
    "registry-mirrors": [
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com"
    ]
}

然后重启 docker 服务

1
systemctl restart docker

二、 docker 配置 http 代理

2020-10-21 补充。推荐使用该方式

参考资料: https://docs.docker.com/config/daemon/systemd/

安装 Office 2019

下载 Office Deployment Tool

Office Deployment Tool 是微软官方的 Office 部署工具,可以直接在官网下载

Office Deployment Tool

Office 部署工具概述

该工具很小,官网下载只有3M不到,运行后会解压出来一个 setup.exe 和一些 xml 配置文件。 这个 setup.exe 就是今天的主角。

ssh config 说明

使用说明

使用 ssh 连接时,经常需要输入命令 ssh user@host 。服务器少的时候还能记在脑中,当服务器多了起来,这就是一个心智负担了。

可以通过增加 ssh config 配置,解决这个问题。