在 Chromebook 上使用 CentOS 8

按照在这里使用的方法安装 CentOS 8。
在Chromebook上使用Arch Linux。

安装

(termina) chronos@localhost ~ $ lxc launch images:centos/8/amd64 centos
Creating centos
Starting centos

确认情况

$ lxc list centos
+---------+---------+-----------------------+------+------------+-----------+
|  NAME   |  STATE  |         IPV4          | IPV6 |    TYPE    | SNAPSHOTS |
+---------+---------+-----------------------+------+------------+-----------+
| centos  | RUNNING | 100.115.92.206 (eth0) |      | PERSISTENT | 0         |
+---------+---------+-----------------------+------+------------+-----------+

设置 root 的密码

(termina) chronos@localhost ~ $ lxc exec centos bash
[root@centos ~]# passwd root
Changing password for user root.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@centos ~]# exit
exit
(termina) chronos@localhost ~ $ 

用root登录

(termina) chronos@localhost ~ $ lxc console centos
To detach from the console, press: <ctrl>+a q

CentOS Linux 8 (Core)
Kernel 4.19.79-07511-ge32b3719f26b on an x86_64

centos login: root
Password: 
[root@centos ~]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

[root@centos ~]# 

添加用户、添加群组、设置密码

[root@centos ~]# useradd -u 1200 -m -g wheel uchida
[root@centos ~]# groupadd -g 1200 uchida
[root@centos ~]# passwd uchida
Changing password for user uchida.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@centos ~]#
广告
将在 10 秒后关闭
bannerAds