{"id":52423,"date":"2024-10-09T02:31:15","date_gmt":"2024-10-08T18:31:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/52423\/"},"modified":"2024-11-14T10:38:58","modified_gmt":"2024-11-14T02:38:58","slug":"ubuntu-%e4%b8%ad%e4%b8%80%e9%8d%b5%e5%ae%89%e8%a3%9d-notepad","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/52423\/","title":{"rendered":"Ubuntu \u4e2d\u4e00\u9375\u5b89\u88dd Notepad++"},"content":{"rendered":"<h1 id=\"ubuntu-%e4%b8%ad%e4%b8%80%e9%8d%b5%e5%ae%89%e8%a3%9d-notepad-YZcDqQQnQj\">Ubuntu \u4e2d\u4e00\u9375\u5b89\u88dd Notepad++<\/h1>\n<p>Notepad++ \u662f\u4e00\u6b3e\u529f\u80fd\u5f37\u5927\u7684\u6587\u672c\u7de8\u8f2f\u5668\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u7a0b\u5f0f\u8a2d\u8a08\u548c\u6587\u672c\u7de8\u8f2f\u3002\u96d6\u7136 Notepad++ \u539f\u751f\u50c5\u652f\u63f4 Windows \u7cfb\u7d71\uff0c\u4f46\u900f\u904e Wine \u7b49\u5de5\u5177\uff0c\u6211\u5011\u53ef\u4ee5\u5728 Ubuntu \u7cfb\u7d71\u4e0a\u5b89\u88dd\u548c\u4f7f\u7528\u5b83\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Ubuntu \u4e2d\u4e00\u9375\u5b89\u88dd Notepad++\uff0c\u8b93\u4f7f\u7528\u8005\u80fd\u5920\u8f15\u9b06\u4eab\u53d7\u9019\u6b3e\u7de8\u8f2f\u5668\u7684\u4fbf\u5229\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99-YZcDqQQnQj\">\u5b89\u88dd\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd Notepad++ \u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u60a8\u7684 Ubuntu \u7cfb\u7d71\u5df2\u7d93\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u66f4\u65b0\u7cfb\u7d71\uff1a<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd Wine\uff0c\u9019\u662f\u4e00\u500b\u53ef\u4ee5\u5728 Linux \u7cfb\u7d71\u4e0a\u904b\u884c Windows \u61c9\u7528\u7a0b\u5f0f\u7684\u517c\u5bb9\u5c64\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5b89\u88dd Wine\uff1a<\/p>\n<pre><code>sudo dpkg --add-architecture i386\nsudo apt update\nsudo apt install wine64 wine32 -y<\/code><\/pre>\n<h2 id=\"%e4%b8%80%e9%8d%b5%e5%ae%89%e8%a3%9d-notepad-YZcDqQQnQj\">\u4e00\u9375\u5b89\u88dd Notepad++<\/h2>\n<p>\u70ba\u4e86\u7c21\u5316\u5b89\u88dd\u904e\u7a0b\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u4e00\u500b\u7c21\u55ae\u7684\u8173\u672c\u4f86\u4e00\u9375\u5b89\u88dd Notepad++\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd\u8173\u672c\u7684\u5167\u5bb9\uff1a<\/p>\n<pre><code>#!\/bin\/bash\n\n# \u66f4\u65b0\u7cfb\u7d71\nsudo apt update &amp;&amp; sudo apt upgrade -y\n\n# \u5b89\u88dd Wine\nsudo dpkg --add-architecture i386\nsudo apt update\nsudo apt install wine64 wine32 -y\n\n# \u4e0b\u8f09 Notepad++\nwget https:\/\/github.com\/notepad-plus-plus\/notepad-plus-plus\/releases\/latest\/download\/npp.8.4.3.Installer.exe -O npp-installer.exe\n\n# \u5b89\u88dd Notepad++\nwine npp-installer.exe<\/code><\/pre>\n<p>\u5c07\u4e0a\u8ff0\u4ee3\u78bc\u4fdd\u5b58\u70ba\u540d\u70ba <code>install_notepad.sh<\/code> \u7684\u6587\u4ef6\uff0c\u7136\u5f8c\u7d66\u4e88\u57f7\u884c\u6b0a\u9650\uff1a<\/p>\n<pre><code>chmod +x install_notepad.sh<\/code><\/pre>\n<p>\u63a5\u8457\uff0c\u904b\u884c\u8173\u672c\u4f86\u5b89\u88dd Notepad++\uff1a<\/p>\n<pre><code>.\/install_notepad.sh<\/code><\/pre>\n<h2 id=\"%e4%bd%bf%e7%94%a8-notepad-YZcDqQQnQj\">\u4f7f\u7528 Notepad++<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 Notepad++\uff1a<\/p>\n<pre><code>wine ~\/.wine\/drive_c\/Program Files\/Notepad++\/notepad++.exe<\/code><\/pre>\n<p>\u9019\u6a23\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728 Ubuntu \u7cfb\u7d71\u4e0a\u4f7f\u7528 Notepad++ \u9032\u884c\u6587\u672c\u7de8\u8f2f\u548c\u7a0b\u5f0f\u8a2d\u8a08\u4e86\u3002Notepad++ \u63d0\u4f9b\u4e86\u591a\u7a2e\u8a9e\u6cd5\u9ad8\u4eae\u3001\u63d2\u4ef6\u652f\u6301\u548c\u81ea\u5b9a\u7fa9\u529f\u80fd\uff0c\u8b93\u7de8\u8f2f\u5de5\u4f5c\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%95%8f%e9%a1%8c-YZcDqQQnQj\">\u5e38\u898b\u554f\u984c<\/h2>\n<h3 id=\"1-%e7%82%ba%e4%bb%80%e9%ba%bc%e8%a6%81%e4%bd%bf%e7%94%a8-wine%ef%bc%9f-YZcDqQQnQj\">1. \u70ba\u4ec0\u9ebc\u8981\u4f7f\u7528 Wine\uff1f<\/h3>\n<p>Wine \u662f\u4e00\u500b\u958b\u6e90\u7684\u517c\u5bb9\u5c64\uff0c\u80fd\u5920\u8b93 Linux \u7528\u6236\u904b\u884c Windows \u61c9\u7528\u7a0b\u5f0f\u3002\u9019\u4f7f\u5f97\u8a31\u591a Windows \u8edf\u4ef6\u80fd\u5920\u5728 Linux \u74b0\u5883\u4e2d\u904b\u884c\uff0c\u5f9e\u800c\u64f4\u5c55\u4e86\u4f7f\u7528\u8005\u7684\u9078\u64c7\u3002<\/p>\n<h3 id=\"2-notepad-%e6%98%af%e5%90%a6%e6%9c%89-linux-%e5%8e%9f%e7%94%9f%e7%89%88%e6%9c%ac%ef%bc%9f-YZcDqQQnQj\">2. Notepad++ \u662f\u5426\u6709 Linux \u539f\u751f\u7248\u672c\uff1f<\/h3>\n<p>\u76ee\u524d Notepad++ \u4e26\u6c92\u6709\u5b98\u65b9\u7684 Linux \u7248\u672c\uff0c\u4f46\u6709\u4e00\u4e9b\u66ff\u4ee3\u54c1\uff0c\u5982 Sublime Text \u548c Atom\uff0c\u9019\u4e9b\u7de8\u8f2f\u5668\u4e5f\u63d0\u4f9b\u4e86\u985e\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n<h3 id=\"3-%e5%ae%89%e8%a3%9d%e9%81%8e%e7%a8%8b%e4%b8%ad%e5%87%ba%e7%8f%be%e9%8c%af%e8%aa%a4%e8%a9%b2%e6%80%8e%e9%ba%bc%e8%be%a6%ef%bc%9f-YZcDqQQnQj\">3. \u5b89\u88dd\u904e\u7a0b\u4e2d\u51fa\u73fe\u932f\u8aa4\u8a72\u600e\u9ebc\u8fa6\uff1f<\/h3>\n<p>\u5982\u679c\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\u9047\u5230\u932f\u8aa4\uff0c\u8acb\u6aa2\u67e5\u60a8\u7684\u7cfb\u7d71\u662f\u5426\u5df2\u7d93\u5b89\u88dd\u4e86\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8cf4\u9805\uff0c\u4e26\u78ba\u4fdd\u60a8\u7684 Ubuntu \u7cfb\u7d71\u662f\u6700\u65b0\u7684\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-YZcDqQQnQj\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Ubuntu \u4e2d\u4e00\u9375\u5b89\u88dd Notepad++ \u662f\u4e00\u500b\u7c21\u55ae\u800c\u6709\u6548\u7684\u904e\u7a0b\uff0c\u901a\u904e\u4f7f\u7528 Wine\uff0c\u60a8\u53ef\u4ee5\u8f15\u9b06\u5730\u5728 Linux \u74b0\u5883\u4e2d\u4eab\u53d7\u9019\u6b3e\u5f37\u5927\u7684\u6587\u672c\u7de8\u8f2f\u5668\u3002\u7121\u8ad6\u60a8\u662f\u958b\u767c\u8005\u9084\u662f\u666e\u901a\u7528\u6236\uff0cNotepad++ \u90fd\u80fd\u70ba\u60a8\u7684\u5de5\u4f5c\u63d0\u4f9b\u4fbf\u5229\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u670d\u52d9\u4f86\u652f\u6301\u60a8\u7684\u958b\u767c\u74b0\u5883\uff0c\u8acb\u8003\u616e\u6211\u5011\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u8b93\u60a8\u7684\u5de5\u4f5c\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u5b78\u7fd2\u5982\u4f55\u5728 Ubuntu \u4e0a\u4e00\u9375\u5b89\u88dd Notepad++\uff0c\u63d0\u5347\u60a8\u7684\u7de8\u8f2f\u6548\u7387\uff0c\u4eab\u53d7\u6d41\u66a2\u7684\u7de8\u7a0b\u9ad4\u9a57\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-52423","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=52423"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52423\/revisions"}],"predecessor-version":[{"id":52424,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52423\/revisions\/52424"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=52423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=52423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=52423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}