Skip to content
Go back

My Linux

Updated:  at  11:31

On this page

starship + fish

  1. 安装 fish
  2. 设置默认 shell chsh -s $(which fish)
  3. 安装 starship

解决 nvm, node 不识别

方法 1:

  1. 安装 fisher
  2. 安装 bass
  3. https://github.com/nvm-sh/nvm#fish

方法 2(未尝试):

nvm.fish

pnpm 不识别

执行 pnpm setup

pnpm 命令补全

参考:https://pnpm.io/completion

pnpm completion fish > ~/.config/fish/completions/pnpm.fish

OpenVPN

开机启动

sudo vim /usr/lib/systemd/system/openvpn.service

修改 TypeExecStart,如下:

[Unit]
Description=OpenVPN service
After=network.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart= /usr/sbin/openvpn --config /etc/openvpn/VPNConfigBJ.ovpn
WorkingDirectory=/etc/openvpn

[Install]
WantedBy=multi-user.target

报错

#cipher AES-256-CBC

算法替换:

data-ciphers AES-256-GCM:AES-128-GCM:AES-256-CBC  # 添加 AES-256-CBC 以兼容旧服务端
data-ciphers-fallback AES-256-CBC 

acme

https://github.com/acmesh-official/acme.sh

安装

  1. 安装: https://github.com/acmesh-official/acme.sh/wiki/How-to-install
  2. 自动更新:./acme.sh --upgrade --auto-upgrade
  3. 更换 ca 服务器:./acme.sh --set-default-ca --server letsencrypt

验证域名

CloudFlare 的 dns 验证: https://github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_cf

生成证书

acme.sh --issue --dns dns_cf -d llweb.top -d '*.llweb.top'

安装证书

acme.sh --install-cert -d llweb.top \
--key-file      /etc/nginx/ca/key.pem  \
--fullchain-file /etc/nginx/ca/cert.pem \
--reloadcmd     "service nginx force-reload"

reference

https://cloud.tencent.com/document/product/302/105900


Suggest Changes

Previous Post
design
Next Post
WebAssembly

Most Related Posts

  • WSL 基本使用

    Published:  at  12:40

    WSL (Windows Subsystem for Linux) 的基本安装、配置、使用方法以及常见问题的解决方案。

  • termux

    Published:  at  21:58

    termux

  • My Mac

    Updated:  at  12:55

    my mac

  • Linux Basic Command

    Updated:  at  00:20

    Linux Basic Command

  • My Windows

    Updated:  at  18:48

    my windows