{"id":13457073,"url":"https://github.com/v2fly/fhs-install-v2ray","last_synced_at":"2026-10-18T23:08:24.354Z","repository":{"id":37371856,"uuid":"246751044","full_name":"v2fly/fhs-install-v2ray","owner":"v2fly","description":"Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd","archived":false,"fork":false,"pushed_at":"2024-11-05T11:40:15.000Z","size":223,"stargazers_count":6801,"open_issues_count":17,"forks_count":1454,"subscribers_count":97,"default_branch":"master","last_synced_at":"2026-10-17T01:47:51.352Z","etag":null,"topics":["installer","script","v2ray"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/v2fly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-12T05:27:28.000Z","updated_at":"2026-10-16T19:06:46.000Z","dependencies_parsed_at":"2023-02-10T08:31:15.260Z","dependency_job_id":"84dc1e36-061d-4480-8725-98ea280d8ce7","html_url":"https://github.com/v2fly/fhs-install-v2ray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/v2fly/fhs-install-v2ray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2fly","download_url":"https://codeload.github.com/v2fly/fhs-install-v2ray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/sbom","scorecard":{"id":914009,"data":{"date":"2025-08-11","repo":{"name":"github.com/v2fly/fhs-install-v2ray","commit":"cb39ee88249d47ed1c601dd5d3d94758d8835629"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 9/22 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/sh-checker.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sh-checker.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/v2fly/fhs-install-v2ray/sh-checker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sh-checker.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/v2fly/fhs-install-v2ray/sh-checker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sh-checker.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/v2fly/fhs-install-v2ray/sh-checker.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sh-checker.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/v2fly/fhs-install-v2ray/sh-checker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sh-checker.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/v2fly/fhs-install-v2ray/sh-checker.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T20:19:14.306Z","repository_id":37371856,"created_at":"2025-08-24T20:19:14.306Z","updated_at":"2025-08-24T20:19:14.306Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38343411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["installer","script","v2ray"],"created_at":"2024-07-31T08:01:32.745Z","updated_at":"2026-10-18T23:08:24.114Z","avatar_url":"https://github.com/v2fly.png","language":"Shell","funding_links":[],"categories":["Shell","字体","v2ray","🌐 V2Ray 核心 \u0026 服务端"],"sub_categories":["python lsp"],"readme":"# fhs-install-v2ray\n\n\u003e 欲查阅以简体中文撰写的介绍，请访问：[README.zh-Hans-CN.md](README.zh-Hans-CN.md)\n\n\u003e Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd\n\n該腳本安裝的文件符合 [Filesystem Hierarchy Standard (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)：\n\n```\ninstalled: /usr/local/bin/v2ray\ninstalled: /usr/local/bin/v2ctl\ninstalled: /usr/local/share/v2ray/geoip.dat\ninstalled: /usr/local/share/v2ray/geosite.dat\ninstalled: /usr/local/etc/v2ray/config.json\ninstalled: /var/log/v2ray/\ninstalled: /var/log/v2ray/access.log\ninstalled: /var/log/v2ray/error.log\ninstalled: /etc/systemd/system/v2ray.service\ninstalled: /etc/systemd/system/v2ray@.service\n```\n\n## 重要提示\n\n**不推薦在 docker 中使用本專案安裝 v2ray，請直接使用 [官方映象](https://github.com/v2fly/docker)。**  \n如果官方映象不能滿足您自定義安裝的需要，請以**復刻並修改上游 dockerfile 的方式來實現**。  \n\n本專案**不會為您自動生成配置檔案**；**只解決使用者安裝階段遇到的問題**。其他問題在這裡是無法得到幫助的。  \n請在安裝完成後參閱 [文件](https://www.v2fly.org/) 瞭解配置檔案語法，並自己完成適合自己的配置檔案。過程中可參閱社群貢獻的 [配置檔案模板](https://github.com/v2fly/v2ray-examples)  \n（**提請您注意這些模板複製下來以後是需要您自己修改調整的，不能直接使用**）\n\n## 使用\n\n* 該腳本在執行時會提供 `info` 和 `error` 等信息，請仔細閱讀。\n\n### 安裝和更新 V2Ray\n\n```\n// 安裝執行檔和 .dat 資料檔\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)\n```\n\n### 安裝最新發行的 geoip.dat 和 geosite.dat\n\n```\n// 只更新 .dat 資料檔\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)\n```\n\n### 移除 V2Ray\n\n```\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove\n```\n\n### 解決問題\n\n* 「[不安裝或更新 geoip.dat 和 geosite.dat](https://github.com/v2fly/fhs-install-v2ray/wiki/Do-not-install-or-update-geoip.dat-and-geosite.dat)」。\n* 「[使用證書時權限不足](https://github.com/v2fly/fhs-install-v2ray/wiki/Insufficient-permissions-when-using-certificates)」。\n* 「[從舊腳本遷移至此](https://github.com/v2fly/fhs-install-v2ray/wiki/Migrate-from-the-old-script-to-this)」。\n* 「[將 .dat 文檔由 lib 目錄移動到 share 目錄](https://github.com/v2fly/fhs-install-v2ray/wiki/Move-.dat-files-from-lib-directory-to-share-directory)」。\n* 「[使用 VLESS 協議](https://github.com/v2fly/fhs-install-v2ray/wiki/To-use-the-VLESS-protocol)」。\n\n\u003e 若您的問題沒有在上方列出，歡迎在 Issue 區提出。\n\n**提問前請先閱讀 [Issue #63](https://github.com/v2fly/fhs-install-v2ray/issues/63)，否則可能無法得到解答並被鎖定。**\n\n## 貢獻\n\n請於 [develop](https://github.com/v2fly/fhs-install-v2ray/tree/develop) 分支進行，以避免對主分支造成破壞。\n\n待確定無誤後，兩分支將進行合併。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Ffhs-install-v2ray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2fly%2Ffhs-install-v2ray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Ffhs-install-v2ray/lists"}