{"id":33976,"date":"2024-06-06T10:55:50","date_gmt":"2024-06-06T02:55:50","guid":{"rendered":"https:\/\/www.deepin.org\/?p=33976"},"modified":"2024-06-11T15:52:45","modified_gmt":"2024-06-11T07:52:45","slug":"linglong-10-minute-quick-build-guide","status":"publish","type":"post","link":"https:\/\/www.deepin.org\/zh\/linglong-10-minute-quick-build-guide\/","title":{"rendered":"\u3010deepin \u9080\u60a8\u4f53\u9a8c\u3011\u73b2\u73d110\u5206\u949f\u5feb\u901f\u6784\u5efa\u6307\u5357\uff01"},"content":{"rendered":"<img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406060248381318_zh.png\" alt=\"\" width=\"900\" height=\"383\" \/><\/p>\n<h1><strong>\u73b2\u73d1<\/strong><\/h1>\n<p>\u4f5c\u4e3a\u4e00\u79cd\u65b0\u578b\u7684\u72ec\u7acb\u5305\u7ba1\u7406\u5de5\u5177\u96c6\uff0c\u73b2\u73d1\u4e3b\u8981\u63d0\u4f9b\u5206\u5c42\u4e0e\u9694\u79bb\u7684\u8fd0\u884c\u73af\u5883\uff0c\u89e3\u51b3\u4f20\u7edf\u5305\u7ba1\u7406\u7cfb\u7edf\u5f3a\u4f9d\u8d56\u5bfc\u81f4\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4ee5\u53ca\u6743\u9650\u677e\u6563\u5bfc\u81f4\u7684\u5b89\u5168\u95ee\u9898\u3002\u5f53\u524d\uff0c\u73b2\u73d1\u5df2\u652f\u6301 4 \u4e2a\u53d1\u884c\u7248\uff0c\u5305\u62ec deepin\u3001\u7edf\u4fe1 UOS \u4ee5\u53ca Debian \u548c Ubuntu\u3002\u73b2\u73d1\u7684\u9694\u79bb\u6280\u672f\u53ef\u4ee5\u5c06\u5e94\u7528\u4e0e\u7cfb\u7edf\u8fdb\u884c\u5b8c\u5168\u89e3\u8026\uff0c\u4ece\u800c\u5f7b\u5e95\u89e3\u51b3\u7cfb\u7edf\u4e0e\u5e94\u7528\u3001\u5e94\u7528\u4e0e\u5e94\u7528\u4e4b\u95f4\u56e0\u5347\u7ea7\u548c\u9002\u914d\u5f15\u8d77\u7684\u517c\u5bb9\u6027\u51b2\u7a81\u7b49\u95ee\u9898\u3002\u8fd9\u5bf9\u5f00\u53d1\u8005\u800c\u8a00\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u5f00\u53d1\u6210\u672c\uff1b\u5bf9\u5ba2\u6237\u800c\u8a00\uff0c\u80fd\u591f\u964d\u4f4e\u4f01\u4e1a\u8fd0\u7ef4\u6210\u672c\uff1b\u800c\u5bf9\u6574\u4e2a\u884c\u4e1a\u800c\u8a00\uff0c\u5c06\u52a9\u529b\u884c\u4e1a\u7a33\u5065\u53d1\u5c55\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><strong>\u5b89\u88c5\u73b2\u73d1<\/strong><\/h1>\n<p>\u6b64\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd <strong>UOS 1070<\/strong> \u4e0e <strong>deepin V23<\/strong> \u73b2\u73d1\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5907\u6ce8\uff1a\u6b64\u6587\u6863\u9002\u7528\u4e8e 1.5.0, \u8bf7\u4f7f\u7528 ll-cli --version \u68c0\u67e5\u60a8\u7684\u73b2\u73d1\u7a0b\u5e8f\u7248\u672c\u3002<\/strong><\/p>\n<p>\u73b2\u73d1\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n<ul>\n<li>ll-builder \u7528\u6765\u6784\u5efa\u548c\u8c03\u8bd5\u73b2\u73d1\u5e94\u7528\uff0c\u7531 linglong-builder \u63d0\u4f9b\uff1b<br \/>\nll-box \u6c99\u7bb1\u5bb9\u5668\uff0c\u7531 linglong-box \u63d0\u4f9b\uff1b<br \/>\nll-cli \u7ba1\u7406\u548c\u8fd0\u884c\u73b2\u73d1\u5e94\u7528\uff0c\u7531 linglong-bin \u63d0\u4f9b\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>1\u3001UOS 1070<\/strong><\/h2>\n<p>\u76ee\u524d\u652f\u6301 amd64\u3001arm64\u3001loongarch64\uff08\u9f99\u82af\u65e7\u4e16\u754c\uff09\u67b6\u6784\u3002<\/p>\n<p><strong>1\uff09\u6dfb\u52a0\u73b2\u73d1\u4ed3\u5e93\u6e90<\/strong><\/p>\n<blockquote><p>echo\u00a0\"deb [trusted=yes] https:\/\/ci.deepin.com\/repo\/deepin\/deepin-community\/linglong-repo\/ unstable main\"\u00a0|\u00a0sudo\u00a0tee\u00a0-a\u00a0\/etc\/apt\/sources.list<\/p><\/blockquote>\n<p><strong>2\uff09\u5b89\u88c5\u73b2\u73d1\u6784\u5efa\u5de5\u5177\u5305<\/strong><\/p>\n<blockquote><p>sudo\u00a0apt\u00a0update<\/p>\n<p>sudo\u00a0apt\u00a0install\u00a0linglong-builder\u00a0linglong-box\u00a0linglong-bin<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2><strong>2\u3001deepin V23<\/strong><\/h2>\n<p>\u76ee\u524d\u652f\u6301 amd64\u3001arm64 \u67b6\u6784\u3002<\/p>\n<blockquote><p>sudo\u00a0apt\u00a0install\u00a0linglong-builder\u00a0linglong-box\u00a0linglong-bin<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><strong>\u5b89\u88c5 pica \u5de5\u5177<\/strong><\/h1>\n<p>\u672c\u5de5\u5177\u76ee\u524d\u63d0\u4f9b deb \u5305\u8f6c\u6362\u4e3a\u73b2\u73d1\u5305\u7684\u80fd\u529b\uff0c\u751f\u6210\u6784\u5efa\u73b2\u73d1\u5e94\u7528\u9700\u8981\u7684 linglong.yaml \u6587\u4ef6\uff0c\u5e76\u4f9d\u8d56 ll-builder \u6765\u5b9e\u73b0\u5e94\u7528\u6784\u5efa\u548c\u5bfc\u51fa\u3002<\/p>\n<h2><strong>1\u3001UOS 1070<\/strong><\/h2>\n<p>\u76ee\u524d\u652f\u6301 amd64\u3001arm64 \u67b6\u6784\u3002<\/p>\n<p>\u6839\u636e\u73b2\u73d1\u5b89\u88c5\u6b65\u9aa4\uff0c\u6dfb\u52a0\u73b2\u73d1\u4ed3\u5e93\u6e90<\/p>\n<blockquote><p>sudo\u00a0apt\u00a0install\u00a0linglong-pica<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2><strong>2\u3001deepin V23<\/strong><\/h2>\n<p>\u76ee\u524d\u652f\u6301 amd64\u3001arm64 \u67b6\u6784\u3002<\/p>\n<blockquote><p>sudo\u00a0apt\u00a0install\u00a0linglong-pica<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><strong>\u9080\u60a8\u4f53\u9a8c 10 \u5206\u949f\u5feb\u901f\u6784\u5efa<\/strong><\/h1>\n<p>\u8bbf\u95ee\u73b2\u73d1\u5b98\u7f51\uff08<a href=\"https:\/\/linglong.dev\/\">https:\/\/linglong.dev\/<\/a>\uff09\u83b7\u53d610\u5206\u949f\u5feb\u901f\u6784\u5efa\u6307\u5357\u3002<\/p>\n<h2><strong>1\u3001\u4ece\u96f6\u6784\u5efa\u793a\u4f8b<\/strong><\/h2>\n<p>\u4ee5\u00a0deepin-calculator\u00a0\u4f5c\u4e3a\u4ece\u6e90\u7801\u6784\u5efa\u73b2\u73d1\u5e94\u7528\u7684\u4f8b\u5b50\u3002\u73b2\u73d1\u5e94\u7528\u7684 appid \u9700\u8981\u4f7f\u7528\u5012\u7f6e\u57df\u540d\u7684\u65b9\u5f0f\u547d\u540d\u3002<\/p>\n<p><strong>1\uff09\u521b\u5efa<\/strong><\/p>\n<blockquote><p>mkdir\u00a0org.deepin.calculator<\/p><\/blockquote>\n<p>\u76ee\u5f55\u4e0b\u521b\u5efa linglong.yaml \u6587\u4ef6<\/p>\n<blockquote><p>touch\u00a0org.deepin.calculator\/linglong.yaml<\/p><\/blockquote>\n<p>\u8fdb\u5165\u76ee\u5f55<\/p>\n<blockquote><p>cd\u00a0org.deepin.calculator<\/p><\/blockquote>\n<p>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u7f16\u8f91 linglong.yaml<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/storage.deepin.org\/thread\/202406060248063705_1.jpg\" alt=\"\" width=\"567\" height=\"993\" \/><\/p>\n<p>linglong.yaml \u6587\u4ef6\u9075\u5faa yaml \u8bed\u6cd5\u89c4\u8303\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2\uff09\u6784\u5efa<\/strong><\/p>\n<p>ll-builder\u00a0build<\/p>\n<p>\u7b49\u5f85\u73b2\u73d1\u5e94\u7528\u6784\u5efa\u5b8c\u6210\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3\uff09\u8fd0\u884c\u73b2\u73d1\u5e94\u7528<\/strong><\/p>\n<blockquote><p>ll-builder\u00a0run<\/p><\/blockquote>\n<p>ll-builder run \u8fd0\u884c\u6210\u529f\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/storage.deepin.org\/thread\/202406060249266604_2.jpg\" alt=\"\" width=\"456\" height=\"692\" \/><\/p>\n<p>\u4e3a\u4e86\u4fbf\u4e8e\u8c03\u8bd5\uff0c\u53ef\u4ee5\u4f7f\u7528\u989d\u5916\u7684\u00a0--exec \/bin\/bash \u53c2\u6570\uff0c\u66ff\u6362\u8fdb\u5165\u5bb9\u5668\u540e\u9ed8\u8ba4\u6267\u884c\u7684\u7a0b\u5e8f\uff0c\u5982\uff1a<\/p>\n<blockquote><p>ll-builder\u00a0run\u00a0--exec\u00a0\/bin\/bash<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2><strong>2\u3001\u8f6c\u6362\u00a0deb\u00a0\u5e94\u7528<\/strong><\/h2>\n<p>\u4ee5\u767e\u5ea6\u7f51\u76d8\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u5c06 deb \u5305\u8f6c\u4e3a\u73b2\u73d1\u5305\u7684\u8fc7\u7a0b\u3002\u76ee\u524d\u53ea\u652f\u6301\u8f6c\u6362\u9075\u5faa\u5e94\u7528\u5546\u5e97\u6253\u5305\u89c4\u8303\u7684\u8f6f\u4ef6\u3002<\/p>\n<p><strong>1\uff09\u83b7\u53d6 deb \u5305\u6587\u4ef6<\/strong><\/p>\n<blockquote><p>apt\u00a0download\u00a0com.baidu.baidunetdisk<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p><strong>2\uff09\u8f6c\u6362\u5e94\u7528<\/strong><\/p>\n<blockquote><p>ll-pica\u00a0convert\u00a0-c\u00a0com.baidu.baidunetdisk_4.17.7_amd64.deb\u00a0-w\u00a0work\u00a0-b<\/p><\/blockquote>\n<p>\u8fdb\u5165\u76ee\u5f55<\/p>\n<blockquote><p>cd\u00a0work\/package\/com.baidu.baidunetdisk\/amd64<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p><strong>3\uff09\u5b89\u88c5 layer \u6587\u4ef6<\/strong><\/p>\n<blockquote><p>ll-cli\u00a0install\u00a0.\/com.baidu.baidunetdisk_4.17.7.0_x86_64_runtime.layer<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p><strong>4\uff09\u8fd0\u884c\u5e94\u7528<\/strong><\/p>\n<blockquote><p>ll-cli run com.baidu.baidunetdisk<\/p><\/blockquote>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406060250534425_3.jpg\" alt=\"\" width=\"868\" height=\"620\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><strong>\u5e38\u89c1\u95ee\u9898<\/strong><\/h1>\n<h2><strong>1\u3001\u5e38\u89c1\u6784\u5efa\u95ee\u9898<\/strong><\/h2>\n<p><strong>1\uff09cmake \u7c7b\u578b\u6784\u5efa\uff0c\u51fa\u73b0 -lxxx \u5931\u8d25\uff0c\u4f46 ldconfig \u4e0e pkg-config \u5747\u80fd\u67e5\u8be2\u5230\u8be5\u5e93\u4fe1\u606f\u3002<\/strong><\/p>\n<p>\u94fe\u63a5\u5e93\u8def\u5f84\u4e0d\u5728\u5e38\u89c4\u8def\u5f84\uff0c\u65b0\u8def\u5f84\u4e3a\u00a0\/runtime\/lib\u3002<\/p>\n<p>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf LIBRARY_PATH=&lt;libpath&gt;\uff0c\u76ee\u524d\u6784\u5efa\u73af\u5883\u5df2\u9ed8\u8ba4\u5305\u542b\u8be5\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2\uff09\u6784\u5efa\u65f6 link \u9759\u6001\u5e93\u5931\u8d25\uff0c\u8981\u6c42\u91cd\u65b0\u4f7f\u7528 fPIC \u6784\u5efa\u3002<\/strong><\/p>\n<p>\u6784\u5efa\u9759\u6001\u5e93\u65f6\u4f7f\u7528 -fPIC \u53c2\u6570\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3\uff09\u6784\u5efa\u65f6\u542f\u52a8 box \u5931\u8d25\uff0c\u5982\u4e0b\u56fe\uff1a<\/strong><\/p>\n<p><img src=\"https:\/\/storage.deepin.org\/thread\/202406060251038718_4.jpg\" alt=\"\" \/><\/p>\n<p>\u5185\u6838\u4e0d\u652f\u6301 unprivilege namespace\uff0c\u5f00\u542f unprivilege namespace \u89e3\u51b3\u3002<\/p>\n<blockquote><p>sudo\u00a0sysctl\u00a0-w\u00a0kernel.unprivileged_userns_clone=1<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p><strong>4\uff09qtbase \u6784\u5efa\u6210\u529f\uff0c\u4f46\u65e0\u6cd5\u6784\u5efa qt \u5e94\u7528\uff0c\u63d0\u793a module,mkspec \u76f8\u5173\u9519\u8bef\u3002<\/strong><\/p>\n<p>\u4f4e\u7248\u672c fuse-overlay mount \u5b58\u5728\u95ee\u9898\uff0c\u5bfc\u81f4 qtbase commit \u65f6\u6587\u4ef6\u5185\u5bb9\u88ab\u6c61\u67d3 \uff0c\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528\u3002\u4f7f\u7528 fuse-overlayfs &gt;= 1.7 \u7248\u672c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>2\u3001\u5e38\u89c1\u8fd0\u884c\u95ee\u9898<\/strong><\/h2>\n<p><strong>1\uff09<\/strong><strong>\u5e94\u7528\u8fd0\u884c\u8bfb\u53d6 \/usr\/share \u4e0b\u5e94\u7528\u5b89\u88c5\u8d44\u6e90\u6587\u4ef6\uff0c\u4e3a\u4ec0\u4e48\u8bfb\u53d6\u5931\u8d25\uff1f<\/strong><\/p>\n<p>\u73b2\u73d1\u5e94\u7528\u662f\u5728\u5bb9\u5668\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u5e94\u7528\u6570\u636e\u4f1a\u6302\u8f7d\u5230\u00a0\/opt\/apps\/&lt;appid&gt;\/\u4e0b\u3002\/usr\/share \u76ee\u5f55\u53ea\u4f1a\u5b58\u5728\u7cfb\u7edf\u6570\u636e\uff0c\u4e0d\u4f1a\u5b58\u5728\u5e94\u7528\u76f8\u5173\u6570\u636e\u3002\u56e0\u6b64\u76f4\u63a5\u8bfb\u53d6 \/usr\/share \u4f1a\u5931\u8d25\u3002<\/p>\n<p>\u5efa\u8bae\uff1a\u91c7\u7528 XDG_DATA_DIRS \u73af\u5883\u53d8\u91cf\u8bfb\u53d6\u8d44\u6e90\uff0c\/opt\/apps\/&lt;appid&gt;\/files\/share \u4f1a\u5b58\u5728\u6b64\u73af\u5883\u53d8\u91cf\u641c\u7d22\u8def\u5f84\u4e2d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2\uff09\u5e94\u7528\u8fd0\u884c\u65f6\u627e\u4e0d\u5230\u5b57\u4f53\u5e93\u6587\u4ef6\uff1f\u4e3a\u4ec0\u4e48 deb \u5305\u5b89\u88c5\u65f6\u80fd\u8bfb\u53d6\u5230\u5bf9\u5e94\u7684\u5b57\u4f53\u5e93\uff1f<\/strong><\/p>\n<p>deb \u5305\u5b89\u88c5\u65f6\uff0c\u4f1a\u4f9d\u8d56\u5e26\u5165\u5bf9\u5e94\u7684\u5b57\u4f53\u5e93\u6587\u4ef6\u3002\u800c\u73b2\u73d1\u5305\u683c\u5f0f\u91c7\u7528\u81ea\u7ed9\u81ea\u8db3\u6253\u5305\u683c\u5f0f\u3002<\/p>\n<p>\u9664\u4e86\u57fa\u672c\u7684\u7cfb\u7edf\u5e93\u3001runtime \u91cc\u9762\u63d0\u4f9b\u7684\u00a0Qt \u5e93\u4e0e DTK \u5e93\u6587\u4ef6\u4e0d\u7528\u81ea\u5df1\u63d0\u4f9b\uff0c\u5176\u4ed6\u4f9d\u8d56\u6570\u636e\u6587\u4ef6\uff0c\u5747\u9700\u81ea\u5df1\u63d0\u4f9b\u3002<\/p>\n<p>\u5efa\u8bae\uff1a\u5bf9\u5e94\u7684\u6570\u636e\u6587\u4ef6\u653e\u5165 files\/share\uff0c\u91c7\u7528\u73af\u5883\u53d8\u91cf XDG_DATA_DIRS \u8bfb\u53d6\u8def\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3\uff09\u73b2\u73d1\u5e94\u7528 runtime \u91cc\u9762\u6709\u4ec0\u4e48\uff1f\u80fd\u4e0d\u80fd\u5f80\u91cc\u9762\u6dfb\u52a0\u4e00\u4e9b\u5e93\u6587\u4ef6\u8fdb\u53bb\uff1f<\/strong><\/p>\n<p>\u76ee\u524d\u73b2\u73d1\u5e94\u7528\u4f9d\u8d56\u7684 runtime \u91cc\u9762\u63d0\u4f9b\u7684\u662f Qt \u5e93\u4e0e DTK \u5e93\u3002\u56e0 runtime \u6709\u4e25\u683c\u7684\u5927\u5c0f\u9650\u5236\uff0c\u76ee\u524d\u4e0d\u5141\u8bb8\u5f80 runtime \u91cc\u9762\u6dfb\u52a0\u989d\u5916\u7684\u5e93\u6587\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4\uff09\u5e94\u7528\u5728\u5bb9\u5668\u5185\u8fd0\u884c\uff0c\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u662f\u5426\u80fd\u5f80\u5bb9\u5668\u4efb\u610f\u8def\u5f84\u4e0b\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff1f<\/strong><\/p>\n<p>\u53ef\u4ee5\u5728 XDG_CONFIG_HOME \u4e0b\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5\uff09\u5e94\u7528\u6570\u636e\u4fdd\u5b58\u5230\u54ea\u91cc\uff1f\u5728\u5bb9\u5668\u5916\u54ea\u91cc\u80fd\u627e\u5230\uff1f<\/strong><\/p>\n<p>\u56e0\u73b2\u73d1\u5e94\u7528\u9075\u5faa\u4e92\u4e0d\u5e72\u6d89\u7684\u539f\u5219\u3002<\/p>\n<p>XDG_DATA_HOME\u3001<\/p>\n<p>XDG_CONFIG_HOME\u3001<\/p>\n<p>XDG_CACHE_HOME<\/p>\n<p>\u73af\u5883\u53d8\u91cf\u88ab\u5b9a\u4e49\u5230\u5bbf\u4e3b\u673a\u00a0~\/.linglong\/&lt;appid&gt;\/\u00a0\u5bf9\u5e94\u7684\u8def\u5f84\u4e0b\uff0c\u56e0\u6b64\u7528\u6237\u5e94\u7528\u6570\u636e\u4f1a\u4fdd\u5b58\u5728\u6b64\u8def\u5f84\u4e0b\u3002\u5e94\u7528\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u5199\u5165\u6570\u636e\uff0c\u4e5f\u5e94\u8be5\u8bfb\u53d6\u5bf9\u5e94\u7684\u73af\u5883\u53d8\u91cf\u5199\u5165\u6570\u636e\u3002\u7981\u6b62\u8bfb\u5199\u5176\u5b83\u5e94\u7528\u7684\u914d\u7f6e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>6\uff09\u5e94\u7528\u63d0\u4f9b\u4e86 dbus service \u6587\u4ef6\uff0c\u5982\u4f55\u653e\u7f6e\uff1fExec \u6bb5\u5199\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u5e94\u7528\u63d0\u4f9b\u00a0 dbus service \u6587\u4ef6\u65f6\uff0c\u9700\u8981\u653e\u5230 entries\/dbus-1\/services \u76ee\u5f55\u4e0b\u3002\u5982\u679c Exec \u6267\u884c\u73b2\u73d1\u5305\u5185\u4e8c\u8fdb\u5236\uff0c\u4f7f\u7528\u00a0--exec \u9009\u9879\u53c2\u6570\u6267\u884c\u5bf9\u5e94\u7684\u4e8c\u8fdb\u5236\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>7\uff09\u5e94\u7528\u5b89\u88c5\u540e\uff0c\u542f\u52a8\u5668\u65e0\u6cd5\u627e\u5230\uff1f<\/strong><\/p>\n<p>TryExec=xxx, \u5f53 xxx \u5728\u00a0$PATH \u8def\u5f84\u4e2d\u4e0d\u5b58\u5728\u65f6\uff0c\u4f1a\u8ba4\u4e3a\u8be5\u5e94\u7528\u4e0d\u5b58\u5728\u4e0d\u4e88\u663e\u793a\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8\uff09\u4e3a\u4ec0\u4e48\u56fe\u6807\u663e\u793a\u4e3a\u5c0f\u9ed1\u70b9\uff1f<\/strong><\/p>\n<p>desktop \u5199\u4e86 Icon \u5b57\u6bb5\uff0cIcon \u5b57\u6bb5\u540d\u79f0\u4e0d\u5bf9\u6216\u8005\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>9\uff09\u4e3a\u4ec0\u4e48\u56fe\u6807\u663e\u793a\u4e3a\u9f7f\u8f6e\uff1f<\/strong><\/p>\n<p>desktop \u672a\u63d0\u4f9b Icon \u5b57\u6bb5\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>10\uff09\u56fe\u6807\u5b58\u653e\u5728\u54ea\u4e2a\u8def\u5f84\uff1f<\/strong><\/p>\n<p>svg\u00a0\u2192$PREFIX\/share\/icons\/hicolor\/scalable\/apps\/<\/p>\n<p>\u5176\u4ed6\u683c\u5f0f\u6309\u5206\u8fa8\u7387\u5b58\u653e\uff0c\u598216X16<\/p>\n<p>png\/xpm\u00a0\u2192\u00a0$PREFIX\/share\/icons\/hicolor\/16X16\/apps\/<\/p>\n<p>&nbsp;<\/p>\n<p><strong>11\uff09\u5e94\u7528\u81ea\u5e26\u7684 xdg-open\u3001xdg-email \u4e3a\u4ec0\u4e48\u5931\u6548\uff1f<\/strong><\/p>\n<p>runtime \u4e2d\u73b2\u73d1\u7279\u6b8a\u5904\u7406\u4e86 xdg-open\u3001xdg-email\uff0c\u56e0\u6b64\u5e94\u7528\u7981\u6b62\u6267\u884c\u81ea\u5df1\u643a\u5e26\u7684 xdg-open\u3001xdg-email \u53ef\u6267\u884c\u6587\u4ef6\u6216\u8005\u811a\u672c\u3002<\/p>\n<p><strong>12\uff09\u5e94\u7528\u4f7f\u7528\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u672a\u751f\u6548\uff0c\u4e3a\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u5f53\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u65f6\uff0c\u9700\u8981\u786e\u8ba4\u5bb9\u5668\u5185\u662f\u5426\u5b58\u5728\u5bf9\u5e94\u7684\u73af\u5883\u53d8\u91cf\u3002\u5982\u679c\u6ca1\u6709\uff0c\u9700\u8981\u8054\u7cfb\u73b2\u73d1\u56e2\u961f\u5904\u7406\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>13\uff09\u5e94\u7528\u8fd0\u884c\u9700\u8981\u7684\u5e93\u6587\u4ef6\u6ca1\u627e\u5230\uff0c\u5982\u4f55\u63d0\u4f9b\uff1f<\/strong><\/p>\n<p>\u5e94\u7528\u9700\u8981\u4f7f\u7528\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u4e0e\u5e93\u6587\u4ef6\u9700\u8981\u5e94\u7528\u81ea\u8eab\u63d0\u4f9b\u3002\u5e93\u6587\u4ef6\u653e\u5230\u00a0$PREFIX\/lib \u8def\u5f84\u4e0b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>14\uff09\u5e94\u7528\u8fd0\u884c\u65f6\uff0c\u4e3a\u4ec0\u4e48 Qt WebEngine \u6e32\u67d3\u8fdb\u7a0b\u5d29\u6e83\uff1f<\/strong><\/p>\n<p>\u56e0\u7cfb\u7edf\u5347\u7ea7\u4e86 glibc\uff0c\u5bfc\u81f4\u5e94\u7528\u4f7f\u7528\u5185\u7f6e\u6d4f\u89c8\u5668\u65f6\u5931\u8d25\uff0c\u9700\u8981\u5e94\u7528\u91cd\u65b0\u9002\u914d\u3002<\/p>\n<p>\u4e34\u65f6\u89e3\u51b3\u65b9\u6848\u662f\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<p>export QTWEBENGINE_DISABLE_SANDBOX=1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>15\uff09\u5e94\u7528\u8fd0\u884c\u65f6\uff0c\u627e\u4e0d\u5230 libqxcb.so \u5e93\u6216\u8005 qtwebengine \u62a5\u9519\uff1f<\/strong><\/p>\n<p>\u5b58\u5728\u00a0qt.conf \u6587\u4ef6\u65f6\uff0c\u5728\u6587\u4ef6\u4e2d\u914d\u7f6e\u6b63\u786e\u8def\u5f84\uff0c\u6216\u8005\u4f7f\u7528<\/p>\n<p>QTWEBENGINEPROCESS_PATH\u3001<\/p>\n<p>QTWEBENGINE_RESOURCES_PATH\u3001<\/p>\n<p>QT_QPA_PLATFORM_PLUGIN_PATH\u3001<\/p>\n<p>QT_PLUGIN_PATH \u73af\u5883\u53d8\u91cf\u914d\u7f6e\u641c\u7d22\u8def\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>16\uff09\u5e94\u7528\u80fd\u5426\u81ea\u5df1\u643a\u5e26\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u5e76\u5728\u8fd0\u884c\u4e2d\u5f80\u6570\u636e\u5e93\u4e2d\u5199\u5165\u6570\u636e\uff1f<\/strong><\/p>\n<p>\u5bb9\u5668\u5185\u6587\u4ef6\u7cfb\u7edf\u662f\u53ea\u8bfb\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e0d\u5141\u8bb8\u5f80\u5e94\u7528\u8d44\u6e90\u6587\u4ef6\u4e2d\u5199\u5165\u6570\u636e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>17\uff09\u4e3a\u4ec0\u4e48\u6267\u884c\u643a\u5e26 suid\u3001guid \u6743\u9650\u4e8c\u8fdb\u5236\u5931\u6548\uff1f<\/strong><\/p>\n<p>\u73b2\u73d1\u5bb9\u5668\u4e3a\u4fdd\u8bc1\u7cfb\u7edf\u5b89\u5168\uff0c\u5bb9\u5668\u5185\u7981\u6b62\u6267\u884c\u6b64\u7c7b\u6743\u9650\u4e8c\u8fdb\u5236\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>18\uff09uab \u79bb\u7ebf\u5305\u683c\u5f0f\u5728 Debian\u3001Ubuntu \u4e0b\u8f93\u5165\u6cd5\u65e0\u6cd5\u4f7f\u7528\uff1f<\/strong><\/p>\n<p>\u5efa\u8bae\u5b89\u88c5 fictx \u8f93\u5165\u6cd5\u540e\u4f53\u9a8c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19\uff09\u600e\u4e48\u77e5\u9053\u5bb9\u5668\u73af\u5883\u4e2d\u5b89\u88c5\u4e86\u54ea\u4e9b\u5305\uff1f<\/strong><\/p>\n<p>ll-builder run --exec bash \u8fdb\u5165\u5bb9\u5668\u73af\u5883\uff0c\u4f7f\u7528 cat \/var\/lib\/dpkg\/status | grep \"^Package:\u00a0\"\u00a0\u547d\u4ee4\u67e5\u770b\u9884\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u53e6\u5916\u6e90\u7801\u7f16\u8bd1\u7684\u5e93\u53ef\u4ee5\u4f7f\u7528 cat \/runtime\/packages.list \u67e5\u770b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\u52a0\u5165\u73b2\u73d1\u793e\u7fa4\uff1a<\/strong><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/storage.deepin.org\/thread\/202406060253212540_5.jpg\" alt=\"\" width=\"200\" height=\"200\" \/><\/p>\n<p>&nbsp;<\/p>\n<div>\n<h1><strong><span class=\"color_font\">\u9644\u5f55\uff1a<\/span><\/strong><\/h1>\n<\/div>\n<article id=\"post-33497\" class=\"post-33497 post type-post status-publish format-standard hentry category-community-activities\">\n<div class=\"entry-content\">\n<p><strong>1\uff09deepin V23 RC \u955c\u50cf\u4e0b\u8f7d\uff1a<a href=\"https:\/\/www.deepin.org\/zh\/download\/\">https:\/\/www.deepin.org\/zh\/download\/<\/a><\/strong><\/p>\n<p><strong>2\uff09deepin \u7cfb\u7edf\u5386\u53f2\u7248\u672c\u955c\u50cf\u83b7\u53d6\uff08\u542b deepin V15\uff09\uff1a<a href=\"https:\/\/distrowatch.com\/index.php?distribution=deepin\">https:\/\/distrowatch.com\/index.php?distribution=deepin<\/a><\/strong><\/p>\n<\/div>\n<\/article>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: right;\">\u5185\u5bb9\u6765\u6e90\uff1adeepin\uff08\u6df1\u5ea6\uff09\u793e\u533a<\/p>\n<p style=\"text-align: right;\">\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904<\/p>","protected":false},"excerpt":{"rendered":"<p>\u73b2\u73d1 \u4f5c\u4e3a\u4e00\u79cd\u65b0\u578b\u7684\u72ec\u7acb\u5305\u7ba1\u7406\u5de5\u5177\u96c6\uff0c\u73b2\u73d1\u4e3b\u8981\u63d0\u4f9b\u5206\u5c42\u4e0e\u9694\u79bb\u7684\u8fd0\u884c\u73af\u5883\uff0c\u89e3\u51b3\u4f20\u7edf\u5305\u7ba1\u7406\u7cfb\u7edf\u5f3a\u4f9d\u8d56\u5bfc\u81f4\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4ee5\u53ca\u6743\u9650\u677e\u6563\u5bfc\u81f4\u7684\u5b89\u5168\u95ee\u9898\u3002\u5f53\u524d\uff0c\u73b2\u73d1\u5df2\u652f\u6301 4 \u4e2a\u53d1\u884c\u7248\uff0c\u5305\u62ec deepin\u3001\u7edf\u4fe1 UOS \u4ee5\u53ca Debian \u548c Ubuntu\u3002\u73b2\u73d1\u7684\u9694\u79bb\u6280\u672f\u53ef\u4ee5\u5c06\u5e94\u7528\u4e0e\u7cfb\u7edf\u8fdb\u884c\u5b8c\u5168\u89e3\u8026\uff0c\u4ece\u800c\u5f7b\u5e95\u89e3\u51b3\u7cfb\u7edf\u4e0e\u5e94\u7528\u3001\u5e94\u7528\u4e0e\u5e94\u7528\u4e4b\u95f4\u56e0\u5347\u7ea7\u548c\u9002\u914d\u5f15\u8d77\u7684\u517c\u5bb9\u6027\u51b2\u7a81\u7b49\u95ee\u9898\u3002\u8fd9\u5bf9\u5f00\u53d1\u8005\u800c\u8a00\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u5f00\u53d1\u6210\u672c ...<a href=https:\/\/www.deepin.org\/zh\/linglong-10-minute-quick-build-guide\/>\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":11164,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[155,93],"tags":[],"_links":{"self":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/33976"}],"collection":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/users\/11164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/comments?post=33976"}],"version-history":[{"count":13,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/33976\/revisions"}],"predecessor-version":[{"id":34003,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/33976\/revisions\/34003"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/media?parent=33976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/categories?post=33976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/tags?post=33976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}