{"id":18616,"date":"2014-11-21T06:33:45","date_gmt":"2014-11-20T22:33:45","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/21\/ubuntu-linux-%e9%96%8b%e6%a9%9f%e5%be%8c-numlock-%e7%87%88%e4%ba%ae\/"},"modified":"2021-03-18T17:24:11","modified_gmt":"2021-03-18T09:24:11","slug":"ubuntu-linux-%e9%96%8b%e6%a9%9f%e5%be%8c-numlock-%e7%87%88%e4%ba%ae","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/21\/ubuntu-linux-%e9%96%8b%e6%a9%9f%e5%be%8c-numlock-%e7%87%88%e4%ba%ae\/","title":{"rendered":"Ubuntu Linux \u958b\u6a5f\u5f8c NumLock \u71c8\u4eae"},"content":{"rendered":"<p>Ubuntu Linux \u9810\u8a2d\u958b\u6a5f\u5f8c NumLock \u7684\u71c8\u662f\u4e0d\u4eae\u7684\uff0c\u9020\u6210\u6709\u6642\u5019\u8f38\u5165\u6578\u5b57\u6642\u7684\u4e0d\u65b9\u4fbf\u3002<br \/>\u89e3\u6c7a\u4e4b\u9053\uff1a<br \/>\u53c3\u8003\u7db2\u9801\uff1a<br \/><a href=\"https:\/\/help.ubuntu.com\/community\/NumLock\" target=\"_blank\" rel=\"noopener noreferrer\">NumLock &#8211; Community Help Wiki<\/a><\/p>\n<p>1. \u5b89\u88dd\u00a0numlockx \u5957\u4ef6<br \/>$ <span style=\"color: #ff0000\">sudo apt-get install -y\u00a0numlockx<\/span><\/p>\n<p>2. \u57f7\u884c\u6e2c\u8a66\u770b\u770b NumLock \u71c8\u6703\u4e0d\u6703\u4eae<br \/>$ <span style=\"color: #ff0000\">\/usr\/bin\/numlockx on<\/span><\/p>\n<p>3. \u5982\u679c\u6c92\u6709\u554f\u984c\u7684\u8a71\uff0c\u8a2d\u5b9a\u958b\u6a5f\u6642\u57f7\u884c<br \/>$ <span style=\"color: #ff0000\">sudo sed -i &#8216;s|^exit 0.*$|# Numlock enablen[ -x \/usr\/bin\/numlockx ] &amp;&amp; numlockx onnnexit 0|&#8217; \/etc\/rc.local<\/span><\/p>\n<p>$ <span style=\"color: #ff0000\">sudo tail -4 \/etc\/rc.local<\/span><br \/><span style=\"color: #0000ff\"># Numlock enable<\/span><br \/><span style=\"color: #0000ff\">[ -x \/usr\/bin\/numlockx ] &amp;&amp; numlockx on<\/span><\/p>\n<p><span style=\"color: #0000ff\">exit 0<\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Linux \u9810\u8a2d\u958b\u6a5f\u5f8c NumLock \u7684\u71c8\u662f\u4e0d\u4eae\u7684\uff0c\u9020\u6210\u6709\u6642\u5019\u8f38\u5165\u6578\u5b57\u6642\u7684\u4e0d\u65b9\u4fbf\u3002\u89e3\u6c7a\u4e4b\u9053\uff1a\u53c3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/21\/ubuntu-linux-%e9%96%8b%e6%a9%9f%e5%be%8c-numlock-%e7%87%88%e4%ba%ae\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Ubuntu Linux \u958b\u6a5f\u5f8c NumLock \u71c8\u4eae\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[],"class_list":["post-18616","post","type-post","status-publish","format-standard","hentry","category-c-78464"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["522901"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18616"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18616"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18616\/revisions"}],"predecessor-version":[{"id":20240,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18616\/revisions\/20240"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}