OSX + VirtualBox + Ubuntu

  • Host OSX key remap: Ctrl <-> Command

http://tokyo.secret.jp/macs/key_control.html

  • Guest Ubuntu 12.04 key remap: Ctrl <-> Command(Win)

System setting -> Keyboard Layout -> Option

Alt/Win key behavior -> Control is mapped to Win keys

  • Guest Ubuntu 14.04 key remap: Ctrl <-> Command(Win)


http://askubuntu.com/questions/131900/how-do-i-switch-the-command-key-and-control-key-on-a-macbook-pro-12-04


~/.Xmodmap を作成

clear control
clear mod4
keycode 105 =
keycode 206 =
keycode 133 = Control_L NoSymbol Control_L
keycode 134 = Control_R NoSymbol Control_R
keycode 37 = Super_L NoSymbol Super_L
add control = Control_L
add control = Control_R
add mod4 = Super_L


再読み込み
xmodmap ~/.Xmodmap

  • VBox 4.3.10 で vboxsf が行方不明な場合の一時しのぎ

http://superuser.com/questions/736024/cannot-share-host-directory-with-virtualbox-guest-mint-16-64-bit

$ sudo rm /sbin/mount.vboxsf
$ sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

  1. Shared folder trouble

$ dmesg
sf_read_super_aux err=-22

http://superuser.com/questions/736024/cannot-share-host-directory-with-virtualbox-guest-mint-16-64-bit

ls -l /sbin/mount.vboxsf
ls -l /usr/lib/VBoxGuestAdditions/mount.vboxsf
ls -l /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf

sudo ln -sf /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

This is a bug of VirtualboxAddOn. When you update the addon, you may need to fix this.