CentOS 6.4 Install “setup”图形化工具


问题:新安装的CentOS 6.4系统执行setup 命令,提示命令找不到
12 [root@localhost ~]# setup
-bash: setup: command not found

解决方案:安装setup必要的软件包 setuptool
#安装setuptool
[root@localhost ~]# yum install setuptool
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: centos.ustc.edu.cn
base                                                                        | 3.7 kB    00:00
base/primary_db                                                              | 4.4 MB    00:17
extras                                                                      | 3.4 kB    00:00
extras/primary_db                                                            |  19 kB    00:00
updates                                                                      | 3.4 kB    00:00
updates/primary_db                                                                                                            | 2.1 MB    00:10
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package setuptool.x86_64 0:1.19.9-4.el6 will be installed
--> Processing Dependency: usermode for package: setuptool-1.19.9-4.el6.x86_64
--> Running transaction check
---> Package usermode.x86_64 0:1.102-3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package                            Arch                            Version                                  Repository                      Size
=====================================================================================================================================================
Installing:
setuptool                          x86_64                          1.19.9-4.el6                              base                            59 k
Installing for dependencies:
usermode                            x86_64                          1.102-3.el6                              base                          187 k
Transaction Summary
=====================================================================================================================================================
Install      2 Package(s)
Total download size: 245 k
Installed size: 918 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): setuptool-1.19.9-4.el6.x86_64.rpm                                                                                      |  59 kB    00:00
(2/2): usermode-1.102-3.el6.x86_64.rpm                                                                                        | 187 kB    00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                153 kB/s | 245 kB    00:01
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
From  : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : usermode-1.102-3.el6.x86_64                                                                                                      1/2
Installing : setuptool-1.19.9-4.el6.x86_64                                                                                                    2/2
Verifying  : setuptool-1.19.9-4.el6.x86_64                                                                                                    1/2
Verifying  : usermode-1.102-3.el6.x86_64                                                                                                      2/2
Installed:
setuptool.x86_64 0:1.19.9-4.el6
Dependency Installed:
usermode.x86_64 0:1.102-3.el6
Complete!
[root@localhost ~]#

#不难发现执行setup命令后,图形化管理界面命令不全!如下图

CentOS 6.4 Install "setup"图形化工具

#基于setuptool,我们在安装一个系统服务管理包ntsysv,如下图
[root@localhost ~]# yum install ntsysv
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntsysv.x86_64 0:1.3.49.3-2.el6_4.1 will be installed
--> Processing Dependency: chkconfig = 1.3.49.3-2.el6_4.1 for package: ntsysv-1.3.49.3-2.el6_4.1.x86_64
--> Running transaction check
---> Package chkconfig.x86_64 0:1.3.49.3-2.el6 will be updated
---> Package chkconfig.x86_64 0:1.3.49.3-2.el6_4.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package                            Arch                            Version                                      Repository                    Size
=====================================================================================================================================================
Installing:
ntsysv                            x86_64                          1.3.49.3-2.el6_4.1                          base                          29 k
Updating for dependencies:
chkconfig                          x86_64                          1.3.49.3-2.el6_4.1                          base                          159 k
Transaction Summary
=====================================================================================================================================================
Install      1 Package(s)
Upgrade      1 Package(s)
Total download size: 188 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): chkconfig-1.3.49.3-2.el6_4.1.x86_64.rpm                                                                                | 159 kB    00:00
(2/2): ntsysv-1.3.49.3-2.el6_4.1.x86_64.rpm                                                                                  |  29 kB    00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                201 kB/s | 188 kB    00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating  : chkconfig-1.3.49.3-2.el6_4.1.x86_64                                                                                              1/3
Installing : ntsysv-1.3.49.3-2.el6_4.1.x86_64                                                                                                  2/3
Cleanup    : chkconfig-1.3.49.3-2.el6.x86_64                                                                                                  3/3
Verifying  : ntsysv-1.3.49.3-2.el6_4.1.x86_64                                                                                                  1/3
Verifying  : chkconfig-1.3.49.3-2.el6_4.1.x86_64                                                                                              2/3
Verifying  : chkconfig-1.3.49.3-2.el6.x86_64                                                                                                  3/3
Installed:
ntsysv.x86_64 0:1.3.49.3-2.el6_4.1
Dependency Updated:
chkconfig.x86_64 0:1.3.49.3-2.el6_4.1
Complete!
[root@localhost ~]#

