Code Monkey home page Code Monkey logo

openbsd-install-v2ray's Introduction

openbsd-install-v2ray

Bash script for installing V2Ray in the OpenBSD operating system

該腳本安裝的文件符合 OpenBSD 作業系統中文件系統的佈局:

https://man.openbsd.org/hier

installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl
installed: /usr/local/lib/v2ray/geoip.dat
installed: /usr/local/lib/v2ray/geosite.dat
installed: /etc/v2ray/00_log.json
installed: /etc/v2ray/01_api.json
installed: /etc/v2ray/02_dns.json
installed: /etc/v2ray/03_routing.json
installed: /etc/v2ray/04_policy.json
installed: /etc/v2ray/05_inbounds.json
installed: /etc/v2ray/06_outbounds.json
installed: /etc/v2ray/07_transport.json
installed: /etc/v2ray/08_stats.json
installed: /etc/v2ray/09_reverse.json
installed: /var/log/v2ray/
installed: /etc/rc.d/v2ray

依賴軟體

安裝 Bash 和 cURL

# pkg_add bash curl

下載

# curl -O https://raw.githubusercontent.com/v2fly/openbsd-install-v2ray/master/install-release.sh

使用

  • 該腳本在執行時會提供 infoerror 等訊息,請仔細閱讀。

安裝和更新 V2Ray

# bash install-release.sh

移除 V2Ray

# bash install-release.sh --remove

參數

usage: install-release.sh [--remove | --version number | -c | -f | -h | -l | -p]
  [-p address] [--version number | -c | -f]
  --remove        Remove V2Ray
  --version       Install the specified version of V2Ray, e.g., --version v4.23.0
  -c, --check     Check if V2Ray can be updated
  -f, --force     Force installation of the latest version of V2Ray
  -h, --help      Show help
  -l, --local     Install V2Ray from a local file
  -p, --proxy     Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080

openbsd-install-v2ray's People

Contributors

akinokaede avatar dctxmei avatar kslr avatar loyalsoldier avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

cslily

openbsd-install-v2ray's Issues

install-release.sh: line 404: HELP: unbound vaiable

问题如标题所述
本地下载文件安装

bash install-release.sh -l v2ray-openbsd-64.zip 
+ main -l v2ray-openbsd-64.zip
+ identify_the_operating_system_and_architecture
++ uname
+ [[ OpenBSD == \O\p\e\n\B\S\D ]]
+ case "$(arch -s)" in
++ arch -s
+ BIT=64
+ judgment_parameters -l v2ray-openbsd-64.zip
+ [[ 2 -gt 0 ]]
+ case "$1" in
+ [[ 2 -gt 2 ]]
+ [[ -z v2ray-openbsd-64.zip ]]
+ LOCAL_FILE=v2ray-openbsd-64.zip
+ LOCAL_INSTALL=1
install-release.sh: line 404: HELP: unbound variable

直接安装

bash install-release.sh                              
+ main
+ identify_the_operating_system_and_architecture
++ uname
+ [[ OpenBSD == \O\p\e\n\B\S\D ]]
+ case "$(arch -s)" in
++ arch -s
+ BIT=64
+ judgment_parameters
+ [[ 0 -gt 0 ]]
install-release.sh: line 404: HELP: unbound variable

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.