Skip to content

CentOS - FAQ

使用 scim 输入法及输入法乱码解决

由于默认安装为IBUS输入法,想使用SCIM

yum install -y scim-table scim-table-chinese

scim-setup 可进行相关配置。

然而可以看到scim图标,但是却切换不出输入法。解决办法如下

依次点击 system->preferences->input method ,在弹出的对话框中在 Enable input method feature
前打上勾,然后选择 Use scim (没有安装scim,请安装好后再设置),再点 close ,重启系统,你就可看到开机自动启动了scim,并可以切换出相应的输入法。.

输入法乱码解决方法

在终端中敲入:

yum install fonts-chinese.noarch
yum install fonts-ISO8859-2.noarch

然后注销系统就可以了

ifconfig 命令在 CentOS 7 中不存在

原文地址: ifconfig command not found on CentOS 7

众所周知, CentOS 7 已经发布, 并且包含了很多心的功能, 在使用 centos 7 的时候我遇到了第一个挑战,
在我上一篇文章 finding the CentOS release version on CentOS 7,
同样也发现了网络的变化

几天后我使用 minimal installed CentOS 7 , 在 CentOS 6.x 发布的时候我习惯的使用命令 ifconfig , ifconfig
命令提供了我们服务器的网络信息. 在 CentOS 6.x
之前, ifconfig 命令默认是集成在系统中的. 但是在 CentOS 7 安装完成之后却没有发现这个命令. 这个会给你一个错误信息

ifconfig command not found.

在系统中使用 ifconfig 命令, 使用以下命令.

yum install net-tools

现在检查 ifconfig 命令和他的系统路径(使用 whichwhereis 命令)

ifconfig
ifconfig -a
which ifconfig
whereis ifconfig

我怎么知道我需要安装 net-tools包

使用 yum 命令 provideswhatprovides 选项会帮助你列出一系列的支持这个命令的包

一个 yum 的 man 页面是这样写的:

provides or whatprovides Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax
wildcards to list the packages available or
installed that provide that feature or file.

我们使用以下给定的命令来寻找那个包提供了 ifconfig 命令

yum provides ifconfig

以下便是输出(ps:自己试验的):

[root@rocky9]# yum provides php74
Last metadata expiration check: 0:06:27 ago on Wed 31 Jan 2024 08:18:33 AM CST.
php74-7.4-1.el9.remi.x86_64 : Package that installs PHP 7.4
Repo        : remi-safe
Matched from:
Provide    : php74 = 7.4-1.el9.remi

php74-7.4-3.el9.remi.x86_64 : Package that installs PHP 7.4
Repo        : remi-safe
Matched from:
Provide    : php74 = 7.4-3.el9.remi