CentOS8 configuration record

table of Contents

Input:

Modify the source:

system update:

Show Desktop file:

Installation docker:

Installation micro-channel:

Load bitlocker encrypted disk win7 under:

other:


Input:

 

yum -y install fcitx fcitx-pinyin fcitx-configtool

未找到匹配的参数: fcitx
未找到匹配的参数: fcitx-pinyin
未找到匹配的参数: fcitx-configtool
错误:没有任何匹配: fcitx fcitx-pinyin fcitx-configtool

https://blog.csdn.net/xinlongabc/article/details/102177117 

yum install ibus ibus-libpinyin
重启
最后在Settings -> Region & Language那里的Input Sources增加 汉语 (China) -> 汉语 (智能拼音)即可。
win+空格键切换输入法,shift切换中英文

 

Modify the source:

https://www.somata.work/2019/CentOS8yumdnfSourceConfig.html

https://www.cnblogs.com/hackyo/p/11650188.html

cd /etc/yum.repos.d/
rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo
curl -o CentOS-Base.repo https://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo
yum makecache
curl -o CentOS-Base.repo https://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
[root@cl8 yum.repos.d]# yum -y update nss
上次元数据过期检查:0:42:27 前,执行于 2020年01月27日 星期一 19时48分44秒。
模块依赖问题

 问题 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
 问题 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
依赖关系解决。
无需任何处理。
完毕!

Manually download the source files replace /etc/yum.repos.d/CentOS-Base.repo

then

dnf clean all    # 清除所有的缓存文件
dnf makecache    # 制作元数据缓存

And then update the look system problem seems solved.

 

 

system update:

[root@cl8 yum.repos.d]# yum update
上次元数据过期检查:0:49:40 前,执行于 2020年01月27日 星期一 19时48分44秒。
================================================================================
 软件包                 架构             版本              仓库            大小
================================================================================
升级:
 epel-release           noarch           8-8.el8           epel            22 k

事务概要
================================================================================
升级  1 软件包

总下载:22 k
确定吗?[y/N]: y
下载软件包:
epel-release-8-8.el8.noarch.rpm                 106 kB/s |  22 kB     00:00    
--------------------------------------------------------------------------------
总计                                             15 kB/s |  22 kB     00:01     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                                                 1/1
  运行脚本: epel-release-8-8.el8.noarch                                     1/1
  升级    : epel-release-8-8.el8.noarch                                     1/2
  清理    : epel-release-8-5.el8.noarch                                     2/2
  运行脚本: epel-release-8-5.el8.noarch                                     2/2
  验证    : epel-release-8-8.el8.noarch                                     1/2
  验证    : epel-release-8-5.el8.noarch                                     2/2

已升级:
  epel-release-8-8.el8.noarch                                                   

完毕!

 

Modify files in the user's home directory folder named Chinese English name:

https://blog.csdn.net/hjghhhhj/article/details/89742479

The graphical interface, the user's home directory [next],

Upper right corner of the window, select [Show hidden files], [find .config ] hidden folder, double-click.

Find [ user-dirs.dirs ] configuration file, open the text.

The Chinese into English, and the Chinese file in the home directory] [into the corresponding folder in English, save and reboot

 

 

Show Desktop file:

https://blog.csdn.net/yyws2039725/article/details/92422271

The above link, enter and open the gnome-tweaks in the command line, the inside extended fully open.

 

Installation docker:

https://blog.csdn.net/qq_25838777/article/details/80491923

https://www.runoob.com/docker/centos-docker-install.html

错误:
 问题: package docker-ce-3:19.03.5-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.el7.x86_64 is excluded
  - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)

[root@cl8 ~]# uname -r
4.18.0-147.3.1.el8_1.x86_64

The reason the installation failed containerd.io package version is too low,

https://www.cnblogs.com/360minitao/p/12186543.html

其他人说:内核是 3.10 无法正常运行 18.06.x 及以上版本的 docker,所以不这么安装

https://blog.csdn.net/horizon_zpy/article/details/88383263

[root@cl8 ~]# yum list docker-ce --showduplicates | sort -r
Extra Packages for Enterprise Linux Modular 8 - 7.7 kB/s | 9.0 kB     00:01    
Extra Packages for Enterprise Linux 8 - x86_64   14 kB/s |  10 kB     00:00    
docker-ce.x86_64            3:19.03.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.0-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.0-3.el7                     docker-ce-stable
docker-ce.x86_64            18.06.3.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.2.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.1.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.0.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            18.03.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.3.ce-1.el7                    docker-ce-stable
docker-ce.x86_64            17.03.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.0.ce-1.el7.centos             docker-ce-stable
Docker CE Stable - x86_64                        27 kB/s | 3.5 kB     00:00    
CentOS-8 - Extras                               6.2 kB/s | 1.5 kB     00:00    
CentOS-8 - Base                                 3.7 kB/s | 3.8 kB     00:01    
CentOS-8 - AppStream                             18 kB/s | 4.3 kB     00:00    
可安装的软件包
[root@cl8 ~]# yum install docker-ce-18.06.3.ce-3.el7
依赖关系解决。
================================================================================
 软件包         架构        版本                    仓库                   大小
================================================================================
安装:
 docker-ce      x86_64      18.06.3.ce-3.el7        docker-ce-stable       41 M
安装依赖关系:
 libcgroup      x86_64      0.41-19.el8             BaseOS                 70 k

