{"id":67,"date":"2026-08-24T17:43:34","date_gmt":"2026-08-24T17:43:34","guid":{"rendered":"https:\/\/jyy7998.tk\/?p=67"},"modified":"2026-09-18T00:57:21","modified_gmt":"2026-09-18T00:57:21","slug":"ubuntu-26-04-%e6%ba%90%e7%a0%81%e5%ae%89%e8%a3%85-deepseek-harness-%e5%ae%8c%e6%95%b4%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/wp.jyy7998.tk\/?p=67","title":{"rendered":"\ud83d\ude80 Ubuntu 26.04 LTS \u6e90\u7801\u5b89\u88c5 DeepSeek Harness \u5b8c\u6574\u6559\u7a0b"},"content":{"rendered":"<div class=\"doc\" style=\"--doc-accent:#1e8cbe;--doc-accent-soft:#edf6fa\">\n<p>\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728 Ubuntu 26.04 \u7cfb\u7edf\u4e0a\uff0c\u901a\u8fc7\u5b98\u65b9 GitHub \u4ed3\u5e93\u6e90\u7801\u7f16\u8bd1\u5e76\u8fd0\u884c DeepSeek Harness \u2014\u2014 \u4e00\u4e2a\u57fa\u4e8e Node.js \u7684 AI \u667a\u80fd\u4f53\u6846\u67b6\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u4f1a\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u5e76\u5c06\u672c\u5730\u5df2\u8fd0\u884c\u7684 Qwen3.8-27B \u6a21\u578b\u63a5\u5165 Harness\uff0c\u5b9e\u73b0\u5b8c\u5168\u672c\u5730\u5316\u7684 AI \u5f00\u53d1\u73af\u5883\u3002<\/p>\n<div class=\"doc-note doc-note--info\">\n  <strong>\ud83d\udccc \u9002\u7528\u73af\u5883\uff1a<\/strong> Ubuntu 26.04\uff08\u540c\u6837\u9002\u7528\u4e8e 22.04 \/ 24.04\uff09\uff0c\u5df2\u914d\u7f6e\u597d\u7f51\u7edc\u548c\u57fa\u7840\u5de5\u5177\u3002\u5047\u8bbe\u4f60\u7684\u7528\u6237\u540d\u4e3a <code>ai<\/code>\uff0c\u4e14\u5df2\u6309\u7167\u672c\u7ad9\u6559\u7a0b\u6210\u529f\u7f16\u8bd1\u5e76\u8fd0\u884c\u4e86 <strong>llama.cpp + Qwen3.8-27B<\/strong>\uff0c\u670d\u52a1\u76d1\u542c\u5728 <code>http:\/\/127.0.0.1:8080<\/code>\u3002\n<\/div>\n<hr>\n<h2>1. \u524d\u63d0\u51c6\u5907<\/h2>\n<p>\u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5\u5fc5\u8981\u7684\u57fa\u7840\u5de5\u5177\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>sudo apt update\r\nsudo apt install -y git curl<\/code><\/pre>\n<h2>2. \u5b89\u88c5 Node.js<\/h2>\n<p>DeepSeek Harness <strong>\u8981\u6c42 Node.js \u2265 v22.19<\/strong>\u3002Ubuntu 26.04 \u5b98\u65b9\u6e90\u5df2\u63d0\u4f9b v22.x\uff0c\u76f4\u63a5\u5b89\u88c5\u5373\u53ef\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>sudo apt install -y nodejs npm<\/code><\/pre>\n<p>\u82e5\u5b98\u65b9\u6e90\u7248\u672c\u8fc7\u4f4e\uff0c\u53ef\u4f7f\u7528 NodeSource \u5b89\u88c5\u6700\u65b0 LTS\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>curl -fsSL https:\/\/deb.nodesource.com\/setup_22.x | sudo -E bash -\r\nsudo apt install -y nodejs<\/code><\/pre>\n<p>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>node --version   # \u5e94\u663e\u793a v22.x.x \u6216\u66f4\u9ad8<\/code><\/pre>\n<h2>3. \u5b89\u88c5 pnpm<\/h2>\n<p>DeepSeek Harness \u4f7f\u7528 pnpm \u4f5c\u4e3a\u5305\u7ba1\u7406\u5668\uff0c<strong>\u8981\u6c42\u7248\u672c \u2265 11<\/strong>\u3002\u901a\u8fc7 npm \u5168\u5c40\u5b89\u88c5\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>sudo npm install -g pnpm\r\npnpm --version   # \u5e94\u663e\u793a 11.x.x \u6216\u66f4\u9ad8<\/code><\/pre>\n<h2>4. \u514b\u9686\u5b98\u65b9\u4ed3\u5e93\u5e76\u5b89\u88c5\u4f9d\u8d56<\/h2>\n<pre class=\"prettyprint linenums\" ><code># \u514b\u9686\u4ed3\u5e93\uff08\u5e26 .git \u6216\u4e0d\u5e26\u5747\u53ef\uff09\r\ngit clone https:\/\/github.com\/deepseek-ai\/deepseek-harness.git\r\n\r\n# \u8fdb\u5165\u9879\u76ee\u76ee\u5f55\r\ncd deepseek-harness\r\n\r\n# \u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\r\npnpm install<\/code><\/pre>\n<h2>5. \u6784\u5efa\u5e76\u542f\u52a8\u670d\u52a1<\/h2>\n<pre class=\"prettyprint linenums\" ><code># \u6784\u5efa\u9879\u76ee\uff08\u8fd9\u4e00\u6b65\u4e0d\u53ef\u7701\u7565\uff09\r\npnpm run build\r\n\r\n# \u542f\u52a8 Web UI\r\npnpm dsh web<\/code><\/pre>\n<p>\u542f\u52a8\u6210\u529f\u540e\uff0c\u7ec8\u7aef\u4f1a\u663e\u793a\u8bbf\u95ee\u5730\u5740\uff08\u9ed8\u8ba4 <code>http:\/\/127.0.0.1:3080<\/code>\uff09\u3002<br \/>\n<strong>\u26a0\ufe0f \u6ce8\u610f\uff1a<\/strong> \u6b64\u7ec8\u7aef\u7a97\u53e3\u9700\u8981\u4fdd\u6301\u6253\u5f00\uff0c\u5173\u95ed\u4f1a\u5bfc\u81f4\u670d\u52a1\u7ec8\u6b62\u3002<\/p>\n<h2>6. \u9996\u6b21\u914d\u7f6e\uff08\u53ef\u9009\uff1a\u4e91\u7aef API Key\uff09<\/h2>\n<p>\u5982\u679c\u4f60\u9700\u8981\u4f7f\u7528 DeepSeek \u4e91\u7aef\u6a21\u578b\uff08\u4ed8\u8d39 API\uff09\uff0c\u53ef\u6309\u4ee5\u4e0b\u6b65\u9aa4\u586b\u5199 Key\u3002\u82e5\u4f60\u53ea\u6253\u7b97\u4f7f\u7528\u672c\u5730\u6a21\u578b\uff08\u5982 Qwen\uff09\uff0c\u53ef\u4ee5\u8df3\u8fc7\u672c\u8282\uff0c\u76f4\u63a5\u8fdb\u5165\u7b2c 8 \u8282\u3002<\/p>\n<ol>\n<li><strong>\u83b7\u53d6 API Key\uff1a<\/strong> \u524d\u5f80 <a href=\"https:\/\/platform.deepseek.com\" target=\"_blank\" rel=\"noopener\">DeepSeek \u5f00\u653e\u5e73\u53f0<\/a> \u6ce8\u518c\u5e76\u521b\u5efa API Key\u3002<\/li>\n<li><strong>\u586b\u5199 Key\uff1a<\/strong> \u5728\u6d4f\u89c8\u5668\u8bbf\u95ee <code>http:\/\/127.0.0.1:3080<\/code>\uff0c\u8fdb\u5165 <code>Settings \u2192 Models<\/code>\uff0c\u5728 DeepSeek \u5361\u7247\u4e2d\u586b\u5165 API Key \u5e76\u4fdd\u5b58\u3002<\/li>\n<li><strong>\u9009\u62e9\u5de5\u4f5c\u533a\uff1a<\/strong> \u70b9\u51fb <code>Choose workspace<\/code>\uff0c\u6388\u4e88 Harness \u8bbf\u95ee\u6307\u5b9a\u6587\u4ef6\u5939\u7684\u6743\u9650\u3002<\/li>\n<\/ol>\n<div class=\"doc-note doc-note--info\">\n  \ud83d\udca1 \u5982\u679c\u4f60\u53ea\u60f3\u4f7f\u7528\u672c\u5730\u6a21\u578b\uff0c\u8bf7\u76f4\u63a5\u5173\u95ed\u5f39\u51fa\u7684 API Key \u5bf9\u8bdd\u6846\uff08\u70b9\u51fb\u53f3\u4e0a\u89d2 \u00d7 \u6216 Cancel\uff09\uff0c\u8fdb\u5165\u4e0b\u4e00\u6b65\u3002\n<\/div>\n<hr>\n<h2>7. \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff08\u4e00\u952e\u542f\u52a8\uff09<\/h2>\n<p>\u4e3a\u4e86\u514d\u53bb\u6bcf\u6b21\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u547d\u4ee4\u7684\u9ebb\u70e6\uff0c\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u53cc\u51fb\u5373\u53ef\u542f\u52a8 Harness Web UI\u3002<\/p>\n<p>\u5728\u684c\u9762\u7a7a\u767d\u5904\u53f3\u952e\uff0c\u9009\u62e9 <strong>\u201c\u5728\u7ec8\u7aef\u4e2d\u6253\u5f00\u201d<\/strong>\uff08Open in Terminal\uff09\uff0c\u7136\u540e\u6267\u884c\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>nano dsh-web.desktop<\/code><\/pre>\n<p>\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9\uff08\u8bf7\u6839\u636e\u4f60\u7684\u5b9e\u9645\u7528\u6237\u540d\u4fee\u6539 <code>\/home\/ai<\/code> \u8def\u5f84\uff09\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>[Desktop Entry]\r\nVersion=1.0\r\nType=Application\r\nName=DeepSeek Harness\r\nComment=Launch DeepSeek Harness Web UI\r\nExec=bash -c \"cd \/home\/ai\/deepseek-harness &amp;&amp; pnpm dsh web\"\r\nIcon=web-browser\r\nTerminal=true\r\nCategories=Development;<\/code><\/pre>\n<p><strong>\u4fdd\u5b58\u5e76\u9000\u51fa\uff1a<\/strong> \u6309 <kbd>Ctrl<\/kbd>+<kbd>O<\/kbd>\uff0c\u56de\u8f66\uff0c\u518d\u6309 <kbd>Ctrl<\/kbd>+<kbd>X<\/kbd>\u3002<\/p>\n<p>\u63a5\u7740\u8d4b\u4e88\u6267\u884c\u6743\u9650\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>chmod +x dsh-web.desktop<\/code><\/pre>\n<p>\u4e4b\u540e\uff0c\u53f3\u952e\u70b9\u51fb\u684c\u9762\u4e0a\u7684 <code>dsh-web.desktop<\/code> \u6587\u4ef6\uff0c\u9009\u62e9 <strong>\u201c\u5141\u8bb8\u542f\u52a8\u201d<\/strong>\uff08Allow Launching\uff09\u3002\u4ee5\u540e\u53cc\u51fb\u6b64\u56fe\u6807\u5373\u53ef\u542f\u52a8 Harness \u670d\u52a1\uff08\u7ec8\u7aef\u7a97\u53e3\u4f1a\u6253\u5f00\uff0c\u4fdd\u6301\u8fd0\u884c\u5373\u53ef\uff09\u3002<\/p>\n<hr>\n<h2>8. \u914d\u7f6e\u672c\u5730 Qwen \u6a21\u578b\uff08\u63a5\u5165 Harness\uff09<\/h2>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u6309\u7167\u672c\u7ad9\u4e4b\u524d\u7684\u6559\u7a0b\u6210\u529f\u8fd0\u884c\u4e86 <strong>llama.cpp + Qwen3.8-27B<\/strong>\uff08\u670d\u52a1\u5730\u5740\u4e3a <code>http:\/\/127.0.0.1:8080<\/code>\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u4f5c\u4e3a\u672c\u5730\u6a21\u578b\u6dfb\u52a0\u5230 DeepSeek Harness \u4e2d\uff0c\u5b9e\u73b0\u5b8c\u5168\u79bb\u7ebf\u4f7f\u7528\u3002<\/p>\n<ol>\n<li>\u786e\u4fdd llama.cpp \u670d\u52a1\u6b63\u5728\u8fd0\u884c\uff08\u53cc\u51fb\u684c\u9762\u4e0a\u7684 <code>QwenServer.desktop<\/code> \u6216\u624b\u52a8\u542f\u52a8\uff09\u3002<\/li>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee <code>http:\/\/127.0.0.1:3080<\/code>\uff0c\u8fdb\u5165 Harness \u7684 Web UI\u3002\n<ul>\n<li><strong>\u9996\u6b21\u6253\u5f00\u65f6\uff0c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u8981\u6c42\u8f93\u5165 DeepSeek API Key \u7684\u5bf9\u8bdd\u6846<\/strong>\uff08\u56e0\u4e3a Harness \u9ed8\u8ba4\u4f7f\u7528\u4e91\u7aef\u670d\u52a1\uff09\u3002<\/li>\n<li><strong>\u76f4\u63a5\u70b9\u51fb\u5bf9\u8bdd\u6846\u53f3\u4e0a\u89d2\u7684 \u00d7 \u6216 Cancel \u5c06\u5176\u5173\u95ed<\/strong>\uff0c\u6211\u4eec\u7a0d\u540e\u4f1a\u914d\u7f6e\u672c\u5730\u6a21\u578b\uff0c\u65e0\u9700\u586b\u5199\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684 <strong>Settings<\/strong>\uff08\u9f7f\u8f6e\u56fe\u6807\uff09\uff0c\u7136\u540e\u9009\u62e9 <strong>Models<\/strong> \u9009\u9879\u5361\u3002<\/li>\n<li>\u70b9\u51fb <strong>Add Custom Model<\/strong>\uff08\u6216\u7c7b\u4f3c\u6309\u94ae\uff09\uff0c\u586b\u5199\u4ee5\u4e0b\u4fe1\u606f\uff1a\n<ul>\n<li><strong>Name\uff1a<\/strong> \u968f\u610f\u586b\u5199\uff0c\u5982 <code>Qwen3.8-27B (Local)<\/code><\/li>\n<li><strong>API Base URL\uff1a<\/strong> <code>http:\/\/127.0.0.1:8080\/v1<\/code>\uff08\u6ce8\u610f\u672b\u5c3e\u7684 <code>\/v1<\/code>\uff09<\/li>\n<li><strong>API Key\uff1a<\/strong> \u7559\u7a7a\u6216\u8f93\u5165\u4efb\u610f\u5360\u4f4d\u7b26\uff08\u5982 <code>dummy<\/code>\uff09<\/li>\n<li><strong>Model ID\uff1a<\/strong> \u4e0e llama.cpp \u4e2d\u7684\u6a21\u578b\u540d\u4e00\u81f4\uff0c\u6b64\u5904\u4e3a <code>qwen3.8-27b-q4_k_m<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb <strong>Save<\/strong> \u4fdd\u5b58\u3002\u4e4b\u540e\u5728\u804a\u5929\u754c\u9762\u9009\u62e9\u8be5\u6a21\u578b\u5373\u53ef\u4f7f\u7528\u672c\u5730 Qwen \u8fdb\u884c\u5bf9\u8bdd\u3002<\/li>\n<\/ol>\n<div class=\"doc-note doc-note--info\">\n  \ud83d\udca1 <strong>\u63d0\u793a\uff1a<\/strong> \u5982\u679c llama.cpp \u670d\u52a1\u672a\u542f\u52a8\uff0c\u8bf7\u5148\u542f\u52a8\uff0c\u5426\u5219 Harness \u65e0\u6cd5\u8fde\u63a5\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728 Harness \u4e2d\u540c\u65f6\u4fdd\u7559 DeepSeek \u4e91\u7aef\u6a21\u578b\u548c\u672c\u5730\u6a21\u578b\uff0c\u6309\u9700\u5207\u6362\u3002\n<\/div>\n<hr>\n<h2>\u5176\u4ed6\u5b89\u88c5\u65b9\u5f0f\uff08\u5907\u9009\uff09<\/h2>\n<p>\u9664\u4e86\u6e90\u7801\u7f16\u8bd1\uff0c\u8fd8\u6709\u4e24\u79cd\u66f4\u7b80\u4fbf\u7684\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li><strong>npx \u4e00\u952e\u542f\u52a8\uff1a<\/strong> \u65e0\u9700\u514b\u9686\u4ee3\u7801\uff0c\u76f4\u63a5\u8fd0\u884c <code>npx @deepseek-ai\/dsh web<\/code>\uff08\u63a8\u8350\u65b0\u624b\u4f7f\u7528\uff09\u3002<\/li>\n<li><strong>\u684c\u9762\u5e94\u7528\uff1a<\/strong> \u793e\u533a\u5c01\u88c5\u7684 <code>.deb<\/code> \u6216 <code>.AppImage<\/code> \u6587\u4ef6\uff0c\u53cc\u51fb\u5b89\u88c5\u5373\u53ef\uff08\u975e\u5b98\u65b9\u51fa\u54c1\uff09\u3002<\/li>\n<\/ul>\n<div class=\"doc-note doc-note--warn\">\n  <strong>\ud83d\udd14 \u6ce8\u610f\uff1a<\/strong> \u684c\u9762\u5e94\u7528\u5e76\u975e\u5b98\u65b9\u53d1\u5e03\uff0c\u66f4\u65b0\u53ef\u80fd\u6ede\u540e\u4e8e\u6e90\u7801\u3002\u8ffd\u6c42\u6700\u65b0\u529f\u80fd\u8bf7\u4f7f\u7528\u6e90\u7801\u7f16\u8bd1\u3002\n<\/div>\n<hr>\n<p>\u81f3\u6b64\uff0cDeepSeek Harness \u5df2\u5728\u4f60\u7684 Ubuntu 26.04 \u4e0a\u6210\u529f\u8fd0\u884c\uff0c\u5e76\u914d\u7f6e\u597d\u672c\u5730 Qwen \u6a21\u578b\u3002\u5982\u6709\u95ee\u9898\uff0c\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u4ea4\u6d41\uff01<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728 Ubuntu 26.04 \u7cfb\u7edf\u4e0a\uff0c\u901a\u8fc7\u5b98\u65b9 GitHub \u4ed3\u5e93\u6e90\u7801\u7f16\u8bd1\u5e76\u8fd0\u884c DeepSeek Harness \u2014\u2014 \u4e00\u4e2a\u57fa\u4e8e Node.js \u7684 AI \u667a\u80fd\u4f53\u6846\u67b6\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u4f1a\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u5e76\u5c06\u672c\u5730\u5df2\u8fd0\u884c\u7684 Qwen3.8-27B \u6a21\u578b\u63a5\u5165 Harness\uff0c\u5b9e\u73b0\u5b8c\u5168\u672c\u5730\u5316\u7684 AI \u5f00\u53d1\u73af\u5883\u3002 \ud83d\udccc \u9002\u7528\u73af\u5883\uff1a Ubuntu 26.04\uff08\u540c\u6837\u9002\u7528\u4e8e 22.04 \/ 24.04 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,12],"tags":[29,22,26],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-local-ai-linux","category-local-ai","tag-deepseek-harness","tag-ubuntu","tag-local-llm"],"_links":{"self":[{"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":1,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jyy7998.tk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}