{"id":5751,"date":"2016-01-16T08:10:29","date_gmt":"2016-01-16T07:10:29","guid":{"rendered":"http:\/\/emilkirkegaard.dk\/en\/?p=5751"},"modified":"2016-01-16T08:10:29","modified_gmt":"2016-01-16T07:10:29","slug":"numlock-problems-in-virtualbox-linux-mint","status":"publish","type":"post","link":"https:\/\/emilkirkegaard.dk\/en\/2016\/01\/numlock-problems-in-virtualbox-linux-mint\/","title":{"rendered":"Numlock problems in Virtualbox linux Mint"},"content":{"rendered":"<p>My situation is this:<\/p>\n<ul>\n<li>I run linux Mint from Windows 8.1 using <a href=\"https:\/\/www.virtualbox.org\/\">Virtualbox<\/a>.<\/li>\n<li>I have disabled the numlock (and the other *lock keys) in Windows by rebinding my keyboard using <a href=\"https:\/\/msdn.microsoft.com\/en-us\/goglobal\/bb964665.aspx\"><em>The Microsoft Keyboard Layout Creator<\/em><\/a>.<\/li>\n<li>Windows boots up with numlock on so my numpad works.<\/li>\n<li>In Virtualbox, Mint boots up without numlock on.<\/li>\n<li>Cannot turn it on because the key is unbound.<\/li>\n<li>Don&#8217;t want to re-enable the bind in Windows.<\/li>\n<li>Linux Mint apparently lacks an <em>on screen keyboard<\/em> solution like Windows has.<\/li>\n<\/ul>\n<p>The solution I found was to install an application that can turn on numlock via the terminal using <a href=\"https:\/\/help.ubuntu.com\/community\/NumLock\">numlockx<\/a>:<\/p>\n<pre>sudo apt-get install numlockx\r\n\/usr\/bin\/numlockx on<\/pre>\n<p>Problem solved. To enable it from startup, can use:<\/p>\n<pre>sudo sed -i 's|^exit 0.*$|# Numlock enable\\n[ -x \/usr\/bin\/numlockx ] \\&amp;\\&amp; numlockx on\\n\\nexit 0|' \/etc\/rc.local<\/pre>\n<p>I haven&#8217;t tested this part yet because I have yet to restart.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My situation is this: I run linux Mint from Windows 8.1 using Virtualbox. I have disabled the numlock (and the other *lock keys) in Windows by rebinding my keyboard using The Microsoft Keyboard Layout Creator. Windows boots up with numlock on so my numpad works. In Virtualbox, Mint boots up without numlock on. Cannot turn [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2089],"tags":[2289,2290],"class_list":["post-5751","post","type-post","status-publish","format-standard","hentry","category-programming","tag-linux-mint","tag-numlock","entry"],"_links":{"self":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/comments?post=5751"}],"version-history":[{"count":1,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5751\/revisions"}],"predecessor-version":[{"id":5752,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5751\/revisions\/5752"}],"wp:attachment":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/media?parent=5751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/categories?post=5751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/tags?post=5751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}