{"id":261429,"date":"2023-02-12T08:13:37","date_gmt":"2023-02-12T00:13:37","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=261429"},"modified":"2023-01-16T15:14:31","modified_gmt":"2023-01-16T07:14:31","slug":"creen-of-ubuntu","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/creen-of-ubuntu.html","title":{"rendered":"\u6559\u4f60\u5982\u4f55\u6446\u8131 Ubuntu \u65e0\u8da3\u7684\u767b\u5f55\u80cc\u666f\u5c4f\u5e55"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8fd9\u7bc7\u6307\u5357\u53ef\u4ee5\u8ba9\u4f60\u5982\u4f55\u6446\u8131 Ubuntu \u7684\u65e0\u8da3\u7684\u767b\u5f55\u80cc\u666f\u5c4f\u5e55\uff0c\u5e76\u5728\u4f60\u6bcf\u6b21\u767b\u5f55\u65f6\u8bbe\u7f6e\u4e00\u5f20\u6f02\u4eae\u7684\u56fe\u7247\u6765\u6b22\u8fce\u4f60\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6211\u603b\u662f\u8ba4\u4e3a\uff0c\u5728\u4f60\u542f\u52a8\u4f60\u7684\u7cfb\u7edf\u540e\uff0c\u5e94\u8be5\u6709\u4e00\u4e2a\u6f02\u4eae\u7684\u767b\u5f55\u5c4f\u5e55\u6765\u6b22\u8fce\u4f60\u3002\u8fd9\u672c\u8eab\u5c31\u4e3a\u4f60\u5373\u5c06\u5f00\u59cb\u7684\u5de5\u4f5c\u6216\u6d3b\u52a8\u6e32\u67d3\u4e86\u6109\u5feb\u7684\u6c1b\u56f4\u3002\u5c3d\u7ba1\uff0c\u6211\u4e0d\u662f\u4e00\u540d Windows \u7684\u7c89\u4e1d\uff0c\u4f46\u662f\u6211\u5f88\u6b23\u8d4f Windows 10 \u7684\u767b\u5f55\u80cc\u666f\u90fd\u4f1a\u6bcf\u5929\u968f\u7740 Bing \u58c1\u7eb8\u8fdb\u884c\u66f4\u6539\uff0c\u5b83\u770b\u8d77\u6765\u597d\u6781\u4e86\uff0c\u5bf9\u5427\uff1f<\/p>\n

\u524d\u6bb5\u65f6\u95f4\uff0c\u6211\u4eec\u8ba8\u8bba\u4e86\u5982\u4f55 \u66f4\u6539 Fedora \u7684\u767b\u5f55\u5c4f\u5e55\u80cc\u666f \u548c \u66f4\u6539 elementary OS \u7684\u767b\u5f55\u5c4f\u5e55\u80cc\u666f \u3002\u73b0\u5728\u8fd9\u7bc7\u6307\u5357\u5c06\u5411\u4f60\u89e3\u91ca\uff0c\u5982\u4f55\u66f4\u6539\u4f7f\u7528 GNOME Shell \u7684 Ubuntu \u7684\u767b\u5f55\u5c4f\u5e55\u80cc\u666f\u3002<\/p>\n

\u767b\u5f55\u5c4f\u5e55\u80cc\u666f\u662f\u663e\u793a\u7ba1\u7406\u5668\uff08DM\uff09\u5c5e\u6027\u7684\u4e00\u90e8\u5206\u3002\u8fd9\u7bc7\u6307\u5357\u5c06\u4f7f\u7528\u4e00\u4f4d\u7528\u6237\u5728 GitHub \u4e2d\u521b\u5efa\u7684\u4e00\u4e2a\u811a\u672c\uff0c\u4f7f\u5f97\u666e\u901a\u7528\u6237\u4e5f\u80fd\u7b80\u5355\u6613\u7528\u3002\u5426\u5219\uff0c\u4f60\u9700\u8981\u5728\u63d0\u53d6 .gresource \u6587\u4ef6\u540e\uff0c\u5fc5\u987b\u624b\u52a8\u66f4\u6539 Gnome \u663e\u793a\u7ba1\u7406\u5668Gnome Display Manager\uff08GDM\uff09\u7684 CSS \u6587\u4ef6\uff0c\u63a5\u4e0b\u6765\u518d\u7f16\u8bd1\u5b83\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u8fd9\u662f\u5f88\u590d\u6742\u7684\u3002<\/p>\n

\"\"Ubuntu \u767b\u5f55\u5c4f\u5e55 \u2013 \u5728\u66f4\u6539\u524d<\/p>\n

\u66f4\u6539 Ubuntu \u7684\u767b\u5f55\u80cc\u666f<\/strong><\/div>\n

\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\uff08\u6309\u4e0b\u7ec4\u5408\u952e CTRL+ALT+T\uff09\u3002<\/p>\n

\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u4e0b\u8f7d\u8fd9\u4e2a GitHub \u4ed3\u5e93 \uff1a<\/p>\n

wget github.com\/thiggy01\/change-gdm-background\/raw\/master\/change-gdm-background<\/pre>\n

\u6ce8\u610f: \u5982\u679c\u4f60\u6ca1\u6709 wget \uff0c\u4f7f\u7528 sudo apt install wget \u6765\u5b89\u88c5\u5b83\u3002<\/p>\n

Ubuntu 22.04 Jammy Jellyfish \u7528\u6237\u9700\u8981\u66f4\u6539\u4e00\u4e9b\u989d\u5916\u7684\u4ee3\u7801\u6765\u4f7f\u5176\u5de5\u4f5c\uff0c\u56e0\u4e3a\uff0c\u5728 GitHub \u4ed3\u5e93\u4e2d\uff0c\u5f00\u53d1\u8005\u6ca1\u6709\u4fee\u590d\u5b83\u3002\u56e0\u6b64\uff0c\u5728\u8fd9\u91cc\u4f60\u9700\u8981\u81ea\u5df1\u6765\u66f4\u6539\u3002<\/p>\n

\u4f7f\u7528 gedit \u6765\u6253\u5f00 change-gdm-background \u6587\u4ef6\u3002\u63a5\u4e0b\u6765\uff0c\u8f6c\u5230\u4e0b\u9762\u7684\u884c\uff08#15\uff09 \u5e76\u6dfb\u52a0 |jammy \u3002<\/p>\n

\"\"<\/p>\n

\u811a\u672c\u66f4\u6539\u4e3a\u5141\u8bb8 jammy<\/p>\n

\u63a5\u4e0b\u6765\uff0c\u8f6c\u5230\u4e0b\u9762\u7684\u4e24\u884c\uff08#144 \u548c #184\uff09\u3002\u5c06 gdm3.css \u66f4\u6539\u4e3a gdm.css \u3002\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u4fee\u6b63\u9488\u5bf9 gdm \u7684 css \u6587\u4ef6<\/p>\n

\u6700\u540e\uff0c\u4fdd\u5b58\u6587\u4ef6\uff0c\u5e76\u9075\u5faa\u5982\u4e0b\u7684\u64cd\u4f5c\u6307\u5357\u3002\u8fd9\u79cd\u89e3\u51b3\u65b9\u6cd5\u53ea\u9002\u7528\u4e8e Ubuntu 22.04 \u7684\u767b\u5f55\u5c4f\u5e55\u7684\u66f4\u6539\u3002<\/p>\n

\u66f4\u6539\u811a\u672c\u7684\u6743\u9650\u6765\u4f7f\u5176\u53ef\u6267\u884c\uff1a<\/p>\n

chmod +x change-gdm-background<\/pre>\n

\u63a5\u4e0b\u6765\uff0c\u66f4\u6539 Ubuntu \u7684\u767b\u5f55\u80cc\u666f\u58c1\u7eb8\uff0c\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u3002\u6309\u7167\u4f60\u7684\u56fe\u7247\u76f8\u5e94\u5730\u66f4\u6539\u8def\u5f84\uff1a<\/p>\n

sudo .\/change-gdm-background ~\/Pictures\/tree.jpg<\/pre>\n

\u8fd9\u4e00\u6b65\u9aa4\u53ef\u80fd\u9700\u8981 libglib2.0-dev \u8f6f\u4ef6\u5305\uff0c\u5b83\u5c06\u4f1a\u81ea\u52a8\u5730\u5b89\u88c5\u3002\u63d0\u53d6\u548c\u7f16\u8bd1 .gresource \u4f1a\u7528\u5230\u5b83\u3002<\/p>\n

\u5728\u5b89\u88c5\u540e\uff0c\u5b83\u5e94\u8be5\u4f1a\u63d0\u793a\u4f60\u91cd\u65b0\u542f\u52a8 GDM \u3002\u614e\u91cd\u8d77\u89c1\uff0c\u6309\u4e0b N \u6309\u952e\u3002<\/p>\n

\u6ce8\u9500\u540e\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u66f4\u6539\u540e\u7684 Ubuntu \u7684\u80cc\u666f\u3002<\/p>\n

\u5982\u679c\u4f60\u6ca1\u6709\u770b\u5230\u66f4\u6539\uff0c\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u4f60\u7684\u7cfb\u7edf\uff0c\u7136\u540e\u5c1d\u8bd5\u767b\u5f55\u3002<\/p>\n

\"\"\u5728\u66f4\u6539\u540e\u7684\uff0cUbuntu \u7684\u767b\u5f55\u5c4f\u5e55\u80cc\u666f<\/p>\n

\u6062\u590d\u5148\u524d\u7684\u767b\u5f55\u5c4f\u5e55<\/strong><\/div>\n

\u8be5\u811a\u672c\u4e5f\u63d0\u4f9b\u4e86\u4e00\u79cd\u6062\u590d\u5148\u524d\u7684\u767b\u5f55\u5c4f\u5e55\u7684\u7279\u8272\u529f\u80fd\u3002\u5b83\u5728\u66f4\u6539\u4f60\u7684 .gresource \u6587\u4ef6\u524d\uff0c\u4f1a\u5c06\u5176\u8fdb\u884c\u5907\u4efd\u3002\u56e0\u6b64\uff0c\u6062\u590d\u5148\u524d\u7684\u767b\u5f55\u5c4f\u5e55\uff0c\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u7b80\u5355\u5730\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u3002<\/p>\n

sudo .\/change-gdm-background --restore<\/pre>\n

\u8fd9\u5e94\u8be5\u4f1a\u5c06\u5176\u767b\u5f55\u5c4f\u5e55\u66f4\u6539\u56de\u5176\u5148\u524d\u7684\u5f62\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6211\u603b\u662f\u8ba4\u4e3a\uff0c\u5728\u4f60\u542f\u52a8\u4f60\u7684\u7cfb\u7edf\u540e\uff0c\u5e94\u8be5\u6709\u4e00\u4e2a\u6f02\u4eae\u7684\u767b\u5f55\u5c4f\u5e55\u6765\u6b22\u8fce\u4f60\u3002\u8fd9\u672c\u8eab\u5c31\u4e3a\u4f60\u5373\u5c06\u5f00\u59cb\u7684\u5de5\u4f5c\u6216\u6d3b\u52a8\u6e32\u67d3\u4e86\u6109\u5feb\u7684 […]<\/p>\n","protected":false},"author":1470,"featured_media":261435,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-261429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=261429"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261429\/revisions"}],"predecessor-version":[{"id":262598,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261429\/revisions\/262598"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/261435"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=261429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=261429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=261429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}