Code Monkey home page Code Monkey logo

ubnt-erx-shadowsocks-libev's Introduction

ubnt-erx-shadowsocks-libev

为基于 mipsel 的 Ubiquiti EdgeRouter X ( 简称 erx ) 交叉编译 shadowsocks-libev Cross complie shadowsocks for erx based on mipsel
Ci: build:

说明

EdgeRouter X 基于 mipsel,由于 erx 存储空间不足,无法直接在机器上编译,但是可以运行基于 mipsel 已编译的程序,所以可以在其他机器上先交叉编译完成在上传到 erx 上执行。

使用方法

仓库中含有 Dockerfile 文件以及脚本文件,可以使用 docker 容器化编译后将生成的文件夹映射到主机上或者使用脚本直接在主机 (ubuntu 16.04) 上编译。

  1. Docker
    使用 Dockerfile build 构建依赖环境镜像,在 docker run 的时候执行 shell 脚本执行编译。 docker 化的目的是只在容器中进行编译,不影响当前操作系统,编译完成后映射到主机文件夹,可以直接使用我构建好的上传到 dockerhub 上的镜像或者自己使用 Dockerfile build。
  • 克隆仓库:

     git clone https://github.com/imMMX/ubnt-erx-shadowsocks-libev.git
    
  • 进入文件夹

    cd ubnt-erx-shadowsocks-libev
    
  • 使用现有镜像:

    docker run -it -v $(pwd):/usr/local/ss immmx/ubnt-erx-shadowsocks-libev
    

    等待编译完成后会自动退出容器,在当前目录下生成名为 erx 的文件夹,其中 bin 文件夹中的就是所需要的二进制文件。

    当然,你也可以自己使用 Dockerfile 直接 build 镜像

    docker build --tag ubnt-erx-shadowsocks-libev .
    docker run -it -v $(pwd):/usr/local/ss ubnt-erx-shadowsocks-libev
    
  1. Shell
    如果不在意对当前系统的影响,可以直接执行脚本编译。脚本基于 ubuntu 16.04 测试,运行方法:
chmod +x build_ss.sh
sh build_ss.sh

ubnt-erx-shadowsocks-libev's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.