Monday, May 16, 2016

CentOS: Installing net-tools

List of programs in net-tools package:
  1. arp
  2. hostname
  3. ifconfig
  4. ipmaddr
  5. iptunnel
  6. mii-tool
  7. nameif
  8. netstat
  9. plipconfig
  10. rarp
  11. route
  12. slattach

Command to install:

$ sudo yum install net-tools

Sunday, May 15, 2016

VirtualBox: Setting Network: Bridging

Oracle VM VirtualBox Manager > Settings > Network > Adapter 1 > Attached to: > Bridged Adapter

Oracle VM VirtualBox Manager > Settings > Network > Adapter 1 > Name: > en1: Wi-Fi (AirPort)

CentOS: Downloading CentOS 7 Minimal iso

Link:

http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso

Ubuntu: Downloading Ubuntu iso

Downloading Ubuntu desktop iso:

http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso


Downloading Ubuntu server iso:

http://releases.ubuntu.com/16.04/ubuntu-16.04-server-amd64.iso

Rob Zombie: Dragula

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,ヨン,ヨン
年生 名詞,接尾,助数詞,*,*,*,年生,ネンセイ,ネンセイ
助詞,連体化,*,*,*,*,の,ノ,ノ
名詞,一般,*,*,*,*,男,オトコ,オトコ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
逮捕 名詞,サ変接続,*,*,*,*,逮捕,タイホ,タイホ
  記号,空白,*,*,*,*, , , 
記号,括弧開,*,*,*,*,「,「,「
名詞,一般,*,*,*,*,胸,ムネ,ムネ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
触っ 動詞,自立,*,*,五段・ラ行,連用タ接続,触る,サワッ,サワッ
たり 助詞,並立助詞,*,*,*,*,たり,タリ,タリ
接頭詞,名詞接続,*,*,*,*,お,オ,オ
名詞,一般,*,*,*,*,尻,シリ,シリ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
触っ 動詞,自立,*,*,五段・ラ行,連用タ接続,触る,サワッ,サワッ
たり 助詞,並立助詞,*,*,*,*,たり,タリ,タリ
動詞,自立,*,*,サ変・スル,連用形,する,シ,シ
助詞,接続助詞,*,*,*,*,て,テ,テ
動詞,非自立,*,*,一段,連用形,いる,イ,イ
ませ 助動詞,*,*,*,特殊・マス,未然形,ます,マセ,マセ
助動詞,*,*,*,不変化型,基本形,ん,ン,ン
記号,括弧閉,*,*,*,*,」,」,」
助詞,格助詞,引用,*,*,*,と,ト,ト
容疑 名詞,一般,*,*,*,*,容疑,ヨウギ,ヨーギ
助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
否認 名詞,サ変接続,*,*,*,*,否認,ヒニン,ヒニン