Posts

Showing posts from July, 2020

Virtualmin Installation Error: Can't locate Virtualmin/Config.pm in @INC

Background Encounter "Can't locate Virtualmin/Config.pm in @INC" error during the virtualmin installation How to reproduce? OS: Ubuntu 18.04 LTS Machine: AWS EC2 Virtualmin: installation script on 2020/07/14 Error Message ▣▣▣ Phase 3 of 3: Configuration Can't locate Virtualmin/Config.pm in @INC (you may need to install the Virtualmin::Config module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/virtualmin-config-system line 9. BEGIN failed--compilation aborted at /usr/bin/virtualmin-config-system line 9. ▣▣▣ Cleaning up Solution edit file /usr/bin/virtualmin-config-system add the "BEGIN { push @INC, '/usr/share/perl5/vendor_perl'; }" on line 9 #!/usr/bin/env perl use strict; use warnings; use 5.010_001; use ...

Remap my macbook key button

Background My macbook keyboard got some problem, the up arrow sometime cannot function properly, i found that the right shift button is not usually used and it is just right above the up arrive, so i decided to remap the apple keypad from right shift to up arrow. Conclusion You may find the detail explanation here with the key code table for the HEX number assignment: https://developer.apple.com/library/archive/technotes/tn2450/_index.html Command hidutil property --set '{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc":0x7000000e5, "HIDKeyboardModifierMappingDst":0x700000052}] }' Reference https://apple.stackexchange.com/questions/283252/how-do-i-remap-a-key-in-macos-sierra-e-g-right-alt-to-right-control