用户工具

站点工具


prog:linuxnet

Linux网络

配置代理

export http_proxy="http://10.10.10.7:18080"
export https_proxy="http://10.10.10.7:18080"

export http_proxy=""
export https_proxy=""

netplan

/etc/netplan/config.yaml

network:
  ethernets:
    enp0s8:
      addresses: [10.0.0.2/24]
      gateway4: 10.0.0.1
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]
      dhcp4: no
    version: 2

aria2

https://github.com/aria2/aria2
https://github.com/mayswind/AriaNghttps://ariang.mayswind.net/zh_Hans/

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh

配置服务器端trackerlist

https://github.com/ngosang/trackerslist/

wget https://github.com/rocket049/aria2-trackers/releases/download/v0.1.0/aria2-trackers.gz
gunzip aria2-trackers.gz && chmod -R 700 aria2-trackers
./aria2-trackers https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_ip.txt

./aria2-trackers

FRPS & C

wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

V2Ray

https://www.v2ray.com/
https://github.com/233boy/v2ray
V2ray Setting

# 原版
bash <(curl -L -s https://install.direct/go.sh)

# 233
bash <(curl -s -L https://git.io/v2ray.sh)

EXSi

cd /vmfs/volumes/5e6659f4-c85f681e-d985-4062310ad74f/
vmkfstools -i openwrt-x86-64-combined-squashfs.vmdk thined.vmdk -d thin
vmkfstools -i openwrt-x86-64-generic-squashfs-combined.vmdk thined.vmdk -d thin

uci set network.lan.ipaddr='10.10.10.45'
uci commit network

jupyter notebook 服务

systemctl daemon-reload

/etc/systemd/system/jupyter.service
[Unit]
Description=Jupyter
After=network.target

[Service]
Type=simple
ExecStart=/home/inkit/anaconda3/bin/jupyter-lab
User=inkit
RestartSec=600
Restart=on-failure

[Install]
WantedBy=multi-user.target

prog/linuxnet.txt · 最后更改: 2020/11/02 12:55 (外部编辑)