☁️ 雲端辦公
所有檔案
分類管理
文件工作區
📝 編輯文件
把儲存操作固定在上方,避免被頁尾或編輯器工具列遮住。
瀏覽預覽
返回列表
刪除檔案
儲存變更
內容編輯區
这太猛了!Gemma 4 越狱版 + Hermes Agent 本地部署,接入 Telegram(完
Document
<p>大家好,我是超哥。这一期教大家搭配 <strong>Hermes Agent</strong> 在本地部署 <strong>Gemma 4 越狱版 </strong>大模型,并且教大家接入 <strong>Telegram</strong>,这样<strong>电脑</strong>和<strong>手机</strong>都能用,能力非常强悍、自由度更高,不需要 API、完全免费、离线也能用。我们开始教程!</p> <p><img src="https://www.xchaoge.com/d/file/efpub/2026/04-24/264139997e63413903ddb67d2a973f55.png" alt=""></p> <h3>一、安装Windows Terminal</h3> <p>Windows 终端程序是一款新式、快速、高效、强大且高效的终端应用程序,适用于命令行工具和命令提示符,PowerShell和 WSL 等 Shell 用户。主要功能包括多个选项卡、窗格、Unicode、和 UTF-8 字符支持,GPU 加速文本渲染引擎以及自定义主题、样式和配置。</p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="免费软件与共享软件" data-google-vignette="false" data-google-interstitial="false">免费软件与共享软件</div> <p> </p> <p><strong>下载地址:</strong><a href="https://apps.microsoft.com/detail/9n0dx20hk701?hl=zh-CN&gl=CN" target="_blank" rel="noopener">https://apps.microsoft.com/detail/9n0dx20hk701?hl=zh-CN&gl=CN</a></p> <p><iframe src="https://www.youtube.com/embed/XxI3EqZAY7A?si=IZ9wS_IKXookU5ra" frameborder="0" allowfullscreen="allowfullscreen"></iframe><ins class="adsbygoogle" data-ad-client="ca-pub-5432734503034721" data-ad-slot="5434324927" data-ad-format="auto" data-full-width-responsive="true" data-adsbygoogle-status="done" data-ad-status="filled"></ins></p> <div id="aswift_2_host"><iframe id="aswift_2" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5432734503034721&output=html&h=280&slotname=5434324927&adk=250271443&adf=3880932764&pi=t.ma~as.5434324927&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946459&bpp=1&bdt=565&idt=167&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1776975806%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600&nras=1&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=1&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=1576&biw=1407&bih=702&scr_x=0&scr_y=0&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&pvsid=4732445675188767&tmod=1319692643&uas=0&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=3&uci=a!3&btvi=1&fsb=1&dtd=170" name="aswift_2" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!3" aria-label="Advertisement" data-google-query-id="CMfSy6j9h5QDFTZNwgUdESEuQw" data-load-complete="true"></iframe></div> <p> </p> <h3>二、安装 WSL</h3> <p>在 PowerShell(管理员)执行安装WSL命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">wsl --install</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>安装完成后重启电脑,然后安装Ubuntu命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">wsl --install -d Ubuntu</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>打开Windows Terminal,来到ubuntu</p> <p> </p> <div id="aswift_3_host"><iframe id="aswift_3" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5432734503034721&output=html&h=280&slotname=2010193036&adk=2443258406&adf=1001254905&pi=t.ma~as.2010193036&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946461&bpp=1&bdt=568&idt=179&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1776975806%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280&nras=1&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=1&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=2252&biw=1407&bih=702&scr_x=0&scr_y=0&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&pvsid=4732445675188767&tmod=1319692643&uas=0&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=4&uci=a!4&btvi=2&fsb=1&dtd=182" name="aswift_3" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!4" aria-label="Advertisement" data-google-query-id="CNPHy6j9h5QDFa5MwgUdSDwtoQ" data-load-complete="true"></iframe></div> <p> </p> <h3>三、更新Ubuntu系统</h3> <p>更新Ubuntu系统命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">sudo apt update</div> </div> <div class="code-line"> <div class="line-number">2.</div> <div class="line-text">sudo apt upgrade -y</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p> </p> <div id="aswift_4_host"><iframe id="aswift_4" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5432734503034721&output=html&h=280&slotname=2808161582&adk=1257084173&adf=539714583&pi=t.ma~as.2808161582&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946462&bpp=1&bdt=569&idt=191&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1776975806%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1776975806%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280%2C916x280&nras=1&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=1&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=2804&biw=1407&bih=702&scr_x=0&scr_y=0&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&pvsid=4732445675188767&tmod=1319692643&uas=0&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=5&uci=a!5&btvi=3&fsb=1&dtd=195" name="aswift_4" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!5" aria-label="Advertisement" data-google-query-id="CJ3Uy6j9h5QDFfBOwgUdO4kn7Q" data-load-complete="true"></iframe></div> <p> </p> <h3>四、安装环境</h3> <h4><strong>1. 安装 Python</strong></h4> <p>安装 Python命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">sudo apt install python3-pip python3-venv -y</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <h4><strong>2. 安装解压缩<a class="google-anno" href="https://blog.xgdn.com/26.html" data-google-vignette="false" data-google-interstitial="false"> <span class="google-anno-t">软件</span></a></strong></h4> <p>安装解压缩软件命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">sudo apt install -y zstd</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <h4><strong>3. 安装nodejs</strong></h4> <p>安装 nodejs 命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -</div> </div> <div class="code-line"> <div class="line-number">2.</div> <div class="line-text">sudo apt install -y nodejs <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="编程" data-google-vignette="false" data-google-interstitial="false">编程</div> </div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <h4><strong>4. 安装 Git</strong></h4> <p>安装 Git 命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">sudo apt update</div> </div> <div class="code-line"> <div class="line-number">2.</div> <div class="line-text">sudo apt install -y git</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p><strong>检查有没有成功:</strong></p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">node -v</div> </div> <div class="code-line"> <div class="line-number">2.</div> <div class="line-text">npm -v</div> </div> <div class="code-line"> <div class="line-number">3.</div> <div class="line-text">git --version</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p> </p> <div id="aswift_5_host"><iframe id="aswift_5" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?gdpr=0&client=ca-pub-5432734503034721&output=html&h=280&slotname=9157947511&adk=3034465886&adf=1848922484&pi=t.ma~as.9157947511&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946463&bpp=1&bdt=569&idt=206&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1777084948%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280%2C916x280%2C916x280%2C1407x702&nras=2&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=2&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=4213&biw=1407&bih=702&scr_x=0&scr_y=1432&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&psts=AOrYGsnqqUBh-IVkwXDudpif4XMJzDAA5a3Vf6CbIo10U2CHrtId6f7dbN8QeDjXTQASwqOCQ6VBnEVGEhAAGYS81Dzr17vfa51p0KQw%2CAOrYGslbioNMoAdlWz2u7IGeu4YYKHUu8JCuWmZqDTvcJtXgp30A1B8k28PhNM15MVTwiDXQuuqTcGgQQzWpJdT0_iFWmyso5M3bUVQ%2CAOrYGsmOz4iuvQsWIwnpsgBr_vHDBAUBhSBHVWf74D4tRVE3xZvIoyIhKW6KKIwbcvZ5MMoxCEiC8wDJ3Lt0aChZdMuo3TgdYxLwgLnu%2CAOrYGsncoPiBna8YlqeqfPSFBkYRyOUFXmIG_RlIPXixqK7aNVM6DudqADmf07xY0MStOZ0YkuCEYXbZZdSr0Ho2SLMHGd34WZgX6Cu9akzOU_nQ5w&pvsid=4732445675188767&tmod=1319692643&uas=0&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=6&uci=a!6&btvi=4&fsb=1&dtd=8987" name="aswift_5" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!6" aria-label="Advertisement" data-google-query-id="CMf146z9h5QDFWdNwgUds14iYQ" data-load-complete="true"></iframe></div> <p> </p> <h3>五、安装ollama</h3> <p><img src="https://www.xchaoge.com/d/file/efpub/2026/03-26/37bfd39ec8c214436d3f847b8d03e722.png" alt="" width="400" align="" border="0"></p> <p><strong>ollama官网:</strong><a href="https://ollama.com/" target="_blank" rel="noopener">https://ollama.com/</a></p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="开发工具" data-google-vignette="false" data-google-interstitial="false">开发工具</div> <p> </p> <p>安装 ollama 命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">curl -fsSL https://ollama.com/install.sh | sh</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p> </p> <div id="aswift_6_host"><iframe id="aswift_6" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?gdpr=0&client=ca-pub-5432734503034721&output=html&h=280&slotname=5757866353&adk=415592049&adf=220515842&pi=t.ma~as.5757866353&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946464&bpp=1&bdt=571&idt=210&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1777084948%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280%2C916x280%2C916x280%2C1407x702%2C916x280&nras=2&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=2&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=4939&biw=1407&bih=702&scr_x=0&scr_y=2138&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&psts=AOrYGsnqqUBh-IVkwXDudpif4XMJzDAA5a3Vf6CbIo10U2CHrtId6f7dbN8QeDjXTQASwqOCQ6VBnEVGEhAAGYS81Dzr17vfa51p0KQw%2CAOrYGslbioNMoAdlWz2u7IGeu4YYKHUu8JCuWmZqDTvcJtXgp30A1B8k28PhNM15MVTwiDXQuuqTcGgQQzWpJdT0_iFWmyso5M3bUVQ%2CAOrYGsmOz4iuvQsWIwnpsgBr_vHDBAUBhSBHVWf74D4tRVE3xZvIoyIhKW6KKIwbcvZ5MMoxCEiC8wDJ3Lt0aChZdMuo3TgdYxLwgLnu%2CAOrYGsncoPiBna8YlqeqfPSFBkYRyOUFXmIG_RlIPXixqK7aNVM6DudqADmf07xY0MStOZ0YkuCEYXbZZdSr0Ho2SLMHGd34WZgX6Cu9akzOU_nQ5w%2CAOrYGsl2rL8evs2_7UrXHlvwEeY82KHkS3MFOL6pHhsiNQliCJiLMH-dhFRYy8t3ejAMEkNQoatvevlsZPCgfrKA5t6YsdrAxrrB6YY&pvsid=4732445675188767&tmod=1319692643&uas=0&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=7&uci=a!7&btvi=5&fsb=1&dtd=22132" name="aswift_6" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!7" aria-label="Advertisement" data-google-query-id="CNyfh7P9h5QDFb1PwgUdQZIwEg" data-load-complete="true"></iframe></div> <p> </p> <h3>六、下载安装 Ollama Gemma 4 越狱版 AI模型</h3> <p>越狱版模型列表:<a href="https://huggingface.co/collections/TrevorJS/gemma-4-uncensored" target="_blank" rel="noopener">https://huggingface.co/collections/TrevorJS/gemma-4-uncensored</a></p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="计算机硬件" data-google-vignette="false" data-google-interstitial="false">计算机硬件</div> <p> </p> <p><strong>注意:</strong>Mac电脑可以使用不带GGUF的版本,属于无限制版本。Windows版本只能使用带GGUF的版本,只支持文本输入输出,不支持agent的tool功能,但是能力也很强。</p> <table> <thead> <tr> <th>模型</th> <th>参数规模</th> <th>Q4_K_M 显存</th> <th>Q8_0 显存</th> <th>推荐显卡</th> </tr> </thead> <tbody> <tr> <td><strong>E2B(5B)</strong></td> <td>5B</td> <td>4~6GB</td> <td>8~10GB</td> <td>3050 / 3060 / 笔记本</td> </tr> <tr> <td><strong>E4B(8B)</strong></td> <td>8B</td> <td>6~8GB</td> <td>12~14GB</td> <td>3060 / 4060</td> </tr> <tr> <td><strong>26B(A4B)</strong></td> <td>26B</td> <td>14~18GB</td> <td>24~28GB</td> <td>3090 / 4090</td> </tr> <tr> <td><strong>31B</strong></td> <td>31B</td> <td>18~22GB</td> <td>28~36GB</td> <td>4090 / A100</td> </tr> </tbody> </table> <p><strong>E2B(5B) </strong>安装命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">ollama pull hf.co/TrevorJS/gemma-4-E2B-it-uncensored-GGUF:Q4_K_M <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="软件" data-google-vignette="false" data-google-interstitial="false">软件</div> </div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p><strong>E4B(8B) </strong>安装命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">ollama pull hf.co/TrevorJS/gemma-4-E4B-it-uncensored-GGUF:Q4_K_M</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p><strong>26B(A4B) </strong>安装命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">ollama pull hf.co/TrevorJS/gemma-4-26B-A4B-it-uncensored-GGUF:Q4_K_M</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p><strong>31B </strong>安装命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">ollama pull hf.co/TrevorJS/gemma-4-31B-it-uncensored-GGUF:Q4_K_M</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p> </p> <div id="aswift_7_host"><iframe id="aswift_7" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?gdpr=0&client=ca-pub-5432734503034721&output=html&h=280&slotname=5590345397&adk=311199285&adf=363983977&pi=t.ma~as.5590345397&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946465&bpp=2&bdt=571&idt=215&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1777084948%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280%2C916x280%2C916x280%2C1407x702%2C916x280%2C916x280&nras=2&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=2&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=6170&biw=1407&bih=702&scr_x=0&scr_y=3372&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&psts=AOrYGsnqqUBh-IVkwXDudpif4XMJzDAA5a3Vf6CbIo10U2CHrtId6f7dbN8QeDjXTQASwqOCQ6VBnEVGEhAAGYS81Dzr17vfa51p0KQw%2CAOrYGslbioNMoAdlWz2u7IGeu4YYKHUu8JCuWmZqDTvcJtXgp30A1B8k28PhNM15MVTwiDXQuuqTcGgQQzWpJdT0_iFWmyso5M3bUVQ%2CAOrYGsmOz4iuvQsWIwnpsgBr_vHDBAUBhSBHVWf74D4tRVE3xZvIoyIhKW6KKIwbcvZ5MMoxCEiC8wDJ3Lt0aChZdMuo3TgdYxLwgLnu%2CAOrYGsncoPiBna8YlqeqfPSFBkYRyOUFXmIG_RlIPXixqK7aNVM6DudqADmf07xY0MStOZ0YkuCEYXbZZdSr0Ho2SLMHGd34WZgX6Cu9akzOU_nQ5w%2CAOrYGsl2rL8evs2_7UrXHlvwEeY82KHkS3MFOL6pHhsiNQliCJiLMH-dhFRYy8t3ejAMEkNQoatvevlsZPCgfrKA5t6YsdrAxrrB6YY%2CAOrYGsnWFyMVOMD3569o4Au_CKy0qbBTXNjmK11ZVs9EjjzzXS4aFqFPBisPJIAor0F05XtM1Z8bvi54hEB6qi3yfYWNvkGwTn--Kb6p&pvsid=4732445675188767&tmod=1319692643&uas=1&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=8&uci=a!8&btvi=6&fsb=1&dtd=M" name="aswift_7" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!8" aria-label="Advertisement" data-google-query-id="CL_5kfL9h5QDFT1ewgUdzZgxoQ" data-load-complete="true"></iframe></div> <p> </p> <h3>七、安装配置Hermes Agent</h3> <p><img src="https://blog.xgdn.com/d/file/efpub/2026/04-12/a2932b1406ec2f4975d46a303e505212.png" alt=""></p> <p><strong>Hermes Agent官网:</strong><a href="https://hermes-agent.nousresearch.com/" target="_blank" rel="noopener">https://hermes-agent.nousresearch.com/</a></p> <p>安装配置 Hermes Agent 命令:</p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="Linux 与 Unix" data-google-vignette="false" data-google-interstitial="false">Linux 与 Unix</div> <p> </p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>Ollama API base URL:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">http://127.0.0.1:11434</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>黄色叹号执行命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">source ~/.bashrc</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>配置工具命令(<strong>取消所有工具</strong>):</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">hermes tools</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p> </p> <div id="aswift_8_host"><iframe id="aswift_8" tabindex="0" title="Advertisement" src="https://googleads.g.doubleclick.net/pagead/ads?gdpr=0&client=ca-pub-5432734503034721&output=html&h=280&slotname=5954164671&adk=3023857909&adf=676502229&pi=t.ma~as.5954164671&w=916&fwrn=4&fwrnh=100&lmt=1777062123&rafmt=1&format=916x280&url=https%3A%2F%2Fblog.xgdn.com%2F26.html&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&asro=0&aiapmid=0.0001&aiactd=0&aicctd=0&ailctd=0&aimartd=4&aieuf=1&aicrs=1&uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTM0LjAuNjk5OC4xMzYiLG51bGwsMCxudWxsLCI2NCIsW1siQ2hyb21pdW0iLCIxMzQuMC42OTk4LjEzNiJdLFsiTm90OkEtQnJhbmQiLCIyNC4wLjAuMCJdLFsiR29vZ2xlIENocm9tZSIsIjEzNC4wLjY5OTguMTM2Il1dLDBd&abgtt=6&dt=1777084946468&bpp=1&bdt=575&idt=218&shv=r20260423&mjsv=m202604210101&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dc69b6ffb5c9391fc%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZJXdPrNL_1-bOORPhmNQcK1ijipw&gpic=UID%3D0000126e11653b93%3AT%3D1776664940%3ART%3D1777084948%3AS%3DALNI_MZRGH5EZgcq75yuC5u6CIGL31fdtA&eo_id_str=ID%3D5b275ccd19fa73b9%3AT%3D1776664940%3ART%3D1777084948%3AS%3DAA-AfjbJsoZOLyT1K1KXvrpzg043&prev_fmts=0x0%2C300x600%2C916x280%2C916x280%2C916x280%2C1407x702%2C916x280%2C916x280%2C916x280&nras=2&correlator=3817658226751&frm=20&pv=1&u_tz=480&u_his=2&u_h=864&u_w=1536&u_ah=864&u_aw=1467&u_cd=24&u_sd=1.25&dmc=8&adx=82&ady=7350&biw=1407&bih=702&scr_x=0&scr_y=4560&eid=95366178%2C42533293%2C95372614%2C95388298%2C95373848%2C95387779&oid=2&psts=AOrYGsnqqUBh-IVkwXDudpif4XMJzDAA5a3Vf6CbIo10U2CHrtId6f7dbN8QeDjXTQASwqOCQ6VBnEVGEhAAGYS81Dzr17vfa51p0KQw%2CAOrYGslbioNMoAdlWz2u7IGeu4YYKHUu8JCuWmZqDTvcJtXgp30A1B8k28PhNM15MVTwiDXQuuqTcGgQQzWpJdT0_iFWmyso5M3bUVQ%2CAOrYGsmOz4iuvQsWIwnpsgBr_vHDBAUBhSBHVWf74D4tRVE3xZvIoyIhKW6KKIwbcvZ5MMoxCEiC8wDJ3Lt0aChZdMuo3TgdYxLwgLnu%2CAOrYGsncoPiBna8YlqeqfPSFBkYRyOUFXmIG_RlIPXixqK7aNVM6DudqADmf07xY0MStOZ0YkuCEYXbZZdSr0Ho2SLMHGd34WZgX6Cu9akzOU_nQ5w%2CAOrYGsl2rL8evs2_7UrXHlvwEeY82KHkS3MFOL6pHhsiNQliCJiLMH-dhFRYy8t3ejAMEkNQoatvevlsZPCgfrKA5t6YsdrAxrrB6YY%2CAOrYGsnWFyMVOMD3569o4Au_CKy0qbBTXNjmK11ZVs9EjjzzXS4aFqFPBisPJIAor0F05XtM1Z8bvi54hEB6qi3yfYWNvkGwTn--Kb6p%2CAOrYGsnFMg3FuO5y8_x_mlYFnjy6qyKgHS4UisrakMqfnDhXx1lPaMamWSlFQZpXgSR8T0yy-TSPqy4ZcLFF5SjrAXH03nNye47_2WNv&pvsid=4732445675188767&tmod=1319692643&uas=1&nvt=1&ref=https%3A%2F%2Fwww.youtube.com%2F&fc=1920&brdim=8%2C12%2C8%2C12%2C1467%2C0%2C1439%2C830%2C1424%2C702&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&bz=1.01&ifi=9&uci=a!9&btvi=7&fsb=1&dtd=M" name="aswift_8" width="916" height="280" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="" allow="attribution-reporting; run-ad-auction" data-google-container-id="a!9" aria-label="Advertisement" data-google-query-id="CMqUr4L-h5QDFTZAwgUd0t0qWw" data-load-complete="true"></iframe></div> <p> </p> <h3>八、对接Telegram</h3> <p>接入聊天平台命令:</p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="开发工具" data-google-vignette="false" data-google-interstitial="false">开发工具</div> <p> </p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">hermes setup gateway</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>创建Bot机器人</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">BotFather</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>获取User ID机器人</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">@userinfobot</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>配置工具命令(<strong>取消所有 Telegram 工具</strong>):</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">hermes tools</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>注意,telegram发送聊天对话前,最前面要加提示词:“Do NOT use tool calls. Respond normally in plain text.”,不加这句<strong>有时候</strong>会导致错误调用工具。GGUF的加,因为GGUF只支持文本,不支持调用命令。不带GGUF的大模型不用加。</p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="计算机硬件" data-google-vignette="false" data-google-interstitial="false">计算机硬件</div> <p> </p> <p><strong>比如:</strong>Do NOT use tool calls. Respond normally in plain text. 请给我写一个笑话</p> <h3>九、电脑重启后,启动Hermes Agent方法</h3> <p><strong>打开powershell,然后找到ubuntu,执行下面两条命令。</strong></p> <p>启动消息网关命令</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">hermes gateway</div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <p>启动Hermes命令:</p> <div class="code-block"> <div class="code-line"> <div class="line-number">1.</div> <div class="line-text">hermes <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="软件" data-google-vignette="false" data-google-interstitial="false">软件</div> </div> </div> <button class="copy-btn code-copy-btn">Copy</button></div> <h3>十、Hermes Agent常用</h3> <p><strong>hermes</strong></p> <p>交互式命令行 —— 开始对话</p> <p><strong>hermes model</strong></p> <p>选择你的大模型提供商和模型</p> <p><strong>hermes tools</strong></p> <p>配置启用哪些工具</p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="编程" data-google-vignette="false" data-google-interstitial="false">编程</div> <p> </p> <p><strong>hermes config set</strong></p> <p>设置单个配置项</p> <p><strong>hermes gateway</strong></p> <p>启动消息网关(Telegram、Discord 等)</p> <p><strong>hermes setup</strong></p> <p>运行完整安装向导(一次性配置全部)</p> <p><strong>hermes claw migrate</strong></p> <p>从 OpenClaw 迁移(如果你之前用的是 OpenClaw)</p> <p><strong>hermes gateway</strong></p> <div class="google-anno-skip google-anno-sc" tabindex="0" role="link" aria-label="Linux 与 Unix" data-google-vignette="false" data-google-interstitial="false">Linux 与 Unix</div> <p> </p> <p>启动网关</p> <p><strong>pkill -f hermes<br>hermes</strong></p> <p>强制重启</p> <p><strong>hermes update</strong></p> <p>更新到最新版本</p> <p><strong>hermes doctor</strong></p> <p>诊断问题 / 检查故障</p>