mirror of
https://github.com/interstellar750/hexo_s
synced 2024-10-18 16:23:50 +08:00
1 line
228 KiB
JSON
1 line
228 KiB
JSON
{"meta":{"version":1,"warehouse":"4.0.1"},"models":{"Asset":[{"_id":"themes/Chic/source/favicon.ico","path":"favicon.ico","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/base.styl","path":"css/base.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/custom.styl","path":"css/custom.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/font.styl","path":"css/font.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/layout.styl","path":"css/layout.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/media.styl","path":"css/media.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/normalize.styl","path":"css/normalize.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/style.styl","path":"css/style.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/css/variable.styl","path":"css/variable.styl","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/IMG_20220506_162446_384.jpg","path":"images/IMG_20220506_162446_384.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/ambience_sailfish3.jpg","path":"images/ambience_sailfish3.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/js/mathjax2.7.5.js","path":"js/mathjax2.7.5.js","modified":0,"renderable":1},{"_id":"themes/Chic/source/js/script.js","path":"js/script.js","modified":0,"renderable":1},{"_id":"themes/Chic/source/js/tocbot.min.js","path":"js/tocbot.min.js","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/demo.css","path":"fonts/iconfont/demo.css","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/demo_index.html","path":"fonts/iconfont/demo_index.html","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.css","path":"fonts/iconfont/iconfont.css","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.eot","path":"fonts/iconfont/iconfont.eot","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.js","path":"fonts/iconfont/iconfont.js","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.json","path":"fonts/iconfont/iconfont.json","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.svg","path":"fonts/iconfont/iconfont.svg","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.ttf","path":"fonts/iconfont/iconfont.ttf","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.woff","path":"fonts/iconfont/iconfont.woff","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.woff2","path":"fonts/iconfont/iconfont.woff2","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/lanting/lanting.TTF","path":"fonts/lanting/lanting.TTF","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/lanting/lanting.eot","path":"fonts/lanting/lanting.eot","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/lanting/lanting.otf","path":"fonts/lanting/lanting.otf","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/lanting/lanting.woff","path":"fonts/lanting/lanting.woff","modified":0,"renderable":1},{"_id":"themes/Chic/source/fonts/lanting/lanting.woff2","path":"fonts/lanting/lanting.woff2","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/avatar/IMG_20220506_162446_384.jpg","path":"images/avatar/IMG_20220506_162446_384.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/background/ambience_sailfish3.jpg","path":"images/background/ambience_sailfish3.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/github2022-07-19_19.10.08.jpg","path":"images/post/github2022-07-19_19.10.08.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/github202203051935.png","path":"images/post/github202203051935.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/github202203051951.png","path":"images/post/github202203051951.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/hero.png","path":"images/post/hero.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/test.png","path":"images/post/test.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/02/test.png","path":"images/post/02/test.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/05/github2022-07-19_19.10.08.jpg","path":"images/post/05/github2022-07-19_19.10.08.jpg","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/05/github202203051935.png","path":"images/post/05/github202203051935.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/05/github202203051951.png","path":"images/post/05/github202203051951.png","modified":0,"renderable":1},{"_id":"themes/Chic/source/images/post/06/hero.png","path":"images/post/06/hero.png","modified":0,"renderable":1}],"Cache":[{"_id":"source/_posts/01.hello-world.md","hash":"1911219b692fc0310ab83c5c0f52b5229af5dd20","modified":1657287067000},{"_id":"source/_posts/02.pages.md","hash":"6397315e446afa86922ccd4e08bb1f740041d68c","modified":1662533498784},{"_id":"source/_posts/03.testagain.md","hash":"103556dea855c72d008c6737a3fcf13455f78294","modified":1657287067000},{"_id":"source/_posts/04.欢迎参观.md","hash":"ea5cf80e4959da06d04ff297e16e58af1e8764b7","modified":1662915709313},{"_id":"source/_posts/05.搭建一个自己的博客.md","hash":"0374af87c05579687adbdd99a17ec9af9ab14ebe","modified":1662535585904},{"_id":"source/_posts/06.Page4.md","hash":"3ef3e8f59ed8cce725cce753d1aea89c3d07ffe3","modified":1662533535747},{"_id":"source/_posts/07.phone2adb.md","hash":"4b407cdd352a1767f71eaa3bc1b40f44018822bb","modified":1657287066000},{"_id":"source/_posts/07.wechatpush.md","hash":"ac270d132c4d455e22745bc020538f5ae4cf8930","modified":1662599282387},{"_id":"source/about/index.md","hash":"ea5cf80e4959da06d04ff297e16e58af1e8764b7","modified":1662915709313},{"_id":"source/tag/index.md","hash":"bb2feccf69fe652fa4e77c884bafa2ff53932fdc","modified":1657287067000},{"_id":"themes/Chic/_config.yml","hash":"0e9aecbdd940025372ff245e23aee687851fe618","modified":1662536471748},{"_id":"themes/Chic/package.json","hash":"8b4072879307eed0e74ae35390825c5e03b9229c","modified":1657287067000},{"_id":"themes/Chic/languages/zh-CN.yml","hash":"2f5de9f52c790210a5c6e050f471687d8c842881","modified":1657287067000},{"_id":"themes/Chic/layout/archive.ejs","hash":"48cdf67b628eb6a1c24d484ed252f5b0e3f06ddf","modified":1657287067000},{"_id":"themes/Chic/layout/index.ejs","hash":"b3344720176ad12dc88745cc5b31d497356ca4fa","modified":1657287067000},{"_id":"themes/Chic/layout/category.ejs","hash":"22574dac3ca63c28a5bef2274b6fb760889b173e","modified":1657287067000},{"_id":"themes/Chic/layout/layout.ejs","hash":"8565bbea5e904e75e8d1ff5186b3a53650a7fa70","modified":1657287067000},{"_id":"themes/Chic/layout/page.ejs","hash":"3179c527694a789760742e1923c7ac5f94b4997c","modified":1657287067000},{"_id":"themes/Chic/layout/post.ejs","hash":"a23f83d6c559ce88588472267468a54488d50e8e","modified":1657287067000},{"_id":"themes/Chic/layout/tag.ejs","hash":"158be80eadc79bc0520e64fbde28414876966487","modified":1657287067000},{"_id":"themes/Chic/scripts/imageTag.js","hash":"4b69804c1e4bf638eda7022499c440ce24e28587","modified":1657287067000},{"_id":"themes/Chic/layout/_page/archive.ejs","hash":"464549286c92ea0d6cb057c6936e0f1a5d1c1dd2","modified":1657287067000},{"_id":"themes/Chic/source/favicon.ico","hash":"96b9a549337c2bec483c2879eeafa4d1f8748fed","modified":1657287067000},{"_id":"themes/Chic/layout/_page/category.ejs","hash":"28b2f15f8c38ca00cfd18ae646a8d2949d6c2cee","modified":1657287067000},{"_id":"themes/Chic/layout/_page/page.ejs","hash":"1d875d59cf4d6b681cc8cf755f19b5355e5d1144","modified":1657287067000},{"_id":"themes/Chic/layout/_page/post.ejs","hash":"334e6836303e4c5f6898a5705eaca26ae53e09aa","modified":1657287067000},{"_id":"themes/Chic/layout/_page/profile.ejs","hash":"f49991a55cc08a1d90d8d6ae8d15a692163272e1","modified":1657287067000},{"_id":"themes/Chic/layout/_page/tag.ejs","hash":"0c20ff00532103f9a59639ca9956fc0bce4aabc2","modified":1657287067000},{"_id":"themes/Chic/layout/_partial/footer.ejs","hash":"8b2bd751338c5c92b53da623b8dfbd3163a8535f","modified":1657287067000},{"_id":"themes/Chic/layout/_partial/head.ejs","hash":"8c8a2d95e0858cf0be9bf60d0ddf26876e1d9d35","modified":1657287067000},{"_id":"themes/Chic/layout/_partial/header.ejs","hash":"ab0179f273c97985b40682af479de7d2bf499d6d","modified":1657287067000},{"_id":"themes/Chic/layout/_partial/paginator.ejs","hash":"25d0f586ad932c14f5a04cce58aad691f8d7b770","modified":1657287067000},{"_id":"themes/Chic/layout/_partial/toc.ejs","hash":"e114f44976cecfd3d7efd1ee8641f14550bba8a3","modified":1658228029000},{"_id":"themes/Chic/layout/_plugins/mathjax.ejs","hash":"53f088fe44d51c4d9fb61aeac4c23b3cfcc19762","modified":1657287067000},{"_id":"themes/Chic/source/css/base.styl","hash":"72aef06d738853f13f1697b091002d6d776bd56d","modified":1657287067000},{"_id":"themes/Chic/source/css/custom.styl","hash":"39c8cfdcfcade3c30676fbc408d531ebc8f6f0bf","modified":1657287067000},{"_id":"themes/Chic/source/css/font.styl","hash":"8c1da30e223c0a3d7ef452abc9f0e4cc71dbc140","modified":1657287067000},{"_id":"themes/Chic/source/css/media.styl","hash":"065fd95f13061d72cbf70adac6912f454c9e8105","modified":1657287067000},{"_id":"themes/Chic/source/css/layout.styl","hash":"4d9f83b5a3bac81e7857358744858fae708320de","modified":1657287067000},{"_id":"themes/Chic/source/css/normalize.styl","hash":"b3337320133b7a336db7033aa6bbe94b054c0b21","modified":1657287067000},{"_id":"themes/Chic/source/css/style.styl","hash":"a13f2c38070a89b06a2ede599f5ce5fd160e11c9","modified":1657287067000},{"_id":"themes/Chic/source/css/variable.styl","hash":"bd83c18e469c8e58c654bea43c37626c2f61add2","modified":1657287067000},{"_id":"themes/Chic/source/js/script.js","hash":"ee0a12f2a33e71ee368d5a00270ef443cfc16d27","modified":1657287067000},{"_id":"themes/Chic/source/js/mathjax2.7.5.js","hash":"7ba18c783d543cfb4b45a0118ccb73d3f68cd46e","modified":1657287067000},{"_id":"themes/Chic/source/js/tocbot.min.js","hash":"bae97e8a24a05a99335f8e725641c8ca9c50502a","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/androidstudio.styl","hash":"2af0861725f97f0ee2ded67c3d2d4548c62b2d16","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/arduino-light.styl","hash":"15e8572585cd708221c513dea4bdd89d8fe56c10","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/arta.styl","hash":"b3e81e3e694ceb8deed178adb8b91013c5120e30","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/agate.styl","hash":"53027913ed8d4f75ac3e49e76aad824f0df62da3","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/ascetic.styl","hash":"32cff3bef6fac3760fe78f203096477052a90552","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-cave-dark.styl","hash":"ce63dd8548688d88254405eedfa75b1d7c82449e","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-cave-light.styl","hash":"a5be0744a7ecf4a08f600ade4cfd555afc67bc15","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-dune-dark.styl","hash":"c196ff0ee064af0e507823694ae39020addfc280","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-dune-light.styl","hash":"931435fbc6f974e8ce9e32722680035d248a9dc1","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-estuary-dark.styl","hash":"0bb16a4eff93688f40787abc2f9e56e7d5cc93e7","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-estuary-light.styl","hash":"344276ca9b27e51d4c907f76afe5d13cf8e60bdf","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-forest-dark.styl","hash":"effbc5d75fa87203c847039869c22031b40d5b7d","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-forest-light.styl","hash":"95228d9f2102fad425536aac44b80b2cba1f5950","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-heath-dark.styl","hash":"9a2e9a1d0a01bbdf158560c3ed1c134e098b2c68","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-heath-light.styl","hash":"8c8c2e445abef85273be966d59770e9ced6aac21","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-lakeside-dark.styl","hash":"10ee3882fca7b97a37bd309d2d35fce9868647bb","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-lakeside-light.styl","hash":"2c54cb9bdb259ae3b5b29f63ac2469ed34b08578","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-plateau-dark.styl","hash":"84c80e6f67f62fce958d25817c277d2360272617","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-plateau-light.styl","hash":"d1a05fdd1ededc9063d181ab25bad55a164aeb4a","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-savanna-dark.styl","hash":"e32c1c70def8060fce5e790979a126da650ac642","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-savanna-light.styl","hash":"f8244c93711c7cb59dd79d2df966806b30d171ea","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-seaside-dark.styl","hash":"2edf385215bbe1985b1a10106525d362667d28c2","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-seaside-light.styl","hash":"0597342da6e2d0c5bdcc7d42dabb07322b1a4177","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-sulphurpool-dark.styl","hash":"538a14321193cd8abf2ddc484306631e54149ffb","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/atelier-sulphurpool-light.styl","hash":"efa52713efc468abeeb2b9299704371583b857de","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/brown-paper.styl","hash":"329b85ae9130a5587a6fb1c6f80396f9cca5ddc1","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/brown-papersq.png","hash":"3a1332ede3a75a3d24f60b6ed69035b72da5e182","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/codepen-embed.styl","hash":"8b7b34484f76a6c2c3b1a9e49abb9b382f439ae8","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/color-brewer.styl","hash":"2a439d6214430e2f45dd4939b4dfe1fe1a20aa0f","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/dark.styl","hash":"f5e6e75958de59e87fc6be3a1668e870e20bc836","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/darkula.styl","hash":"9717efa9194837ba3fb4d762997d33075dcf8bfa","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/docco.styl","hash":"b1c176378bb275f2e8caa759f36294e42d614bf1","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/far.styl","hash":"aaac3028f5e33123cd123a583cddc9290c45ec8e","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/foundation.styl","hash":"bf8ddc94b4ad995b8b8805b5a4cf95004553fdac","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/github-gist.styl","hash":"48211a03d33e7f7ada0b261162bea06676155a71","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/github.styl","hash":"3336aeba324c6d34a6fd41fef9b47bc598f7064c","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/googlecode.styl","hash":"bda816beee7b439814b514e6869dc678822be1bc","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/grayscale.styl","hash":"bf37d8b8d1e602126c51526f0cc28807440228ed","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/gruvbox-dark.styl","hash":"76b744c14fd5600bea64731c05df97c2df75523f","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/hopscotch.styl","hash":"1378a6bc67a32c0cbff72ab771268b53f9aa586d","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/highlightjs.styl","hash":"65b5981dc3c57cedd1cb668c0e377230987e08d1","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/hybrid.styl","hash":"b8eb5c69d12f2ee5ebc50265ae271699d7f1a8d3","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/idea.styl","hash":"a02967cb51c16a34e0ee895d33ded2b823d35b21","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/index.styl","hash":"002d5596f6379cc87dbd43d9145bc764aa666be1","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/ir-black.styl","hash":"53e5d74326a4527b92272bbd6946d4fec92720e8","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/kimbie.dark.styl","hash":"45dbb168f22d739d0109745d2decd66b5f94e786","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/kimbie.light.styl","hash":"61f8baed25be05288c8604d5070afbcd9f183f49","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/kimbie.styl","hash":"51b889ca7c6fe178cfbbe28d875a6ea427184441","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/magula.styl","hash":"16d323f989b1420a0f72ef989242ece9bf17a456","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/mono-blue.styl","hash":"4c89a6ae29de67c0700585af82a60607e85df928","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/monokai-sublime.styl","hash":"c385b11345894be7e6ce3c5f08663e199933b8e4","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/monokai.styl","hash":"f87be027848ea6bee623a08ad1e17b2f5b7937ee","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/obsidian.styl","hash":"199e28326be8590883f0813ebbd54fcfaa4750fd","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/paraiso-dark.styl","hash":"f1537bd868579fa018ecdbfd2eb922dcf3ba2cac","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/paraiso-light.styl","hash":"d224d1df0eb3395d9eea1344cee945c228af2911","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/paraiso.styl","hash":"75f181eece6b71d033ea0c8d6cf00ae7efb9e29b","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/pojoaque.jpg","hash":"c5fe6533b88b21f8d90d3d03954c6b29baa67791","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/pojoaque.styl","hash":"2601b4285803a7cea5ccded8d624ca95f80e3d88","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/railscasts.styl","hash":"b6674db9210e0c4444e4835fff2d1361f3ebd64c","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/rainbow.styl","hash":"c0cf97aae3e10fdcd10414547a711c9effbc39b8","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/school-book.png","hash":"711ec983c874e093bb89eb77afcbdf6741fa61ee","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/school-book.styl","hash":"beabbbcc7930f8de19159381a01c0ba41dc2291f","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/solarized-dark.styl","hash":"90c9da5aa594383697e5b18892a7f95beb053f55","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/solarized-light.styl","hash":"aa0dd3fd25c464183b59c5575c9bee8756b397f2","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/sunburst.styl","hash":"af3eec0fd56151e55bbd49c31b151f36717611d8","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/tomorrow-night-blue.styl","hash":"f24c17d0ab815dcfaab3438cb9fe2ab4839f5e0d","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/tomorrow-night-bright.styl","hash":"7674fecb6d27350727dc0d2dc93bc018382ebbd0","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/tomorrow-night-eighties.styl","hash":"28d751075ebabf7d0327a36f725076fe82fdf626","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/tomorrow-night.styl","hash":"16ba09b2db501e4e3e2e7d62595d9bf935bf27c4","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/tomorrow.styl","hash":"15779cf6846725c7c35fc56cac39047d7e0aec1c","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/vs.styl","hash":"959a746f4b37aacb5d1d6ff1d57e0c045289d75d","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/xcode.styl","hash":"5e8532ae8366dcf6a4ef5e4813dc3d42ab3d0a50","modified":1657287067000},{"_id":"themes/Chic/source/css/_highlight/zenburn.styl","hash":"68ff9332ccc03f9389b15b713415cde016f8088f","modified":1657287067000},{"_id":"themes/Chic/source/css/_lib/looper.css","hash":"863144dc9af7c1e181670515bc85eaf768f4e287","modified":1657287067000},{"_id":"themes/Chic/source/css/_lib/tocbot.css","hash":"15601837bf8557c2fd111e4450ed4c8495fd11a0","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/archive.styl","hash":"71ea842f068b29b4418dd09450db09d27dcf0947","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/category.styl","hash":"cead361269616b7a6ddec3090d9fa34c3c6ac722","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/page.styl","hash":"34e33b52d2e046aa2f5494e81ff4ac2d5ca78058","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/profile.styl","hash":"d336cbf9b8229d23b7259d2f2d61f5425f7d9621","modified":1658230571000},{"_id":"themes/Chic/source/css/_page/tag.styl","hash":"55b220cc58011876fb3a470cd1fde8ed87c93079","modified":1657287067000},{"_id":"themes/Chic/source/css/_partial/footer.styl","hash":"4f58e607eaa59cda3b5a9fdb3404ffb75c4d1a03","modified":1657287067000},{"_id":"themes/Chic/source/css/_partial/header.styl","hash":"be70b4ab3bcc977f1055664899742804c716929d","modified":1657287067000},{"_id":"themes/Chic/source/css/_partial/paginator.styl","hash":"b4f4a5180c4cbc70d186792b8a1fd0f5855bd86a","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/demo.css","hash":"65c50db528a5abe06426b1a20735feaf1f2a0d9b","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/demo_index.html","hash":"16e01463756a77b4acd15ade4e6b73f0376d75e1","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.css","hash":"1e5540dca41dc53879226750f936e72daf616662","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.eot","hash":"d18736f7885569e497698d17f49b9167add67dc6","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.js","hash":"87bfdaae31251f4d605646c5ae9c67196f6cc4e2","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.json","hash":"eae94b803d34035008842855d0bead92d2035281","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.svg","hash":"5c9c4e44179a7435d0f91df4ce1154dd677ad8c2","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.ttf","hash":"41c4f4dc82e42452dcfd19caed6c7dc333ee769e","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.woff","hash":"a57593c49b56c16ac1def0e1f3dbca3f658b3579","modified":1657287067000},{"_id":"themes/Chic/source/fonts/iconfont/iconfont.woff2","hash":"39d97a0f72417487f5c1e0a0abf8e27dd6ebda31","modified":1657287067000},{"_id":"themes/Chic/source/images/post/github202203051935.png","hash":"0a15bef8229462373ffb7da52257f40f92e0bb9b","modified":1662535585529},{"_id":"themes/Chic/source/css/_page/_post/post_code.styl","hash":"06c3a3524ffd4b27e03e79489001997ea5d727d3","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_content.styl","hash":"5e3d63077549d8e2e5ff8c452e809760f5a99c17","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_copyright.styl","hash":"64fd9f07ed45f035057d46740af0db70218714aa","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_header.styl","hash":"d37b032bc5edca92c84bf62070a28fa40939df55","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_nav.styl","hash":"03accaba13c995cbe65a05a88549ff74e992eb3f","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_tags.styl","hash":"2ff93677aa4d81da83c659b4dd4e3cb482d9ce7d","modified":1657287067000},{"_id":"themes/Chic/source/css/_page/_post/post_toc.styl","hash":"15e1ec7af93f41184f986aba21991a79923b0a0e","modified":1657287067000},{"_id":"themes/Chic/source/images/post/05/github202203051935.png","hash":"0a15bef8229462373ffb7da52257f40f92e0bb9b","modified":1657287067000},{"_id":"themes/Chic/source/images/post/github2022-07-19_19.10.08.jpg","hash":"4aa40a3e3b16876cae74f622d3c9a4fad77cdf14","modified":1662535585528},{"_id":"themes/Chic/source/images/post/github202203051951.png","hash":"e64fc5692b55626259e2c94c3bcff270cff84244","modified":1662535585530},{"_id":"themes/Chic/source/images/post/hero.png","hash":"5a5087449dfab879fdbcb6b180efe5b3223f0b30","modified":1662535585531},{"_id":"themes/Chic/source/images/post/05/github2022-07-19_19.10.08.jpg","hash":"4aa40a3e3b16876cae74f622d3c9a4fad77cdf14","modified":1658233167000},{"_id":"themes/Chic/source/images/post/05/github202203051951.png","hash":"e64fc5692b55626259e2c94c3bcff270cff84244","modified":1657287067000},{"_id":"themes/Chic/source/images/post/06/hero.png","hash":"5a5087449dfab879fdbcb6b180efe5b3223f0b30","modified":1657287067000},{"_id":"themes/Chic/source/images/IMG_20220506_162446_384.jpg","hash":"0464a9c6e4951cf0e3999d2f2a36c4df1ae6311b","modified":1662535585520},{"_id":"themes/Chic/source/images/avatar/IMG_20220506_162446_384.jpg","hash":"0464a9c6e4951cf0e3999d2f2a36c4df1ae6311b","modified":1657287067000},{"_id":"themes/Chic/source/images/post/02/test.png","hash":"25055e149352f630a92d2d1f072c5f6f7e1ef693","modified":1657287067000},{"_id":"themes/Chic/source/images/post/test.png","hash":"25055e149352f630a92d2d1f072c5f6f7e1ef693","modified":1662535585533},{"_id":"themes/Chic/source/images/background/ambience_sailfish3.jpg","hash":"4b00de8e39baed997590cc45338522f9b8f10e4e","modified":1657287067000},{"_id":"themes/Chic/source/images/ambience_sailfish3.jpg","hash":"4b00de8e39baed997590cc45338522f9b8f10e4e","modified":1662535585527},{"_id":"themes/Chic/source/fonts/lanting/lanting.woff2","hash":"5f325fcd2726a5b44e08b7004a5219e14847cbfa","modified":1657287067000},{"_id":"themes/Chic/source/fonts/lanting/lanting.woff","hash":"642ad1f17d27d4b1010d1a0571d1b44cbc823d9d","modified":1657287067000},{"_id":"themes/Chic/source/fonts/lanting/lanting.eot","hash":"3e184614f037939a6f98d607da3ed7dffb350e65","modified":1657287067000},{"_id":"themes/Chic/source/fonts/lanting/lanting.TTF","hash":"97e9a4538cceef4b17d54c7dc589524905d1b685","modified":1657287067000},{"_id":"themes/Chic/source/fonts/lanting/lanting.otf","hash":"4e184da596772d3ef6e5763cdee3e46a1ce2f2dd","modified":1657287067000},{"_id":"public/index.html","hash":"7c42fe62ca7a0292c8b9dd1f8f205162d2795aa8","modified":1662538175995},{"_id":"public/page/2/index.html","hash":"7c42fe62ca7a0292c8b9dd1f8f205162d2795aa8","modified":1662538175995},{"_id":"public/about/index.html","hash":"269d2b684745e40f966bda080cc49f1ee9e8d9d5","modified":1662915761297},{"_id":"public/tag/index.html","hash":"79884e885bba06b887ec54dfe71228be3c21f34a","modified":1662538175995},{"_id":"public/2022/09/01/07.wechatpush/index.html","hash":"2701f5fd8a0c67c3bfd039b9928f3b8b8051e896","modified":1662915761297},{"_id":"public/2022/05/10/07.phone2adb/index.html","hash":"5521af2d4ec39cf5eb62f044cc6c29433e63ad0b","modified":1662538175995},{"_id":"public/2022/04/07/06.Page4/index.html","hash":"1ce584dc3f180c3d230da2a8421a221173527f3c","modified":1662538175995},{"_id":"public/2022/03/05/05.搭建一个自己的博客/index.html","hash":"b037c3b02727c2e7e4adc5eb11522b3438bef503","modified":1662538175995},{"_id":"public/2022/03/01/04.欢迎参观/index.html","hash":"aab4edacc2ecfbbfa027b2922a7b0fe9f28d64d9","modified":1662915761297},{"_id":"public/2022/01/26/02.pages/index.html","hash":"0f50a3214fbdcc2e4281603a3a4be636810c540b","modified":1662538175995},{"_id":"public/2022/01/26/03.testagain/index.html","hash":"4c3e8a27ba8066b3f88f59579031b7873306b099","modified":1662538175995},{"_id":"public/2022/01/24/01.hello-world/index.html","hash":"bc7569a274b398bc11602987cf28a03c1a1ceaf5","modified":1662538175995},{"_id":"public/archives/index.html","hash":"1d7963da37997cbbc6acbfa28e689b2eafe7eb17","modified":1662538175995},{"_id":"public/archives/2022/index.html","hash":"1892ea6a97e747ae52a54567b11897d784d375eb","modified":1662538175995},{"_id":"public/archives/2022/01/index.html","hash":"a6cea562905f9f0525fd28d182a55c2c295d6671","modified":1662538175995},{"_id":"public/archives/2022/03/index.html","hash":"72b87e617793d22a6c24cbd70f2a138be3350cc0","modified":1662538175995},{"_id":"public/archives/2022/05/index.html","hash":"025995b3cda1dc45ec2b22f1e6679380c1fe6edd","modified":1662538175995},{"_id":"public/archives/2022/04/index.html","hash":"61385293cf4ded2cd7a230e217a2e8bdddb5f266","modified":1662538175995},{"_id":"public/archives/2022/09/index.html","hash":"6d7cf7c4015d7f1291375627ccc84a4245e4ec2f","modified":1662538175995},{"_id":"public/tag/测试/index.html","hash":"bae3e8cecc4017218e52465084209f2d7f21441d","modified":1662538175995},{"_id":"public/tag/技术/index.html","hash":"b51749ce50c44166b967221eed7057ea0a8e600c","modified":1662538175995},{"_id":"public/tag/GitHub/index.html","hash":"25a224b5331fd477f1230b035c9fc1a650673c45","modified":1662538175995},{"_id":"public/tag/博客/index.html","hash":"2797224343d83bc85c94d80dda6b7a64b4dd8d03","modified":1662538175995},{"_id":"public/tag/域名/index.html","hash":"65c4ff48c88f9056f74f8430c652c567d42d2b89","modified":1662538175995},{"_id":"public/tag/DNS/index.html","hash":"b493035fc3775269199e07905f0d4a4045eaf303","modified":1662538175995},{"_id":"public/tag/闲聊/index.html","hash":"df5f07bb6b195bf65dbbb9724d9edaf00fd6cc30","modified":1662538175995},{"_id":"public/tag/adb/index.html","hash":"342eca7ea65d6ddd399d005b644558b03027513f","modified":1662538175995},{"_id":"public/tag/救砖/index.html","hash":"83b69e5bd3e877dec4d70c1014226135616ec9df","modified":1662538175995},{"_id":"public/tag/刷机/index.html","hash":"f11d7b8b0abe2779a6a736db24090a089b4a2ae3","modified":1662538175995},{"_id":"public/tag/信息推送/index.html","hash":"4aa8836b7d36b10b3a1304b97f69d6b28072ce27","modified":1662538175995},{"_id":"public/tag/微信/index.html","hash":"36c0d64066268e099864d3549a33e6b6f6060e56","modified":1662538175995},{"_id":"public/tag/FarPush/index.html","hash":"3405ff252fc6ee2f496055742e1a5597a7a5e1a8","modified":1662538175995},{"_id":"public/favicon.ico","hash":"96b9a549337c2bec483c2879eeafa4d1f8748fed","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.eot","hash":"d18736f7885569e497698d17f49b9167add67dc6","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.ttf","hash":"41c4f4dc82e42452dcfd19caed6c7dc333ee769e","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.svg","hash":"5c9c4e44179a7435d0f91df4ce1154dd677ad8c2","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.woff","hash":"a57593c49b56c16ac1def0e1f3dbca3f658b3579","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.woff2","hash":"39d97a0f72417487f5c1e0a0abf8e27dd6ebda31","modified":1662536127183},{"_id":"public/images/post/github202203051935.png","hash":"0a15bef8229462373ffb7da52257f40f92e0bb9b","modified":1662536127183},{"_id":"public/images/post/05/github202203051935.png","hash":"0a15bef8229462373ffb7da52257f40f92e0bb9b","modified":1662536127183},{"_id":"public/images/post/github2022-07-19_19.10.08.jpg","hash":"4aa40a3e3b16876cae74f622d3c9a4fad77cdf14","modified":1662536127183},{"_id":"public/images/post/github202203051951.png","hash":"e64fc5692b55626259e2c94c3bcff270cff84244","modified":1662536127183},{"_id":"public/images/post/hero.png","hash":"5a5087449dfab879fdbcb6b180efe5b3223f0b30","modified":1662536127183},{"_id":"public/images/post/05/github2022-07-19_19.10.08.jpg","hash":"4aa40a3e3b16876cae74f622d3c9a4fad77cdf14","modified":1662536127183},{"_id":"public/images/post/05/github202203051951.png","hash":"e64fc5692b55626259e2c94c3bcff270cff84244","modified":1662536127183},{"_id":"public/images/post/06/hero.png","hash":"5a5087449dfab879fdbcb6b180efe5b3223f0b30","modified":1662536127183},{"_id":"public/images/avatar/IMG_20220506_162446_384.jpg","hash":"0464a9c6e4951cf0e3999d2f2a36c4df1ae6311b","modified":1662536127183},{"_id":"public/css/base.css","hash":"2fce73a3c2df8f93edeb5e34a53b7d83e5191d85","modified":1662536127183},{"_id":"public/css/custom.css","hash":"91259f1dc3a862bafc2e07204baf519055874358","modified":1662536127183},{"_id":"public/css/font.css","hash":"87059edd1f2bfc4296f5599e73208893f2b06458","modified":1662536127183},{"_id":"public/css/layout.css","hash":"9b81d7e5146871ae2d1010f3a10089bbb43e81e3","modified":1662536127183},{"_id":"public/css/media.css","hash":"5023ee404900a47d61ca0591b2d4e9eace0fe88e","modified":1662536127183},{"_id":"public/css/normalize.css","hash":"2d4b663b6a4c68295b6ba240fa2dd9fb3863093c","modified":1662536127183},{"_id":"public/css/variable.css","hash":"cb4180b3bbad471e30cf52ebb40e998d58a30d7d","modified":1662536127183},{"_id":"public/js/script.js","hash":"ee0a12f2a33e71ee368d5a00270ef443cfc16d27","modified":1662536127183},{"_id":"public/js/tocbot.min.js","hash":"bae97e8a24a05a99335f8e725641c8ca9c50502a","modified":1662536127183},{"_id":"public/fonts/iconfont/demo.css","hash":"65c50db528a5abe06426b1a20735feaf1f2a0d9b","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.css","hash":"1e5540dca41dc53879226750f936e72daf616662","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.json","hash":"3123aa840109e385d58a75d34e88a2d621e1ada8","modified":1662536127183},{"_id":"public/css/style.css","hash":"23e7aba9cceaafd7ad597c4e335fa1965ca48928","modified":1662536127183},{"_id":"public/fonts/iconfont/demo_index.html","hash":"16e01463756a77b4acd15ade4e6b73f0376d75e1","modified":1662536127183},{"_id":"public/fonts/iconfont/iconfont.js","hash":"87bfdaae31251f4d605646c5ae9c67196f6cc4e2","modified":1662536127183},{"_id":"public/images/IMG_20220506_162446_384.jpg","hash":"0464a9c6e4951cf0e3999d2f2a36c4df1ae6311b","modified":1662536127183},{"_id":"public/images/post/test.png","hash":"25055e149352f630a92d2d1f072c5f6f7e1ef693","modified":1662536127183},{"_id":"public/js/mathjax2.7.5.js","hash":"7ba18c783d543cfb4b45a0118ccb73d3f68cd46e","modified":1662536127183},{"_id":"public/images/post/02/test.png","hash":"25055e149352f630a92d2d1f072c5f6f7e1ef693","modified":1662536127183},{"_id":"public/images/background/ambience_sailfish3.jpg","hash":"4b00de8e39baed997590cc45338522f9b8f10e4e","modified":1662536127183},{"_id":"public/images/ambience_sailfish3.jpg","hash":"4b00de8e39baed997590cc45338522f9b8f10e4e","modified":1662536127183},{"_id":"public/fonts/lanting/lanting.woff2","hash":"5f325fcd2726a5b44e08b7004a5219e14847cbfa","modified":1662536127183},{"_id":"public/fonts/lanting/lanting.woff","hash":"642ad1f17d27d4b1010d1a0571d1b44cbc823d9d","modified":1662536127183},{"_id":"public/fonts/lanting/lanting.eot","hash":"3e184614f037939a6f98d607da3ed7dffb350e65","modified":1662536127183},{"_id":"public/fonts/lanting/lanting.TTF","hash":"97e9a4538cceef4b17d54c7dc589524905d1b685","modified":1662536127183},{"_id":"public/fonts/lanting/lanting.otf","hash":"4e184da596772d3ef6e5763cdee3e46a1ce2f2dd","modified":1662536127183}],"Category":[],"Data":[],"Page":[{"title":"标签","date":"2022-05-07T19:27:39.000Z","layout":"tag","_content":"","source":"tag/index.md","raw":"---\ntitle: 标签\ndate: 2022-05-08 03:27:39\nlayout: tag\n---\n","updated":"2022-07-08T13:31:07.000Z","path":"tag/index.html","comments":1,"_id":"cl7rb330s0002fid63cah9g2u","content":"","site":{"data":{}},"excerpt":"","more":""},{"title":"欢迎参观","date":"2022-03-01T03:42:55.000Z","tags":null,"_content":"## 你好,欢迎来到我的博客\n\n这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。\n\n## 关于我 (Hubert Chen)\n\n### 兴趣爱好\n\n给手机刷系统,例如 [Lineage OS](https://lineageos.org/) [Sailfish OS](https://sailfishos.org/)\n会些基础的Linux操作~~,不过十分容易碰见bug~~\n会画画 (非常非常基础,目前只会描些图)\n听音乐使用的软件: [Spotify](https://spotify.com/) [网易云音乐](https://music.163.com/) 偶尔会在网易云音乐里上传一些歌词\n玩游戏会用的软件: [Steam](https://store.steampowered.com/) [Ubisoft](https://www.ubisoft.com/) [Xbox(云游戏)](https://www.xbox.com/)\n活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org ) 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了\n\n## 建站历程:\n\n### 2022/01/24\n初次建立并使用 [GitHub Pages](https://github.io) 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)\n\n### 2022/01/29\n在 [Freenom](freenom.com) 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 [GitHub Pages](https://github.io) 的默认域名\n\n### 2022/02/26\n由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维\n \n### 2022/02/27\n将域名 DNS 解析托管到 [GoDaddy](godaddy.com) ,成功用上了自定义域名\n\n### 2022/03/08\n在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面\n\n### 2022/03/14\n更换为由 [Freenom](freenom.com) 提供的 DNS 解析\n\n### 2022/03/15\n把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)\n\n### 2022/05/07\n从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题\n\n### 2022/05/08\n使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz) ,DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供\n\n### 2022/06/01\n重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)\n\n### 2022/07/19\n重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦\n\n### 2022/09/11\n给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk),于 6 月 4 日在 [Porkbun](https://porkbun.com) 白嫖的 [trle5.dev](https://trle5.dev) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大","source":"about/index.md","raw":"---\ntitle: 欢迎参观\ndate: 2022-03-01 11:42:55\ntags:\n---\n## 你好,欢迎来到我的博客\n\n这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。\n\n## 关于我 (Hubert Chen)\n\n### 兴趣爱好\n\n给手机刷系统,例如 [Lineage OS](https://lineageos.org/) [Sailfish OS](https://sailfishos.org/)\n会些基础的Linux操作~~,不过十分容易碰见bug~~\n会画画 (非常非常基础,目前只会描些图)\n听音乐使用的软件: [Spotify](https://spotify.com/) [网易云音乐](https://music.163.com/) 偶尔会在网易云音乐里上传一些歌词\n玩游戏会用的软件: [Steam](https://store.steampowered.com/) [Ubisoft](https://www.ubisoft.com/) [Xbox(云游戏)](https://www.xbox.com/)\n活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org ) 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了\n\n## 建站历程:\n\n### 2022/01/24\n初次建立并使用 [GitHub Pages](https://github.io) 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)\n\n### 2022/01/29\n在 [Freenom](freenom.com) 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 [GitHub Pages](https://github.io) 的默认域名\n\n### 2022/02/26\n由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维\n \n### 2022/02/27\n将域名 DNS 解析托管到 [GoDaddy](godaddy.com) ,成功用上了自定义域名\n\n### 2022/03/08\n在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面\n\n### 2022/03/14\n更换为由 [Freenom](freenom.com) 提供的 DNS 解析\n\n### 2022/03/15\n把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)\n\n### 2022/05/07\n从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题\n\n### 2022/05/08\n使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz) ,DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供\n\n### 2022/06/01\n重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)\n\n### 2022/07/19\n重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦\n\n### 2022/09/11\n给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk),于 6 月 4 日在 [Porkbun](https://porkbun.com) 白嫖的 [trle5.dev](https://trle5.dev) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大","updated":"2022-09-11T17:01:49.313Z","path":"about/index.html","_id":"cl7xkx7hj00003bd6bfqq3xdw","comments":1,"layout":"page","content":"<h2 id=\"你好,欢迎来到我的博客\"><a href=\"#你好,欢迎来到我的博客\" class=\"headerlink\" title=\"你好,欢迎来到我的博客\"></a>你好,欢迎来到我的博客</h2><p>这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。</p>\n<h2 id=\"关于我-Hubert-Chen\"><a href=\"#关于我-Hubert-Chen\" class=\"headerlink\" title=\"关于我 (Hubert Chen)\"></a>关于我 (Hubert Chen)</h2><h3 id=\"兴趣爱好\"><a href=\"#兴趣爱好\" class=\"headerlink\" title=\"兴趣爱好\"></a>兴趣爱好</h3><p>给手机刷系统,例如 <a href=\"https://lineageos.org/\">Lineage OS</a> <a href=\"https://sailfishos.org/\">Sailfish OS</a><br>会些基础的Linux操作<del>,不过十分容易碰见bug</del><br>会画画 (非常非常基础,目前只会描些图)<br>听音乐使用的软件: <a href=\"https://spotify.com/\">Spotify</a> <a href=\"https://music.163.com/\">网易云音乐</a> 偶尔会在网易云音乐里上传一些歌词<br>玩游戏会用的软件: <a href=\"https://store.steampowered.com/\">Steam</a> <a href=\"https://www.ubisoft.com/\">Ubisoft</a> <a href=\"https://www.xbox.com/\">Xbox(云游戏)</a><br>活跃的社交平台:<a href=\"https://t.me/trle5\">Telegram</a> <a href=\"https://twitter.com/interstellar750\">Twitter</a> <a href=\"https://github.com/Interstellar750/\">GitHub</a> <a href=\"https://matrix.io/#/@trle5:matrix.org\">Matrix</a> 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了</p>\n<h2 id=\"建站历程:\"><a href=\"#建站历程:\" class=\"headerlink\" title=\"建站历程:\"></a>建站历程:</h2><h3 id=\"2022-x2F-01-x2F-24\"><a href=\"#2022-x2F-01-x2F-24\" class=\"headerlink\" title=\"2022/01/24\"></a>2022/01/24</h3><p>初次建立并使用 <a href=\"https://github.io/\">GitHub Pages</a> 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)</p>\n<h3 id=\"2022-x2F-01-x2F-29\"><a href=\"#2022-x2F-01-x2F-29\" class=\"headerlink\" title=\"2022/01/29\"></a>2022/01/29</h3><p>在 <a href=\"freenom.com\">Freenom</a> 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 <a href=\"https://github.io/\">GitHub Pages</a> 的默认域名</p>\n<h3 id=\"2022-x2F-02-x2F-26\"><a href=\"#2022-x2F-02-x2F-26\" class=\"headerlink\" title=\"2022/02/26\"></a>2022/02/26</h3><p>由于 x10m2 上的 <a href=\"https://sailfishos.org/\">Sailfish OS</a> 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 <a href=\"https://play.google.com/store/apps/details?id=com.termux\">Termux</a> 来继续运维</p>\n<h3 id=\"2022-x2F-02-x2F-27\"><a href=\"#2022-x2F-02-x2F-27\" class=\"headerlink\" title=\"2022/02/27\"></a>2022/02/27</h3><p>将域名 DNS 解析托管到 <a href=\"godaddy.com\">GoDaddy</a> ,成功用上了自定义域名</p>\n<h3 id=\"2022-x2F-03-x2F-08\"><a href=\"#2022-x2F-03-x2F-08\" class=\"headerlink\" title=\"2022/03/08\"></a>2022/03/08</h3><p>在 <a href=\"https://reg.ru/\">reg.ru</a> 购买了一年的 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 域名,用于存放文件,本站可能有一些图片文件会储存在里面</p>\n<h3 id=\"2022-x2F-03-x2F-14\"><a href=\"#2022-x2F-03-x2F-14\" class=\"headerlink\" title=\"2022/03/14\"></a>2022/03/14</h3><p>更换为由 <a href=\"freenom.com\">Freenom</a> 提供的 DNS 解析</p>\n<h3 id=\"2022-x2F-03-x2F-15\"><a href=\"#2022-x2F-03-x2F-15\" class=\"headerlink\" title=\"2022/03/15\"></a>2022/03/15</h3><p>把 blackbox 的域名从 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 迁移到 <a href=\"https://t5d.trle5.tk/\">t5d.trle5.tk</a></p>\n<h3 id=\"2022-x2F-05-x2F-07\"><a href=\"#2022-x2F-05-x2F-07\" class=\"headerlink\" title=\"2022/05/07\"></a>2022/05/07</h3><p>从默认的 Landscape 主题更换为 <a href=\"https://github.com/Siricee\">Siricee</a> 制作的 <a href=\"https://github.com/Siricee/hexo-theme-Chic\">Chic</a> 主题</p>\n<h3 id=\"2022-x2F-05-x2F-08\"><a href=\"#2022-x2F-05-x2F-08\" class=\"headerlink\" title=\"2022/05/08\"></a>2022/05/08</h3><p>使用 <a href=\"https://vercel.com/\">Vercel</a> 建立了博客镜像站,使用域名 <a href=\"https://trle5.xyz/\">trle5.xyz</a> ,DNS 解析由 <a href=\"https://cloudflare.com/\">Cloudflare</a> 提供</p>\n<h3 id=\"2022-x2F-06-x2F-01\"><a href=\"#2022-x2F-06-x2F-01\" class=\"headerlink\" title=\"2022/06/01\"></a>2022/06/01</h3><p>重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)</p>\n<h3 id=\"2022-x2F-07-x2F-19\"><a href=\"#2022-x2F-07-x2F-19\" class=\"headerlink\" title=\"2022/07/19\"></a>2022/07/19</h3><p>重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 <del><strong>懒</strong></del> ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦</p>\n<h3 id=\"2022-x2F-09-x2F-11\"><a href=\"#2022-x2F-09-x2F-11\" class=\"headerlink\" title=\"2022/09/11\"></a>2022/09/11</h3><p>给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 <a href=\"https://trle5.tk/\">trle5.tk</a>,于 6 月 4 日在 <a href=\"https://porkbun.com/\">Porkbun</a> 白嫖的 <a href=\"https://trle5.dev/\">trle5.dev</a> 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大</p>\n","site":{"data":{}},"excerpt":"","more":"<h2 id=\"你好,欢迎来到我的博客\"><a href=\"#你好,欢迎来到我的博客\" class=\"headerlink\" title=\"你好,欢迎来到我的博客\"></a>你好,欢迎来到我的博客</h2><p>这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。</p>\n<h2 id=\"关于我-Hubert-Chen\"><a href=\"#关于我-Hubert-Chen\" class=\"headerlink\" title=\"关于我 (Hubert Chen)\"></a>关于我 (Hubert Chen)</h2><h3 id=\"兴趣爱好\"><a href=\"#兴趣爱好\" class=\"headerlink\" title=\"兴趣爱好\"></a>兴趣爱好</h3><p>给手机刷系统,例如 <a href=\"https://lineageos.org/\">Lineage OS</a> <a href=\"https://sailfishos.org/\">Sailfish OS</a><br>会些基础的Linux操作<del>,不过十分容易碰见bug</del><br>会画画 (非常非常基础,目前只会描些图)<br>听音乐使用的软件: <a href=\"https://spotify.com/\">Spotify</a> <a href=\"https://music.163.com/\">网易云音乐</a> 偶尔会在网易云音乐里上传一些歌词<br>玩游戏会用的软件: <a href=\"https://store.steampowered.com/\">Steam</a> <a href=\"https://www.ubisoft.com/\">Ubisoft</a> <a href=\"https://www.xbox.com/\">Xbox(云游戏)</a><br>活跃的社交平台:<a href=\"https://t.me/trle5\">Telegram</a> <a href=\"https://twitter.com/interstellar750\">Twitter</a> <a href=\"https://github.com/Interstellar750/\">GitHub</a> <a href=\"https://matrix.io/#/@trle5:matrix.org\">Matrix</a> 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了</p>\n<h2 id=\"建站历程:\"><a href=\"#建站历程:\" class=\"headerlink\" title=\"建站历程:\"></a>建站历程:</h2><h3 id=\"2022-x2F-01-x2F-24\"><a href=\"#2022-x2F-01-x2F-24\" class=\"headerlink\" title=\"2022/01/24\"></a>2022/01/24</h3><p>初次建立并使用 <a href=\"https://github.io/\">GitHub Pages</a> 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)</p>\n<h3 id=\"2022-x2F-01-x2F-29\"><a href=\"#2022-x2F-01-x2F-29\" class=\"headerlink\" title=\"2022/01/29\"></a>2022/01/29</h3><p>在 <a href=\"freenom.com\">Freenom</a> 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 <a href=\"https://github.io/\">GitHub Pages</a> 的默认域名</p>\n<h3 id=\"2022-x2F-02-x2F-26\"><a href=\"#2022-x2F-02-x2F-26\" class=\"headerlink\" title=\"2022/02/26\"></a>2022/02/26</h3><p>由于 x10m2 上的 <a href=\"https://sailfishos.org/\">Sailfish OS</a> 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 <a href=\"https://play.google.com/store/apps/details?id=com.termux\">Termux</a> 来继续运维</p>\n<h3 id=\"2022-x2F-02-x2F-27\"><a href=\"#2022-x2F-02-x2F-27\" class=\"headerlink\" title=\"2022/02/27\"></a>2022/02/27</h3><p>将域名 DNS 解析托管到 <a href=\"godaddy.com\">GoDaddy</a> ,成功用上了自定义域名</p>\n<h3 id=\"2022-x2F-03-x2F-08\"><a href=\"#2022-x2F-03-x2F-08\" class=\"headerlink\" title=\"2022/03/08\"></a>2022/03/08</h3><p>在 <a href=\"https://reg.ru/\">reg.ru</a> 购买了一年的 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 域名,用于存放文件,本站可能有一些图片文件会储存在里面</p>\n<h3 id=\"2022-x2F-03-x2F-14\"><a href=\"#2022-x2F-03-x2F-14\" class=\"headerlink\" title=\"2022/03/14\"></a>2022/03/14</h3><p>更换为由 <a href=\"freenom.com\">Freenom</a> 提供的 DNS 解析</p>\n<h3 id=\"2022-x2F-03-x2F-15\"><a href=\"#2022-x2F-03-x2F-15\" class=\"headerlink\" title=\"2022/03/15\"></a>2022/03/15</h3><p>把 blackbox 的域名从 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 迁移到 <a href=\"https://t5d.trle5.tk/\">t5d.trle5.tk</a></p>\n<h3 id=\"2022-x2F-05-x2F-07\"><a href=\"#2022-x2F-05-x2F-07\" class=\"headerlink\" title=\"2022/05/07\"></a>2022/05/07</h3><p>从默认的 Landscape 主题更换为 <a href=\"https://github.com/Siricee\">Siricee</a> 制作的 <a href=\"https://github.com/Siricee/hexo-theme-Chic\">Chic</a> 主题</p>\n<h3 id=\"2022-x2F-05-x2F-08\"><a href=\"#2022-x2F-05-x2F-08\" class=\"headerlink\" title=\"2022/05/08\"></a>2022/05/08</h3><p>使用 <a href=\"https://vercel.com/\">Vercel</a> 建立了博客镜像站,使用域名 <a href=\"https://trle5.xyz/\">trle5.xyz</a> ,DNS 解析由 <a href=\"https://cloudflare.com/\">Cloudflare</a> 提供</p>\n<h3 id=\"2022-x2F-06-x2F-01\"><a href=\"#2022-x2F-06-x2F-01\" class=\"headerlink\" title=\"2022/06/01\"></a>2022/06/01</h3><p>重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)</p>\n<h3 id=\"2022-x2F-07-x2F-19\"><a href=\"#2022-x2F-07-x2F-19\" class=\"headerlink\" title=\"2022/07/19\"></a>2022/07/19</h3><p>重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 <del><strong>懒</strong></del> ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦</p>\n<h3 id=\"2022-x2F-09-x2F-11\"><a href=\"#2022-x2F-09-x2F-11\" class=\"headerlink\" title=\"2022/09/11\"></a>2022/09/11</h3><p>给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 <a href=\"https://trle5.tk/\">trle5.tk</a>,于 6 月 4 日在 <a href=\"https://porkbun.com/\">Porkbun</a> 白嫖的 <a href=\"https://trle5.dev/\">trle5.dev</a> 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大</p>\n"}],"Post":[{"title":"Hello World","date":"2022-01-23T16:00:00.000Z","_content":"Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).\n\n## Quick Start\n\n### Create a new post\n\n``` bash\n$ hexo new \"My New Post\"\n```\n\nMore info: [Writing](https://hexo.io/docs/writing.html)\n\n### Run server\n\n``` bash\n$ hexo server\n```\n\nMore info: [Server](https://hexo.io/docs/server.html)\n\n### Generate static files\n\n``` bash\n$ hexo generate\n```\n\nMore info: [Generating](https://hexo.io/docs/generating.html)\n\n### Deploy to remote sites\n\n``` bash\n$ hexo deploy\n```\n\nMore info: [Deployment](https://hexo.io/docs/one-command-deployment.html)\n","source":"_posts/01.hello-world.md","raw":"---\ntitle: Hello World\ndate: 2022-01-24 00:00:00\n---\nWelcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).\n\n## Quick Start\n\n### Create a new post\n\n``` bash\n$ hexo new \"My New Post\"\n```\n\nMore info: [Writing](https://hexo.io/docs/writing.html)\n\n### Run server\n\n``` bash\n$ hexo server\n```\n\nMore info: [Server](https://hexo.io/docs/server.html)\n\n### Generate static files\n\n``` bash\n$ hexo generate\n```\n\nMore info: [Generating](https://hexo.io/docs/generating.html)\n\n### Deploy to remote sites\n\n``` bash\n$ hexo deploy\n```\n\nMore info: [Deployment](https://hexo.io/docs/one-command-deployment.html)\n","slug":"01.hello-world","published":1,"updated":"2022-07-08T13:31:07.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb330b0001fid6arhc8n1f","content":"<p>Welcome to <a href=\"https://hexo.io/\">Hexo</a>! This is your very first post. Check <a href=\"https://hexo.io/docs/\">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href=\"https://hexo.io/docs/troubleshooting.html\">troubleshooting</a> or you can ask me on <a href=\"https://github.com/hexojs/hexo/issues\">GitHub</a>.</p>\n<h2 id=\"Quick-Start\"><a href=\"#Quick-Start\" class=\"headerlink\" title=\"Quick Start\"></a>Quick Start</h2><h3 id=\"Create-a-new-post\"><a href=\"#Create-a-new-post\" class=\"headerlink\" title=\"Create a new post\"></a>Create a new post</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo new <span class=\"string\">"My New Post"</span></span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/writing.html\">Writing</a></p>\n<h3 id=\"Run-server\"><a href=\"#Run-server\" class=\"headerlink\" title=\"Run server\"></a>Run server</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo server</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/server.html\">Server</a></p>\n<h3 id=\"Generate-static-files\"><a href=\"#Generate-static-files\" class=\"headerlink\" title=\"Generate static files\"></a>Generate static files</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo generate</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/generating.html\">Generating</a></p>\n<h3 id=\"Deploy-to-remote-sites\"><a href=\"#Deploy-to-remote-sites\" class=\"headerlink\" title=\"Deploy to remote sites\"></a>Deploy to remote sites</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo deploy</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/one-command-deployment.html\">Deployment</a></p>\n","site":{"data":{}},"excerpt":"","more":"<p>Welcome to <a href=\"https://hexo.io/\">Hexo</a>! This is your very first post. Check <a href=\"https://hexo.io/docs/\">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href=\"https://hexo.io/docs/troubleshooting.html\">troubleshooting</a> or you can ask me on <a href=\"https://github.com/hexojs/hexo/issues\">GitHub</a>.</p>\n<h2 id=\"Quick-Start\"><a href=\"#Quick-Start\" class=\"headerlink\" title=\"Quick Start\"></a>Quick Start</h2><h3 id=\"Create-a-new-post\"><a href=\"#Create-a-new-post\" class=\"headerlink\" title=\"Create a new post\"></a>Create a new post</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo new <span class=\"string\">"My New Post"</span></span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/writing.html\">Writing</a></p>\n<h3 id=\"Run-server\"><a href=\"#Run-server\" class=\"headerlink\" title=\"Run server\"></a>Run server</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo server</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/server.html\">Server</a></p>\n<h3 id=\"Generate-static-files\"><a href=\"#Generate-static-files\" class=\"headerlink\" title=\"Generate static files\"></a>Generate static files</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo generate</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/generating.html\">Generating</a></p>\n<h3 id=\"Deploy-to-remote-sites\"><a href=\"#Deploy-to-remote-sites\" class=\"headerlink\" title=\"Deploy to remote sites\"></a>Deploy to remote sites</h3><figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ hexo deploy</span><br></pre></td></tr></table></figure>\n\n<p>More info: <a href=\"https://hexo.io/docs/one-command-deployment.html\">Deployment</a></p>\n"},{"title":"这是一个测试页面","date":"2022-01-25T16:00:00.000Z","_content":"<u>测试下划线</u>\n`测试等宽abc`\n[测试链接](https://github.com/)\n![测试图片](/images/post/02/test.png)\ntest netease music\n<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","source":"_posts/02.pages.md","raw":"---\ntitle: 这是一个测试页面\ndate: 2022-01-26 00:00:00\ntags: 测试\n---\n<u>测试下划线</u>\n`测试等宽abc`\n[测试链接](https://github.com/)\n![测试图片](/images/post/02/test.png)\ntest netease music\n<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","slug":"02.pages","published":1,"updated":"2022-09-07T06:51:38.784Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb330v0003fid6euy5c5k9","content":"<p><u>测试下划线</u><br><code>测试等宽abc</code><br><a href=\"https://github.com/\">测试链接</a><br><img src=\"/images/post/02/test.png\" alt=\"测试图片\"><br>test netease music</p>\n<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","site":{"data":{}},"excerpt":"","more":"<p><u>测试下划线</u><br><code>测试等宽abc</code><br><a href=\"https://github.com/\">测试链接</a><br><img src=\"/images/post/02/test.png\" alt=\"测试图片\"><br>test netease music</p>\n<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>"},{"title":"testagain","date":"2022-01-26T15:40:35.000Z","_content":"<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","source":"_posts/03.testagain.md","raw":"---\ntitle: testagain\ndate: 2022-01-26 23:40:35\ntags: 测试\n---\n<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","slug":"03.testagain","published":1,"updated":"2022-07-08T13:31:07.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb33160004fid6euek7yol","content":"<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>","site":{"data":{}},"excerpt":"","more":"<iframe border=\"0\" marginwidth=\"0\" marginheight=\"0\" src=\"//music.163.com/outchain/player?type=2&id=1300697588&auto=0&height=66\" width=\"330\" height=\"86\" frameborder=\"no\"></iframe>"},{"title":"欢迎参观","date":"2022-03-01T03:42:55.000Z","_content":"## 你好,欢迎来到我的博客\n\n这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。\n\n## 关于我 (Hubert Chen)\n\n### 兴趣爱好\n\n给手机刷系统,例如 [Lineage OS](https://lineageos.org/) [Sailfish OS](https://sailfishos.org/)\n会些基础的Linux操作~~,不过十分容易碰见bug~~\n会画画 (非常非常基础,目前只会描些图)\n听音乐使用的软件: [Spotify](https://spotify.com/) [网易云音乐](https://music.163.com/) 偶尔会在网易云音乐里上传一些歌词\n玩游戏会用的软件: [Steam](https://store.steampowered.com/) [Ubisoft](https://www.ubisoft.com/) [Xbox(云游戏)](https://www.xbox.com/)\n活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org ) 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了\n\n## 建站历程:\n\n### 2022/01/24\n初次建立并使用 [GitHub Pages](https://github.io) 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)\n\n### 2022/01/29\n在 [Freenom](freenom.com) 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 [GitHub Pages](https://github.io) 的默认域名\n\n### 2022/02/26\n由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维\n \n### 2022/02/27\n将域名 DNS 解析托管到 [GoDaddy](godaddy.com) ,成功用上了自定义域名\n\n### 2022/03/08\n在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面\n\n### 2022/03/14\n更换为由 [Freenom](freenom.com) 提供的 DNS 解析\n\n### 2022/03/15\n把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)\n\n### 2022/05/07\n从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题\n\n### 2022/05/08\n使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz) ,DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供\n\n### 2022/06/01\n重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)\n\n### 2022/07/19\n重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦\n\n### 2022/09/11\n给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk),于 6 月 4 日在 [Porkbun](https://porkbun.com) 白嫖的 [trle5.dev](https://trle5.dev) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大","source":"_posts/04.欢迎参观.md","raw":"---\ntitle: 欢迎参观\ndate: 2022-03-01 11:42:55\ntags:\n---\n## 你好,欢迎来到我的博客\n\n这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。\n\n## 关于我 (Hubert Chen)\n\n### 兴趣爱好\n\n给手机刷系统,例如 [Lineage OS](https://lineageos.org/) [Sailfish OS](https://sailfishos.org/)\n会些基础的Linux操作~~,不过十分容易碰见bug~~\n会画画 (非常非常基础,目前只会描些图)\n听音乐使用的软件: [Spotify](https://spotify.com/) [网易云音乐](https://music.163.com/) 偶尔会在网易云音乐里上传一些歌词\n玩游戏会用的软件: [Steam](https://store.steampowered.com/) [Ubisoft](https://www.ubisoft.com/) [Xbox(云游戏)](https://www.xbox.com/)\n活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org ) 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了\n\n## 建站历程:\n\n### 2022/01/24\n初次建立并使用 [GitHub Pages](https://github.io) 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)\n\n### 2022/01/29\n在 [Freenom](freenom.com) 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 [GitHub Pages](https://github.io) 的默认域名\n\n### 2022/02/26\n由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维\n \n### 2022/02/27\n将域名 DNS 解析托管到 [GoDaddy](godaddy.com) ,成功用上了自定义域名\n\n### 2022/03/08\n在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面\n\n### 2022/03/14\n更换为由 [Freenom](freenom.com) 提供的 DNS 解析\n\n### 2022/03/15\n把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)\n\n### 2022/05/07\n从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题\n\n### 2022/05/08\n使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz) ,DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供\n\n### 2022/06/01\n重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)\n\n### 2022/07/19\n重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦\n\n### 2022/09/11\n给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk),于 6 月 4 日在 [Porkbun](https://porkbun.com) 白嫖的 [trle5.dev](https://trle5.dev) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大","slug":"04.欢迎参观","published":1,"updated":"2022-09-11T17:01:49.313Z","_id":"cl7rb331m0006fid63fu16blu","comments":1,"layout":"post","photos":[],"link":"","content":"<h2 id=\"你好,欢迎来到我的博客\"><a href=\"#你好,欢迎来到我的博客\" class=\"headerlink\" title=\"你好,欢迎来到我的博客\"></a>你好,欢迎来到我的博客</h2><p>这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。</p>\n<h2 id=\"关于我-Hubert-Chen\"><a href=\"#关于我-Hubert-Chen\" class=\"headerlink\" title=\"关于我 (Hubert Chen)\"></a>关于我 (Hubert Chen)</h2><h3 id=\"兴趣爱好\"><a href=\"#兴趣爱好\" class=\"headerlink\" title=\"兴趣爱好\"></a>兴趣爱好</h3><p>给手机刷系统,例如 <a href=\"https://lineageos.org/\">Lineage OS</a> <a href=\"https://sailfishos.org/\">Sailfish OS</a><br>会些基础的Linux操作<del>,不过十分容易碰见bug</del><br>会画画 (非常非常基础,目前只会描些图)<br>听音乐使用的软件: <a href=\"https://spotify.com/\">Spotify</a> <a href=\"https://music.163.com/\">网易云音乐</a> 偶尔会在网易云音乐里上传一些歌词<br>玩游戏会用的软件: <a href=\"https://store.steampowered.com/\">Steam</a> <a href=\"https://www.ubisoft.com/\">Ubisoft</a> <a href=\"https://www.xbox.com/\">Xbox(云游戏)</a><br>活跃的社交平台:<a href=\"https://t.me/trle5\">Telegram</a> <a href=\"https://twitter.com/interstellar750\">Twitter</a> <a href=\"https://github.com/Interstellar750/\">GitHub</a> <a href=\"https://matrix.io/#/@trle5:matrix.org\">Matrix</a> 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了</p>\n<h2 id=\"建站历程:\"><a href=\"#建站历程:\" class=\"headerlink\" title=\"建站历程:\"></a>建站历程:</h2><h3 id=\"2022-x2F-01-x2F-24\"><a href=\"#2022-x2F-01-x2F-24\" class=\"headerlink\" title=\"2022/01/24\"></a>2022/01/24</h3><p>初次建立并使用 <a href=\"https://github.io/\">GitHub Pages</a> 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)</p>\n<h3 id=\"2022-x2F-01-x2F-29\"><a href=\"#2022-x2F-01-x2F-29\" class=\"headerlink\" title=\"2022/01/29\"></a>2022/01/29</h3><p>在 <a href=\"freenom.com\">Freenom</a> 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 <a href=\"https://github.io/\">GitHub Pages</a> 的默认域名</p>\n<h3 id=\"2022-x2F-02-x2F-26\"><a href=\"#2022-x2F-02-x2F-26\" class=\"headerlink\" title=\"2022/02/26\"></a>2022/02/26</h3><p>由于 x10m2 上的 <a href=\"https://sailfishos.org/\">Sailfish OS</a> 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 <a href=\"https://play.google.com/store/apps/details?id=com.termux\">Termux</a> 来继续运维</p>\n<h3 id=\"2022-x2F-02-x2F-27\"><a href=\"#2022-x2F-02-x2F-27\" class=\"headerlink\" title=\"2022/02/27\"></a>2022/02/27</h3><p>将域名 DNS 解析托管到 <a href=\"godaddy.com\">GoDaddy</a> ,成功用上了自定义域名</p>\n<h3 id=\"2022-x2F-03-x2F-08\"><a href=\"#2022-x2F-03-x2F-08\" class=\"headerlink\" title=\"2022/03/08\"></a>2022/03/08</h3><p>在 <a href=\"https://reg.ru/\">reg.ru</a> 购买了一年的 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 域名,用于存放文件,本站可能有一些图片文件会储存在里面</p>\n<h3 id=\"2022-x2F-03-x2F-14\"><a href=\"#2022-x2F-03-x2F-14\" class=\"headerlink\" title=\"2022/03/14\"></a>2022/03/14</h3><p>更换为由 <a href=\"freenom.com\">Freenom</a> 提供的 DNS 解析</p>\n<h3 id=\"2022-x2F-03-x2F-15\"><a href=\"#2022-x2F-03-x2F-15\" class=\"headerlink\" title=\"2022/03/15\"></a>2022/03/15</h3><p>把 blackbox 的域名从 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 迁移到 <a href=\"https://t5d.trle5.tk/\">t5d.trle5.tk</a></p>\n<h3 id=\"2022-x2F-05-x2F-07\"><a href=\"#2022-x2F-05-x2F-07\" class=\"headerlink\" title=\"2022/05/07\"></a>2022/05/07</h3><p>从默认的 Landscape 主题更换为 <a href=\"https://github.com/Siricee\">Siricee</a> 制作的 <a href=\"https://github.com/Siricee/hexo-theme-Chic\">Chic</a> 主题</p>\n<h3 id=\"2022-x2F-05-x2F-08\"><a href=\"#2022-x2F-05-x2F-08\" class=\"headerlink\" title=\"2022/05/08\"></a>2022/05/08</h3><p>使用 <a href=\"https://vercel.com/\">Vercel</a> 建立了博客镜像站,使用域名 <a href=\"https://trle5.xyz/\">trle5.xyz</a> ,DNS 解析由 <a href=\"https://cloudflare.com/\">Cloudflare</a> 提供</p>\n<h3 id=\"2022-x2F-06-x2F-01\"><a href=\"#2022-x2F-06-x2F-01\" class=\"headerlink\" title=\"2022/06/01\"></a>2022/06/01</h3><p>重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)</p>\n<h3 id=\"2022-x2F-07-x2F-19\"><a href=\"#2022-x2F-07-x2F-19\" class=\"headerlink\" title=\"2022/07/19\"></a>2022/07/19</h3><p>重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 <del><strong>懒</strong></del> ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦</p>\n<h3 id=\"2022-x2F-09-x2F-11\"><a href=\"#2022-x2F-09-x2F-11\" class=\"headerlink\" title=\"2022/09/11\"></a>2022/09/11</h3><p>给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 <a href=\"https://trle5.tk/\">trle5.tk</a>,于 6 月 4 日在 <a href=\"https://porkbun.com/\">Porkbun</a> 白嫖的 <a href=\"https://trle5.dev/\">trle5.dev</a> 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大</p>\n","site":{"data":{}},"excerpt":"","more":"<h2 id=\"你好,欢迎来到我的博客\"><a href=\"#你好,欢迎来到我的博客\" class=\"headerlink\" title=\"你好,欢迎来到我的博客\"></a>你好,欢迎来到我的博客</h2><p>这个博客由我创建于2022年01月24日,起初是想跟网络上的大佬一样搭个自己的博客,不过现在搭好了也不知道写些什么。</p>\n<h2 id=\"关于我-Hubert-Chen\"><a href=\"#关于我-Hubert-Chen\" class=\"headerlink\" title=\"关于我 (Hubert Chen)\"></a>关于我 (Hubert Chen)</h2><h3 id=\"兴趣爱好\"><a href=\"#兴趣爱好\" class=\"headerlink\" title=\"兴趣爱好\"></a>兴趣爱好</h3><p>给手机刷系统,例如 <a href=\"https://lineageos.org/\">Lineage OS</a> <a href=\"https://sailfishos.org/\">Sailfish OS</a><br>会些基础的Linux操作<del>,不过十分容易碰见bug</del><br>会画画 (非常非常基础,目前只会描些图)<br>听音乐使用的软件: <a href=\"https://spotify.com/\">Spotify</a> <a href=\"https://music.163.com/\">网易云音乐</a> 偶尔会在网易云音乐里上传一些歌词<br>玩游戏会用的软件: <a href=\"https://store.steampowered.com/\">Steam</a> <a href=\"https://www.ubisoft.com/\">Ubisoft</a> <a href=\"https://www.xbox.com/\">Xbox(云游戏)</a><br>活跃的社交平台:<a href=\"https://t.me/trle5\">Telegram</a> <a href=\"https://twitter.com/interstellar750\">Twitter</a> <a href=\"https://github.com/Interstellar750/\">GitHub</a> <a href=\"https://matrix.io/#/@trle5:matrix.org\">Matrix</a> 国内的QQ微信也在用,但并不太喜欢,而且放出来可能会泄露个人信息,所以就不公开了</p>\n<h2 id=\"建站历程:\"><a href=\"#建站历程:\" class=\"headerlink\" title=\"建站历程:\"></a>建站历程:</h2><h3 id=\"2022-x2F-01-x2F-24\"><a href=\"#2022-x2F-01-x2F-24\" class=\"headerlink\" title=\"2022/01/24\"></a>2022/01/24</h3><p>初次建立并使用 <a href=\"https://github.io/\">GitHub Pages</a> 来作为服务器 (其实并不是第一次,前前后后试了好几次,因为碰到了好多bug)</p>\n<h3 id=\"2022-x2F-01-x2F-29\"><a href=\"#2022-x2F-01-x2F-29\" class=\"headerlink\" title=\"2022/01/29\"></a>2022/01/29</h3><p>在 <a href=\"freenom.com\">Freenom</a> 上申请了12个月的免费域名 trle5.tk ,但由于不会设置DNS解析,依然用着 <a href=\"https://github.io/\">GitHub Pages</a> 的默认域名</p>\n<h3 id=\"2022-x2F-02-x2F-26\"><a href=\"#2022-x2F-02-x2F-26\" class=\"headerlink\" title=\"2022/02/26\"></a>2022/02/26</h3><p>由于 x10m2 上的 <a href=\"https://sailfishos.org/\">Sailfish OS</a> 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e,使用 <a href=\"https://play.google.com/store/apps/details?id=com.termux\">Termux</a> 来继续运维</p>\n<h3 id=\"2022-x2F-02-x2F-27\"><a href=\"#2022-x2F-02-x2F-27\" class=\"headerlink\" title=\"2022/02/27\"></a>2022/02/27</h3><p>将域名 DNS 解析托管到 <a href=\"godaddy.com\">GoDaddy</a> ,成功用上了自定义域名</p>\n<h3 id=\"2022-x2F-03-x2F-08\"><a href=\"#2022-x2F-03-x2F-08\" class=\"headerlink\" title=\"2022/03/08\"></a>2022/03/08</h3><p>在 <a href=\"https://reg.ru/\">reg.ru</a> 购买了一年的 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 域名,用于存放文件,本站可能有一些图片文件会储存在里面</p>\n<h3 id=\"2022-x2F-03-x2F-14\"><a href=\"#2022-x2F-03-x2F-14\" class=\"headerlink\" title=\"2022/03/14\"></a>2022/03/14</h3><p>更换为由 <a href=\"freenom.com\">Freenom</a> 提供的 DNS 解析</p>\n<h3 id=\"2022-x2F-03-x2F-15\"><a href=\"#2022-x2F-03-x2F-15\" class=\"headerlink\" title=\"2022/03/15\"></a>2022/03/15</h3><p>把 blackbox 的域名从 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 迁移到 <a href=\"https://t5d.trle5.tk/\">t5d.trle5.tk</a></p>\n<h3 id=\"2022-x2F-05-x2F-07\"><a href=\"#2022-x2F-05-x2F-07\" class=\"headerlink\" title=\"2022/05/07\"></a>2022/05/07</h3><p>从默认的 Landscape 主题更换为 <a href=\"https://github.com/Siricee\">Siricee</a> 制作的 <a href=\"https://github.com/Siricee/hexo-theme-Chic\">Chic</a> 主题</p>\n<h3 id=\"2022-x2F-05-x2F-08\"><a href=\"#2022-x2F-05-x2F-08\" class=\"headerlink\" title=\"2022/05/08\"></a>2022/05/08</h3><p>使用 <a href=\"https://vercel.com/\">Vercel</a> 建立了博客镜像站,使用域名 <a href=\"https://trle5.xyz/\">trle5.xyz</a> ,DNS 解析由 <a href=\"https://cloudflare.com/\">Cloudflare</a> 提供</p>\n<h3 id=\"2022-x2F-06-x2F-01\"><a href=\"#2022-x2F-06-x2F-01\" class=\"headerlink\" title=\"2022/06/01\"></a>2022/06/01</h3><p>重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)</p>\n<h3 id=\"2022-x2F-07-x2F-19\"><a href=\"#2022-x2F-07-x2F-19\" class=\"headerlink\" title=\"2022/07/19\"></a>2022/07/19</h3><p>重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 <del><strong>懒</strong></del> ,由于之前的丢数据问题,Cloudflare 账号也登不上了,找回有点麻烦</p>\n<h3 id=\"2022-x2F-09-x2F-11\"><a href=\"#2022-x2F-09-x2F-11\" class=\"headerlink\" title=\"2022/09/11\"></a>2022/09/11</h3><p>给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 <a href=\"https://trle5.xyz/\">trle5.xyz</a> 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 <a href=\"https://trle5.tk/\">trle5.tk</a>,于 6 月 4 日在 <a href=\"https://porkbun.com/\">Porkbun</a> 白嫖的 <a href=\"https://trle5.dev/\">trle5.dev</a> 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大</p>\n"},{"title":"搭建一个自己的博客","date":"2022-03-05T11:01:48.000Z","_content":" 你好!这里是 Hubert ,欢迎来我的博客看文章!\n \n ## 如何搭建自己的博客\n 搭建博客并没有那么困难,大部分的时候只需要跟着步骤走就行,当然有时候碰见 bug 会是不可避免的事,这就得看运气了 ~~我是属于运气差的那一类人。~~\n \n 本文里使用的博客框架为 [Hexo](https://github.com/hexojs/hexo) ,服务器使用 [GitHub Pages](github.io)。域名可使用 Github Pages 默认域名或自定义\n \n ### 那么就正式开始吧,毕竟我也不会写太多介绍\n #### 搭建博客需要准备的东西:\n ```\n 1. 可正常使用且没有被限制的 GitHub 账户\n 2. 搭载 Windows、Linux 或 Android 的设备\n 3. 良好的网络环境(我不知道啊你不要问我)\n ```\n首先创建 GitHub 账户,因为我们搭建博客要用到 GitHub Pages ,注册过程我就不多阐述了,看不懂可以打开浏览器的翻译功能,也可以在搜索引擎寻找对应的教程。\n创建完了 GitHub 账户,需要创建一个仓库(Repositories)用于存放博客文件和启用 GitHub Pages 。\n\n登录到 GitHub 网页版后,可以看见左上角的 **Recent Repositories** 旁有个 **New** 按钮,点击它来新建仓库![](/images/post/05/github202203051935.png)\n如果是使用手机来访问,可以进入 `https://github.com/<你的github用户名>?tab=repositories` ,就能看见那个New按钮了 ![](/images/post/05/github202203051951.png)\n\n创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 `<你的GitHub用户名>.github.io` ,否则你的 Github Pages 网页会变成 `<你的GitHub用户名>.github.io/<创建的仓库名>`,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。\n\n到这里 Github 的设置基本就完成了,接下来就应该开始配置 hexo 客户端了\n\n## 配置 Hexo 客户端\n\n一旦配置完 Hexo 客户端,博客控制文件是全平台通用的,所以这里只说明如何在各个客户端配置,搭建以及部署后面统一讲。\n\n------------\n\n### 在 Windows 设备上配置 Hexo 客户端\n\n首先要安装 Windows 版 [Node.js](https://nodejs.org/en/download/) ,选择 **Windows Installer**\n\n安装完成后测试是否正常\n\n```\nnode -v\nnpm -v\n```\n\n都能正常提示版本号的话,那就可以直接安装 Hexo 客户端\n\n```\nnpm install -g hexo-cli\nhexo version # 检查 hexo 是否正常\n```\n\n然后还需要安装一下 Git , 方法有两个。\n\n1. 进入 [Git官网](https://git-scm.com/) 下载常规安装包\n2. 使用winget `winget install --id Git.Git -e --source winget`\n\n这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它,当然如果你已经在其他平台配置过了,也可以cd到那个文件夹直接进去继续操作。\n\n```\ncd C:/Users/<你的用户名>/hexo/\ncd /d <目录> # CMD用户使用这条命令来切换目录\nhexo init\n```\n到这里的 Windwos上的 hexo 已经部署完成了\n\n------------\n\n### 在 Linux 设备上配置 Hexo 客户端\n\n相比于 Windows ,Linux 上的 Hexo 安装更为简单,只用在命令行运行几个命令\n\n```\n$ sudo apt update\n$ sudo apt install nodejs\n$ sudo apt install git # 如果已经安装了git可以跳过这一步\n$ sudo npm install -g hexo-cli\n$ hexo version\n```\n\n挺简单的,接着在`~/`下创建一个`hexo`文件夹再部署就行\n\n```\n$ mkdir hexo\n$ cd hexo\n$ hexo init # 此步如果有报错,请使用sudo执行或清空部署文件夹\n```\n\n完成\n\n------------\n\n### 在 Android 设备上配置 Hexo 客户端\n\n#### 由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令\n<<<<<<< HEAD\n#### 但由于 Termux 的默认用户文件夹是在 `/data/data/com.ternux/files/home/` 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\n=======\n#### 但由于 termux 的默认用户文件夹是在 `/data/data/com.ternux/files/home/` 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n##### 不然也可以尝试在手机上安装完整 Linux 虚拟机\n\n#### 安装 Termux \n<<<<<<< HEAD\n下载链接 [~~Play Store~~](https://play.google.com/store/apps/details?id=com.termux) 不推荐,已经很久没更新了 | [F-Droid](https://f-droid.org/repo/com.termux_118.apk) | [Hubert's Box](https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk) 下载速度有点堪忧\n=======\n下载链接 [~~Play Store~~](https://play.google.com/store/apps/details?id=com.termux) 不推荐,已经很久没更新了 | [F-Droid](https://f-droid.org/repo/com.termux_118.apk) | [Hubert's Box](https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk)\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n安装并打开,等待下载需要的配置文件\n\n更新源与升级\n\n```\n$ pkg update\n$ pkg upgrade\n# 如果以上命令不可用,可以试试把pkg改成apt,即 apt update\n```\n\nupgrade 中途可能有选择停顿,可根据个人喜好选择\n\n安装 Termux root 工具\n\n```\n$ pkg install tsu # 手机有 root 权限选择这个\n$ pkg install proot # 手机没有 root 权限选择这个\n```\n\n切换到 root\n\n```\n$ tsu # tsu使用这条命令,执行后会向手机索要root权限\n$ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权限有变\n```\n\n安装 nodejs 和 git 以及 hexo-cli \n\n```\n$ pkg install nodejs\n$ node -v && npm -v # 查看nodejs与npm的版本\n$ pkg install git # 已安装git可以忽略此行\n$ npm install -g hexo-cli\n$ hexo version\n```\n\n这下 hexo 客户端已经成功部署到 Termux 了,来创建文件夹部署博客文件吧\n\nTermux 的默认文件夹在安卓系统的 `/data/data/com.termux/files/home/` ,最好也是在 home 下创建一个 hexo 文件夹部署进去\n\n```\n$ mkdir hexo # 如果是用的系统 su ,记得观察路径是不是在 Termux 的 home 文件夹下( termux-chroot 显示为 ~$ ),以免破坏 Android 系统\n$ cd hexo\n$ hexo init\n```\n\n走完进度条也就部署完成了\n\n## 在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\n\n#### 下面的 `hexo generate` `hexo server` 和后面要讲的 `hexo deploy`,都可以使用 `hexo g` `hexo s` `hexo d`来代替,作用是一样的,也就是 **g**enerate **s**erver **d**eploy 三个单词的首字母。\n```\nhexo generate # 初始化博客并生成初始页面,后期每写一篇新文章也需要再执行一次\nhexo server # 运行本地服务器,一般用来测试和在推送前检查是否有问题\n```\n接下来会提示本地服务器已经启用,访问 `http://localhost:4000/` 或 `http://127.0.0.1:4000/` 都可以查看初始博客。\n\n配置文件并部署博客到 Github Pages\n\n进入你的hexo文件夹,然后编辑其中的 `_config.yml` 文件\n\n下面放一些正常的设置类型\n\n```\ntitle: Hexo # 博客主标题\nsubtitle: # 博客副标题\nauthor: John Doe # 博客著名者\nlanguage: en # 中文填 zh-CN\ntimezone: Asia/Shanghai # 时间位置,需要按照规范填写\nurl: http://example.com # 网站链接,影响到点击主副标题的跳转,可以填自定义域名或 Github Pages 二级域名\n``` \n\n接下来是部署设置,配置文件也是在 `_config.yml` 文件里编辑\n\n```\n# https://hexo.io/docs/one-command-deployment 查看 hexo 部署帮助文档\ndeploy: # 此处不用填写,留空\n type: git # 填 git 或 heroku ,根据你的部署位置来\n repository: https://github.com/</username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可\n branch: main # 或 master,根据分支来,例如我的就是 hexo\n```\n\n### 这下就可以部署到 Github Pages 了,不过还得设定一些东西\n\n确保你的终端里配置有 git,然后设置一下用户信息\n\n也可以手动编辑,Windows 的 .gitconfig 文件在用户文件夹目录,Linux 在用户文件夹下,Termux 在 home 文件夹下\n\n```\ngit config --global user.name \"<username>\" \ngit config --global user.mail \"<username@github.com>\"\n# 可能需要使用 root 权限执行\n# 可以不用加 \"\" 号,只是因为用户名有空格的话可能会造成git只记录下前一半\n```\n\n### 关于 git config 中的邮箱设定\n\ngit config 中的邮箱地址不能直接填写注册 GitHub 的邮箱(其实我也不太清楚能不能,因为我设定的是邮箱不公开),不然并不会算到你的贡献里,当然不在乎的话也可以随便填\n\n前往 [邮箱设定](https://github.com/settings/emails) ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 `<number>+<username>@users.noreply.github.com` 的邮箱地址,复制它然后粘贴到终端里即可\n<<<<<<< HEAD\n![](/images/post/05/github2022-07-19_19.10.08.jpg)\n=======\n![](/images/post/github2022-07-19_19.10.08.jpg)\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n呃,还得安装一下hexo提供的一键部署工具\n\n```\ncd hexo # 需要在博客文件夹里执行\nnpm install hexo-deployer-git --save\n```\n\n## 到这里基本上就完成了,来部署吧!\n\n```\nhexo clean # 慎重操作,会清除所有数据,但不会删除 _config.yml 文件,非必要选项\nhexo g # 重新生成默认博客,source 文件夹里有新文章时会生成新的页面\nhexo d # 复制 public 文件夹里的文件到 .depoly_git 文件夹里,然后根据 _config.yml 里的设置开始部署\n```\n\n接下来 git 会向你请求设定的部署网站的用户名与密钥,这里以 GitHub 作为演示\n\n```\nUsername for 'https://github.com':<username>\nPassword for 'https://<username>@github.com':<yourpasswd>\n```\n\n#### 事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens\n\n1. 访问 https://github.com/settings/tokens/\n2. 点击 **Generate new token**\n3. 验证密码 ,然后输入一个名称,以及选择过期时间,为了安全,推荐不要设置成不过期,做好定期更换\n4. 在下方选择该令牌的权限,不懂可以全选,也可以自定义\n5. 点击 Generate token,生成令牌\n\n生成的令牌格式为 `ghp_1234567890abcdefghijklmnopqrst` ,也就是`ghp_` 加上`0-9` `a-z` `A-Z` 的随机生成数,一般也记不住,但也不要为方便直接保存在明文文件里\n\n#### 后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\n\n如果需要自定义域名,请在 hexo 的 `public` 和 `.deploy_git` 文件夹里都新建一个 `CNAME` 文件,用文本编辑器打开,里面填上你希望使用的域名,也可以在 GitHub 项目的设置里找到 Pages ,再找到 Custom domain ,填入域名,但你不在 hexo 里放的话,每更新 `(hexo d)` 一次你就得重新进这个页面设置一次,很麻烦\n\n### 自定义域名的 DNS 设置\n\n这个我也摸索了很久,但现在碰壁多了也就会了\n\n按照 [Github 的 DNS 解析设置](https://docs.github.com/cn/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site),需要创建四条 `A` 记录,并分别定向到:\n\n```\nname: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)\n185.199.108.153\n185.199.109.153\n185.199.110.153\n185.199.111.153\n```\n\n还有四条 `AAAA` 记录,也得分别定向到:\n\n```\nname: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)\n2606:50c0:8000::153\n2606:50c0:8001::153\n2606:50c0:8002::153\n2606:50c0:8003::153\n```\n\n以及一条 `CNAME` 记录\n\n```\nname: www \n<username>.github.io. # 也就是 GitHub Pages 的默认页面\n```\n\n填写完成的样子就如下表,顺序没有关系\n\n| 类型 | 名称 | 内容 |\n| ------------ | ------------ | ------------ |\n| A | @ | 185.199.108.153 |\n| A | @ | 185.199.109.153 |\n| A | @ | 185.199.110.153 |\n| A | @ | 185.199.111.153 |\n| AAAA | @ | 2606:50c0:8000::153 |\n| AAAA | @ | 2606:50c0:8001::153 |\n| AAAA | @ | 2606:50c0:8002::153 |\n| AAAA | @ | 2606:50c0:8003::153 |\n| CNAME | www | username.github.io. |\n\n设置完成点击保存,然后等个十来分钟应该就可以访问自定义域名了,如果访问出现 Github Pages 页面,但没有定位到你的博客,那可能是你 Github 仓库的 `CNAME` 文件被顶掉了\n\n到这里你的博客就搭建完成了,写文章的教程我会在后面再发一篇教程\n\n参考文章:\n\n[从零开始搭建个人博客(超详细)](https://zhuanlan.zhihu.com/p/102592286)\n[Termux 高级终端安装使用配置教程](https://www.sqlsec.com/2018/05/termux.html)\n\n","source":"_posts/05.搭建一个自己的博客.md","raw":"\t---\ntitle: 搭建一个自己的博客\ndate: 2022-03-05 19:01:48\ntags: \n - 技术\n - 博客\n - GitHub\n - 域名\n - DNS\n---\n 你好!这里是 Hubert ,欢迎来我的博客看文章!\n \n ## 如何搭建自己的博客\n 搭建博客并没有那么困难,大部分的时候只需要跟着步骤走就行,当然有时候碰见 bug 会是不可避免的事,这就得看运气了 ~~我是属于运气差的那一类人。~~\n \n 本文里使用的博客框架为 [Hexo](https://github.com/hexojs/hexo) ,服务器使用 [GitHub Pages](github.io)。域名可使用 Github Pages 默认域名或自定义\n \n ### 那么就正式开始吧,毕竟我也不会写太多介绍\n #### 搭建博客需要准备的东西:\n ```\n 1. 可正常使用且没有被限制的 GitHub 账户\n 2. 搭载 Windows、Linux 或 Android 的设备\n 3. 良好的网络环境(我不知道啊你不要问我)\n ```\n首先创建 GitHub 账户,因为我们搭建博客要用到 GitHub Pages ,注册过程我就不多阐述了,看不懂可以打开浏览器的翻译功能,也可以在搜索引擎寻找对应的教程。\n创建完了 GitHub 账户,需要创建一个仓库(Repositories)用于存放博客文件和启用 GitHub Pages 。\n\n登录到 GitHub 网页版后,可以看见左上角的 **Recent Repositories** 旁有个 **New** 按钮,点击它来新建仓库![](/images/post/05/github202203051935.png)\n如果是使用手机来访问,可以进入 `https://github.com/<你的github用户名>?tab=repositories` ,就能看见那个New按钮了 ![](/images/post/05/github202203051951.png)\n\n创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 `<你的GitHub用户名>.github.io` ,否则你的 Github Pages 网页会变成 `<你的GitHub用户名>.github.io/<创建的仓库名>`,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。\n\n到这里 Github 的设置基本就完成了,接下来就应该开始配置 hexo 客户端了\n\n## 配置 Hexo 客户端\n\n一旦配置完 Hexo 客户端,博客控制文件是全平台通用的,所以这里只说明如何在各个客户端配置,搭建以及部署后面统一讲。\n\n------------\n\n### 在 Windows 设备上配置 Hexo 客户端\n\n首先要安装 Windows 版 [Node.js](https://nodejs.org/en/download/) ,选择 **Windows Installer**\n\n安装完成后测试是否正常\n\n```\nnode -v\nnpm -v\n```\n\n都能正常提示版本号的话,那就可以直接安装 Hexo 客户端\n\n```\nnpm install -g hexo-cli\nhexo version # 检查 hexo 是否正常\n```\n\n然后还需要安装一下 Git , 方法有两个。\n\n1. 进入 [Git官网](https://git-scm.com/) 下载常规安装包\n2. 使用winget `winget install --id Git.Git -e --source winget`\n\n这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它,当然如果你已经在其他平台配置过了,也可以cd到那个文件夹直接进去继续操作。\n\n```\ncd C:/Users/<你的用户名>/hexo/\ncd /d <目录> # CMD用户使用这条命令来切换目录\nhexo init\n```\n到这里的 Windwos上的 hexo 已经部署完成了\n\n------------\n\n### 在 Linux 设备上配置 Hexo 客户端\n\n相比于 Windows ,Linux 上的 Hexo 安装更为简单,只用在命令行运行几个命令\n\n```\n$ sudo apt update\n$ sudo apt install nodejs\n$ sudo apt install git # 如果已经安装了git可以跳过这一步\n$ sudo npm install -g hexo-cli\n$ hexo version\n```\n\n挺简单的,接着在`~/`下创建一个`hexo`文件夹再部署就行\n\n```\n$ mkdir hexo\n$ cd hexo\n$ hexo init # 此步如果有报错,请使用sudo执行或清空部署文件夹\n```\n\n完成\n\n------------\n\n### 在 Android 设备上配置 Hexo 客户端\n\n#### 由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令\n<<<<<<< HEAD\n#### 但由于 Termux 的默认用户文件夹是在 `/data/data/com.ternux/files/home/` 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\n=======\n#### 但由于 termux 的默认用户文件夹是在 `/data/data/com.ternux/files/home/` 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n##### 不然也可以尝试在手机上安装完整 Linux 虚拟机\n\n#### 安装 Termux \n<<<<<<< HEAD\n下载链接 [~~Play Store~~](https://play.google.com/store/apps/details?id=com.termux) 不推荐,已经很久没更新了 | [F-Droid](https://f-droid.org/repo/com.termux_118.apk) | [Hubert's Box](https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk) 下载速度有点堪忧\n=======\n下载链接 [~~Play Store~~](https://play.google.com/store/apps/details?id=com.termux) 不推荐,已经很久没更新了 | [F-Droid](https://f-droid.org/repo/com.termux_118.apk) | [Hubert's Box](https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk)\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n安装并打开,等待下载需要的配置文件\n\n更新源与升级\n\n```\n$ pkg update\n$ pkg upgrade\n# 如果以上命令不可用,可以试试把pkg改成apt,即 apt update\n```\n\nupgrade 中途可能有选择停顿,可根据个人喜好选择\n\n安装 Termux root 工具\n\n```\n$ pkg install tsu # 手机有 root 权限选择这个\n$ pkg install proot # 手机没有 root 权限选择这个\n```\n\n切换到 root\n\n```\n$ tsu # tsu使用这条命令,执行后会向手机索要root权限\n$ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权限有变\n```\n\n安装 nodejs 和 git 以及 hexo-cli \n\n```\n$ pkg install nodejs\n$ node -v && npm -v # 查看nodejs与npm的版本\n$ pkg install git # 已安装git可以忽略此行\n$ npm install -g hexo-cli\n$ hexo version\n```\n\n这下 hexo 客户端已经成功部署到 Termux 了,来创建文件夹部署博客文件吧\n\nTermux 的默认文件夹在安卓系统的 `/data/data/com.termux/files/home/` ,最好也是在 home 下创建一个 hexo 文件夹部署进去\n\n```\n$ mkdir hexo # 如果是用的系统 su ,记得观察路径是不是在 Termux 的 home 文件夹下( termux-chroot 显示为 ~$ ),以免破坏 Android 系统\n$ cd hexo\n$ hexo init\n```\n\n走完进度条也就部署完成了\n\n## 在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\n\n#### 下面的 `hexo generate` `hexo server` 和后面要讲的 `hexo deploy`,都可以使用 `hexo g` `hexo s` `hexo d`来代替,作用是一样的,也就是 **g**enerate **s**erver **d**eploy 三个单词的首字母。\n```\nhexo generate # 初始化博客并生成初始页面,后期每写一篇新文章也需要再执行一次\nhexo server # 运行本地服务器,一般用来测试和在推送前检查是否有问题\n```\n接下来会提示本地服务器已经启用,访问 `http://localhost:4000/` 或 `http://127.0.0.1:4000/` 都可以查看初始博客。\n\n配置文件并部署博客到 Github Pages\n\n进入你的hexo文件夹,然后编辑其中的 `_config.yml` 文件\n\n下面放一些正常的设置类型\n\n```\ntitle: Hexo # 博客主标题\nsubtitle: # 博客副标题\nauthor: John Doe # 博客著名者\nlanguage: en # 中文填 zh-CN\ntimezone: Asia/Shanghai # 时间位置,需要按照规范填写\nurl: http://example.com # 网站链接,影响到点击主副标题的跳转,可以填自定义域名或 Github Pages 二级域名\n``` \n\n接下来是部署设置,配置文件也是在 `_config.yml` 文件里编辑\n\n```\n# https://hexo.io/docs/one-command-deployment 查看 hexo 部署帮助文档\ndeploy: # 此处不用填写,留空\n type: git # 填 git 或 heroku ,根据你的部署位置来\n repository: https://github.com/</username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可\n branch: main # 或 master,根据分支来,例如我的就是 hexo\n```\n\n### 这下就可以部署到 Github Pages 了,不过还得设定一些东西\n\n确保你的终端里配置有 git,然后设置一下用户信息\n\n也可以手动编辑,Windows 的 .gitconfig 文件在用户文件夹目录,Linux 在用户文件夹下,Termux 在 home 文件夹下\n\n```\ngit config --global user.name \"<username>\" \ngit config --global user.mail \"<username@github.com>\"\n# 可能需要使用 root 权限执行\n# 可以不用加 \"\" 号,只是因为用户名有空格的话可能会造成git只记录下前一半\n```\n\n### 关于 git config 中的邮箱设定\n\ngit config 中的邮箱地址不能直接填写注册 GitHub 的邮箱(其实我也不太清楚能不能,因为我设定的是邮箱不公开),不然并不会算到你的贡献里,当然不在乎的话也可以随便填\n\n前往 [邮箱设定](https://github.com/settings/emails) ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 `<number>+<username>@users.noreply.github.com` 的邮箱地址,复制它然后粘贴到终端里即可\n<<<<<<< HEAD\n![](/images/post/05/github2022-07-19_19.10.08.jpg)\n=======\n![](/images/post/github2022-07-19_19.10.08.jpg)\n>>>>>>> b5cd87323e3c7e24bd4aaff61eccd33769638bfe\n\n呃,还得安装一下hexo提供的一键部署工具\n\n```\ncd hexo # 需要在博客文件夹里执行\nnpm install hexo-deployer-git --save\n```\n\n## 到这里基本上就完成了,来部署吧!\n\n```\nhexo clean # 慎重操作,会清除所有数据,但不会删除 _config.yml 文件,非必要选项\nhexo g # 重新生成默认博客,source 文件夹里有新文章时会生成新的页面\nhexo d # 复制 public 文件夹里的文件到 .depoly_git 文件夹里,然后根据 _config.yml 里的设置开始部署\n```\n\n接下来 git 会向你请求设定的部署网站的用户名与密钥,这里以 GitHub 作为演示\n\n```\nUsername for 'https://github.com':<username>\nPassword for 'https://<username>@github.com':<yourpasswd>\n```\n\n#### 事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens\n\n1. 访问 https://github.com/settings/tokens/\n2. 点击 **Generate new token**\n3. 验证密码 ,然后输入一个名称,以及选择过期时间,为了安全,推荐不要设置成不过期,做好定期更换\n4. 在下方选择该令牌的权限,不懂可以全选,也可以自定义\n5. 点击 Generate token,生成令牌\n\n生成的令牌格式为 `ghp_1234567890abcdefghijklmnopqrst` ,也就是`ghp_` 加上`0-9` `a-z` `A-Z` 的随机生成数,一般也记不住,但也不要为方便直接保存在明文文件里\n\n#### 后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\n\n如果需要自定义域名,请在 hexo 的 `public` 和 `.deploy_git` 文件夹里都新建一个 `CNAME` 文件,用文本编辑器打开,里面填上你希望使用的域名,也可以在 GitHub 项目的设置里找到 Pages ,再找到 Custom domain ,填入域名,但你不在 hexo 里放的话,每更新 `(hexo d)` 一次你就得重新进这个页面设置一次,很麻烦\n\n### 自定义域名的 DNS 设置\n\n这个我也摸索了很久,但现在碰壁多了也就会了\n\n按照 [Github 的 DNS 解析设置](https://docs.github.com/cn/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site),需要创建四条 `A` 记录,并分别定向到:\n\n```\nname: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)\n185.199.108.153\n185.199.109.153\n185.199.110.153\n185.199.111.153\n```\n\n还有四条 `AAAA` 记录,也得分别定向到:\n\n```\nname: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)\n2606:50c0:8000::153\n2606:50c0:8001::153\n2606:50c0:8002::153\n2606:50c0:8003::153\n```\n\n以及一条 `CNAME` 记录\n\n```\nname: www \n<username>.github.io. # 也就是 GitHub Pages 的默认页面\n```\n\n填写完成的样子就如下表,顺序没有关系\n\n| 类型 | 名称 | 内容 |\n| ------------ | ------------ | ------------ |\n| A | @ | 185.199.108.153 |\n| A | @ | 185.199.109.153 |\n| A | @ | 185.199.110.153 |\n| A | @ | 185.199.111.153 |\n| AAAA | @ | 2606:50c0:8000::153 |\n| AAAA | @ | 2606:50c0:8001::153 |\n| AAAA | @ | 2606:50c0:8002::153 |\n| AAAA | @ | 2606:50c0:8003::153 |\n| CNAME | www | username.github.io. |\n\n设置完成点击保存,然后等个十来分钟应该就可以访问自定义域名了,如果访问出现 Github Pages 页面,但没有定位到你的博客,那可能是你 Github 仓库的 `CNAME` 文件被顶掉了\n\n到这里你的博客就搭建完成了,写文章的教程我会在后面再发一篇教程\n\n参考文章:\n\n[从零开始搭建个人博客(超详细)](https://zhuanlan.zhihu.com/p/102592286)\n[Termux 高级终端安装使用配置教程](https://www.sqlsec.com/2018/05/termux.html)\n\n","slug":"05.搭建一个自己的博客","published":1,"updated":"2022-09-07T07:26:25.904Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb331t0007fid6boz4ck9t","content":"<p> 你好!这里是 Hubert ,欢迎来我的博客看文章!</p>\n<h2 id=\"如何搭建自己的博客\"><a href=\"#如何搭建自己的博客\" class=\"headerlink\" title=\"如何搭建自己的博客\"></a>如何搭建自己的博客</h2><p> 搭建博客并没有那么困难,大部分的时候只需要跟着步骤走就行,当然有时候碰见 bug 会是不可避免的事,这就得看运气了 <del>我是属于运气差的那一类人。</del></p>\n<p> 本文里使用的博客框架为 <a href=\"https://github.com/hexojs/hexo\">Hexo</a> ,服务器使用 <a href=\"github.io\">GitHub Pages</a>。域名可使用 Github Pages 默认域名或自定义</p>\n<h3 id=\"那么就正式开始吧,毕竟我也不会写太多介绍\"><a href=\"#那么就正式开始吧,毕竟我也不会写太多介绍\" class=\"headerlink\" title=\"那么就正式开始吧,毕竟我也不会写太多介绍\"></a>那么就正式开始吧,毕竟我也不会写太多介绍</h3><h4 id=\"搭建博客需要准备的东西:\"><a href=\"#搭建博客需要准备的东西:\" class=\"headerlink\" title=\"搭建博客需要准备的东西:\"></a>搭建博客需要准备的东西:</h4> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">1. 可正常使用且没有被限制的 GitHub 账户</span><br><span class=\"line\">2. 搭载 Windows、Linux 或 Android 的设备</span><br><span class=\"line\">3. 良好的网络环境(我不知道啊你不要问我)</span><br></pre></td></tr></table></figure>\n<p>首先创建 GitHub 账户,因为我们搭建博客要用到 GitHub Pages ,注册过程我就不多阐述了,看不懂可以打开浏览器的翻译功能,也可以在搜索引擎寻找对应的教程。<br>创建完了 GitHub 账户,需要创建一个仓库(Repositories)用于存放博客文件和启用 GitHub Pages 。</p>\n<p>登录到 GitHub 网页版后,可以看见左上角的 <strong>Recent Repositories</strong> 旁有个 <strong>New</strong> 按钮,点击它来新建仓库<img src=\"/images/post/05/github202203051935.png\"><br>如果是使用手机来访问,可以进入 <code>https://github.com/<你的github用户名>?tab=repositories</code> ,就能看见那个New按钮了 <img src=\"/images/post/05/github202203051951.png\"></p>\n<p>创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 <code><你的GitHub用户名>.github.io</code> ,否则你的 Github Pages 网页会变成 <code><你的GitHub用户名>.github.io/<创建的仓库名></code>,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。</p>\n<p>到这里 Github 的设置基本就完成了,接下来就应该开始配置 hexo 客户端了</p>\n<h2 id=\"配置-Hexo-客户端\"><a href=\"#配置-Hexo-客户端\" class=\"headerlink\" title=\"配置 Hexo 客户端\"></a>配置 Hexo 客户端</h2><p>一旦配置完 Hexo 客户端,博客控制文件是全平台通用的,所以这里只说明如何在各个客户端配置,搭建以及部署后面统一讲。</p>\n<hr>\n<h3 id=\"在-Windows-设备上配置-Hexo-客户端\"><a href=\"#在-Windows-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Windows 设备上配置 Hexo 客户端\"></a>在 Windows 设备上配置 Hexo 客户端</h3><p>首先要安装 Windows 版 <a href=\"https://nodejs.org/en/download/\">Node.js</a> ,选择 <strong>Windows Installer</strong></p>\n<p>安装完成后测试是否正常</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">node -v</span><br><span class=\"line\">npm -v</span><br></pre></td></tr></table></figure>\n\n<p>都能正常提示版本号的话,那就可以直接安装 Hexo 客户端</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">npm install -g hexo-cli</span><br><span class=\"line\">hexo version # 检查 hexo 是否正常</span><br></pre></td></tr></table></figure>\n\n<p>然后还需要安装一下 Git , 方法有两个。</p>\n<ol>\n<li>进入 <a href=\"https://git-scm.com/\">Git官网</a> 下载常规安装包</li>\n<li>使用winget <code>winget install --id Git.Git -e --source winget</code></li>\n</ol>\n<p>这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它,当然如果你已经在其他平台配置过了,也可以cd到那个文件夹直接进去继续操作。</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd C:/Users/<你的用户名>/hexo/</span><br><span class=\"line\">cd /d <目录> # CMD用户使用这条命令来切换目录</span><br><span class=\"line\">hexo init</span><br></pre></td></tr></table></figure>\n<p>到这里的 Windwos上的 hexo 已经部署完成了</p>\n<hr>\n<h3 id=\"在-Linux-设备上配置-Hexo-客户端\"><a href=\"#在-Linux-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Linux 设备上配置 Hexo 客户端\"></a>在 Linux 设备上配置 Hexo 客户端</h3><p>相比于 Windows ,Linux 上的 Hexo 安装更为简单,只用在命令行运行几个命令</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ sudo apt update</span><br><span class=\"line\">$ sudo apt install nodejs</span><br><span class=\"line\">$ sudo apt install git # 如果已经安装了git可以跳过这一步</span><br><span class=\"line\">$ sudo npm install -g hexo-cli</span><br><span class=\"line\">$ hexo version</span><br></pre></td></tr></table></figure>\n\n<p>挺简单的,接着在<code>~/</code>下创建一个<code>hexo</code>文件夹再部署就行</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ mkdir hexo</span><br><span class=\"line\">$ cd hexo</span><br><span class=\"line\">$ hexo init # 此步如果有报错,请使用sudo执行或清空部署文件夹</span><br></pre></td></tr></table></figure>\n\n<p>完成</p>\n<hr>\n<h3 id=\"在-Android-设备上配置-Hexo-客户端\"><a href=\"#在-Android-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Android 设备上配置 Hexo 客户端\"></a>在 Android 设备上配置 Hexo 客户端</h3><h4 id=\"由于考虑到一些手机品牌的不可获取-root-性,本文章使用-Termux-来运行命令\"><a href=\"#由于考虑到一些手机品牌的不可获取-root-性,本文章使用-Termux-来运行命令\" class=\"headerlink\" title=\"由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令\"></a>由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令</h4><p><<<<<<< HEAD</p>\n<h4 id=\"但由于-Termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\"><a href=\"#但由于-Termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\" class=\"headerlink\" title=\"但由于 Termux 的默认用户文件夹是在 /data/data/com.ternux/files/home/ 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\"></a>但由于 Termux 的默认用户文件夹是在 <code>/data/data/com.ternux/files/home/</code> 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。</h4><p>=======</p>\n<h4 id=\"但由于-termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\"><a href=\"#但由于-termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\" class=\"headerlink\" title=\"但由于 termux 的默认用户文件夹是在 /data/data/com.ternux/files/home/ 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\"></a>但由于 termux 的默认用户文件夹是在 <code>/data/data/com.ternux/files/home/</code> 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。</h4><blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<h5 id=\"不然也可以尝试在手机上安装完整-Linux-虚拟机\"><a href=\"#不然也可以尝试在手机上安装完整-Linux-虚拟机\" class=\"headerlink\" title=\"不然也可以尝试在手机上安装完整 Linux 虚拟机\"></a>不然也可以尝试在手机上安装完整 Linux 虚拟机</h5><h4 id=\"安装-Termux\"><a href=\"#安装-Termux\" class=\"headerlink\" title=\"安装 Termux\"></a>安装 Termux</h4><p><<<<<<< HEAD<br>下载链接 <a href=\"https://play.google.com/store/apps/details?id=com.termux\"><del>Play Store</del></a> 不推荐,已经很久没更新了 | <a href=\"https://f-droid.org/repo/com.termux_118.apk\">F-Droid</a> | <a href=\"https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk\">Hubert’s Box</a> 下载速度有点堪忧<br>=======<br>下载链接 <a href=\"https://play.google.com/store/apps/details?id=com.termux\"><del>Play Store</del></a> 不推荐,已经很久没更新了 | <a href=\"https://f-droid.org/repo/com.termux_118.apk\">F-Droid</a> | <a href=\"https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk\">Hubert’s Box</a></p>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<p>安装并打开,等待下载需要的配置文件</p>\n<p>更新源与升级</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg update</span><br><span class=\"line\">$ pkg upgrade</span><br><span class=\"line\"># 如果以上命令不可用,可以试试把pkg改成apt,即 apt update</span><br></pre></td></tr></table></figure>\n\n<p>upgrade 中途可能有选择停顿,可根据个人喜好选择</p>\n<p>安装 Termux root 工具</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg install tsu # 手机有 root 权限选择这个</span><br><span class=\"line\">$ pkg install proot # 手机没有 root 权限选择这个</span><br></pre></td></tr></table></figure>\n\n<p>切换到 root</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ tsu # tsu使用这条命令,执行后会向手机索要root权限</span><br><span class=\"line\">$ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权限有变</span><br></pre></td></tr></table></figure>\n\n<p>安装 nodejs 和 git 以及 hexo-cli </p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg install nodejs</span><br><span class=\"line\">$ node -v && npm -v # 查看nodejs与npm的版本</span><br><span class=\"line\">$ pkg install git # 已安装git可以忽略此行</span><br><span class=\"line\">$ npm install -g hexo-cli</span><br><span class=\"line\">$ hexo version</span><br></pre></td></tr></table></figure>\n\n<p>这下 hexo 客户端已经成功部署到 Termux 了,来创建文件夹部署博客文件吧</p>\n<p>Termux 的默认文件夹在安卓系统的 <code>/data/data/com.termux/files/home/</code> ,最好也是在 home 下创建一个 hexo 文件夹部署进去</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ mkdir hexo # 如果是用的系统 su ,记得观察路径是不是在 Termux 的 home 文件夹下( termux-chroot 显示为 ~$ ),以免破坏 Android 系统</span><br><span class=\"line\">$ cd hexo</span><br><span class=\"line\">$ hexo init</span><br></pre></td></tr></table></figure>\n\n<p>走完进度条也就部署完成了</p>\n<h2 id=\"在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\"><a href=\"#在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\" class=\"headerlink\" title=\"在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\"></a>在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行</h2><h4 id=\"下面的-hexo-generate-hexo-server-和后面要讲的-hexo-deploy,都可以使用-hexo-g-hexo-s-hexo-d来代替,作用是一样的,也就是-generate-server-deploy-三个单词的首字母。\"><a href=\"#下面的-hexo-generate-hexo-server-和后面要讲的-hexo-deploy,都可以使用-hexo-g-hexo-s-hexo-d来代替,作用是一样的,也就是-generate-server-deploy-三个单词的首字母。\" class=\"headerlink\" title=\"下面的 hexo generate hexo server 和后面要讲的 hexo deploy,都可以使用 hexo g hexo s hexo d来代替,作用是一样的,也就是 generate server deploy 三个单词的首字母。\"></a>下面的 <code>hexo generate</code> <code>hexo server</code> 和后面要讲的 <code>hexo deploy</code>,都可以使用 <code>hexo g</code> <code>hexo s</code> <code>hexo d</code>来代替,作用是一样的,也就是 <strong>g</strong>enerate <strong>s</strong>erver <strong>d</strong>eploy 三个单词的首字母。</h4><figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">hexo generate # 初始化博客并生成初始页面,后期每写一篇新文章也需要再执行一次</span><br><span class=\"line\">hexo server # 运行本地服务器,一般用来测试和在推送前检查是否有问题</span><br></pre></td></tr></table></figure>\n<p>接下来会提示本地服务器已经启用,访问 <code>http://localhost:4000/</code> 或 <code>http://127.0.0.1:4000/</code> 都可以查看初始博客。</p>\n<p>配置文件并部署博客到 Github Pages</p>\n<p>进入你的hexo文件夹,然后编辑其中的 <code>_config.yml</code> 文件</p>\n<p>下面放一些正常的设置类型</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">title: Hexo # 博客主标题</span><br><span class=\"line\">subtitle: # 博客副标题</span><br><span class=\"line\">author: John Doe # 博客著名者</span><br><span class=\"line\">language: en # 中文填 zh-CN</span><br><span class=\"line\">timezone: Asia/Shanghai # 时间位置,需要按照规范填写</span><br><span class=\"line\">url: http://example.com # 网站链接,影响到点击主副标题的跳转,可以填自定义域名或 Github Pages 二级域名</span><br></pre></td></tr></table></figure>\n\n<p>接下来是部署设置,配置文件也是在 <code>_config.yml</code> 文件里编辑</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"># https://hexo.io/docs/one-command-deployment 查看 hexo 部署帮助文档</span><br><span class=\"line\">deploy: # 此处不用填写,留空</span><br><span class=\"line\"> type: git # 填 git 或 heroku ,根据你的部署位置来</span><br><span class=\"line\"> repository: https://github.com/</username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可</span><br><span class=\"line\"> branch: main # 或 master,根据分支来,例如我的就是 hexo</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"这下就可以部署到-Github-Pages-了,不过还得设定一些东西\"><a href=\"#这下就可以部署到-Github-Pages-了,不过还得设定一些东西\" class=\"headerlink\" title=\"这下就可以部署到 Github Pages 了,不过还得设定一些东西\"></a>这下就可以部署到 Github Pages 了,不过还得设定一些东西</h3><p>确保你的终端里配置有 git,然后设置一下用户信息</p>\n<p>也可以手动编辑,Windows 的 .gitconfig 文件在用户文件夹目录,Linux 在用户文件夹下,Termux 在 home 文件夹下</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">git config --global user.name "<username>" </span><br><span class=\"line\">git config --global user.mail "<username@github.com>"</span><br><span class=\"line\"># 可能需要使用 root 权限执行</span><br><span class=\"line\"># 可以不用加 "" 号,只是因为用户名有空格的话可能会造成git只记录下前一半</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"关于-git-config-中的邮箱设定\"><a href=\"#关于-git-config-中的邮箱设定\" class=\"headerlink\" title=\"关于 git config 中的邮箱设定\"></a>关于 git config 中的邮箱设定</h3><p>git config 中的邮箱地址不能直接填写注册 GitHub 的邮箱(其实我也不太清楚能不能,因为我设定的是邮箱不公开),不然并不会算到你的贡献里,当然不在乎的话也可以随便填</p>\n<p>前往 <a href=\"https://github.com/settings/emails\">邮箱设定</a> ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 <code><number>+<username>@users.noreply.github.com</code> 的邮箱地址,复制它然后粘贴到终端里即可<br><<<<<<< HEAD<br><img src=\"/images/post/05/github2022-07-19_19.10.08.jpg\"><br>=======<br><img src=\"/images/post/github2022-07-19_19.10.08.jpg\"></p>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<p>呃,还得安装一下hexo提供的一键部署工具</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd hexo # 需要在博客文件夹里执行</span><br><span class=\"line\">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"到这里基本上就完成了,来部署吧!\"><a href=\"#到这里基本上就完成了,来部署吧!\" class=\"headerlink\" title=\"到这里基本上就完成了,来部署吧!\"></a>到这里基本上就完成了,来部署吧!</h2><figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">hexo clean # 慎重操作,会清除所有数据,但不会删除 _config.yml 文件,非必要选项</span><br><span class=\"line\">hexo g # 重新生成默认博客,source 文件夹里有新文章时会生成新的页面</span><br><span class=\"line\">hexo d # 复制 public 文件夹里的文件到 .depoly_git 文件夹里,然后根据 _config.yml 里的设置开始部署</span><br></pre></td></tr></table></figure>\n\n<p>接下来 git 会向你请求设定的部署网站的用户名与密钥,这里以 GitHub 作为演示</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">Username for 'https://github.com':<username></span><br><span class=\"line\">Password for 'https://<username>@github.com':<yourpasswd></span><br></pre></td></tr></table></figure>\n\n<h4 id=\"事实上这个时候填你得-Github-账号密码是没有用的,为了安全你得去-GitHub-申请一个-Personal-access-tokens\"><a href=\"#事实上这个时候填你得-Github-账号密码是没有用的,为了安全你得去-GitHub-申请一个-Personal-access-tokens\" class=\"headerlink\" title=\"事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens\"></a>事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens</h4><ol>\n<li>访问 <a href=\"https://github.com/settings/tokens/\">https://github.com/settings/tokens/</a></li>\n<li>点击 <strong>Generate new token</strong></li>\n<li>验证密码 ,然后输入一个名称,以及选择过期时间,为了安全,推荐不要设置成不过期,做好定期更换</li>\n<li>在下方选择该令牌的权限,不懂可以全选,也可以自定义</li>\n<li>点击 Generate token,生成令牌</li>\n</ol>\n<p>生成的令牌格式为 <code>ghp_1234567890abcdefghijklmnopqrst</code> ,也就是<code>ghp_</code> 加上<code>0-9</code> <code>a-z</code> <code>A-Z</code> 的随机生成数,一般也记不住,但也不要为方便直接保存在明文文件里</p>\n<h4 id=\"后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\"><a href=\"#后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\" class=\"headerlink\" title=\"后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\"></a>后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题</h4><p>如果需要自定义域名,请在 hexo 的 <code>public</code> 和 <code>.deploy_git</code> 文件夹里都新建一个 <code>CNAME</code> 文件,用文本编辑器打开,里面填上你希望使用的域名,也可以在 GitHub 项目的设置里找到 Pages ,再找到 Custom domain ,填入域名,但你不在 hexo 里放的话,每更新 <code>(hexo d)</code> 一次你就得重新进这个页面设置一次,很麻烦</p>\n<h3 id=\"自定义域名的-DNS-设置\"><a href=\"#自定义域名的-DNS-设置\" class=\"headerlink\" title=\"自定义域名的 DNS 设置\"></a>自定义域名的 DNS 设置</h3><p>这个我也摸索了很久,但现在碰壁多了也就会了</p>\n<p>按照 <a href=\"https://docs.github.com/cn/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site\">Github 的 DNS 解析设置</a>,需要创建四条 <code>A</code> 记录,并分别定向到:</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)</span><br><span class=\"line\">185.199.108.153</span><br><span class=\"line\">185.199.109.153</span><br><span class=\"line\">185.199.110.153</span><br><span class=\"line\">185.199.111.153</span><br></pre></td></tr></table></figure>\n\n<p>还有四条 <code>AAAA</code> 记录,也得分别定向到:</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)</span><br><span class=\"line\">2606:50c0:8000::153</span><br><span class=\"line\">2606:50c0:8001::153</span><br><span class=\"line\">2606:50c0:8002::153</span><br><span class=\"line\">2606:50c0:8003::153</span><br></pre></td></tr></table></figure>\n\n<p>以及一条 <code>CNAME</code> 记录</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: www </span><br><span class=\"line\"><username>.github.io. # 也就是 GitHub Pages 的默认页面</span><br></pre></td></tr></table></figure>\n\n<p>填写完成的样子就如下表,顺序没有关系</p>\n<table>\n<thead>\n<tr>\n<th>类型</th>\n<th>名称</th>\n<th>内容</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.108.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.109.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.110.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.111.153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8000::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8001::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8002::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8003::153</td>\n</tr>\n<tr>\n<td>CNAME</td>\n<td>www</td>\n<td>username.github.io.</td>\n</tr>\n</tbody></table>\n<p>设置完成点击保存,然后等个十来分钟应该就可以访问自定义域名了,如果访问出现 Github Pages 页面,但没有定位到你的博客,那可能是你 Github 仓库的 <code>CNAME</code> 文件被顶掉了</p>\n<p>到这里你的博客就搭建完成了,写文章的教程我会在后面再发一篇教程</p>\n<p>参考文章:</p>\n<p><a href=\"https://zhuanlan.zhihu.com/p/102592286\">从零开始搭建个人博客(超详细)</a><br><a href=\"https://www.sqlsec.com/2018/05/termux.html\">Termux 高级终端安装使用配置教程</a></p>\n","site":{"data":{}},"excerpt":"","more":"<p> 你好!这里是 Hubert ,欢迎来我的博客看文章!</p>\n<h2 id=\"如何搭建自己的博客\"><a href=\"#如何搭建自己的博客\" class=\"headerlink\" title=\"如何搭建自己的博客\"></a>如何搭建自己的博客</h2><p> 搭建博客并没有那么困难,大部分的时候只需要跟着步骤走就行,当然有时候碰见 bug 会是不可避免的事,这就得看运气了 <del>我是属于运气差的那一类人。</del></p>\n<p> 本文里使用的博客框架为 <a href=\"https://github.com/hexojs/hexo\">Hexo</a> ,服务器使用 <a href=\"github.io\">GitHub Pages</a>。域名可使用 Github Pages 默认域名或自定义</p>\n<h3 id=\"那么就正式开始吧,毕竟我也不会写太多介绍\"><a href=\"#那么就正式开始吧,毕竟我也不会写太多介绍\" class=\"headerlink\" title=\"那么就正式开始吧,毕竟我也不会写太多介绍\"></a>那么就正式开始吧,毕竟我也不会写太多介绍</h3><h4 id=\"搭建博客需要准备的东西:\"><a href=\"#搭建博客需要准备的东西:\" class=\"headerlink\" title=\"搭建博客需要准备的东西:\"></a>搭建博客需要准备的东西:</h4> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">1. 可正常使用且没有被限制的 GitHub 账户</span><br><span class=\"line\">2. 搭载 Windows、Linux 或 Android 的设备</span><br><span class=\"line\">3. 良好的网络环境(我不知道啊你不要问我)</span><br></pre></td></tr></table></figure>\n<p>首先创建 GitHub 账户,因为我们搭建博客要用到 GitHub Pages ,注册过程我就不多阐述了,看不懂可以打开浏览器的翻译功能,也可以在搜索引擎寻找对应的教程。<br>创建完了 GitHub 账户,需要创建一个仓库(Repositories)用于存放博客文件和启用 GitHub Pages 。</p>\n<p>登录到 GitHub 网页版后,可以看见左上角的 <strong>Recent Repositories</strong> 旁有个 <strong>New</strong> 按钮,点击它来新建仓库<img src=\"/images/post/05/github202203051935.png\"><br>如果是使用手机来访问,可以进入 <code>https://github.com/<你的github用户名>?tab=repositories</code> ,就能看见那个New按钮了 <img src=\"/images/post/05/github202203051951.png\"></p>\n<p>创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 <code><你的GitHub用户名>.github.io</code> ,否则你的 Github Pages 网页会变成 <code><你的GitHub用户名>.github.io/<创建的仓库名></code>,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。</p>\n<p>到这里 Github 的设置基本就完成了,接下来就应该开始配置 hexo 客户端了</p>\n<h2 id=\"配置-Hexo-客户端\"><a href=\"#配置-Hexo-客户端\" class=\"headerlink\" title=\"配置 Hexo 客户端\"></a>配置 Hexo 客户端</h2><p>一旦配置完 Hexo 客户端,博客控制文件是全平台通用的,所以这里只说明如何在各个客户端配置,搭建以及部署后面统一讲。</p>\n<hr>\n<h3 id=\"在-Windows-设备上配置-Hexo-客户端\"><a href=\"#在-Windows-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Windows 设备上配置 Hexo 客户端\"></a>在 Windows 设备上配置 Hexo 客户端</h3><p>首先要安装 Windows 版 <a href=\"https://nodejs.org/en/download/\">Node.js</a> ,选择 <strong>Windows Installer</strong></p>\n<p>安装完成后测试是否正常</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">node -v</span><br><span class=\"line\">npm -v</span><br></pre></td></tr></table></figure>\n\n<p>都能正常提示版本号的话,那就可以直接安装 Hexo 客户端</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">npm install -g hexo-cli</span><br><span class=\"line\">hexo version # 检查 hexo 是否正常</span><br></pre></td></tr></table></figure>\n\n<p>然后还需要安装一下 Git , 方法有两个。</p>\n<ol>\n<li>进入 <a href=\"https://git-scm.com/\">Git官网</a> 下载常规安装包</li>\n<li>使用winget <code>winget install --id Git.Git -e --source winget</code></li>\n</ol>\n<p>这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它,当然如果你已经在其他平台配置过了,也可以cd到那个文件夹直接进去继续操作。</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd C:/Users/<你的用户名>/hexo/</span><br><span class=\"line\">cd /d <目录> # CMD用户使用这条命令来切换目录</span><br><span class=\"line\">hexo init</span><br></pre></td></tr></table></figure>\n<p>到这里的 Windwos上的 hexo 已经部署完成了</p>\n<hr>\n<h3 id=\"在-Linux-设备上配置-Hexo-客户端\"><a href=\"#在-Linux-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Linux 设备上配置 Hexo 客户端\"></a>在 Linux 设备上配置 Hexo 客户端</h3><p>相比于 Windows ,Linux 上的 Hexo 安装更为简单,只用在命令行运行几个命令</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ sudo apt update</span><br><span class=\"line\">$ sudo apt install nodejs</span><br><span class=\"line\">$ sudo apt install git # 如果已经安装了git可以跳过这一步</span><br><span class=\"line\">$ sudo npm install -g hexo-cli</span><br><span class=\"line\">$ hexo version</span><br></pre></td></tr></table></figure>\n\n<p>挺简单的,接着在<code>~/</code>下创建一个<code>hexo</code>文件夹再部署就行</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ mkdir hexo</span><br><span class=\"line\">$ cd hexo</span><br><span class=\"line\">$ hexo init # 此步如果有报错,请使用sudo执行或清空部署文件夹</span><br></pre></td></tr></table></figure>\n\n<p>完成</p>\n<hr>\n<h3 id=\"在-Android-设备上配置-Hexo-客户端\"><a href=\"#在-Android-设备上配置-Hexo-客户端\" class=\"headerlink\" title=\"在 Android 设备上配置 Hexo 客户端\"></a>在 Android 设备上配置 Hexo 客户端</h3><h4 id=\"由于考虑到一些手机品牌的不可获取-root-性,本文章使用-Termux-来运行命令\"><a href=\"#由于考虑到一些手机品牌的不可获取-root-性,本文章使用-Termux-来运行命令\" class=\"headerlink\" title=\"由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令\"></a>由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令</h4><p><<<<<<< HEAD</p>\n<h4 id=\"但由于-Termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\"><a href=\"#但由于-Termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\" class=\"headerlink\" title=\"但由于 Termux 的默认用户文件夹是在 /data/data/com.ternux/files/home/ 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\"></a>但由于 Termux 的默认用户文件夹是在 <code>/data/data/com.ternux/files/home/</code> 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。</h4><p>=======</p>\n<h4 id=\"但由于-termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\"><a href=\"#但由于-termux-的默认用户文件夹是在-data-data-com-ternux-files-home-下,没有-root-权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到-GitHub-Pages-上,但后端控制文件可能得找其他办法传输出来。\" class=\"headerlink\" title=\"但由于 termux 的默认用户文件夹是在 /data/data/com.ternux/files/home/ 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。\"></a>但由于 termux 的默认用户文件夹是在 <code>/data/data/com.ternux/files/home/</code> 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。</h4><blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<h5 id=\"不然也可以尝试在手机上安装完整-Linux-虚拟机\"><a href=\"#不然也可以尝试在手机上安装完整-Linux-虚拟机\" class=\"headerlink\" title=\"不然也可以尝试在手机上安装完整 Linux 虚拟机\"></a>不然也可以尝试在手机上安装完整 Linux 虚拟机</h5><h4 id=\"安装-Termux\"><a href=\"#安装-Termux\" class=\"headerlink\" title=\"安装 Termux\"></a>安装 Termux</h4><p><<<<<<< HEAD<br>下载链接 <a href=\"https://play.google.com/store/apps/details?id=com.termux\"><del>Play Store</del></a> 不推荐,已经很久没更新了 | <a href=\"https://f-droid.org/repo/com.termux_118.apk\">F-Droid</a> | <a href=\"https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk\">Hubert’s Box</a> 下载速度有点堪忧<br>=======<br>下载链接 <a href=\"https://play.google.com/store/apps/details?id=com.termux\"><del>Play Store</del></a> 不推荐,已经很久没更新了 | <a href=\"https://f-droid.org/repo/com.termux_118.apk\">F-Droid</a> | <a href=\"https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk\">Hubert’s Box</a></p>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<p>安装并打开,等待下载需要的配置文件</p>\n<p>更新源与升级</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg update</span><br><span class=\"line\">$ pkg upgrade</span><br><span class=\"line\"># 如果以上命令不可用,可以试试把pkg改成apt,即 apt update</span><br></pre></td></tr></table></figure>\n\n<p>upgrade 中途可能有选择停顿,可根据个人喜好选择</p>\n<p>安装 Termux root 工具</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg install tsu # 手机有 root 权限选择这个</span><br><span class=\"line\">$ pkg install proot # 手机没有 root 权限选择这个</span><br></pre></td></tr></table></figure>\n\n<p>切换到 root</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ tsu # tsu使用这条命令,执行后会向手机索要root权限</span><br><span class=\"line\">$ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权限有变</span><br></pre></td></tr></table></figure>\n\n<p>安装 nodejs 和 git 以及 hexo-cli </p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ pkg install nodejs</span><br><span class=\"line\">$ node -v && npm -v # 查看nodejs与npm的版本</span><br><span class=\"line\">$ pkg install git # 已安装git可以忽略此行</span><br><span class=\"line\">$ npm install -g hexo-cli</span><br><span class=\"line\">$ hexo version</span><br></pre></td></tr></table></figure>\n\n<p>这下 hexo 客户端已经成功部署到 Termux 了,来创建文件夹部署博客文件吧</p>\n<p>Termux 的默认文件夹在安卓系统的 <code>/data/data/com.termux/files/home/</code> ,最好也是在 home 下创建一个 hexo 文件夹部署进去</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">$ mkdir hexo # 如果是用的系统 su ,记得观察路径是不是在 Termux 的 home 文件夹下( termux-chroot 显示为 ~$ ),以免破坏 Android 系统</span><br><span class=\"line\">$ cd hexo</span><br><span class=\"line\">$ hexo init</span><br></pre></td></tr></table></figure>\n\n<p>走完进度条也就部署完成了</p>\n<h2 id=\"在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\"><a href=\"#在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\" class=\"headerlink\" title=\"在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行\"></a>在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行</h2><h4 id=\"下面的-hexo-generate-hexo-server-和后面要讲的-hexo-deploy,都可以使用-hexo-g-hexo-s-hexo-d来代替,作用是一样的,也就是-generate-server-deploy-三个单词的首字母。\"><a href=\"#下面的-hexo-generate-hexo-server-和后面要讲的-hexo-deploy,都可以使用-hexo-g-hexo-s-hexo-d来代替,作用是一样的,也就是-generate-server-deploy-三个单词的首字母。\" class=\"headerlink\" title=\"下面的 hexo generate hexo server 和后面要讲的 hexo deploy,都可以使用 hexo g hexo s hexo d来代替,作用是一样的,也就是 generate server deploy 三个单词的首字母。\"></a>下面的 <code>hexo generate</code> <code>hexo server</code> 和后面要讲的 <code>hexo deploy</code>,都可以使用 <code>hexo g</code> <code>hexo s</code> <code>hexo d</code>来代替,作用是一样的,也就是 <strong>g</strong>enerate <strong>s</strong>erver <strong>d</strong>eploy 三个单词的首字母。</h4><figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">hexo generate # 初始化博客并生成初始页面,后期每写一篇新文章也需要再执行一次</span><br><span class=\"line\">hexo server # 运行本地服务器,一般用来测试和在推送前检查是否有问题</span><br></pre></td></tr></table></figure>\n<p>接下来会提示本地服务器已经启用,访问 <code>http://localhost:4000/</code> 或 <code>http://127.0.0.1:4000/</code> 都可以查看初始博客。</p>\n<p>配置文件并部署博客到 Github Pages</p>\n<p>进入你的hexo文件夹,然后编辑其中的 <code>_config.yml</code> 文件</p>\n<p>下面放一些正常的设置类型</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">title: Hexo # 博客主标题</span><br><span class=\"line\">subtitle: # 博客副标题</span><br><span class=\"line\">author: John Doe # 博客著名者</span><br><span class=\"line\">language: en # 中文填 zh-CN</span><br><span class=\"line\">timezone: Asia/Shanghai # 时间位置,需要按照规范填写</span><br><span class=\"line\">url: http://example.com # 网站链接,影响到点击主副标题的跳转,可以填自定义域名或 Github Pages 二级域名</span><br></pre></td></tr></table></figure>\n\n<p>接下来是部署设置,配置文件也是在 <code>_config.yml</code> 文件里编辑</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"># https://hexo.io/docs/one-command-deployment 查看 hexo 部署帮助文档</span><br><span class=\"line\">deploy: # 此处不用填写,留空</span><br><span class=\"line\"> type: git # 填 git 或 heroku ,根据你的部署位置来</span><br><span class=\"line\"> repository: https://github.com/</username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可</span><br><span class=\"line\"> branch: main # 或 master,根据分支来,例如我的就是 hexo</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"这下就可以部署到-Github-Pages-了,不过还得设定一些东西\"><a href=\"#这下就可以部署到-Github-Pages-了,不过还得设定一些东西\" class=\"headerlink\" title=\"这下就可以部署到 Github Pages 了,不过还得设定一些东西\"></a>这下就可以部署到 Github Pages 了,不过还得设定一些东西</h3><p>确保你的终端里配置有 git,然后设置一下用户信息</p>\n<p>也可以手动编辑,Windows 的 .gitconfig 文件在用户文件夹目录,Linux 在用户文件夹下,Termux 在 home 文件夹下</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">git config --global user.name "<username>" </span><br><span class=\"line\">git config --global user.mail "<username@github.com>"</span><br><span class=\"line\"># 可能需要使用 root 权限执行</span><br><span class=\"line\"># 可以不用加 "" 号,只是因为用户名有空格的话可能会造成git只记录下前一半</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"关于-git-config-中的邮箱设定\"><a href=\"#关于-git-config-中的邮箱设定\" class=\"headerlink\" title=\"关于 git config 中的邮箱设定\"></a>关于 git config 中的邮箱设定</h3><p>git config 中的邮箱地址不能直接填写注册 GitHub 的邮箱(其实我也不太清楚能不能,因为我设定的是邮箱不公开),不然并不会算到你的贡献里,当然不在乎的话也可以随便填</p>\n<p>前往 <a href=\"https://github.com/settings/emails\">邮箱设定</a> ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 <code><number>+<username>@users.noreply.github.com</code> 的邮箱地址,复制它然后粘贴到终端里即可<br><<<<<<< HEAD<br><img src=\"/images/post/05/github2022-07-19_19.10.08.jpg\"><br>=======<br><img src=\"/images/post/github2022-07-19_19.10.08.jpg\"></p>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<blockquote>\n<p>b5cd87323e3c7e24bd4aaff61eccd33769638bfe</p>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n</blockquote>\n<p>呃,还得安装一下hexo提供的一键部署工具</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd hexo # 需要在博客文件夹里执行</span><br><span class=\"line\">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"到这里基本上就完成了,来部署吧!\"><a href=\"#到这里基本上就完成了,来部署吧!\" class=\"headerlink\" title=\"到这里基本上就完成了,来部署吧!\"></a>到这里基本上就完成了,来部署吧!</h2><figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">hexo clean # 慎重操作,会清除所有数据,但不会删除 _config.yml 文件,非必要选项</span><br><span class=\"line\">hexo g # 重新生成默认博客,source 文件夹里有新文章时会生成新的页面</span><br><span class=\"line\">hexo d # 复制 public 文件夹里的文件到 .depoly_git 文件夹里,然后根据 _config.yml 里的设置开始部署</span><br></pre></td></tr></table></figure>\n\n<p>接下来 git 会向你请求设定的部署网站的用户名与密钥,这里以 GitHub 作为演示</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">Username for 'https://github.com':<username></span><br><span class=\"line\">Password for 'https://<username>@github.com':<yourpasswd></span><br></pre></td></tr></table></figure>\n\n<h4 id=\"事实上这个时候填你得-Github-账号密码是没有用的,为了安全你得去-GitHub-申请一个-Personal-access-tokens\"><a href=\"#事实上这个时候填你得-Github-账号密码是没有用的,为了安全你得去-GitHub-申请一个-Personal-access-tokens\" class=\"headerlink\" title=\"事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens\"></a>事实上这个时候填你得 Github 账号密码是没有用的,为了安全你得去 GitHub 申请一个 Personal access tokens</h4><ol>\n<li>访问 <a href=\"https://github.com/settings/tokens/\">https://github.com/settings/tokens/</a></li>\n<li>点击 <strong>Generate new token</strong></li>\n<li>验证密码 ,然后输入一个名称,以及选择过期时间,为了安全,推荐不要设置成不过期,做好定期更换</li>\n<li>在下方选择该令牌的权限,不懂可以全选,也可以自定义</li>\n<li>点击 Generate token,生成令牌</li>\n</ol>\n<p>生成的令牌格式为 <code>ghp_1234567890abcdefghijklmnopqrst</code> ,也就是<code>ghp_</code> 加上<code>0-9</code> <code>a-z</code> <code>A-Z</code> 的随机生成数,一般也记不住,但也不要为方便直接保存在明文文件里</p>\n<h4 id=\"后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\"><a href=\"#后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\" class=\"headerlink\" title=\"后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题\"></a>后面就可以继续博客的部署了,接下来说说博客自定义域名与DNS解析如何设置的问题</h4><p>如果需要自定义域名,请在 hexo 的 <code>public</code> 和 <code>.deploy_git</code> 文件夹里都新建一个 <code>CNAME</code> 文件,用文本编辑器打开,里面填上你希望使用的域名,也可以在 GitHub 项目的设置里找到 Pages ,再找到 Custom domain ,填入域名,但你不在 hexo 里放的话,每更新 <code>(hexo d)</code> 一次你就得重新进这个页面设置一次,很麻烦</p>\n<h3 id=\"自定义域名的-DNS-设置\"><a href=\"#自定义域名的-DNS-设置\" class=\"headerlink\" title=\"自定义域名的 DNS 设置\"></a>自定义域名的 DNS 设置</h3><p>这个我也摸索了很久,但现在碰壁多了也就会了</p>\n<p>按照 <a href=\"https://docs.github.com/cn/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site\">Github 的 DNS 解析设置</a>,需要创建四条 <code>A</code> 记录,并分别定向到:</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)</span><br><span class=\"line\">185.199.108.153</span><br><span class=\"line\">185.199.109.153</span><br><span class=\"line\">185.199.110.153</span><br><span class=\"line\">185.199.111.153</span><br></pre></td></tr></table></figure>\n\n<p>还有四条 <code>AAAA</code> 记录,也得分别定向到:</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: @ # 全都要使用 @ 号 (有些服务商的设置方法是留空)</span><br><span class=\"line\">2606:50c0:8000::153</span><br><span class=\"line\">2606:50c0:8001::153</span><br><span class=\"line\">2606:50c0:8002::153</span><br><span class=\"line\">2606:50c0:8003::153</span><br></pre></td></tr></table></figure>\n\n<p>以及一条 <code>CNAME</code> 记录</p>\n<figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">name: www </span><br><span class=\"line\"><username>.github.io. # 也就是 GitHub Pages 的默认页面</span><br></pre></td></tr></table></figure>\n\n<p>填写完成的样子就如下表,顺序没有关系</p>\n<table>\n<thead>\n<tr>\n<th>类型</th>\n<th>名称</th>\n<th>内容</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.108.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.109.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.110.153</td>\n</tr>\n<tr>\n<td>A</td>\n<td>@</td>\n<td>185.199.111.153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8000::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8001::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8002::153</td>\n</tr>\n<tr>\n<td>AAAA</td>\n<td>@</td>\n<td>2606:50c0:8003::153</td>\n</tr>\n<tr>\n<td>CNAME</td>\n<td>www</td>\n<td>username.github.io.</td>\n</tr>\n</tbody></table>\n<p>设置完成点击保存,然后等个十来分钟应该就可以访问自定义域名了,如果访问出现 Github Pages 页面,但没有定位到你的博客,那可能是你 Github 仓库的 <code>CNAME</code> 文件被顶掉了</p>\n<p>到这里你的博客就搭建完成了,写文章的教程我会在后面再发一篇教程</p>\n<p>参考文章:</p>\n<p><a href=\"https://zhuanlan.zhihu.com/p/102592286\">从零开始搭建个人博客(超详细)</a><br><a href=\"https://www.sqlsec.com/2018/05/termux.html\">Termux 高级终端安装使用配置教程</a></p>\n"},{"title":"闲谈杂聊","date":"2022-04-07T00:06:21.000Z","_content":"\n 你好,欢迎来我的博客看文章,祝愿你天天开心\n\n ## 回顾搭建博客之前\n\n大概一个多星期前,我去翻了翻之前收藏的博客,发现只有很少的博客更新了几篇新文章,大多数的博客基本都停了,还有一些博客直接停了两年没更新\n\n至于为什么我会收藏博客,因为没搭建博客之前也有想法自己搭一个,似乎大多数博客也会写一个关于搭建的文章,于是我目前每看见一个个人博客都会添加到书签里\n\n而我的博客也已经一个多月没有更新新文章了,我并没有确定写作方向,恐怕就是更新力不足的原因\n\n以后博客可能会~~月更~~季更更符合实际吧,因为写一篇文章随便写点东西也不太好的样子,像这种闲聊的文章应该会比教程类的多一些\n\n## 最近在学习的东西\n\n大概从寒假下半旬开始,我在 Yogabook 上试着画画,不过毕竟是笔记本嘛,屏幕大小和显示效果都不怎么好,于是我就利用转换器把它接到我的台式机显示器上,于是我就有了一个正式练习画画的地方\n\n最近还买了个新数位板,还得熟悉熟悉,感觉自己桌面空间是有点小了,之前想画画的话就得把键盘鼠标全都挪开,想用台式又得把显示器接回去,现在可以直接在台式画了\n\n不过嘛,一个新手是没办法一下子就学会画画的,找了些教学视频,我得知了自己画画的问题: 勾线不好看,一条线没画好就随便擦一下应付,勾线应该一笔勾不好重新勾,于是我找了一些简单的二次元图来联系勾线,就是在 SAI 在原图上叠一个图,调整透明度就照着描,以往是希望一天画一幅的,结果到现在只画完了两幅,剩下衣服答应朋友要描的,也画了好久,这周回去看看能不能画完然后画一幅新的\n\t\n得益于我在 GitHub 里发现了 [程序员修炼宝典](https://github.com/niudai/How-to-be-a-good-programmer) 这个项目,我就下载了几本关于 Linux 的电子书看,因为手头并没有什么顺手的阅读设备(PDF 格式手机读着累,Yogabook 拿着压手),也就只读了百来页\n\n在约一年前我就有学习 C++ 的想法,当时只会在网上搜一些 C++ 写的程序,然后仿写出来自己试着理解,因为没有系统性的学习和要写的程序,也就不了了之\n\n似乎是从这个月初开始,我打算买本书正式学学 C 了,现在是感觉之前打算直接冲 C++ 是有点幼稚了,我翻了翻淘宝,但并没有买,去找了电子书版的 《C Prime Plus》 ,从 9 号开始我每天都在把《C Prime Plus》里需要写,或要理解的程序重新写一遍、写好注释,然后提交到私人 GitHub Repository 里,不过目前还没公开,等我学完那本书里需要学的东西后会公开的\n\n之前还试过做音乐,不过创作细胞还是太没活力了,不确定以后还会不会试试学,但感觉音乐的门槛是想学的几个东西中最高的 😢\n\n ## 假期打算与发牢骚\n\n也快接近五一假期了,学习 C 语言也有十来天了,虽然按照书里的学了快两百页,感觉总是只学到了点皮毛,要记数值对应的表达方式是有点费劲,在学校每天也只有晚自习的时间会学一个小时左右,这个进度下去得学多久啊.......\n\n感觉自己是有点懒了,从学习 C 语言或是写博客来说都是,这篇文章是从四月七日开始打算写的,但是现在已经是四月月底了\n\n上周的调休导致我也没回家,答应给朋友画的画还是没有画完,五一假期里一定要画完\n\n说到五一,五一就到明日方舟三周年了,但从这个学期开始真的很少很少玩了,好像当初停止玩是因为 BOSS 太难打不过去(当时查攻略的话应该是没问题的)\n\n![](/images/post/06/hero.png)\nLineage OS 在 26 号的时候正式更新了 [Lineage OS 19](https://lineageos.org/Changelog-26),不知道 [Linux4](https://github.com/Linux4) 大佬什么时候让我的 s10e 吃上 Official Lineage OS 🤤\n\n近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板的树莓派,现在都涨了,想整块 zero 2 w 当随身 Linux 主机的 😢\n\n这篇文章就写到这吧,~~摸到月底发还能算月更博客~~ 🥴","source":"_posts/06.Page4.md","raw":"---\ntitle: 闲谈杂聊\ndate: 2022-04-07 08:06:21\ntags: 闲聊\n---\n\n 你好,欢迎来我的博客看文章,祝愿你天天开心\n\n ## 回顾搭建博客之前\n\n大概一个多星期前,我去翻了翻之前收藏的博客,发现只有很少的博客更新了几篇新文章,大多数的博客基本都停了,还有一些博客直接停了两年没更新\n\n至于为什么我会收藏博客,因为没搭建博客之前也有想法自己搭一个,似乎大多数博客也会写一个关于搭建的文章,于是我目前每看见一个个人博客都会添加到书签里\n\n而我的博客也已经一个多月没有更新新文章了,我并没有确定写作方向,恐怕就是更新力不足的原因\n\n以后博客可能会~~月更~~季更更符合实际吧,因为写一篇文章随便写点东西也不太好的样子,像这种闲聊的文章应该会比教程类的多一些\n\n## 最近在学习的东西\n\n大概从寒假下半旬开始,我在 Yogabook 上试着画画,不过毕竟是笔记本嘛,屏幕大小和显示效果都不怎么好,于是我就利用转换器把它接到我的台式机显示器上,于是我就有了一个正式练习画画的地方\n\n最近还买了个新数位板,还得熟悉熟悉,感觉自己桌面空间是有点小了,之前想画画的话就得把键盘鼠标全都挪开,想用台式又得把显示器接回去,现在可以直接在台式画了\n\n不过嘛,一个新手是没办法一下子就学会画画的,找了些教学视频,我得知了自己画画的问题: 勾线不好看,一条线没画好就随便擦一下应付,勾线应该一笔勾不好重新勾,于是我找了一些简单的二次元图来联系勾线,就是在 SAI 在原图上叠一个图,调整透明度就照着描,以往是希望一天画一幅的,结果到现在只画完了两幅,剩下衣服答应朋友要描的,也画了好久,这周回去看看能不能画完然后画一幅新的\n\t\n得益于我在 GitHub 里发现了 [程序员修炼宝典](https://github.com/niudai/How-to-be-a-good-programmer) 这个项目,我就下载了几本关于 Linux 的电子书看,因为手头并没有什么顺手的阅读设备(PDF 格式手机读着累,Yogabook 拿着压手),也就只读了百来页\n\n在约一年前我就有学习 C++ 的想法,当时只会在网上搜一些 C++ 写的程序,然后仿写出来自己试着理解,因为没有系统性的学习和要写的程序,也就不了了之\n\n似乎是从这个月初开始,我打算买本书正式学学 C 了,现在是感觉之前打算直接冲 C++ 是有点幼稚了,我翻了翻淘宝,但并没有买,去找了电子书版的 《C Prime Plus》 ,从 9 号开始我每天都在把《C Prime Plus》里需要写,或要理解的程序重新写一遍、写好注释,然后提交到私人 GitHub Repository 里,不过目前还没公开,等我学完那本书里需要学的东西后会公开的\n\n之前还试过做音乐,不过创作细胞还是太没活力了,不确定以后还会不会试试学,但感觉音乐的门槛是想学的几个东西中最高的 😢\n\n ## 假期打算与发牢骚\n\n也快接近五一假期了,学习 C 语言也有十来天了,虽然按照书里的学了快两百页,感觉总是只学到了点皮毛,要记数值对应的表达方式是有点费劲,在学校每天也只有晚自习的时间会学一个小时左右,这个进度下去得学多久啊.......\n\n感觉自己是有点懒了,从学习 C 语言或是写博客来说都是,这篇文章是从四月七日开始打算写的,但是现在已经是四月月底了\n\n上周的调休导致我也没回家,答应给朋友画的画还是没有画完,五一假期里一定要画完\n\n说到五一,五一就到明日方舟三周年了,但从这个学期开始真的很少很少玩了,好像当初停止玩是因为 BOSS 太难打不过去(当时查攻略的话应该是没问题的)\n\n![](/images/post/06/hero.png)\nLineage OS 在 26 号的时候正式更新了 [Lineage OS 19](https://lineageos.org/Changelog-26),不知道 [Linux4](https://github.com/Linux4) 大佬什么时候让我的 s10e 吃上 Official Lineage OS 🤤\n\n近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板的树莓派,现在都涨了,想整块 zero 2 w 当随身 Linux 主机的 😢\n\n这篇文章就写到这吧,~~摸到月底发还能算月更博客~~ 🥴","slug":"06.Page4","published":1,"updated":"2022-09-07T06:52:15.747Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb331z0008fid6eqobbc67","content":"<p> 你好,欢迎来我的博客看文章,祝愿你天天开心</p>\n<h2 id=\"回顾搭建博客之前\"><a href=\"#回顾搭建博客之前\" class=\"headerlink\" title=\"回顾搭建博客之前\"></a>回顾搭建博客之前</h2><p>大概一个多星期前,我去翻了翻之前收藏的博客,发现只有很少的博客更新了几篇新文章,大多数的博客基本都停了,还有一些博客直接停了两年没更新</p>\n<p>至于为什么我会收藏博客,因为没搭建博客之前也有想法自己搭一个,似乎大多数博客也会写一个关于搭建的文章,于是我目前每看见一个个人博客都会添加到书签里</p>\n<p>而我的博客也已经一个多月没有更新新文章了,我并没有确定写作方向,恐怕就是更新力不足的原因</p>\n<p>以后博客可能会<del>月更</del>季更更符合实际吧,因为写一篇文章随便写点东西也不太好的样子,像这种闲聊的文章应该会比教程类的多一些</p>\n<h2 id=\"最近在学习的东西\"><a href=\"#最近在学习的东西\" class=\"headerlink\" title=\"最近在学习的东西\"></a>最近在学习的东西</h2><p>大概从寒假下半旬开始,我在 Yogabook 上试着画画,不过毕竟是笔记本嘛,屏幕大小和显示效果都不怎么好,于是我就利用转换器把它接到我的台式机显示器上,于是我就有了一个正式练习画画的地方</p>\n<p>最近还买了个新数位板,还得熟悉熟悉,感觉自己桌面空间是有点小了,之前想画画的话就得把键盘鼠标全都挪开,想用台式又得把显示器接回去,现在可以直接在台式画了</p>\n<p>不过嘛,一个新手是没办法一下子就学会画画的,找了些教学视频,我得知了自己画画的问题: 勾线不好看,一条线没画好就随便擦一下应付,勾线应该一笔勾不好重新勾,于是我找了一些简单的二次元图来联系勾线,就是在 SAI 在原图上叠一个图,调整透明度就照着描,以往是希望一天画一幅的,结果到现在只画完了两幅,剩下衣服答应朋友要描的,也画了好久,这周回去看看能不能画完然后画一幅新的</p>\n<p>得益于我在 GitHub 里发现了 <a href=\"https://github.com/niudai/How-to-be-a-good-programmer\">程序员修炼宝典</a> 这个项目,我就下载了几本关于 Linux 的电子书看,因为手头并没有什么顺手的阅读设备(PDF 格式手机读着累,Yogabook 拿着压手),也就只读了百来页</p>\n<p>在约一年前我就有学习 C++ 的想法,当时只会在网上搜一些 C++ 写的程序,然后仿写出来自己试着理解,因为没有系统性的学习和要写的程序,也就不了了之</p>\n<p>似乎是从这个月初开始,我打算买本书正式学学 C 了,现在是感觉之前打算直接冲 C++ 是有点幼稚了,我翻了翻淘宝,但并没有买,去找了电子书版的 《C Prime Plus》 ,从 9 号开始我每天都在把《C Prime Plus》里需要写,或要理解的程序重新写一遍、写好注释,然后提交到私人 GitHub Repository 里,不过目前还没公开,等我学完那本书里需要学的东西后会公开的</p>\n<p>之前还试过做音乐,不过创作细胞还是太没活力了,不确定以后还会不会试试学,但感觉音乐的门槛是想学的几个东西中最高的 😢</p>\n<h2 id=\"假期打算与发牢骚\"><a href=\"#假期打算与发牢骚\" class=\"headerlink\" title=\"假期打算与发牢骚\"></a>假期打算与发牢骚</h2><p>也快接近五一假期了,学习 C 语言也有十来天了,虽然按照书里的学了快两百页,感觉总是只学到了点皮毛,要记数值对应的表达方式是有点费劲,在学校每天也只有晚自习的时间会学一个小时左右,这个进度下去得学多久啊…….</p>\n<p>感觉自己是有点懒了,从学习 C 语言或是写博客来说都是,这篇文章是从四月七日开始打算写的,但是现在已经是四月月底了</p>\n<p>上周的调休导致我也没回家,答应给朋友画的画还是没有画完,五一假期里一定要画完</p>\n<p>说到五一,五一就到明日方舟三周年了,但从这个学期开始真的很少很少玩了,好像当初停止玩是因为 BOSS 太难打不过去(当时查攻略的话应该是没问题的)</p>\n<p><img src=\"/images/post/06/hero.png\"><br>Lineage OS 在 26 号的时候正式更新了 <a href=\"https://lineageos.org/Changelog-26\">Lineage OS 19</a>,不知道 <a href=\"https://github.com/Linux4\">Linux4</a> 大佬什么时候让我的 s10e 吃上 Official Lineage OS 🤤</p>\n<p>近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板的树莓派,现在都涨了,想整块 zero 2 w 当随身 Linux 主机的 😢</p>\n<p>这篇文章就写到这吧,<del>摸到月底发还能算月更博客</del> 🥴</p>\n","site":{"data":{}},"excerpt":"","more":"<p> 你好,欢迎来我的博客看文章,祝愿你天天开心</p>\n<h2 id=\"回顾搭建博客之前\"><a href=\"#回顾搭建博客之前\" class=\"headerlink\" title=\"回顾搭建博客之前\"></a>回顾搭建博客之前</h2><p>大概一个多星期前,我去翻了翻之前收藏的博客,发现只有很少的博客更新了几篇新文章,大多数的博客基本都停了,还有一些博客直接停了两年没更新</p>\n<p>至于为什么我会收藏博客,因为没搭建博客之前也有想法自己搭一个,似乎大多数博客也会写一个关于搭建的文章,于是我目前每看见一个个人博客都会添加到书签里</p>\n<p>而我的博客也已经一个多月没有更新新文章了,我并没有确定写作方向,恐怕就是更新力不足的原因</p>\n<p>以后博客可能会<del>月更</del>季更更符合实际吧,因为写一篇文章随便写点东西也不太好的样子,像这种闲聊的文章应该会比教程类的多一些</p>\n<h2 id=\"最近在学习的东西\"><a href=\"#最近在学习的东西\" class=\"headerlink\" title=\"最近在学习的东西\"></a>最近在学习的东西</h2><p>大概从寒假下半旬开始,我在 Yogabook 上试着画画,不过毕竟是笔记本嘛,屏幕大小和显示效果都不怎么好,于是我就利用转换器把它接到我的台式机显示器上,于是我就有了一个正式练习画画的地方</p>\n<p>最近还买了个新数位板,还得熟悉熟悉,感觉自己桌面空间是有点小了,之前想画画的话就得把键盘鼠标全都挪开,想用台式又得把显示器接回去,现在可以直接在台式画了</p>\n<p>不过嘛,一个新手是没办法一下子就学会画画的,找了些教学视频,我得知了自己画画的问题: 勾线不好看,一条线没画好就随便擦一下应付,勾线应该一笔勾不好重新勾,于是我找了一些简单的二次元图来联系勾线,就是在 SAI 在原图上叠一个图,调整透明度就照着描,以往是希望一天画一幅的,结果到现在只画完了两幅,剩下衣服答应朋友要描的,也画了好久,这周回去看看能不能画完然后画一幅新的</p>\n<p>得益于我在 GitHub 里发现了 <a href=\"https://github.com/niudai/How-to-be-a-good-programmer\">程序员修炼宝典</a> 这个项目,我就下载了几本关于 Linux 的电子书看,因为手头并没有什么顺手的阅读设备(PDF 格式手机读着累,Yogabook 拿着压手),也就只读了百来页</p>\n<p>在约一年前我就有学习 C++ 的想法,当时只会在网上搜一些 C++ 写的程序,然后仿写出来自己试着理解,因为没有系统性的学习和要写的程序,也就不了了之</p>\n<p>似乎是从这个月初开始,我打算买本书正式学学 C 了,现在是感觉之前打算直接冲 C++ 是有点幼稚了,我翻了翻淘宝,但并没有买,去找了电子书版的 《C Prime Plus》 ,从 9 号开始我每天都在把《C Prime Plus》里需要写,或要理解的程序重新写一遍、写好注释,然后提交到私人 GitHub Repository 里,不过目前还没公开,等我学完那本书里需要学的东西后会公开的</p>\n<p>之前还试过做音乐,不过创作细胞还是太没活力了,不确定以后还会不会试试学,但感觉音乐的门槛是想学的几个东西中最高的 😢</p>\n<h2 id=\"假期打算与发牢骚\"><a href=\"#假期打算与发牢骚\" class=\"headerlink\" title=\"假期打算与发牢骚\"></a>假期打算与发牢骚</h2><p>也快接近五一假期了,学习 C 语言也有十来天了,虽然按照书里的学了快两百页,感觉总是只学到了点皮毛,要记数值对应的表达方式是有点费劲,在学校每天也只有晚自习的时间会学一个小时左右,这个进度下去得学多久啊…….</p>\n<p>感觉自己是有点懒了,从学习 C 语言或是写博客来说都是,这篇文章是从四月七日开始打算写的,但是现在已经是四月月底了</p>\n<p>上周的调休导致我也没回家,答应给朋友画的画还是没有画完,五一假期里一定要画完</p>\n<p>说到五一,五一就到明日方舟三周年了,但从这个学期开始真的很少很少玩了,好像当初停止玩是因为 BOSS 太难打不过去(当时查攻略的话应该是没问题的)</p>\n<p><img src=\"/images/post/06/hero.png\"><br>Lineage OS 在 26 号的时候正式更新了 <a href=\"https://lineageos.org/Changelog-26\">Lineage OS 19</a>,不知道 <a href=\"https://github.com/Linux4\">Linux4</a> 大佬什么时候让我的 s10e 吃上 Official Lineage OS 🤤</p>\n<p>近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板的树莓派,现在都涨了,想整块 zero 2 w 当随身 Linux 主机的 😢</p>\n<p>这篇文章就写到这吧,<del>摸到月底发还能算月更博客</del> 🥴</p>\n"},{"title":"手机使用 ADB 与 Fastboot 给另一台手机执行命令","date":"2022-05-10T14:01:50.000Z","_content":"\n **你好,欢迎来看文章!**~~请问你是手机坏了还是电脑坏了~~\n \n **这次就不说什么前言了,adb 不会用我也难教**\n \n # 准备工作\n \n **首先确定这篇教程是干嘛的,使用一台手机给另一台手机运行 adb 与 fastboot 命令**\n 所以主要说的地方是如何在手机上建立起 adb 环境,当然 adb 命令基本通用,也可以参考一下\n \n ### 需要的东西\n \n ```\n 连接两台设备(手机)的数据线,也可以用一条线加OTG的方法\n 如果是进行非救砖操作,也可以通过网络 adb 进行命令\n 至少有一台设备(手机)能正常运行,可访问网络\n ```\n \n ## 在你的手机上建立起 adb 环境\n \n ### 针对拥有 root 权限的手机\n \n **很好,你拥有 root 权限,那么这个过程对你来说会顺利很多,没 root 可就麻烦咯**\n \n #### 1. 使用~~熟悉的~~ Termux\n \n **首先,做好前置准备工作,有些人可能不知道,所以再讲一遍**\n \n ```\n pkg update // 更新包\n pkg install android-tools // 安装安卓工具(包含adb工具)\n ```\n \n 确定安装等进度条跑完后,试着运行 `` adb devices `` 看看有没有反应,正常情况如下\n \n ```\n ~ $ adb devices\n * daemon not running; starting now at tcp:5037\n * daemon started successfully\n List of devices attached\n /* 如果有已连接的设备会在此列出 */\n ```\n \n 连接到设备然后看看行不行,安卓机子相互连大部分时候是不需要驱动的\n \n #### 2. 使用 ADB 工具安装器\n \n 下载 ADB 工具安装器 **[酷安](https://www.coolapk.com/apk/crixec.adbtoolkitsinstall) | [Hubert's Box](https://t5d.trle5.tk/Apk/ADB-tools-3.0.apk)**\n \n 这个工具可以让你直接运行 adb 命令,但没有 root 权限会导致无法运行 fastboot 命令,也提供了可以把 adb 命令安装到系统里的功能\n \n ","source":"_posts/07.phone2adb.md","raw":"---\ntitle: 手机使用 ADB 与 Fastboot 给另一台手机执行命令\ndate: 2022-05-10 22:01:50\ntags: \n - adb\n - 技术\n - 救砖\n - 刷机\n---\n\n **你好,欢迎来看文章!**~~请问你是手机坏了还是电脑坏了~~\n \n **这次就不说什么前言了,adb 不会用我也难教**\n \n # 准备工作\n \n **首先确定这篇教程是干嘛的,使用一台手机给另一台手机运行 adb 与 fastboot 命令**\n 所以主要说的地方是如何在手机上建立起 adb 环境,当然 adb 命令基本通用,也可以参考一下\n \n ### 需要的东西\n \n ```\n 连接两台设备(手机)的数据线,也可以用一条线加OTG的方法\n 如果是进行非救砖操作,也可以通过网络 adb 进行命令\n 至少有一台设备(手机)能正常运行,可访问网络\n ```\n \n ## 在你的手机上建立起 adb 环境\n \n ### 针对拥有 root 权限的手机\n \n **很好,你拥有 root 权限,那么这个过程对你来说会顺利很多,没 root 可就麻烦咯**\n \n #### 1. 使用~~熟悉的~~ Termux\n \n **首先,做好前置准备工作,有些人可能不知道,所以再讲一遍**\n \n ```\n pkg update // 更新包\n pkg install android-tools // 安装安卓工具(包含adb工具)\n ```\n \n 确定安装等进度条跑完后,试着运行 `` adb devices `` 看看有没有反应,正常情况如下\n \n ```\n ~ $ adb devices\n * daemon not running; starting now at tcp:5037\n * daemon started successfully\n List of devices attached\n /* 如果有已连接的设备会在此列出 */\n ```\n \n 连接到设备然后看看行不行,安卓机子相互连大部分时候是不需要驱动的\n \n #### 2. 使用 ADB 工具安装器\n \n 下载 ADB 工具安装器 **[酷安](https://www.coolapk.com/apk/crixec.adbtoolkitsinstall) | [Hubert's Box](https://t5d.trle5.tk/Apk/ADB-tools-3.0.apk)**\n \n 这个工具可以让你直接运行 adb 命令,但没有 root 权限会导致无法运行 fastboot 命令,也提供了可以把 adb 命令安装到系统里的功能\n \n ","slug":"07.phone2adb","published":1,"updated":"2022-07-08T13:31:06.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl7rb332g000bfid6f9iq3kyx","content":"<p> <strong>你好,欢迎来看文章!</strong><del>请问你是手机坏了还是电脑坏了</del></p>\n<p> <strong>这次就不说什么前言了,adb 不会用我也难教</strong></p>\n<h1 id=\"准备工作\"><a href=\"#准备工作\" class=\"headerlink\" title=\"准备工作\"></a>准备工作</h1><p> <strong>首先确定这篇教程是干嘛的,使用一台手机给另一台手机运行 adb 与 fastboot 命令</strong><br> 所以主要说的地方是如何在手机上建立起 adb 环境,当然 adb 命令基本通用,也可以参考一下</p>\n<h3 id=\"需要的东西\"><a href=\"#需要的东西\" class=\"headerlink\" title=\"需要的东西\"></a>需要的东西</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">连接两台设备(手机)的数据线,也可以用一条线加OTG的方法</span><br><span class=\"line\">如果是进行非救砖操作,也可以通过网络 adb 进行命令</span><br><span class=\"line\">至少有一台设备(手机)能正常运行,可访问网络</span><br></pre></td></tr></table></figure>\n<h2 id=\"在你的手机上建立起-adb-环境\"><a href=\"#在你的手机上建立起-adb-环境\" class=\"headerlink\" title=\"在你的手机上建立起 adb 环境\"></a>在你的手机上建立起 adb 环境</h2><h3 id=\"针对拥有-root-权限的手机\"><a href=\"#针对拥有-root-权限的手机\" class=\"headerlink\" title=\"针对拥有 root 权限的手机\"></a>针对拥有 root 权限的手机</h3><p> <strong>很好,你拥有 root 权限,那么这个过程对你来说会顺利很多,没 root 可就麻烦咯</strong></p>\n<h4 id=\"1-使用熟悉的-Termux\"><a href=\"#1-使用熟悉的-Termux\" class=\"headerlink\" title=\"1. 使用熟悉的 Termux\"></a>1. 使用<del>熟悉的</del> Termux</h4><p> <strong>首先,做好前置准备工作,有些人可能不知道,所以再讲一遍</strong></p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">pkg update // 更新包</span><br><span class=\"line\">pkg install android-tools // 安装安卓工具(包含adb工具)</span><br></pre></td></tr></table></figure>\n<p> 确定安装等进度条跑完后,试着运行 <code>adb devices</code> 看看有没有反应,正常情况如下</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">~ $ adb devices</span><br><span class=\"line\">* daemon not running; starting now at tcp:5037</span><br><span class=\"line\">* daemon started successfully</span><br><span class=\"line\">List of devices attached</span><br><span class=\"line\">/* 如果有已连接的设备会在此列出 */</span><br></pre></td></tr></table></figure>\n<p> 连接到设备然后看看行不行,安卓机子相互连大部分时候是不需要驱动的</p>\n<h4 id=\"2-使用-ADB-工具安装器\"><a href=\"#2-使用-ADB-工具安装器\" class=\"headerlink\" title=\"2. 使用 ADB 工具安装器\"></a>2. 使用 ADB 工具安装器</h4><p> 下载 ADB 工具安装器 <strong><a href=\"https://www.coolapk.com/apk/crixec.adbtoolkitsinstall\">酷安</a> | <a href=\"https://t5d.trle5.tk/Apk/ADB-tools-3.0.apk\">Hubert’s Box</a></strong></p>\n<p> 这个工具可以让你直接运行 adb 命令,但没有 root 权限会导致无法运行 fastboot 命令,也提供了可以把 adb 命令安装到系统里的功能</p>\n","site":{"data":{}},"excerpt":"","more":"<p> <strong>你好,欢迎来看文章!</strong><del>请问你是手机坏了还是电脑坏了</del></p>\n<p> <strong>这次就不说什么前言了,adb 不会用我也难教</strong></p>\n<h1 id=\"准备工作\"><a href=\"#准备工作\" class=\"headerlink\" title=\"准备工作\"></a>准备工作</h1><p> <strong>首先确定这篇教程是干嘛的,使用一台手机给另一台手机运行 adb 与 fastboot 命令</strong><br> 所以主要说的地方是如何在手机上建立起 adb 环境,当然 adb 命令基本通用,也可以参考一下</p>\n<h3 id=\"需要的东西\"><a href=\"#需要的东西\" class=\"headerlink\" title=\"需要的东西\"></a>需要的东西</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">连接两台设备(手机)的数据线,也可以用一条线加OTG的方法</span><br><span class=\"line\">如果是进行非救砖操作,也可以通过网络 adb 进行命令</span><br><span class=\"line\">至少有一台设备(手机)能正常运行,可访问网络</span><br></pre></td></tr></table></figure>\n<h2 id=\"在你的手机上建立起-adb-环境\"><a href=\"#在你的手机上建立起-adb-环境\" class=\"headerlink\" title=\"在你的手机上建立起 adb 环境\"></a>在你的手机上建立起 adb 环境</h2><h3 id=\"针对拥有-root-权限的手机\"><a href=\"#针对拥有-root-权限的手机\" class=\"headerlink\" title=\"针对拥有 root 权限的手机\"></a>针对拥有 root 权限的手机</h3><p> <strong>很好,你拥有 root 权限,那么这个过程对你来说会顺利很多,没 root 可就麻烦咯</strong></p>\n<h4 id=\"1-使用熟悉的-Termux\"><a href=\"#1-使用熟悉的-Termux\" class=\"headerlink\" title=\"1. 使用熟悉的 Termux\"></a>1. 使用<del>熟悉的</del> Termux</h4><p> <strong>首先,做好前置准备工作,有些人可能不知道,所以再讲一遍</strong></p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">pkg update // 更新包</span><br><span class=\"line\">pkg install android-tools // 安装安卓工具(包含adb工具)</span><br></pre></td></tr></table></figure>\n<p> 确定安装等进度条跑完后,试着运行 <code>adb devices</code> 看看有没有反应,正常情况如下</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">~ $ adb devices</span><br><span class=\"line\">* daemon not running; starting now at tcp:5037</span><br><span class=\"line\">* daemon started successfully</span><br><span class=\"line\">List of devices attached</span><br><span class=\"line\">/* 如果有已连接的设备会在此列出 */</span><br></pre></td></tr></table></figure>\n<p> 连接到设备然后看看行不行,安卓机子相互连大部分时候是不需要驱动的</p>\n<h4 id=\"2-使用-ADB-工具安装器\"><a href=\"#2-使用-ADB-工具安装器\" class=\"headerlink\" title=\"2. 使用 ADB 工具安装器\"></a>2. 使用 ADB 工具安装器</h4><p> 下载 ADB 工具安装器 <strong><a href=\"https://www.coolapk.com/apk/crixec.adbtoolkitsinstall\">酷安</a> | <a href=\"https://t5d.trle5.tk/Apk/ADB-tools-3.0.apk\">Hubert’s Box</a></strong></p>\n<p> 这个工具可以让你直接运行 adb 命令,但没有 root 权限会导致无法运行 fastboot 命令,也提供了可以把 adb 命令安装到系统里的功能</p>\n"},{"title":"使用 FarPush 搭建微信消息推送服务","date":"2022-09-01T12:29:28.000Z","_content":"\n好久不见,距离上次更新文章的时间是有点长了呢,不过还是欢迎你来看文章!\n\n ## 前言\n \n 如果你像我一样注重手机后台会有哪些软件在运行,哪些软件是必要待在后台持续运行,哪些软件又是没有必要呆在后台占用系统资源的,那你一定知道 QQ 和微信这两个国内常见的社交软件,还有他们恐怖的空间与系统资源占用\n \n 我是很不喜欢这样的软件,我并没有那个能力每年跟进最新配置的手机,也没有办法摆脱对它们的依赖,我也不会为了长续航去选择电池大且厚重的手机,我只能防止它们在我的后台占用资源,也就造成了每当有人找我时,并不能及时的获得通知且考虑回复,会耽误事也会尴尬\n \n 还好,我发现了搭建微信推送的方法,不过我还是依然讨厌这种软件\n \n # FarPush 介绍\n \n 这个软件好像有点年头了,不过我是最近才在 BiliBili 上看到,是有点火星了\n \n ## 应用与项目介绍\n \n [FarPush](https://www.coolapk.com/apk/com.farplace.farpush) 为安卓手机端软件,WeChatPush 项目为其的后端,截至本文发布时,FarPush 依然还提供软件内后端,但这个后端我不太清楚是运行在软件内还是其他服务器,我也没找到作者在哪里有说明\n \n [WeChatPush](https://github.com/TSIOJeft/WeChatPush) 项目由 Python 驱动,只要有 Python 环境就可以运行,可以说是跨平台后端,需要使用 FarPush 作为推送信息接收器,但内存和后台占用比微信本身小了非常多\n \n 我在这里会先提供在 Linux 与安卓(依然是用 Termux) 的部署方法,Windows 的话要缓一缓了\n \n \n # 准备部署工作\n\n ##### 此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端\n \n ### 需要的东西\n \n ```\n 一台拥有 Python 环境的设备,Python 版本至少为 Python3\n pip 软件包管理器,作者推荐使用 pip3,但似乎是非强制要求\n 拥有独立 IP 的服务器或拥有独立 IP 且懂得配置端口转发的家庭网络\n // 上一条条件是需要使用到快速回复功能的要求,部署在局域网或获取推送信息的本机上可以不需要独立 IP\n ```\n \n #### 软件和仓库链接,以及作者的主页 \n FarPush 下载地址: [__酷安__](https://www.coolapk.com/apk/com.farplace.farpush)\n WeChatPush 项目仓库地址: [__GitHub__](https://github.com/TSIOJeft/WeChatPush)\n 作者的酷安账号: [__FarPlace__](https://www.coolapk.com/u/2838135)\n BiliBili 用户页: [__远方的重生__](https://sapce.bilibili.com/10721579) (不太确定是不是作者本人) \n \n # 开始搭建\n \n ## 在 Android (Termux) 上部署 FarPush\n \n ### 获取更新和克隆仓库\n \n ```\n pkg update\n pkg upgrade\n // 可能会询问一些包的设置,可全部按回车\n ```\n \n ### 安装一些必要的软件包\n \n ```\n apt install git python3 pip vim\n ```\n \n 以上命令会安装四个软件包,`git` 用于克隆项目仓库,`python3` 为仓库运行需要环境,`pip` 用于安装项目需要的 Python 依赖, `vim` 用于编辑 项目配置文件\n \n 软件安装完成后,大概会占用 `600 MB` 左右大小的空间,占的最多的还是 Python3\n \n ### 克隆仓库与配置消息转发的端口\n \n ```\n git clone https://github.com/TSIOJeft/WeChatPush\n ```\n \n 克隆项目仓库到当前目录,如果发现在自己不熟悉的目录,可使用 `cd ~` 切换当前工作目录到用户根目录\n\n 克隆完成后需要在手机上安装 FarPush 获取推送特征码,Farpush 下载链接可见[之前部分](./#软件和仓库链接,以及作者的主页)\n \n FarPush 推送特征码可见`左上角菜单` > `转接设备` > `右下角按钮`,可根据手机支持的推送服务复制对应的推送特征码(截至 22.09.07 ,fcm 推送渠道并未支持),然后编辑项目内的 `WeChatPush/itchat/config.py` 文件\n \n ```\n cd WeChatPush/itchat/ \n // 切换到项目的 itchat 目录内\n vi config.py\n // 编辑配置文件\n ```\n \n 当你执行完上面两行命令时,你会进入到 vim 的操作界面,按方向键把光标移到最下面,你会看见这一段文本\n \n ```\n # if show self send mes // 翻译过来就是在程序运行中是否显示自己回复的信息\n SELF_MES = False\n PUSH_REGID = '删掉此段文字,替换为你在手机上得到的推送特征码'\n # 0 for mi , 1 for oppo 2 for huawei 4 for tencent \n PHONE_TYPE = 4 // 4 使用即腾讯推送,基本上全部手机都支持,只不过非系统级推送,可能需要给予 FarPush 一直在后台运行的权限\n BLOCK_NAME = [] // 此处填入群或用户的昵称可屏蔽接受对应对话的消息\n # through message if you want reply mes just set it for 1\n MES_THROUGH = 1 // 改为 1 可使用通知栏快捷回复信息\n ```\n\n 根据提示填入推送特征码和根据需求调整选项,vim 使用方法可到网上找找,如果有图形编辑器可以更方便,只不过 Termux 的 `home` 目录在手机根目录的 `/data/data/com.termux/` 内,没有 root 权限可能无法访问和编辑\n ","source":"_posts/07.wechatpush.md","raw":"---\ntitle: 使用 FarPush 搭建微信消息推送服务\ndate: 2022-09-01 20:29:28\ntags:\n\t- 微信\n\t- 信息推送\n\t- FarPush\n---\n\n好久不见,距离上次更新文章的时间是有点长了呢,不过还是欢迎你来看文章!\n\n ## 前言\n \n 如果你像我一样注重手机后台会有哪些软件在运行,哪些软件是必要待在后台持续运行,哪些软件又是没有必要呆在后台占用系统资源的,那你一定知道 QQ 和微信这两个国内常见的社交软件,还有他们恐怖的空间与系统资源占用\n \n 我是很不喜欢这样的软件,我并没有那个能力每年跟进最新配置的手机,也没有办法摆脱对它们的依赖,我也不会为了长续航去选择电池大且厚重的手机,我只能防止它们在我的后台占用资源,也就造成了每当有人找我时,并不能及时的获得通知且考虑回复,会耽误事也会尴尬\n \n 还好,我发现了搭建微信推送的方法,不过我还是依然讨厌这种软件\n \n # FarPush 介绍\n \n 这个软件好像有点年头了,不过我是最近才在 BiliBili 上看到,是有点火星了\n \n ## 应用与项目介绍\n \n [FarPush](https://www.coolapk.com/apk/com.farplace.farpush) 为安卓手机端软件,WeChatPush 项目为其的后端,截至本文发布时,FarPush 依然还提供软件内后端,但这个后端我不太清楚是运行在软件内还是其他服务器,我也没找到作者在哪里有说明\n \n [WeChatPush](https://github.com/TSIOJeft/WeChatPush) 项目由 Python 驱动,只要有 Python 环境就可以运行,可以说是跨平台后端,需要使用 FarPush 作为推送信息接收器,但内存和后台占用比微信本身小了非常多\n \n 我在这里会先提供在 Linux 与安卓(依然是用 Termux) 的部署方法,Windows 的话要缓一缓了\n \n \n # 准备部署工作\n\n ##### 此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端\n \n ### 需要的东西\n \n ```\n 一台拥有 Python 环境的设备,Python 版本至少为 Python3\n pip 软件包管理器,作者推荐使用 pip3,但似乎是非强制要求\n 拥有独立 IP 的服务器或拥有独立 IP 且懂得配置端口转发的家庭网络\n // 上一条条件是需要使用到快速回复功能的要求,部署在局域网或获取推送信息的本机上可以不需要独立 IP\n ```\n \n #### 软件和仓库链接,以及作者的主页 \n FarPush 下载地址: [__酷安__](https://www.coolapk.com/apk/com.farplace.farpush)\n WeChatPush 项目仓库地址: [__GitHub__](https://github.com/TSIOJeft/WeChatPush)\n 作者的酷安账号: [__FarPlace__](https://www.coolapk.com/u/2838135)\n BiliBili 用户页: [__远方的重生__](https://sapce.bilibili.com/10721579) (不太确定是不是作者本人) \n \n # 开始搭建\n \n ## 在 Android (Termux) 上部署 FarPush\n \n ### 获取更新和克隆仓库\n \n ```\n pkg update\n pkg upgrade\n // 可能会询问一些包的设置,可全部按回车\n ```\n \n ### 安装一些必要的软件包\n \n ```\n apt install git python3 pip vim\n ```\n \n 以上命令会安装四个软件包,`git` 用于克隆项目仓库,`python3` 为仓库运行需要环境,`pip` 用于安装项目需要的 Python 依赖, `vim` 用于编辑 项目配置文件\n \n 软件安装完成后,大概会占用 `600 MB` 左右大小的空间,占的最多的还是 Python3\n \n ### 克隆仓库与配置消息转发的端口\n \n ```\n git clone https://github.com/TSIOJeft/WeChatPush\n ```\n \n 克隆项目仓库到当前目录,如果发现在自己不熟悉的目录,可使用 `cd ~` 切换当前工作目录到用户根目录\n\n 克隆完成后需要在手机上安装 FarPush 获取推送特征码,Farpush 下载链接可见[之前部分](./#软件和仓库链接,以及作者的主页)\n \n FarPush 推送特征码可见`左上角菜单` > `转接设备` > `右下角按钮`,可根据手机支持的推送服务复制对应的推送特征码(截至 22.09.07 ,fcm 推送渠道并未支持),然后编辑项目内的 `WeChatPush/itchat/config.py` 文件\n \n ```\n cd WeChatPush/itchat/ \n // 切换到项目的 itchat 目录内\n vi config.py\n // 编辑配置文件\n ```\n \n 当你执行完上面两行命令时,你会进入到 vim 的操作界面,按方向键把光标移到最下面,你会看见这一段文本\n \n ```\n # if show self send mes // 翻译过来就是在程序运行中是否显示自己回复的信息\n SELF_MES = False\n PUSH_REGID = '删掉此段文字,替换为你在手机上得到的推送特征码'\n # 0 for mi , 1 for oppo 2 for huawei 4 for tencent \n PHONE_TYPE = 4 // 4 使用即腾讯推送,基本上全部手机都支持,只不过非系统级推送,可能需要给予 FarPush 一直在后台运行的权限\n BLOCK_NAME = [] // 此处填入群或用户的昵称可屏蔽接受对应对话的消息\n # through message if you want reply mes just set it for 1\n MES_THROUGH = 1 // 改为 1 可使用通知栏快捷回复信息\n ```\n\n 根据提示填入推送特征码和根据需求调整选项,vim 使用方法可到网上找找,如果有图形编辑器可以更方便,只不过 Termux 的 `home` 目录在手机根目录的 `/data/data/com.termux/` 内,没有 root 权限可能无法访问和编辑\n ","slug":"07.wechatpush","published":1,"updated":"2022-09-08T01:08:02.387Z","_id":"cl7rb332l000cfid63ffw1bh5","comments":1,"layout":"post","photos":[],"link":"","content":"<p>好久不见,距离上次更新文章的时间是有点长了呢,不过还是欢迎你来看文章!</p>\n<h2 id=\"前言\"><a href=\"#前言\" class=\"headerlink\" title=\"前言\"></a>前言</h2><p> 如果你像我一样注重手机后台会有哪些软件在运行,哪些软件是必要待在后台持续运行,哪些软件又是没有必要呆在后台占用系统资源的,那你一定知道 QQ 和微信这两个国内常见的社交软件,还有他们恐怖的空间与系统资源占用</p>\n<p> 我是很不喜欢这样的软件,我并没有那个能力每年跟进最新配置的手机,也没有办法摆脱对它们的依赖,我也不会为了长续航去选择电池大且厚重的手机,我只能防止它们在我的后台占用资源,也就造成了每当有人找我时,并不能及时的获得通知且考虑回复,会耽误事也会尴尬</p>\n<p> 还好,我发现了搭建微信推送的方法,不过我还是依然讨厌这种软件</p>\n<h1 id=\"FarPush-介绍\"><a href=\"#FarPush-介绍\" class=\"headerlink\" title=\"FarPush 介绍\"></a>FarPush 介绍</h1><p> 这个软件好像有点年头了,不过我是最近才在 BiliBili 上看到,是有点火星了</p>\n<h2 id=\"应用与项目介绍\"><a href=\"#应用与项目介绍\" class=\"headerlink\" title=\"应用与项目介绍\"></a>应用与项目介绍</h2><p> <a href=\"https://www.coolapk.com/apk/com.farplace.farpush\">FarPush</a> 为安卓手机端软件,WeChatPush 项目为其的后端,截至本文发布时,FarPush 依然还提供软件内后端,但这个后端我不太清楚是运行在软件内还是其他服务器,我也没找到作者在哪里有说明</p>\n<p> <a href=\"https://github.com/TSIOJeft/WeChatPush\">WeChatPush</a> 项目由 Python 驱动,只要有 Python 环境就可以运行,可以说是跨平台后端,需要使用 FarPush 作为推送信息接收器,但内存和后台占用比微信本身小了非常多</p>\n<p> 我在这里会先提供在 Linux 与安卓(依然是用 Termux) 的部署方法,Windows 的话要缓一缓了</p>\n<h1 id=\"准备部署工作\"><a href=\"#准备部署工作\" class=\"headerlink\" title=\"准备部署工作\"></a>准备部署工作</h1><h5 id=\"此软件并不使用-Web-的微信,不会因为-Web-端被禁止登录无法使用的问题,但会占用微信-PC-端\"><a href=\"#此软件并不使用-Web-的微信,不会因为-Web-端被禁止登录无法使用的问题,但会占用微信-PC-端\" class=\"headerlink\" title=\"此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端\"></a>此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端</h5><h3 id=\"需要的东西\"><a href=\"#需要的东西\" class=\"headerlink\" title=\"需要的东西\"></a>需要的东西</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">一台拥有 Python 环境的设备,Python 版本至少为 Python3</span><br><span class=\"line\">pip 软件包管理器,作者推荐使用 pip3,但似乎是非强制要求</span><br><span class=\"line\">拥有独立 IP 的服务器或拥有独立 IP 且懂得配置端口转发的家庭网络</span><br><span class=\"line\">// 上一条条件是需要使用到快速回复功能的要求,部署在局域网或获取推送信息的本机上可以不需要独立 IP</span><br></pre></td></tr></table></figure>\n<h4 id=\"软件和仓库链接,以及作者的主页\"><a href=\"#软件和仓库链接,以及作者的主页\" class=\"headerlink\" title=\"软件和仓库链接,以及作者的主页\"></a>软件和仓库链接,以及作者的主页</h4><p> FarPush 下载地址: <a href=\"https://www.coolapk.com/apk/com.farplace.farpush\"><strong>酷安</strong></a><br> WeChatPush 项目仓库地址: <a href=\"https://github.com/TSIOJeft/WeChatPush\"><strong>GitHub</strong></a><br> 作者的酷安账号: <a href=\"https://www.coolapk.com/u/2838135\"><strong>FarPlace</strong></a><br> BiliBili 用户页: <a href=\"https://sapce.bilibili.com/10721579\"><strong>远方的重生</strong></a> (不太确定是不是作者本人) </p>\n<h1 id=\"开始搭建\"><a href=\"#开始搭建\" class=\"headerlink\" title=\"开始搭建\"></a>开始搭建</h1><h2 id=\"在-Android-Termux-上部署-FarPush\"><a href=\"#在-Android-Termux-上部署-FarPush\" class=\"headerlink\" title=\"在 Android (Termux) 上部署 FarPush\"></a>在 Android (Termux) 上部署 FarPush</h2><h3 id=\"获取更新和克隆仓库\"><a href=\"#获取更新和克隆仓库\" class=\"headerlink\" title=\"获取更新和克隆仓库\"></a>获取更新和克隆仓库</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">pkg update</span><br><span class=\"line\">pkg upgrade</span><br><span class=\"line\">// 可能会询问一些包的设置,可全部按回车</span><br></pre></td></tr></table></figure>\n<h3 id=\"安装一些必要的软件包\"><a href=\"#安装一些必要的软件包\" class=\"headerlink\" title=\"安装一些必要的软件包\"></a>安装一些必要的软件包</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">apt install git python3 pip vim</span><br></pre></td></tr></table></figure>\n<p> 以上命令会安装四个软件包,<code>git</code> 用于克隆项目仓库,<code>python3</code> 为仓库运行需要环境,<code>pip</code> 用于安装项目需要的 Python 依赖, <code>vim</code> 用于编辑 项目配置文件</p>\n<p> 软件安装完成后,大概会占用 <code>600 MB</code> 左右大小的空间,占的最多的还是 Python3</p>\n<h3 id=\"克隆仓库与配置消息转发的端口\"><a href=\"#克隆仓库与配置消息转发的端口\" class=\"headerlink\" title=\"克隆仓库与配置消息转发的端口\"></a>克隆仓库与配置消息转发的端口</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">git clone https://github.com/TSIOJeft/WeChatPush</span><br></pre></td></tr></table></figure>\n<p> 克隆项目仓库到当前目录,如果发现在自己不熟悉的目录,可使用 <code>cd ~</code> 切换当前工作目录到用户根目录</p>\n<p> 克隆完成后需要在手机上安装 FarPush 获取推送特征码,Farpush 下载链接可见<a href=\"./#%E8%BD%AF%E4%BB%B6%E5%92%8C%E4%BB%93%E5%BA%93%E9%93%BE%E6%8E%A5%EF%BC%8C%E4%BB%A5%E5%8F%8A%E4%BD%9C%E8%80%85%E7%9A%84%E4%B8%BB%E9%A1%B5\">之前部分</a></p>\n<p> FarPush 推送特征码可见<code>左上角菜单</code> > <code>转接设备</code> > <code>右下角按钮</code>,可根据手机支持的推送服务复制对应的推送特征码(截至 22.09.07 ,fcm 推送渠道并未支持),然后编辑项目内的 <code>WeChatPush/itchat/config.py</code> 文件</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd WeChatPush/itchat/ </span><br><span class=\"line\">// 切换到项目的 itchat 目录内</span><br><span class=\"line\">vi config.py</span><br><span class=\"line\">// 编辑配置文件</span><br></pre></td></tr></table></figure>\n<p> 当你执行完上面两行命令时,你会进入到 vim 的操作界面,按方向键把光标移到最下面,你会看见这一段文本</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"># if show self send mes // 翻译过来就是在程序运行中是否显示自己回复的信息</span><br><span class=\"line\">SELF_MES = False</span><br><span class=\"line\">PUSH_REGID = '删掉此段文字,替换为你在手机上得到的推送特征码'</span><br><span class=\"line\"># 0 for mi , 1 for oppo 2 for huawei 4 for tencent </span><br><span class=\"line\">PHONE_TYPE = 4 // 4 使用即腾讯推送,基本上全部手机都支持,只不过非系统级推送,可能需要给予 FarPush 一直在后台运行的权限</span><br><span class=\"line\">BLOCK_NAME = [] // 此处填入群或用户的昵称可屏蔽接受对应对话的消息</span><br><span class=\"line\"># through message if you want reply mes just set it for 1</span><br><span class=\"line\">MES_THROUGH = 1 // 改为 1 可使用通知栏快捷回复信息</span><br></pre></td></tr></table></figure>\n\n<p> 根据提示填入推送特征码和根据需求调整选项,vim 使用方法可到网上找找,如果有图形编辑器可以更方便,只不过 Termux 的 <code>home</code> 目录在手机根目录的 <code>/data/data/com.termux/</code> 内,没有 root 权限可能无法访问和编辑\n </p>\n","site":{"data":{}},"excerpt":"","more":"<p>好久不见,距离上次更新文章的时间是有点长了呢,不过还是欢迎你来看文章!</p>\n<h2 id=\"前言\"><a href=\"#前言\" class=\"headerlink\" title=\"前言\"></a>前言</h2><p> 如果你像我一样注重手机后台会有哪些软件在运行,哪些软件是必要待在后台持续运行,哪些软件又是没有必要呆在后台占用系统资源的,那你一定知道 QQ 和微信这两个国内常见的社交软件,还有他们恐怖的空间与系统资源占用</p>\n<p> 我是很不喜欢这样的软件,我并没有那个能力每年跟进最新配置的手机,也没有办法摆脱对它们的依赖,我也不会为了长续航去选择电池大且厚重的手机,我只能防止它们在我的后台占用资源,也就造成了每当有人找我时,并不能及时的获得通知且考虑回复,会耽误事也会尴尬</p>\n<p> 还好,我发现了搭建微信推送的方法,不过我还是依然讨厌这种软件</p>\n<h1 id=\"FarPush-介绍\"><a href=\"#FarPush-介绍\" class=\"headerlink\" title=\"FarPush 介绍\"></a>FarPush 介绍</h1><p> 这个软件好像有点年头了,不过我是最近才在 BiliBili 上看到,是有点火星了</p>\n<h2 id=\"应用与项目介绍\"><a href=\"#应用与项目介绍\" class=\"headerlink\" title=\"应用与项目介绍\"></a>应用与项目介绍</h2><p> <a href=\"https://www.coolapk.com/apk/com.farplace.farpush\">FarPush</a> 为安卓手机端软件,WeChatPush 项目为其的后端,截至本文发布时,FarPush 依然还提供软件内后端,但这个后端我不太清楚是运行在软件内还是其他服务器,我也没找到作者在哪里有说明</p>\n<p> <a href=\"https://github.com/TSIOJeft/WeChatPush\">WeChatPush</a> 项目由 Python 驱动,只要有 Python 环境就可以运行,可以说是跨平台后端,需要使用 FarPush 作为推送信息接收器,但内存和后台占用比微信本身小了非常多</p>\n<p> 我在这里会先提供在 Linux 与安卓(依然是用 Termux) 的部署方法,Windows 的话要缓一缓了</p>\n<h1 id=\"准备部署工作\"><a href=\"#准备部署工作\" class=\"headerlink\" title=\"准备部署工作\"></a>准备部署工作</h1><h5 id=\"此软件并不使用-Web-的微信,不会因为-Web-端被禁止登录无法使用的问题,但会占用微信-PC-端\"><a href=\"#此软件并不使用-Web-的微信,不会因为-Web-端被禁止登录无法使用的问题,但会占用微信-PC-端\" class=\"headerlink\" title=\"此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端\"></a>此软件并不使用 Web 的微信,不会因为 Web 端被禁止登录无法使用的问题,但会占用微信 PC 端</h5><h3 id=\"需要的东西\"><a href=\"#需要的东西\" class=\"headerlink\" title=\"需要的东西\"></a>需要的东西</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">一台拥有 Python 环境的设备,Python 版本至少为 Python3</span><br><span class=\"line\">pip 软件包管理器,作者推荐使用 pip3,但似乎是非强制要求</span><br><span class=\"line\">拥有独立 IP 的服务器或拥有独立 IP 且懂得配置端口转发的家庭网络</span><br><span class=\"line\">// 上一条条件是需要使用到快速回复功能的要求,部署在局域网或获取推送信息的本机上可以不需要独立 IP</span><br></pre></td></tr></table></figure>\n<h4 id=\"软件和仓库链接,以及作者的主页\"><a href=\"#软件和仓库链接,以及作者的主页\" class=\"headerlink\" title=\"软件和仓库链接,以及作者的主页\"></a>软件和仓库链接,以及作者的主页</h4><p> FarPush 下载地址: <a href=\"https://www.coolapk.com/apk/com.farplace.farpush\"><strong>酷安</strong></a><br> WeChatPush 项目仓库地址: <a href=\"https://github.com/TSIOJeft/WeChatPush\"><strong>GitHub</strong></a><br> 作者的酷安账号: <a href=\"https://www.coolapk.com/u/2838135\"><strong>FarPlace</strong></a><br> BiliBili 用户页: <a href=\"https://sapce.bilibili.com/10721579\"><strong>远方的重生</strong></a> (不太确定是不是作者本人) </p>\n<h1 id=\"开始搭建\"><a href=\"#开始搭建\" class=\"headerlink\" title=\"开始搭建\"></a>开始搭建</h1><h2 id=\"在-Android-Termux-上部署-FarPush\"><a href=\"#在-Android-Termux-上部署-FarPush\" class=\"headerlink\" title=\"在 Android (Termux) 上部署 FarPush\"></a>在 Android (Termux) 上部署 FarPush</h2><h3 id=\"获取更新和克隆仓库\"><a href=\"#获取更新和克隆仓库\" class=\"headerlink\" title=\"获取更新和克隆仓库\"></a>获取更新和克隆仓库</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">pkg update</span><br><span class=\"line\">pkg upgrade</span><br><span class=\"line\">// 可能会询问一些包的设置,可全部按回车</span><br></pre></td></tr></table></figure>\n<h3 id=\"安装一些必要的软件包\"><a href=\"#安装一些必要的软件包\" class=\"headerlink\" title=\"安装一些必要的软件包\"></a>安装一些必要的软件包</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">apt install git python3 pip vim</span><br></pre></td></tr></table></figure>\n<p> 以上命令会安装四个软件包,<code>git</code> 用于克隆项目仓库,<code>python3</code> 为仓库运行需要环境,<code>pip</code> 用于安装项目需要的 Python 依赖, <code>vim</code> 用于编辑 项目配置文件</p>\n<p> 软件安装完成后,大概会占用 <code>600 MB</code> 左右大小的空间,占的最多的还是 Python3</p>\n<h3 id=\"克隆仓库与配置消息转发的端口\"><a href=\"#克隆仓库与配置消息转发的端口\" class=\"headerlink\" title=\"克隆仓库与配置消息转发的端口\"></a>克隆仓库与配置消息转发的端口</h3> <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">git clone https://github.com/TSIOJeft/WeChatPush</span><br></pre></td></tr></table></figure>\n<p> 克隆项目仓库到当前目录,如果发现在自己不熟悉的目录,可使用 <code>cd ~</code> 切换当前工作目录到用户根目录</p>\n<p> 克隆完成后需要在手机上安装 FarPush 获取推送特征码,Farpush 下载链接可见<a href=\"./#%E8%BD%AF%E4%BB%B6%E5%92%8C%E4%BB%93%E5%BA%93%E9%93%BE%E6%8E%A5%EF%BC%8C%E4%BB%A5%E5%8F%8A%E4%BD%9C%E8%80%85%E7%9A%84%E4%B8%BB%E9%A1%B5\">之前部分</a></p>\n<p> FarPush 推送特征码可见<code>左上角菜单</code> > <code>转接设备</code> > <code>右下角按钮</code>,可根据手机支持的推送服务复制对应的推送特征码(截至 22.09.07 ,fcm 推送渠道并未支持),然后编辑项目内的 <code>WeChatPush/itchat/config.py</code> 文件</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br></pre></td><td class=\"code\"><pre><span class=\"line\">cd WeChatPush/itchat/ </span><br><span class=\"line\">// 切换到项目的 itchat 目录内</span><br><span class=\"line\">vi config.py</span><br><span class=\"line\">// 编辑配置文件</span><br></pre></td></tr></table></figure>\n<p> 当你执行完上面两行命令时,你会进入到 vim 的操作界面,按方向键把光标移到最下面,你会看见这一段文本</p>\n <figure class=\"highlight plaintext\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"># if show self send mes // 翻译过来就是在程序运行中是否显示自己回复的信息</span><br><span class=\"line\">SELF_MES = False</span><br><span class=\"line\">PUSH_REGID = '删掉此段文字,替换为你在手机上得到的推送特征码'</span><br><span class=\"line\"># 0 for mi , 1 for oppo 2 for huawei 4 for tencent </span><br><span class=\"line\">PHONE_TYPE = 4 // 4 使用即腾讯推送,基本上全部手机都支持,只不过非系统级推送,可能需要给予 FarPush 一直在后台运行的权限</span><br><span class=\"line\">BLOCK_NAME = [] // 此处填入群或用户的昵称可屏蔽接受对应对话的消息</span><br><span class=\"line\"># through message if you want reply mes just set it for 1</span><br><span class=\"line\">MES_THROUGH = 1 // 改为 1 可使用通知栏快捷回复信息</span><br></pre></td></tr></table></figure>\n\n<p> 根据提示填入推送特征码和根据需求调整选项,vim 使用方法可到网上找找,如果有图形编辑器可以更方便,只不过 Termux 的 <code>home</code> 目录在手机根目录的 <code>/data/data/com.termux/</code> 内,没有 root 权限可能无法访问和编辑\n </p>\n"}],"PostAsset":[],"PostCategory":[],"PostTag":[{"post_id":"cl7rb330v0003fid6euy5c5k9","tag_id":"cl7rb331c0005fid6g6n124qj","_id":"cl7rb332f000afid65fpr2j5t"},{"post_id":"cl7rb33160004fid6euek7yol","tag_id":"cl7rb331c0005fid6g6n124qj","_id":"cl7rb332t000efid6c5tb336g"},{"post_id":"cl7rb331t0007fid6boz4ck9t","tag_id":"cl7rb332q000dfid656cdgpww","_id":"cl7rb3337000kfid6dcq11o11"},{"post_id":"cl7rb331t0007fid6boz4ck9t","tag_id":"cl7rb332v000ffid6evgs7pkr","_id":"cl7rb3338000lfid6099g6rod"},{"post_id":"cl7rb331t0007fid6boz4ck9t","tag_id":"cl7rb332x000gfid62d6y9o4z","_id":"cl7rb333b000nfid6ala3alhp"},{"post_id":"cl7rb331t0007fid6boz4ck9t","tag_id":"cl7rb332z000hfid67ouj6spl","_id":"cl7rb333c000ofid6faui21fw"},{"post_id":"cl7rb331t0007fid6boz4ck9t","tag_id":"cl7rb3330000ifid69ddf452u","_id":"cl7rb333f000qfid6ck0ogrcc"},{"post_id":"cl7rb331z0008fid6eqobbc67","tag_id":"cl7rb3333000jfid6cj5lgpwj","_id":"cl7rb333f000rfid6det557mg"},{"post_id":"cl7rb332g000bfid6f9iq3kyx","tag_id":"cl7rb3339000mfid6h8ha5506","_id":"cl7rb333n000vfid6az2z7y4v"},{"post_id":"cl7rb332g000bfid6f9iq3kyx","tag_id":"cl7rb332q000dfid656cdgpww","_id":"cl7rb333n000wfid606mw07d4"},{"post_id":"cl7rb332g000bfid6f9iq3kyx","tag_id":"cl7rb333g000sfid6fm6741ar","_id":"cl7rb333p000yfid65zxn5bi6"},{"post_id":"cl7rb332g000bfid6f9iq3kyx","tag_id":"cl7rb333j000tfid68ah95ulj","_id":"cl7rb333q000zfid61mp8ct1t"},{"post_id":"cl7rb332l000cfid63ffw1bh5","tag_id":"cl7rb333l000ufid668suasoi","_id":"cl7rb333t0011fid63sbl2fqd"},{"post_id":"cl7rb332l000cfid63ffw1bh5","tag_id":"cl7rb333o000xfid6aial7fsh","_id":"cl7rb333t0012fid6hsq5473i"},{"post_id":"cl7rb332l000cfid63ffw1bh5","tag_id":"cl7rb333q0010fid63s2jcqu1","_id":"cl7rb333t0013fid6d3n8do3h"}],"Tag":[{"name":"测试","_id":"cl7rb331c0005fid6g6n124qj"},{"name":"技术","_id":"cl7rb332q000dfid656cdgpww"},{"name":"博客","_id":"cl7rb332v000ffid6evgs7pkr"},{"name":"GitHub","_id":"cl7rb332x000gfid62d6y9o4z"},{"name":"域名","_id":"cl7rb332z000hfid67ouj6spl"},{"name":"DNS","_id":"cl7rb3330000ifid69ddf452u"},{"name":"闲聊","_id":"cl7rb3333000jfid6cj5lgpwj"},{"name":"adb","_id":"cl7rb3339000mfid6h8ha5506"},{"name":"救砖","_id":"cl7rb333g000sfid6fm6741ar"},{"name":"刷机","_id":"cl7rb333j000tfid68ah95ulj"},{"name":"微信","_id":"cl7rb333l000ufid668suasoi"},{"name":"信息推送","_id":"cl7rb333o000xfid6aial7fsh"},{"name":"FarPush","_id":"cl7rb333q0010fid63s2jcqu1"}]}} |