Ubuntuを触りたかった
今日の復習
Ubuntuを触りたかったが細かいところでつまづいたのでメモ。
macからVMWare Fusion8の上にUbuntu18を立てる設定で。
私CentOSばかり触ってます。
英数キーがCapsLock化される
http://www.baru-san.net/archives/317
ssh接続
$ sudo apt-get install openssh-server
ntpの設定
まず、MACとの時刻同期がされていなくて9時間ずれていた。
ここも自分でやるのね...
まずNTPサーバの設定から。NTPサーバは以下から選ぶこと
NTP/推奨公開サーバ - wiki@nothing
$ sudo vi /etc/systemd/timesyncd.conf NTP=ntp.jst.mfeed.ad.jp
timedatectlコマンドでもタイムゾーンの設定をしておく
root@ubuntu:~# timedatectl set-timezone Asia/Tokyo root@ubuntu:~# timedatectl set-time "2018-07-15 16:23:10" Failed to set time: Automatic time synchronization is enabled root@ubuntu:~# timedatectl Local time: 日 2018-07-15 16:23:21 JST Universal time: 日 2018-07-15 07:23:21 UTC RTC time: 日 2018-07-15 07:23:21 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no root@ubuntu:~# sudo hwclock 2018-07-15 16:23:37.461426+0900 root@ubuntu:~# timedatectl Local time: 日 2018-07-15 16:23:42 JST Universal time: 日 2018-07-15 07:23:42 UTC RTC time: 日 2018-07-15 07:23:42 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no root@ubuntu:~# date 2018年 7月 15日 日曜日 16:24:01 JST