CentOS 6.4 Install "setup"图形化工具
#再安装个防火墙,以及setup中配套的防火墙设置、网络设置如下
[root@localhost ~]# yum install iptables
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package iptables.x86_64 0:1.4.7-9.el6 will be updated
--> Processing Dependency: iptables = 1.4.7-9.el6 for package: iptables-ipv6-1.4.7-9.el6.x86_64
---> Package iptables.x86_64 0:1.4.7-11.el6 will be an update
--> Running transaction check
---> Package iptables-ipv6.x86_64 0:1.4.7-9.el6 will be updated
---> Package iptables-ipv6.x86_64 0:1.4.7-11.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package                                Arch                            Version                                  Repository                    Size
=====================================================================================================================================================
Updating:
iptables                              x86_64                          1.4.7-11.el6                            base                          252 k
Updating for dependencies:
iptables-ipv6                          x86_64                          1.4.7-11.el6                            base                          97 k
Transaction Summary
=====================================================================================================================================================
Upgrade      2 Package(s)
Total download size: 349 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): iptables-1.4.7-11.el6.x86_64.rpm                                                                                      | 252 kB    00:00
(2/2): iptables-ipv6-1.4.7-11.el6.x86_64.rpm                                                                                  |  97 kB    00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                240 kB/s | 349 kB    00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating  : iptables-1.4.7-11.el6.x86_64                                                                                                      1/4
Updating  : iptables-ipv6-1.4.7-11.el6.x86_64                                                                                                2/4
Cleanup    : iptables-ipv6-1.4.7-9.el6.x86_64                                                                                                  3/4
Cleanup    : iptables-1.4.7-9.el6.x86_64                                                                                                      4/4
Verifying  : iptables-1.4.7-11.el6.x86_64                                                                                                      1/4
Verifying  : iptables-ipv6-1.4.7-11.el6.x86_64                                                                                                2/4
Verifying  : iptables-ipv6-1.4.7-9.el6.x86_64                                                                                                  3/4
Verifying  : iptables-1.4.7-9.el6.x86_64                                                                                                      4/4
Updated:
iptables.x86_64 0:1.4.7-11.el6
Dependency Updated:
iptables-ipv6.x86_64 0:1.4.7-11.el6
Complete!
[root@localhost ~]#

[root@localhost ~]# yum install system-config-securitylevel-tui
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package system-config-firewall-tui.noarch 0:1.2.27-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package                                          Arch                        Version                              Repository                  Size
=====================================================================================================================================================
Installing:
system-config-firewall-tui                      noarch                      1.2.27-5.el6                        base                        37 k
Transaction Summary
=====================================================================================================================================================
Install      1 Package(s)
Total download size: 37 k
Installed size: 59 k
Is this ok [y/N]: y
Downloading Packages:
system-config-firewall-tui-1.2.27-5.el6.noarch.rpm                                                                            |  37 kB    00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : system-config-firewall-tui-1.2.27-5.el6.noarch                                                                                    1/1
Verifying  : system-config-firewall-tui-1.2.27-5.el6.noarch                                                                                    1/1
Installed:
system-config-firewall-tui.noarch 0:1.2.27-5.el6
Complete!
[root@localhost ~]#

