<メモブログ>Paralells Desktop 13 for Mac + USキーボード で日本語入力を Command + Space で使う
Paralells Desktop 13 for Mac + USキーボード で日本語入力を Command + Space で使う方法
環境
- macOS Sierra
- Macbook Pro late 2013
- Paralells Desktop 13 for mac
- Windows 10
- Google 日本語入力(両方)
- ※Windows の Google日本語入力は Control + Space で日本語入力が切り替えられるように設定してある
症状
- Mac も Windows(VM内) もCommand + Space でIMEの切り替え(日本語<ー>英語)を行いたい
- Macのシステム設定レベルで入力ソースの切り替えを Command + Space に割り当てると、Paralells Desktop アプリケーションのキーバインドが無効(編集不可)になる
解決
手順
Karabina Elements のインストール
- Karabina Elements をダウンロードする。
- インストーラーに従ってインストールする。
設定ファイルの作成
- 以下のファイルを作る。ファイル名は適当。
vim ~/.config/karabiner/assets/complex_modifications/parallels.json
{ "title": "Paralells Desktop", "rules": [ { "description": "Command to Ctrl", "manipulators": [ { "type": "basic", "from": { "key_code": "left_command", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.parallels\\.desktop\\.console", "^com\\.parallels\\.winapp\\." ] } ] } ] } ] }
- Karabina Elements の Preferences を開き、Complex Modifications タブ内の Rules を開く。
- 左下のAdd rule をクリック。
Command to Ctrl
のEnable
ボタンをクリックする。
おわり。
<メモブログ>SoftEther で IPSec サーバを構築した時の Cisco IOS の設定
Ciscoルータをもっているなら、Anyconnect を使ってみてもいいのだけれども、OS標準(Android/Apple iOS含む)でVPNを張れる環境にしたいのでSoftEtherで構築した。
–
! WAN側は CBAC を使う ip inspect name CBAC-WAN-OUT tcp ip inspect name CBAC-WAN-OUT udp router-traffic ip inspect name CBAC-WAN-OUT icmp router-traffic ! PPPoE を喋るインターフェイス interface GigabitEthernet0/5 description to ONU no ip address duplex auto speed auto pppoe enable group global pppoe-client dial-pool-number 1 ! ! 内側のネットワーク interface Vlan100 description Inner Network ip address 192.168.0.1 255.255.255.0 ip nat inside ip virtual-reassembly in ip tcp adjust-mss 1414 ! PPPoE (Dialer) interface Dialer1 mtu 1454 ip address negotiated ip access-group WAN-IN in ip nat outside ip virtual-reassembly in encapsulation ppp ip tcp adjust-mss 1414 dialer pool 1 dialer-group 1 ppp authentication chap callin ppp chap hostname <ほげほげ> ppp chap password 7 <ふがふが> no cdp enable ! NAT ip dns server ip nat inside source list 1 interface Dialer1 overload ip nat inside source static udp 192.168.0.3 4500 interface Dialer1 4500 ip nat inside source static esp 192.168.0.3 interface Dialer1 ip nat inside source static udp 192.168.0.3 500 interface Dialer1 500 ip route 0.0.0.0 0.0.0.0 Dialer1 ! WANインターフェイスのアクセスリスト ip access-list extended WAN-IN permit udp any eq domain any permit icmp any any echo-reply permit udp any any eq isakmp permit udp any any eq non500-isakmp permit esp any any deny ip any any log ! ! Dialer と NAPTの設定 dialer-list 1 protocol ip permit access-list 1 permit 192.168.0.0 0.0.255.255
<日常ネタ>側頸嚢胞に当選した人の日記を公開しました。
ガチャで 0.001 % を引く確率の病気「側頸嚢胞」になったのでその治療までの日記書きました。 読み返してみると、あまりきれいな文章ではないですが、よろしければどうぞ。
<メモブログ>mobilepoint2 で IPSec が不安定だったので対処した(mac)
環境
現象
調査
- そもそも、ゲートウェイ側にパケットが来てなさそうだったので、真っ先にMTUを疑った
- ifconfig によるとデフォルトでは ppp0 は 1200 になっている。
- ping -s XXX www.yahoo.co.jp などでパケットサイズを絞っていく。
原因
- MTUサイズオーバーによるパケットロス
- 上記、調査でMTUサイズ 1182 でPINGがかえってきたのでこれに設定してやる。
対処(解決)
上記記事を参考に、VPNセッション開始時に自動実行されるスクリプトを書く。自分の場合は以下。 (自分の場合は、ファイルを設置して実行権限を与えてやるだけでよかった)
#!/bin/sh /sbin/ifconfig ppp0 mtu 1182