Ubuntu20.04インストール(MATE)
20.04.1が出てきたので、そろそろインストールすることにした。
18.04で安定稼働しているけど、後学のために入れ直し
1 インストールディスク作成
とりあえず、稼働中のubuntu18.04を利用して、作成
今回は、USBインストールディスクを作成
2 インストール
インストールは、特に何事もなく終了
3 設定
・IPアドレスの設定
固定しているので、設定
・言語のアップデート
不完全だと出ているので、言語のアップデート
・アップデート
とりあえず、アップデートしておく
$ sudo apt update $ sudo apt upgrade |
・日本語化
Ubuntuの日本語環境のとおりに実行
#GPG鍵とリポジトリの追加
$ wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add – #パッケージのアップグレード #日本語Remix版に追加されているパッケージのインストール |
・コーデック類のインストール
$ sudo apt install ubuntu-restricted-extras
$ sudo apt install gstreamer1.0-plugins-bad |
・Syergyのインストール(有料)
WindowsとUbuntuでキーボードとマウスを共有するので、インストール
本家のサイトから19.04版をダウンロードしてインストール
所で、Synergy1を有料購入して使用していますが、2も購入したのに
不具合が多くて、Beta版に戻ってしまってます。
メジャーアップデートは 2022 ~ 2023 年になる予定で 現在は Synergy 1 のみ購入可能です。
自動起動の設定1
$ sudo pluma /etc/lightdm/lightdm.conf |
greeter-setup-script=/usr/bin/synergy #最終行に追記 |
自動起動の設定2
設定 → 自動起動するアプリ
コマンドは /usr/bin/synergy
再起動すると、サーバーを指定する画面が出てくるので、指定
ホスト名で駄目な場合は、IPアドレス直指定でOK
・時刻同期設定
18.04から、systemdを使っているので、同じように設定
確認
● systemd-timesyncd.service – Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2020-08-16 17:37:08 JST; 12min ago Docs: man:systemd-timesyncd.service(8) Main PID: 865 (systemd-timesyn) Status: “Initial synchronization to time server 91.189.89.198:123 (ntp.ubuntu.com).” Tasks: 2 (limit: 19015) Memory: 1.8M CGroup: /system.slice/systemd-timesyncd.service └─865 /lib/systemd/systemd-timesyncd8月 16 17:37:08 hogehoge systemd[1]: Starting Network Time Synchronization… 8月 16 17:37:08 hogehoge systemd[1]: Started Network Time Synchronization. 8月 16 17:37:38 hogehoge systemd-timesyncd[865]: Initial synchronization to time server 91.189.89.198:123 (ntp.ubuntu.com). |
ntp.ubuntu.comがデフォルトなので、変更する
$ sudo pluma /etc/systemd/timesyncd.conf |
# This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as drafted by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details.[Time] #NTP= #FallbackNTP=ntp.ubuntu.com #RootDistanceMaxSec=5 #PollIntervalMinSec=32 #PollIntervalMaxSec=2048 |
下記のように変更
[Time] NTP=ntp.jst.mfeed.ad.jp |
再起動して確認
$ sudo systemctl restart systemd-timesyncd.service
$ sudo systemctl -l status systemd-timesyncd |
● systemd-timesyncd.service – Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2020-08-16 17:53:46 JST; 16s ago Docs: man:systemd-timesyncd.service(8) Main PID: 2356 (systemd-timesyn) Status: “Initial synchronization to time server 210.173.160.87:123 (ntp.jst.mfeed.ad.jp).” Tasks: 2 (limit: 19015) Memory: 1.6M CGroup: /system.slice/systemd-timesyncd.service └─2356 /lib/systemd/systemd-timesyncd8月 16 17:53:46 hogehoge systemd[1]: Starting Network Time Synchronization… 8月 16 17:53:46 hogehoge systemd[1]: Started Network Time Synchronization. 8月 16 17:53:46 hogehoge systemd-timesyncd[2356]: Initial synchronization to time server 210.173.160.87:123 (ntp.jst.mfeed.ad.jp). |
設定したサーバに代わっていればOK
時刻同期が動いているかどうかは、下記でも確認できる
$ timedatectl |
Local time: 日 2020-08-16 17:54:44 JST Universal time: 日 2020-08-16 08:54:44 UTC RTC time: 日 2020-08-16 08:54:44 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes NTP service: active RTC in local TZ: no |
・デスクトップにゴミ箱やコンピュータを表示させる
設定 → MATE Tweek
デスクトップを選択して、表示したいアイコンにチェックを入れればOK