【debain】环境笔记

Debain操作系统

环境搭建相关命令行

apt-get update

  • 安装pip
    apt-get install python3-pip

  • 安装git
    apt-get install git

  • 安装web.py

https://github.com/webpy/webpy
python3 -m pip install web.py==0.62

  • 安装sudo
    apt-get install sudo

    • 解决端口占用(Address already in use)问题
      • 获取占用8080端口的进程pid : sudo lsof -i:8080
      • 关闭进程 :kill ${pid}
      • 关闭进程(强) : kill -9 ${pid}
  • 获取当前环境所有进程
    ps -fA | grep Python

  • 安装XZ压缩工具
    apt-get install xz-utils

  • let's encrypt

    • 安装socket
      apt-get install socket

    • 安装acme.sh
      curl https://get.acme.sh | sh

    • 注册acme账户
      acme.sh --register-account -m xxx@163.com

  • trojan

    • 一键安装

    http://linuxwf.com
    bash <(curl -s -L https://github.com/V2RaySSR/Trojan/raw/master/Trojan.sh)

    • 检查trojan是否在运行
      ss -lp | grep trojan

    • 客户端部分

    https://github.com/FelisCatus/SwitchyOmega/releases

    • 若在chrome上设置, 需要确保
      1. trojan.exe is running
      2. plugin setting currect
      3. open proxy on sys setting
    • firefox由于直接支持socket5, 不需要插件直接在浏览器设置即可
原文地址:https://www.cnblogs.com/fishsoup/p/15429913.html