Friday, May 13, 2016

Parallels: Enabling Gamepad

Steps:

  1. Shutdown virtual machine
  2. Parallels Desktop Control Center > Configure.. > Hardware > Add Device > USB & Bluetooth
  3. Parallels Desktop Control Center > Configure.. > Hardware > Share Bluetooth devices with Windows
  4. Parallels Desktop Control Center > Configure.. > Hardware > USB Connection Preferences... > Permanent Assignments > Devices > Logicool Dual Action > Connect To > Windows 10

Importing VirtualBox Virtual Machine File in Parallels Desktop

If you have HDD (Parallels Hard Disk) file type,
Convert HDD to VDI:

  1. VirtualBox > Virtual Media Manager > Hard disks > *.hdd > Copy > Hard disk file type > VDI (VirtualBox Disk Image)


Steps for Migrating Virtual Machine from VirtualBox to Parallels:

  1. Open the virtual machine and shutdown properly.
  2. Clone virtual machine in Oracle VM VirtualBox Manager.
  3. Open the cloned virtual machine.
  4. Run Oracle VM VirtualBox Guest Additions 5.0.20 Uninstall.
  5. Shutdown the cloned virtual machine properly.
  6. In Parallels Desktop, Open the *.vbox

Ubuntu: Print Unix Name (uname)

Command:

$ uname -a
Linux remote 4.4.0-22-generic #39-Ubuntu SMP Thu May 5 16:53:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Thursday, May 12, 2016

Ubuntu: Installing OpenBSD Secure Shell (OpenSSH) using Advanced Packaging Tool (APT)

Command:

$ root- s
# apt-get install openssh-server

Ubuntu: Changing the Hostname to "remote"

Command 1 (Only temporarily until restart):

$ sudo hostname remote

Command 2 (Permanent):

$ sudo vi /etc/hostname

$ cat /etc/hostname
remote
#old-host-name

$ sudo vi /etc/hosts

$ cat /etc/hosts
#127.0.0.1              old-host-name
127.0.0.1                remote
xxx.xxx.xxx.xxx    xxx-xxx-xxxxx.vs.sakura.ne.jp       xxx-xxx-xxxxx

# The following lines are desirable for IPv6 capable hosts
::1        localhost     ip6-localhost    ip6-loopback
ff02::1  ip6-allnodes
ff02::2  ip6-allrouters

Ubuntu: Setting Root Password

Command:

$ sudo passwd root

Java: Kuromoji

Installation:

$ wget https://github.com/downloads/atilika/kuromoji/kuromoji-0.7.7.tar.gz
$ gzip -d kuromoji-0.7.7.tar.gz

$ tar -xvf kuromoji-0.7.7.tar

Command:

$ java -cp kuromoji-0.7.7/lib/kuromoji-0.7.7.jar  org.atilika.kuromoji.TokenizerRunner

強制わいせつの疑い、東大4年生の男を逮捕 「胸を触ったりお尻を触ったりしていません」と容疑を否認
強制 名詞,サ変接続,*,*,*,*,強制,キョウセイ,キョーセイ
わいせつ 名詞,一般,*,*,*,*,わいせつ,ワイセツ,ワイセツ
助詞,連体化,*,*,*,*,の,ノ,ノ
疑い 名詞,一般,*,*,*,*,疑い,ウタガイ,ウタガイ
記号,読点,*,*,*,*,、,、,、
東大 名詞,固有名詞,組織,*,*,*,東大,トウダイ,トーダイ
名詞,数,*,*,*,*,4,ヨン,ヨン
年生 名詞,接尾,助数詞,*,*,*,年生,ネンセイ,ネンセイ
助詞,連体化,*,*,*,*,の,ノ,ノ
名詞,一般,*,*,*,*,男,オトコ,オトコ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
逮捕 名詞,サ変接続,*,*,*,*,逮捕,タイホ,タイホ
  記号,空白,*,*,*,*, , , 
記号,括弧開,*,*,*,*,「,「,「
名詞,一般,*,*,*,*,胸,ムネ,ムネ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
触っ 動詞,自立,*,*,五段・ラ行,連用タ接続,触る,サワッ,サワッ
たり 助詞,並立助詞,*,*,*,*,たり,タリ,タリ
接頭詞,名詞接続,*,*,*,*,お,オ,オ
名詞,一般,*,*,*,*,尻,シリ,シリ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
触っ 動詞,自立,*,*,五段・ラ行,連用タ接続,触る,サワッ,サワッ
たり 助詞,並立助詞,*,*,*,*,たり,タリ,タリ
動詞,自立,*,*,サ変・スル,連用形,する,シ,シ
助詞,接続助詞,*,*,*,*,て,テ,テ
動詞,非自立,*,*,一段,連用形,いる,イ,イ
ませ 助動詞,*,*,*,特殊・マス,未然形,ます,マセ,マセ
助動詞,*,*,*,不変化型,基本形,ん,ン,ン
記号,括弧閉,*,*,*,*,」,」,」
助詞,格助詞,引用,*,*,*,と,ト,ト
容疑 名詞,一般,*,*,*,*,容疑,ヨウギ,ヨーギ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
否認 名詞,サ変接続,*,*,*,*,否認,ヒニン,ヒニン

Wednesday, May 11, 2016

Vadrum - Drum Intro Medley (50 Drum Intros in 5:50!)

Homebrew: Installing GNU Core Utilities

Command:

$ brew install coreutils

Bash: Setting LANG Environment Variable to Japanese

$ date
Wed May 11 19:03:22 JST 2016

$ gdate
Wed May 11 19:03:20 JST 2016

$ export LANG=ja_JP.UTF-8

$ echo $LANG
ja_JP.UTF-8

$ date
2016年 5月11日 水曜日 19時03分49秒 JST

$ gdate
水  5 11 19:03:48 JST 2016

Homebrew: Installing GNU Awk and GNU sed

Command:

$ brew install gawk gnu-sed

Installing Command Line Tools for Xcode

Command:

$ xcode-select --install

Installing Windows 10 on iMac using VirtualBox and play Dragon Quest X

Important note:


Downloading Windows 10 iso

https://www.microsoft.com/ja-jp/software-download/windows10ISO


Downloading VirtualBox for Mac

http://download.virtualbox.org/virtualbox/5.0.20/VirtualBox-5.0.20-106931-OSX.dmg


Installing VirtualBox Windows Addition

VirtualBox VM > Menus > Devices > Insert Guest Addition CD image...


Enabling 3D Acceleration

VirtualBox > Oracle VM VirtualBox Manager > Settings > Display > Acceleration > Enable 3D Acceleration


Enabling 2D Video Acceleration

VirtualBox > Oracle VM VirtualBox Manager > Settings > Display > Acceleration > Enable 2D Video Acceleration


Increasing Video Memory

VirtualBox > Oracle VM VirtualBox Manager > Settings > Display > Video Memory > 256 MB


Keywords:

  • iMac
  • VirtualBox
  • Windows 10
  • Dragon Quest X (ドラゴンクエストX 目覚めし五つの種族 オンライン)