事务概要
================================================================================
安装  2 软件包

总下载:41 M
安装大小:168 M
确定吗?[y/N]: y
下载软件包:
(1/2): libcgroup-0.41-19.el8.x86_64.rpm         166 kB/s |  70 kB     00:00    
(2/2): docker-ce-18.06.3.ce-3.el7.x86_64.rpm    2.3 MB/s |  41 MB     00:17    
--------------------------------------------------------------------------------
总计                                            2.4 MB/s |  41 MB     00:17     
运行事务检查
事务检查成功。
运行事务测试
下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 'dnf clean packages' 删除软件包缓存。
错误:事务检查错误:
  file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-18.06.3.ce-3.el7.x86_64 conflicts with file from package podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch
...


安装冲突,卸载podman-manpages应该就行了,不过我没有卸载而且进行了其他操作,后面才卸载的,粗心了。
yum remove podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch


[root@cl8 ~]# yum install docker-ce-cli-18.06.3.ce-3.el7
上次元数据过期检查:0:02:43 前,执行于 2020年01月28日 星期二 11时21分12秒。
未找到匹配的参数: docker-ce-cli-18.06.3.ce-3.el7
错误:没有任何匹配: docker-ce-cli-18.06.3.ce-3.el7
[root@cl8 ~]# yum list docker-ce-cli --showduplicates | sort -r
docker-ce-cli.x86_64              1:19.03.5-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:19.03.4-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:19.03.3-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:19.03.2-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:19.03.1-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:19.03.0-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.9-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.8-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.7-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.6-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.5-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.4-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.3-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.2-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.1-3.el7               docker-ce-stable
docker-ce-cli.x86_64              1:18.09.0-3.el7               docker-ce-stable

执行以下查到的方法:

# 卸载旧版本(如果安装过旧版本的话)
yum remove docker docker-common docker-selinux docker-engine docer-io

# 安装需要的软件包
# yum-util 提供 yum-config-manager 功能, 另外两个是 devicemapper 驱动依赖
yum install -y yum-utils device-mapper-persistent-data lvm2

# 设置 yum 源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

# 有人说测试发现,3.10 内核可以运行 18.03.1.ce
yum install -y docker-ce-18.03.1.ce
#马克没安装成功,还是和上面的冲突问题,启动服务不成功:
Failed to start docker.service: Unit docker.service not found.

找到另一个方法:

https://www.cnblogs.com/zbseoag/p/11736006.html

#先装新版的 containerd.io
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
 
#再装剩下两个
sudo yum install docker-ce docker-ce-cli
 
sudo systemctl start docker

docker --version
#Docker version 19.03.5, build 633a0ea

#开机自启
sudo systemctl enable docker
#Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.

 

安装微信:

https://blog.csdn.net/weixin_39465823/article/details/94866079

https://hub.docker.com/r/bestwu/wechat

https://www.cnblogs.com/kaichenkai/p/11509713.html

docker pull bestwu/wechat
xhost +
docker run -d --network=host --name wechat --device /dev/snd \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/WeChatFiles:/WeChatFiles \
    -e DISPLAY=unix$DISPLAY \
    -e XMODIFIERS=@im=fcitx \
    -e QT_IM_MODULE=fcitx \
    -e GTK_IM_MODULE=fcitx \
    -e AUDIO_GID=`getent group audio | cut -d: -f3` \
    -e GID=`id -g` \
    -e UID=`id -u` \
    bestwu/wechat

#如果没有 --network=host 参数,运行起来容器是没有网络的,没能显示二维码

停止所有容器
docker stop $(docker ps -a -q)
删除所有容器
docker rm $(docker ps -a -q)

在操作容器的过程中出现了两次死机重启!

 

加载win7下的bitlocker加密盘:

https://www.yclimw.com/linux-how-to-open-bitlocaker-an-encrypted-hard-disk/

https://github.com/Aorimn/dislocker

For RHEL-like (including CentOS Scientific Linux):

    yum install gcc cmake make fuse-devel mbedtls-devel ruby-devel /usr/bin/ruby

Alternatively, running yum install dislocker fuse-dislocker to use the already existing RPM packages in EPEL could be a clever idea.

If you are NOT on MacOSX...

If you already have installed the dependencies (see REQUIREMENTS section above), you have to type the following commands to install the binaries on your system:

git clone https://github.com/Aorimn/dislocker.git
cmake .
make
sudo make install

Don't forget the dot (.) on the cmake command-line. If you only want to generate the binaries, without installing them, you can skip the last command (the one beginning with sudo).
#用来挂载被解锁的文件块和硬盘上的文件
$sudo mkdir /media/windows
$sudo mkdir /media/mount/

#查看要解锁的卷
fdisk -l

使用dislocker命令解锁设备

$sudo dislocker -r -V /dev/sdb6 -p315442-000000-000000-000000-000000-000000-000000-000000 -- /media/windows
1

其中-r参数表示readonly,-V参数表示要解密的设备,-p参数后面带bitlocker的recover password,这里需要替换成自己的bitlocker恢复密钥,其他操作方法可运行man dislocker命令查询

 

 

其他:

yum install net-tools -y

ifconfig

发布了69 篇原创文章 · 获赞 31 · 访问量 8万+

Guess you like

Origin blog.csdn.net/yyws2039725/article/details/104095439