Ubuntu18.04インストール(MATE)
ちょっと忙しくて、やってなかったのだが、
少し時間ができたので、Ubuntu18.04をクリーンインストールしてみた
使用環境は、MATEです
1 インストール前
- 起動ディスク作成
今回もUSBで作成。 普通に起動中のUbuntuで作成。
2 インストール
- 特にトラブルもなく終了したので、指示通りに再起動
3 設 定
- IPアドレスの設定
DHCPは許可していないので、設定した
- アップデート
とりあえず、アップデートをかける。
- 日本語化
Ubuntuの日本語環境 のとおりに実施
1.GPG鍵とレポジトリを追加
$ wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add – $ wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add – $ sudo wget https://www.ubuntulinux.jp/sources.list.d/bionic.list -O /etc/apt/sources.list.d/ubuntu-ja.list $ sudo apt update |
2.パッケージをアップグレード
$ sudo apt-get upgrade |
3.言語サポートのインストール
メニュー → 設定 → 言語サポートを開いて日本語を追加
4.日本語パッケージのインストール
$ sudo apt-get install ubuntu-defaults-ja |
- コーデックのインストール
$ sudo apt install ubuntu-restricted-extras |
- synergyのインストール
本家のサイトからパッケージをインストールすると上手くインストールされなかったので
google先生に聞いたら、ubuntuをダウンロードする際に、Debian版がダウンロードされる
と言われた。 見てみたら、確かにw
ダウンロード先をdebian版からubuntu版にURL直で変更したらダウンロードできた
インストールできたら、一度起動して、クラインアントとして設定
自動起動の設定
$ sudo pluma /etc/lightdm/lightdm.conf |
greeter-setup-script=/usr/bin/synergy #最終行に追記 |
自動起動するアプリ
設定 → 自動起動するアプリ
こちらも、以前と違って、コマンドは、/usr/bin/synergy だけで良い
どちらも、設定方法が以前と変わってたので注意
- 時刻同期の設定
ntpdateを使わずにSystemdの機能を使って時刻の同期を行っているらしいので、設定
$ sudo systemctl -l status systemd-timesyncd |
systemd-timesyncd.service – Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendo Active: active (running) since Sat 2018-09-22 14:43:21 JST; 2h 58min ago Docs: man:systemd-timesyncd.service(8) Main PID: 811 (systemd-timesyn) Status: “Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com).” Tasks: 2 (limit: 4915) CGroup: /system.slice/systemd-timesyncd.service └─811 /lib/systemd/systemd-timesyncd9月 22 14:43:51 ○○○○ systemd-timesyncd[811]: Synchronized to time server |
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= |
を
[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; vendo Active: active (running) since Sat 2018-09-22 17:46:55 JST; 20s ago Docs: man:systemd-timesyncd.service(8) Main PID: 2120 (systemd-timesyn) Status: “Synchronized to time server 210.173.160.27:123 (ntp.jst.mfeed.ad.jp) Tasks: 2 (limit: 4915) CGroup: /system.slice/systemd-timesyncd.service └─2120 /lib/systemd/systemd-timesyncd9月 22 17:46:55 ○○○○ systemd-timesyncd[2120]: Synchronized to time server |
サーバが変わっていればOK
起動しているかだけなら、下記の要領でも確認できる
$ timedatectl |
Local time: 土 2018-09-22 17:48:29 JST Universal time: 土 2018-09-22 08:48:29 UTC RTC time: 土 2018-09-22 08:48:29 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no |
- デスクトップにゴミ箱やコンピュータを表示させる
設定 → MATE Tweak
デスクトップを選択すると、表示するアイコンを選択できるので、チェックを入れる
- JAVA
とりあえず、JAVA8を入れておく
$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt update $ sudo apt install oracle-java8-installer |
とりあえず、初期設定でやったのはこんな所