Add Xiaohe Shuangpin for Microsoft Pinyin

Save the following content as xiaohe.reg and double click to add to registry.

1
2
3
4
5
6
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHS]
"Enable Double Pinyin"=dword:00000001
"DoublePinyinScheme"=dword:0000000a
"UserDefinedDoublePinyinScheme0"="小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"

Use ISO as Apt Repository

1
2
3
4
5
6
7
8
9
ISO_PATH="~/ubuntu_18_04.iso"
UBUNTU_CODE="bionic"

sudo mkdir /media/apt
sudo mount ${ISO_PATH} /media/apt -o loop
sudo echo "deb file:/media/apt/ ${UBUNTU_CODE} main contrib" >> /etc/apt/sources.list

sudo apt-get -o Acquire::AllowInsecureRepositories=true update
# sudo apt-get -o Acquire::AllowInsecureRepositories=true install bcmwl-kernel-source

Reference

How to use a .iso image as a CD-ROM Repository?
How do I bypass/ignore the gpg signature checks of apt?

Assign Static IP for VMware Fusion

1
sudo vi /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf

Add the follwing settings outside the “DO NOT MODIFY SECTION”.
Be careful:

  • the “LinuxMint” must match the name of the virtual machine and contain no space.
  • the MAC address must match the MAC address of the net card
  • the fixed-address should be outside the range in the “DO NOT MODIFY SECTION”, e.g. 172.16.214.100 (range 172.16.214.128 172.16.214.254)
1
2
3
4
host LinuxMint {
hardware ethernet 00:0C:29:B6:22:3E;
fixed-address 172.16.214.100;
}

Shutdown the virtual machine and execute the following commands

1
2
sudo /Applications/VMware\ Fusion.app/Contents/Library/services/services.sh --stop
sudo /Applications/VMware\ Fusion.app/Contents/Library/services/services.sh --start

Reference

Set a Static IP Address in VMware Fusion 7