Tuesday, May 17, 2016
Sysstat: Status
$ sudo service sysstat status
● sysstat.service - LSB: Start/stop sysstat's sadc
Loaded: loaded (/etc/init.d/sysstat; bad; vendor preset: enabled)
Active: active (exited) since 月 2016-05-16 23:43:06 JST; 17h ago
Docs: man:systemd-sysv-generator(8)
Process: 396 ExecStart=/etc/init.d/sysstat start (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 512)
5月 16 23:43:06 remote systemd[1]: Starting LSB: Start/stop sysstat's sadc...
5月 16 23:43:06 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:02:47 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:03:28 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:04:01 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
● sysstat.service - LSB: Start/stop sysstat's sadc
Loaded: loaded (/etc/init.d/sysstat; bad; vendor preset: enabled)
Active: active (exited) since 月 2016-05-16 23:43:06 JST; 17h ago
Docs: man:systemd-sysv-generator(8)
Process: 396 ExecStart=/etc/init.d/sysstat start (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 512)
5月 16 23:43:06 remote systemd[1]: Starting LSB: Start/stop sysstat's sadc...
5月 16 23:43:06 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:02:47 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:03:28 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
5月 17 00:04:01 remote systemd[1]: Started LSB: Start/stop sysstat's sadc.
ラベル:
Sysstat
Monday, May 16, 2016
Ubuntu: Install, Configure, and Run Sysstat
Installation:
$ sudo apt-get install sysstat
Configuration:
$ cat /etc/default/sysstat
#
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
# and /etc/cron.daily/sysstat files
#
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
Execution:
$ sudo service sysstat start
$ sudo apt-get install sysstat
Configuration:
$ cat /etc/default/sysstat
#
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
# and /etc/cron.daily/sysstat files
#
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
Execution:
$ sudo service sysstat start
iconv (International Codeset Conversion Library): Converting Shift-JIS to UTF-8
Command:
$ curl -vs http://www.tokyo-np.co.jp 2>&1 | iconv -f SJIS -t UTF8 | less
$ curl -vs http://www.tokyo-np.co.jp 2>&1 | iconv -f SJIS -t UTF8 | less
Ubuntu: Setting System Locale
Command:
$ localectl set-locale LANG=ja_JP.UTF-8
$ localectl
System Locale: LANG=ja_JP.UTF-8
$ localectl set-locale LANG=ja_JP.UTF-8
$ localectl
System Locale: LANG=ja_JP.UTF-8
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
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
$ 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
Subscribe to:
Posts (Atom)