CentOS 6.4 Install "setup"图形化工具
#安装setup中配套的网络设置
[root@localhost ~]# yum install system-config-network-tui
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package system-config-network-tui.noarch 0:1.6.0.el6.2-1.el6 will be installed
--> Processing Dependency: python-iwlib for package: system-config-network-tui-1.6.0.el6.2-1.el6.noarch
--> Processing Dependency: python-ethtool for package: system-config-network-tui-1.6.0.el6.2-1.el6.noarch
--> Processing Dependency: pciutils for package: system-config-network-tui-1.6.0.el6.2-1.el6.noarch
--> Processing Dependency: dbus-python for package: system-config-network-tui-1.6.0.el6.2-1.el6.noarch
--> Running transaction check
---> Package dbus-python.x86_64 0:0.83.0-6.1.el6 will be installed
---> Package pciutils.x86_64 0:3.1.10-2.el6 will be installed
---> Package python-ethtool.x86_64 0:0.6-5.el6 will be installed
--> Processing Dependency: libnl.so.1()(64bit) for package: python-ethtool-0.6-5.el6.x86_64
---> Package python-iwlib.x86_64 0:0.1-1.2.el6 will be installed
--> Processing Dependency: wireless-tools >= 28-0.pre8.5 for package: python-iwlib-0.1-1.2.el6.x86_64
--> Processing Dependency: libiw.so.29()(64bit) for package: python-iwlib-0.1-1.2.el6.x86_64
--> Running transaction check
---> Package libnl.x86_64 0:1.1.4-2.el6 will be installed
---> Package wireless-tools.x86_64 1:29-5.1.1.el6 will be installed
--> Processing Dependency: crda for package: 1:wireless-tools-29-5.1.1.el6.x86_64
--> Running transaction check
---> Package crda.x86_64 0:1.1.1_2010.11.22-1.el6 will be installed
--> Processing Dependency: iw for package: crda-1.1.1_2010.11.22-1.el6.x86_64
--> Running transaction check
---> Package iw.x86_64 0:3.10-1.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================
Package                                      Arch                      Version                                    Repository                Size
=====================================================================================================================================================
Installing:
system-config-network-tui                    noarch                    1.6.0.el6.2-1.el6                          base                    1.2 M
Installing for dependencies:
crda                                          x86_64                    1.1.1_2010.11.22-1.el6                      base                      23 k
dbus-python                                  x86_64                    0.83.0-6.1.el6                              base                    204 k
iw                                            x86_64                    3.10-1.1.el6                                base                      55 k
libnl                                        x86_64                    1.1.4-2.el6                                base                    121 k
pciutils                                      x86_64                    3.1.10-2.el6                                base                      85 k
python-ethtool                                x86_64                    0.6-5.el6                                  base                      31 k
python-iwlib                                  x86_64                    0.1-1.2.el6                                base                      14 k
wireless-tools                                x86_64                    1:29-5.1.1.el6                              base                      94 k
Transaction Summary
=====================================================================================================================================================
Install      9 Package(s)
Total download size: 1.8 M
Installed size: 6.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): crda-1.1.1_2010.11.22-1.el6.x86_64.rpm                                                                                |  23 kB    00:00
(2/9): dbus-python-0.83.0-6.1.el6.x86_64.rpm                                                                                  | 204 kB    00:00
(3/9): iw-3.10-1.1.el6.x86_64.rpm                                                                                            |  55 kB    00:00
(4/9): libnl-1.1.4-2.el6.x86_64.rpm                                                                                          | 121 kB    00:00
(5/9): pciutils-3.1.10-2.el6.x86_64.rpm                                                                                      |  85 kB    00:00
(6/9): python-ethtool-0.6-5.el6.x86_64.rpm                                                                                    |  31 kB    00:00
(7/9): python-iwlib-0.1-1.2.el6.x86_64.rpm                                                                                    |  14 kB    00:00
(8/9): system-config-network-tui-1.6.0.el6.2-1.el6.noarch.rpm                                                                | 1.2 MB    00:04
(9/9): wireless-tools-29-5.1.1.el6.x86_64.rpm                                                                                |  94 kB    00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                245 kB/s | 1.8 MB    00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libnl-1.1.4-2.el6.x86_64                                                                                                          1/9
Installing : iw-3.10-1.1.el6.x86_64                                                                                                            2/9
Installing : crda-1.1.1_2010.11.22-1.el6.x86_64                                                                                                3/9
Installing : 1:wireless-tools-29-5.1.1.el6.x86_64                                                                                              4/9
Installing : python-iwlib-0.1-1.2.el6.x86_64                                                                                                  5/9
Installing : python-ethtool-0.6-5.el6.x86_64                                                                                                  6/9
Installing : dbus-python-0.83.0-6.1.el6.x86_64                                                                                                7/9
Installing : pciutils-3.1.10-2.el6.x86_64                                                                                                      8/9
Installing : system-config-network-tui-1.6.0.el6.2-1.el6.noarch                                                                                9/9
Verifying  : 1:wireless-tools-29-5.1.1.el6.x86_64                                                                                              1/9
Verifying  : libnl-1.1.4-2.el6.x86_64                                                                                                          2/9
Verifying  : python-iwlib-0.1-1.2.el6.x86_64                                                                                                  3/9
Verifying  : system-config-network-tui-1.6.0.el6.2-1.el6.noarch                                                                                4/9
Verifying  : crda-1.1.1_2010.11.22-1.el6.x86_64                                                                                                5/9
Verifying  : pciutils-3.1.10-2.el6.x86_64                                                                                                      6/9
Verifying  : dbus-python-0.83.0-6.1.el6.x86_64                                                                                                7/9
Verifying  : iw-3.10-1.1.el6.x86_64                                                                                                            8/9
Verifying  : python-ethtool-0.6-5.el6.x86_64                                                                                                  9/9
Installed:
system-config-network-tui.noarch 0:1.6.0.el6.2-1.el6
Dependency Installed:
crda.x86_64 0:1.1.1_2010.11.22-1.el6  dbus-python.x86_64 0:0.83.0-6.1.el6  iw.x86_64 0:3.10-1.1.el6          libnl.x86_64 0:1.1.4-2.el6
pciutils.x86_64 0:3.1.10-2.el6        python-ethtool.x86_64 0:0.6-5.el6    python-iwlib.x86_64 0:0.1-1.2.el6  wireless-tools.x86_64 1:29-5.1.1.el6
Complete!
[root@localhost ~]#

CentOS 6.4 Install "setup"图形化工具

相关内容