Monday, May 16, 2016

OS X: Terminal: Setting Locale for Remote Ubuntu Servers

Command:

user@remote:~$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

user@remote:~$ date
Mon May 16 12:19:05 JST 2016

user@remote:~$ export LANG=ja_JP.UTF-8
user@remote:~$ locale
LANG=ja_JP.UTF-8
LANGUAGE=
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

user@remote:~$ date
2016年  5月 16日 月曜日 12:19:52 JST

Ubuntu: Installing Japanese Language Pack

Command:

$ sudo apt-get install language-pack-ja language-pack-ja-base manpages

OS X: Terminal: Locale Error When Accessing Remote Linux Server

Error message:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory


Solution:

Terminal > Preferences... > Profiles > Basic > Advanced > International > Set locale environment variables on startup > UNCHECK


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