{"id":362,"date":"2024-02-02T09:16:15","date_gmt":"2024-02-02T01:16:15","guid":{"rendered":"https:\/\/www.wkv.cc\/?p=362"},"modified":"2024-02-02T10:08:20","modified_gmt":"2024-02-02T02:08:20","slug":"%e4%b8%80%e6%ad%a5%e5%b8%ae%e4%bd%a0%e8%a7%a3%e5%86%b3%e5%9b%bd%e5%86%85linux%e6%9c%ba%e5%99%a8%e7%bd%91%e7%bb%9c%e5%8e%9f%e5%9b%a0%e6%97%a0%e6%b3%95%e6%8b%89%e5%8f%96%e5%8c%85%e5%92%8c%e7%9b%b8","status":"publish","type":"post","link":"https:\/\/www.wkv.cc\/index.php\/2024\/02\/02\/%e4%b8%80%e6%ad%a5%e5%b8%ae%e4%bd%a0%e8%a7%a3%e5%86%b3%e5%9b%bd%e5%86%85linux%e6%9c%ba%e5%99%a8%e7%bd%91%e7%bb%9c%e5%8e%9f%e5%9b%a0%e6%97%a0%e6%b3%95%e6%8b%89%e5%8f%96%e5%8c%85%e5%92%8c%e7%9b%b8\/","title":{"rendered":"\u89e3\u51b3\u56fd\u5185Linux\u7f51\u7edc\u539f\u56e0\u65e0\u6cd5\u62c9\u53d6\u5305\u548c\u76f8\u5173\u4f9d\u8d56\u7684\u95ee\u9898"},"content":{"rendered":"\n<p><strong>\u58f0\u660e\uff1a\u672c\u6587\u4e3b\u8981\u4f7f\u7528github\u9879\u76eegg\uff0c\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/gblaowang-i\/gg\" data-type=\"link\" data-id=\"https:\/\/github.com\/gblaowang-i\/gg\">https:\/\/github.com\/gblaowang-i\/gg<\/a><\/strong><\/p>\n\n\n\n<p>gg \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u5728 Linux \u73af\u5883\u4e0b\u5bf9\u4efb\u610f\u547d\u4ee4\u8fdb\u884c\u4e00\u952e\u4ee3\u7406\uff0c\u800c\u65e0\u9700\u5b89\u88c5 v2ray \u7b49\u5176\u4ed6\u5de5\u5177\u3002<\/p>\n\n\n\n<p>\u4f60\u53ea\u9700\u8981\u5728\u60f3\u4ee3\u7406\u7684\u547d\u4ee4\u4e4b\u524d\u6dfb\u52a0&nbsp;<code>gg<\/code>&nbsp;\u5373\u53ef\uff0c\u4f8b\u5982:&nbsp;<code>gg python -m pip install torch<\/code><\/p>\n\n\n\n<p><strong>\u4f18\u52bf<\/strong><\/p>\n\n\n\n<p>\u76f8\u6bd4\u8f83\u4e8e proxychains \u6216 graftcp\uff0cgo-graft \u62e5\u6709\u4ee5\u4e0b\u4f18\u52bf:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>gg \u4e0b\u8f7d\u5373\u7528\uff0c\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u989d\u5916\u7684\u5de5\u5177\u3002<\/li>\n\n\n\n<li>\u652f\u6301 UDP\uff0c\u4ece\u800c\u6709\u6548\u5e94\u5bf9 DNS \u6c61\u67d3\u3002<\/li>\n\n\n\n<li>\u652f\u6301 Go \u8bed\u8a00\u7f16\u5199\u7684\u7a0b\u5e8f\u3002\u89c1&nbsp;<a href=\"https:\/\/github.com\/rofl0r\/proxychains-ng\/issues\/199\">applications built by Go can not be hook by proxychains-ng<\/a>&nbsp;\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/gblaowang-i\/gg\/blob\/main\/README_zh.md#%E5%AE%89%E8%A3%85\"><\/a>\u5b89\u88c5<\/h2>\n\n\n\n<p>\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5b89\u88c5 go-graft \u6700\u65b0\u7684\u7248\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sh -c \"$(curl -L https:\/\/github.com\/mzz2017\/gg\/raw\/main\/release\/go.sh)\"<\/code><\/pre>\n\n\n\n<p>\u4e0d\u4f7f\u7528&nbsp;<code>sudo<\/code>&nbsp;\u65f6\uff0cgg \u5c06\u4f1a\u5b89\u88c5\u5230\u7528\u6237\u76ee\u5f55\u3002\u5982\u679c\u5b89\u88c5\u5b8c\u6bd5\u540e gg \u547d\u4ee4\u8fd0\u884c&nbsp;<code>\u5931\u8d25<\/code>\uff0c\u8bf7\u68c0\u67e5&nbsp;<code>$PATH<\/code>.<\/p>\n\n\n\n<p>\u4f60\u4e5f\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5230 \/usr\/bin \u7684\u8f6f\u94fe\u63a5\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ln -s \/usr\/local\/bin\/gg \/usr\/bin\/gg<\/code><\/pre>\n\n\n\n<p>\u6d4b\u8bd5\u5b89\u88c5\u662f\u5426\u6210\u529f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ gg --version <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>gg version 0.1.1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/gblaowang-i\/gg\/blob\/main\/README_zh.md#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\"><\/a>\u4f7f\u7528\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u914d\u7f6e\u8ba2\u9605\u5730\u5740:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config -w subscription='https:\/\/example.com\/path\/to\/sub'<\/code><\/pre>\n\n\n\n<p>\u514b\u9686 linux \u4ed3\u5e93\u6765\u8bd5\u8bd5\u6548\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg git clone --depth=1 https:\/\/github.com\/torvalds\/linux.git<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cloning into 'linux'...\n...\nReceiving objects: 100% (78822\/78822), 212.19 MiB | 7.04 MiB\/s, done.\nResolving deltas: 100% (7155\/7155), done.<\/code><\/pre>\n\n\n\n<p>\u6216\u8005\u76f4\u63a5\u4ee3\u7406\u6574\u4e2a shell session\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg bash\n\ngit clone --depth=1 https:\/\/github.com\/torvalds\/linux.git\ncurl ipv4.appspot.com<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e34\u65f6\u4f7f\u7528<\/h3>\n\n\n\n<p><strong>\u4f7f\u7528\u8282\u70b9\u7684\u5206\u4eab\u94fe\u63a5<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5982\u679c\u4f60\u4e4b\u524d\u6ca1\u6709\u5199\u8fc7\u914d\u7f6e\u9879\uff0c\u5c06\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u8282\u70b9\u94fe\u63a5\u3002 \ngg wget -O frp.tar.gz https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.38.0\/frp_0.38.0_linux_amd64.tar.gz<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Enter the share-link of your proxy: ********\n...\nSaving to: \u2018frp.tar.gz\u2019\nfrp.tar.gz 100%&#91;=====================================================&gt;] 8.44M 12.2MB\/s in 0.7s    \n2021-12-06 09:21:08 (12.2 MB\/s) - \u2018frp.tar.gz\u2019 saved &#91;8848900\/8848900]<\/code><\/pre>\n\n\n\n<p>\u6216\u8005\u663e\u5f0f\u5730\u4f7f\u7528&nbsp;<code>--node<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg --node ss:\/\/YWVzLTEyOC1nY206MQ@example.com:17247 speedtest<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Retrieving speedtest.net configuration...\nTesting from Microsoft (13.xx.xx.xx)...\n...\nHosted by xxx: 55.518 ms\nTesting download speed................................................................................\nDownload: 104.83 Mbit\/s\nTesting upload speed......................................................................................................\nUpload: 96.35 Mbit\/s<\/code><\/pre>\n\n\n\n<p><strong>\u4f7f\u7528\u8ba2\u9605\u5730\u5740<\/strong><\/p>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b gg \u4f1a\u4ece\u4f60\u7684\u8ba2\u9605\u4e2d\u81ea\u52a8\u6311\u9009\u7b2c\u4e00\u4e2a\u53ef\u7528\u7684\u8282\u70b9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg --subscription https:\/\/example.com\/path\/to\/sub docker pull caddy<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Using default tag: latest\nlatest: Pulling from library\/caddy\n97518928ae5f: Pull complete\n23ccae726125: Pull complete\n3de6a61c89ac: Pull complete\n39ed957bdc00: Pull complete\n0ae44c2d42dd: Pull complete\nDigest: sha256:46f11f4601ecb4c5a37d6014ad51f5cbfeb92b70f5c9ec6c2ac39c4c1a325588\nStatus: Downloaded newer image for caddy:latest\ndocker.io\/library\/caddy:latest<\/code><\/pre>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u624b\u52a8\u9009\u62e9\u8282\u70b9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg --subscription https:\/\/example.com\/path\/to\/sub --select curl ipv4.appspot.com<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>WARN&#91;0000] Test nodes...\nUse the arrow keys to navigate: \u2193 \u2191 \u2192 \u2190  and \/ toggles search\nSelect Node\n  ? &#91;200Mbps] LoadBalance (323 ms)\n    &#91;200Mbps] LoadBalance Trojan (448 ms)\n    &#91;30M] CN2-US Cera (560 ms)\n    &#91;1Gbps] 4837-US (781 ms)\n    &#91;10Gbps] CN2-DE (811 ms)\n    &#91;300Mbps] Macau (1023 ms)\n    &#91;300Mbps] IPv6 LoadBalance (-1 ms)\n\u2193   &#91;1Gbps] RackNerd (-1 ms)\n\n--------- Detail ----------\nName:               &#91;200Mbps] LoadBalance\nProtocol:           shadowsocks\nSupport UDP:        true\nLatency:            323 ms<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/gblaowang-i\/gg\/blob\/main\/README_zh.md#%E9%95%BF%E6%9C%9F%E4%BD%BF%E7%94%A8\"><\/a>\u957f\u671f\u4f7f\u7528<\/h3>\n\n\n\n<p>\u53ef\u4ee5\u4f7f\u7528&nbsp;<code>-w<\/code>&nbsp;\u6765\u5199\u5165\u914d\u7f6e\u9879\uff1a<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u8ba2\u9605\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config -w subscription=https:\/\/example.com\/path\/to\/sub gg curl ipv4.appspot.com<\/code><\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u8282\u70b9\u94fe\u63a5:<a href=\"https:\/\/github.com\/gblaowang-i\/gg\/blob\/main\/README_zh.md#%E9%97%AE%E4%B8%8E%E7%AD%94\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config -w node=vmess:\/\/MY_VMESS_SERVER_SHARE_LINK\ngg curl ipv4.appspot.com<\/code><\/pre>\n\n\n\n<p>\u5217\u51fa\u6240\u6709\u914d\u7f6e\u9879:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>node=\nsubscription.link=https:\/\/example.com\/path\/to\/sub\nsubscription.select=first\nsubscription.cache_last_node=true\ncache.subscription.last_node=trojan-go:\/\/MY_TROJAN_GO_SERVER_SHARE_LINK\nno_udp=false\ntest_node_before_use=true<\/code><\/pre>\n\n\n\n<p>\u6e05\u9664\u3001\u91cd\u7f6e\u67d0\u4e2a\u7279\u5b9a\u914d\u7f6e\u9879:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config -u node<\/code><\/pre>\n\n\n\n<p>\u8bfb\u53d6\u67d0\u4e2a\u7279\u5b9a\u914d\u7f6e\u9879:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gg config node<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u58f0\u660e\uff1a\u672c\u6587\u4e3b\u8981\u4f7f\u7528github\u9879\u76eegg\uff0c\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/gblaowang-i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-biancheng","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":4,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/362\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}