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
Monday, May 16, 2016
Ubuntu: Installing Japanese Language Pack
Command:
$ sudo apt-get install language-pack-ja language-pack-ja-base manpages
$ 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
-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:
Command to install:
- arp
- hostname
- ifconfig
- ipmaddr
- iptunnel
- mii-tool
- nameif
- netstat
- plipconfig
- rarp
- route
- 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)
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
http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso
ラベル:
CentOS
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
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
Friday, May 13, 2016
Parallels: Enabling Gamepad
Steps:
- Shutdown virtual machine
- Parallels Desktop Control Center > Configure.. > Hardware > Add Device > USB & Bluetooth
- Parallels Desktop Control Center > Configure.. > Hardware > Share Bluetooth devices with Windows
- 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:
Steps for Migrating Virtual Machine from VirtualBox to Parallels:
Convert HDD to VDI:
- 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:
- Open the virtual machine and shutdown properly.
- Clone virtual machine in Oracle VM VirtualBox Manager.
- Open the cloned virtual machine.
- Run Oracle VM VirtualBox Guest Additions 5.0.20 Uninstall.
- Shutdown the cloned virtual machine properly.
- 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
$ 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
$ 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
$ 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
Subscribe to:
Posts (Atom)