﻿{"id":7484,"date":"2021-07-09T10:31:18","date_gmt":"2021-07-09T02:31:18","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=7484"},"modified":"2021-07-09T10:31:18","modified_gmt":"2021-07-09T02:31:18","slug":"windows-10-wsl-linux-gui","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/windows-10-wsl-linux-gui.html","title":{"rendered":"\u5728Windows 10\u4e2d\u4f53\u9a8cWSL\u8fd0\u884cLinux GUI\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p>\u5fae\u8f6f\u5728 21 \u65e5<a href=\"https:\/\/blogs.windows.com\/windows-insider\/2021\/04\/21\/announcing-windows-10-insider-preview-build-21364\/\" rel=\"nofollow \">\u53d1\u8868<\/a>\u535a\u5ba2\uff0c\u5ba3\u5e03\u5c06\u4e3a<!--StartFragment -->Linux \u7684 Windows \u5b50\u7cfb\u7edf<!--EndFragment -->\u5e26\u6765\u91cd\u5927\u66f4\u65b0\uff0c\u5c06\u652f\u6301\u8fd0\u884c Linux \u7248\u672c\u7684 GUI \u56fe\u5f62\u754c\u9762\u8f6f\u4ef6\uff0c\u5b98\u65b9\u79f0\u8be5\u529f\u80fd\u4e3a WSLg\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u7ec6\u8282\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7487\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/04\/2021-04-25_192957.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p style=\"text-align: center;\">\u901a\u8fc7 WSLg \u5728 Windows 10 \u4e2d\u8fd0\u884c gedit<\/p>\n<p>\u5fae\u8f6f\u7684Linux Windows\u5b50\u7cfb\u7edf(WSL)\u5df2\u7ecf\u5141\u8bb8\u6211\u4eec\u5b89\u88c5Linux\u53d1\u884c\u7248\uff0c\u6bd4\u5982Ubuntu\uff0c\u5e76\u8fd0\u884c\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u6709\u51e0\u5e74\u4e86\u3002\u591a\u5e74\u6765\uff0cWSL\u5f97\u5230\u4e86\u6539\u8fdb\uff0c\u5e76\u7f13\u6162\u5730\u6dfb\u52a0\u4e86\u4e00\u4e9b\u7279\u6027\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u6700\u5927\u7684\u7279\u6027\u66f4\u65b0\u662f\u4f7fWSL\u80fd\u591f\u5728WSL\u5185\u90e8\u8fd0\u884cLinux\u539f\u751f\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002WSLg \u8fd8\u652f\u6301\u97f3\u9891\u3001\u9ea6\u514b\u98ce\u8f93\u5165\u8f93\u51fa\uff0c\u56e0\u6b64\u4e00\u4e9b Linux \u7248\u672c\u7684\u97f3\u9891\u8f6f\u4ef6\u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7488\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/04\/WSLg.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p style=\"text-align: center;\">\u901a\u8fc7 WSLg \u5728 Windows 10 \u4e2d\u8fd0\u884c\u7ec8\u7aef<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7489\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/04\/shotwell.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p style=\"text-align: center;\">\u901a\u8fc7 WSLg \u5728 Windows 10 \u4e2d\u8fd0\u884cshotwell<\/p>\n<p><strong>WSL\u4e2d\u7684Linux GUI\u5e94\u7528\u7a0b\u5e8f<\/strong><\/p>\n<p>Windows 10\u5185\u90e8\u9884\u89c8\u7248\u672c21364\u63d0\u4f9b\u4e86\u6b64\u66f4\u65b0\u3002<\/p>\n<p>\u5fae\u8f6f\u4e5f\u5c06\u65b0\u529f\u79f0\u4e3aWSLg\uff0cg\u7684\u610f\u601d\u662fGUI\u3002\u73b0\u5728\u8fd9\u4e2a\u7279\u6027\u4e3b\u8981\u7528\u4e8e\u6d4b\u8bd5\uff1aa)\u57fa\u4e8eLinux IDE\u7684\u5e94\u7528\u7a0b\u5e8f\uff1bb)\u4eceWindows\u73af\u5883\u4e2d\u6784\u5efa(!)\u548c\u6d4b\u8bd5Linux\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f<\/strong><\/p>\n<p>WSL\u73b0\u5728\u5e26\u6709\u201c WSLg\u7cfb\u7edf\u53d1\u884c\u7248\u201d\uff0c\u5176\u4e2d\u5305\u542b X server\uff0cWayland\uff0c PulseAudio server\u4ee5\u53ca\u539f\u751fLinux\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u6240\u6709\u5176\u4ed6\u5fc5\u8981\u7ec4\u4ef6\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u60a8\u901a\u8fc7Microsoft Store\u5b89\u88c5Ubuntu\u5e76\u66f4\u65b0\u4e3a\u6700\u65b0\u7684WSL\uff0c\u5219\u5b89\u88c5GUI\u5e94\u7528\u7a0b\u5e8f\u2013 GUI\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u529f\u80fd\u5747\u7531\u201c WSLg\u7cfb\u7edf\u53d1\u884c\u7248\u201d\u5904\u7406\u3002<\/p>\n<ul>\n<li>\u60a8\u65e0\u9700\u4eceWSL\u63d0\u793a\u7b26\u4e0b\u624b\u52a8\u542f\u52a8X server\uff08\u4f8b\u5982startx\u7b49\uff09<\/li>\n<li>\u4f8b\u5982\uff0c\u5f53\u60a8\u6267\u884cgedit\u65f6\uff0cWSL\u4f1a\u81ea\u5df1\u901a\u8fc7WSLg\u7cfb\u7edf\u53d1\u884c\u7248\u6765\u542f\u52a8X\u670d\u52a1\u5668\u3002<\/li>\n<li>\u6700\u521d\u7684\u6f14\u793a\u663e\u793a\u4e86\u5177\u6709\u6b63\u786eGTK\u4e3b\u9898\uff0c\u989c\u8272\u548c\u5b57\u4f53\u7684GNOME\u5e94\u7528\u3002<\/li>\n<li>\u521d\u59cb\u6f14\u793a\u663e\u793a\u4e86\u5177\u6709\u771f\u6b63\u7684GTK\u4e3b\u9898\u3001\u989c\u8272\u548c\u5b57\u4f53\u7684GNOME\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>GUI\u5e94\u7528\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u6d4f\u89c8\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<li>\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u8fd8\u53ef\u4ee5\u8fde\u63a5\u5230 PulseAudio server\u4ee5\u5b9e\u73b0\u58f0\u97f3\u529f\u80fd\u3002<\/li>\n<\/ul>\n<p>\u662f\u4e0d\u662f\u5f88\u75af\u72c2\uff1f \u8be6\u7ec6\u4fe1\u606f\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230\u3002<\/p>\n<p><strong>\u5982\u4f55\u542f\u7528<\/strong><\/p>\n<p>\u60a8\u9700\u8981\u786e\u4fdd\u81ea\u5df1\u5728Microsoft Windows Insider\u7a0b\u5e8f\u4e2d\u5e76\u6b63\u5728\u8fd0\u884cWindows 10 Insiders\u9884\u89c8\u7248\u672c21364\u3002<\/p>\n<p>\u5982\u679c\u5c1a\u672a\u5b89\u88c5WSL\uff0c\u8bf7\u5b89\u88c5\u5b83\u3002 \u6216\u4eceMicrosoft\u5546\u5e97\u5b89\u88c5Ubuntu\u3002<\/p>\n<p>\u7136\u540e\u6253\u5f00WSL\u5e76\u8fd0\u884c\uff1a<\/p>\n<p>wsl &#8211;install<\/p>\n<p>\u5982\u679c\u60a8\u5df2\u7ecf\u5b89\u88c5\u4e86WSL\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n<p>wsl &#8211;update<\/p>\n<p>\u8fd9\u4e24\u4e2a\u547d\u4ee4\u90fd\u5c06\u5b89\u88c5WSLg\u53d1\u884c\u7248\u3002<\/p>\n<p>\u5b8c\u6574\u7684\u5b89\u88c5\u8bf4\u660e\u53ef\u4ee5\u5728<a href=\"https:\/\/github.com\/microsoft\/wslg\" rel=\"nofollow \">\u8fd9\u91cc<\/a>\u627e\u5230\u3002<\/p>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<p>\u5f53\u5fae\u8f6f\u51e0\u5e74\u524d\u5ba3\u5e03WSL\u65f6\uff0c\u8bb8\u591a\u4eba\u90fd\u5e0c\u671b\u8fd9\u4e00\u5929\u6709\u53ef\u80fd\u76f4\u63a5\u5728WSL\u4e0b\u8fd0\u884c\u672c\u5730GUI\u5e94\u7528\u7a0b\u5e8f\u3002 \u73b0\u5728\u770b\u6765\uff0c\u8fd9\u662f\u6709\u53ef\u80fd\u7684\u3002 \u4f46\u662f\u6211\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u5982\u679c\u4f60\u60f3\u8981\u8fd0\u884cLinux\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u5b89\u88c5Linux\u3002 \u4e3a\u4ec0\u4e48\u8981\u82b1\u5f88\u591a\u65f6\u95f4\u548c\u7cbe\u529b\u5728Windows\u4e2d\u8fd0\u884c\u5b83\uff1f<\/p>\n<p>\u4e0d\u8fc7\u8be5\u529f\u80fd\u786e\u5b9e\u4e0d\u9519\uff0c\u4f46\u662f\u6709\u591a\u5c11\u7528\u6237\u4f1a\u4f7f\u7528\u5b83\uff0c\u6709\u591a\u5c11\u5de5\u4f5c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u7279\u6027\u5b8c\u6210\uff0c\u6ca1\u6709\u4eba\u77e5\u9053\u3002 \u6b64\u5916\uff0cWSLg\u53ef\u4ee5\u89e3\u51b3\u54ea\u4e9b\u5b9e\u9645\u95ee\u9898\uff1f \u6211\u4e5f\u6301\u7591\u95ee\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u8f6f\u5728 21 \u65e5\u53d1\u8868\u535a\u5ba2\uff0c\u5ba3\u5e03\u5c06\u4e3aLinux \u7684 Windows \u5b50\u7cfb\u7edf\u5e26\u6765\u91cd\u5927\u66f4\u65b0\uff0c\u5c06\u652f\u6301\u8fd0\u884c L &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,2],"tags":[196,681],"class_list":["post-7484","post","type-post","status-publish","format-standard","hentry","category-linux","category-zixun","tag-wsl","tag-wslg"],"aioseo_notices":[],"views":3527,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/7484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=7484"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/7484\/revisions"}],"predecessor-version":[{"id":7490,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/7484\/revisions\/7490"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=7484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=7484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=7484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}