CentOS8のインストール

# CentOS8　インストール画面


1. Install CenOS Linuxを選ぶ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/7810008c-a341-f892-ca83-14498d21622d.png)


2. 言語を選んで続行
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/27cd2e10-0150-ea2e-468e-92fbdbc5e942.png)


3. インストール内容を設定する
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/3432d1a9-4b29-75da-8c5a-cf8099e2528e.png)

インストール先
ここで、カスタムを押すとパーティション構成が変更できる
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/517d0683-6f10-b8d5-7a88-4fe77004f66d.png)

ネットワークとホスト名
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/d68dc805-b34c-b821-b2b1-20049dfd1c06.png)

日付と時間
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/7db0ee88-52e5-1c2a-19cf-f3b27fd2d8df.png)



4. 各種設定をしたらインストールの開始
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/4689ac51-e2ae-611d-ab0e-796698e8247f.png)


5. rootパスワードを設定
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/908e2489-41bf-4a55-e3f4-122bf83b1efe.png)

簡単だったら下の方に警告が出るが、完了ボタンを2回押すことで設定できる
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/96b495ce-7d9c-c27d-2054-79cdbbe3fb94.png)




6. 再起動
 ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/d0b36379-9894-12d1-8f09-423634d8d668.png)

7. ライセンス同意
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/c6921625-6cfe-d511-98c1-4001c996468e.png)

8. チェックして完了
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/5a9c050f-2c70-fb17-f860-64d0676d9e13.png)

9. 設定の完了
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/99383d5c-a0e1-9cb7-d86f-a25ffb5e4782.png)

10. 次へ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/2ac4ffdf-66a1-bf72-52eb-39516bf49274.png)

11. OFF！なんかWindows10っぽくなったなぁ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/6979aea5-59c4-76b5-2037-85204a735880.png)



12. スキップ
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/e052d768-3779-95bb-bbd8-cf8e7729f9c5.png)

13. 一般ユーザー作成（フルネームとユーザー名入れないと面倒）
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/dc2de652-8709-185e-358c-b00404c56a17.png)


14. パスワード設定
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/dab5378f-5793-a919-46de-7ac43cb73b11.png)


15. おわり
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/315938/cb74cf8a-293f-b07c-90a0-666e9b606667.png)



### ちなみに作成したユーザはこんな感じに作られるよ

```
[root@Cent8 user]# cat /etc/passwd
～～省略～～
user:x:1000:1000:user name:/home/user:/bin/bash
[root@Cent8 user]#
[root@Cent8 user]# cat /etc/group
～～省略～～
user:x:1000:
[root@Cent8 user]#
[root@Cent8 user]#
[root@Cent8 user]#
```

###ディスク構成

```

[root@Cent8 user]# df -h
ファイルシス        サイズ  使用  残り 使用% マウント位置
devtmpfs              900M     0  900M    0% /dev
tmpfs                 915M     0  915M    0% /dev/shm
tmpfs                 915M   19M  897M    2% /run
tmpfs                 915M     0  915M    0% /sys/fs/cgroup
/dev/mapper/cl-root    14G  4.2G  9.3G   31% /
/dev/sda1             976M  133M  777M   15% /boot
tmpfs                 183M  3.5M  180M    2% /run/user/1000
tmpfs                 183M   32K  183M    1% /run/user/42
[root@Cent8 user]#
```
```
[root@Cent8 user]# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    0   16G  0 disk
tqsda1        8:1    0    1G  0 part /boot
mqsda2        8:2    0   15G  0 part
  tqcl-root 253:0    0 13.4G  0 lvm  /
  mqcl-swap 253:1    0  1.6G  0 lvm  [SWAP]
[root@Cent8 user]#
```
```
[root@Cent8 user]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Oct 15 08:58:49 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/cl-root     /                       xfs     defaults        0 0
UUID=6cb3be7b-f47e-465b-96b6-8d31e6c94f78 /boot                   ext4    defaults        1 2
/dev/mapper/cl-swap     swap                    swap    defaults        0 0
[root@Cent8 user]#
```