zoukankan      html  css  js  c++  java
  • gl-ar750 配置

    镜像下载
    https://docs.gl-inet.com/en/3/release_notes/gl-ar750/
    设置sd卡安装软件
    https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

    选择中继模式 无线连现有的wifi

    免密登录
    /etc/dropbear/authorized_keys

    golang安装常用软件

    golang 编译配置
    GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -o xxx xxx.go

    croc
    https://github.com/schollz/croc.git
    修改为自己的服务器
    vi src/models/constants.go
    //DEFAULT_RELAY = "croc.schollz.com"
    //DEFAULT_RELAY6 = "croc6.schollz.com"
    //DEFAULT_PORT = "9009"
    //DEFAULT_PASSPHRASE = "pass123"

    nps 远程登录
    https://github.com/ehang-io/nps.git
    cd nps/cmd/npc
    go build -o npc npc.go

    vi start_npc.sh


    ln -s /mnt/sda1/work/fhc /usr/bin/fhc
    ln -s /mnt/sda1/work/croc /usr/bin/croc

    安装ss
    shadows*cks-libev
    luci-app-shadows*cks

    1.添加服务器 ss
    2.只配置透明代理
    主服务器 ss
    不用配置 UDP服务器


    设置开机启动
    vi /etc/init.d/mystart


    #!/bin/sh /etc/rc.common
    START=99
    start(){
    /mnt/sda1/work/start_npc.sh
    }
    stop(){
    /mnt/sda1/work/start_npc.sh
    }
    restart(){
    /mnt/sda1/work/start_npc.sh
    }

    cd /etc
    chmod -R 755 init.d/mystart #设置权限,否则无法激活开机启动,提示权限不足
    /etc/init.d/mystart enable #激活开机启动
    /etc/init.d/mystart start #运行start函数启动程序

    编译ipk
    lede https://github.com/coolsnowwolf/lede.git
    GLiNet 官方 SDK https://github.com/gl-inet/sdk.git
    分别 clone 官方 sdk 和 lede 到本地,把 lede/package 插件目录替换 官方 package 目录
    选中 luCI–>Applictions–>luci-app-xxx
    编译
    make package/lean/luci-app-xxx/compile V=99
    编译完 bin 目录下就会有相应编译完的 ipk 包

    opkg install xxx.ipk
    参考链接
    https://aimuch.com/2019/10/12/GL-iNet-AR750-%E5%AE%98%E6%96%B9%E5%9B%BA%E4%BB%B6%E5%AE%89%E8%A3%85SSR-Plus-%E6%8F%92%E4%BB%B6/

  • 相关阅读:
    OOP 三大特点:继承性,封装性,多态性
    PHP 知识点
    ELK安装和配置及常用插件安装
    istio1.2.2 安装及使用示例
    动态扩展磁盘(LVM)
    kuberadm集群升级
    nginx+nginx-upsync-module实现配置动态更新
    kubernetes资源优化
    ingress controller 和ingress使用实例
    helm安装及使用
  • 原文地址:https://www.cnblogs.com/sanmubai/p/15294788.html
Copyright © 2011-2022 走看看