0% found this document useful (0 votes)
69 views8 pages

Questions About Centos 6: Search

The document provides answers to frequently asked questions about CentOS 6. It explains that the network installation image is now called netinstall.iso. By default, Ethernet interfaces are not enabled and can be configured using NetworkManager. It also provides examples of manually editing configuration files to set up networking without NetworkManager. The document notes that CentOS 6 will not install on i686 CPUs and provides instructions for disabling IPv6. It clarifies that errors importing GPG keys can be ignored. It states that KVM is only supported on 64-bit systems. Finally, it lists the software groups included in each installation option.

Uploaded by

lga_scribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views8 pages

Questions About Centos 6: Search

The document provides answers to frequently asked questions about CentOS 6. It explains that the network installation image is now called netinstall.iso. By default, Ethernet interfaces are not enabled and can be configured using NetworkManager. It also provides examples of manually editing configuration files to set up networking without NetworkManager. The document notes that CentOS 6 will not install on i686 CPUs and provides instructions for disabling IPv6. It clarifies that errors importing GPG keys can be ignored. It states that KVM is only supported on 64-bit systems. Finally, it lists the software groups included in each installation option.

Uploaded by

lga_scribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

Search

Text

Titles

Questions about CentOS 6


Contents 1. I used to use the boot.iso image to do network installations. Where has it gone ? 2. Why does my Ethernet not work unless I log in and explicitly enable it? 3. But, I just want it to work and to hand-edit the conguration les 4. Why does CentOS-6 refuse to install on my i686 CPU? 5. How do I disable IPv6? 6. Why do I get an error importing a GPG key for a repository? 7. Why can't I install KVM on my 32-bit CentOS? 8. What groups are included in each option at install time? 9. How can I use two monitors on my system? Do I need proprietary drivers?

1. I used to use the boot.iso image to do network installations. Where has it gone ?
Starting with this release, upstream decided to remove boot.iso from the images/ directory and ship it as a separate, stand alone media. Due to the large size of this image, we have decided to do the same. The network installation disk image is named netinstall.iso and can now be found only in the isos/ directory, together with all other installation images.

2. Why does my Ethernet not work unless I log in and explicitly enable it?

1 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

.. and why are the interface names all "messed up" compared to prior practice? This violates the Unix rule of "not breaking expectations". Upstream has changed the default conguration to use NetworkManager and interfaces are (somewhat inexplicably in the case of Ethernet) not enabled by default. This can be worked around at install time where, after the installer asks for your language and keyboard and Basic or other storage devices, it runs "Examining Devices" then it presents a screen "Please name this computer..." On this screen is a button labeled "Congure Networking". Clicking that button will launch NetworkManager. Select the Ethernet connection which is probably listed as "System eth0" and edit the settings. If you select the check box by "Connect Automatically" networking will start on boot in the future. You can also make this change with NetworkManager (System; Preferences; Network Connections or right click on the little network icon in the notication area and Edit Connections...) after the installation is complete. If you are not using NetworkManager, the same result can be obtained by editing the conguration le for the network interface ( normally /etc/sysconfig/network-scripts/ifcfg-eth0 ) and changing: ONBOOT=no to ONBOOT=yes Some setups seem to also require the addition of a line: BOOTPROTO=dhcp where a DHCP setup is in play; Static IP setups would take: BOOTPROTO=static of course The ONBOOT edit may be performed (as root) and assuming the relevant device is eth0:
# cd /etc/sysconfig/network-scripts/ # sed -i -e 's@^ONBOOT="no@ONBOOT="yes@' ifcfg-eth0

As to "breaking expectations": The foregoing example uses a 'traditionally' named network device of: eth0 Other device names are also possible, including for example: em1 or p3p1 and such. Like it or not, this change in approach in interface naming is the future path for Linux. It was previewed in in the upstream's "testing distribution". See also the materials at: Dell's writeup and a blog post from an insider there.

3. But, I just want it to work and to hand-edit the conguration les


Many installations do not require the complexity of the NetworkManager tool, and use hand-edited conguration les instead. Here is a sample non NetworkManager DHCP interface conguration:
[root@example ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO=dhcp

2 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki NM_CONTROLLED="no" PERSISTENT_DHCLIENT=1 ONBOOT="yes" TYPE=Ethernet DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME="eth0" [root@none ~]#

http://wiki.centos.org/FAQ/CentOS6

and a sample 'static assignment' conguration le:


[username@hostname]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="00:21:70:10:7E:CD" NM_CONTROLLED="no" ONBOOT="yes" BOOTPROTO=static # BOOTPROTO=dhcp IPADDR=10.16.1.106 NETMASK=255.255.255.0 # # the GATEWAY is sometimes in: /etc/sysconfig/network GATEWAY=10.16.1.1

and then common items such as hostname and DNS servers may optionally be placed in:
[username@hostname]$ cat /etc/sysconfig/network HOSTNAME=acme.example.com DNS1=10.16.1.112 DNS2=8.8.8.8 ## DNS2=76.242.0.28 SEARCH=example.com

The information there is 'optional' because a DHCP server can hand out these values. The initscripts are able to gure out hostname and so forth when a well-populated DNS environment exists, from PTR records and such, but some users need to manage such details manually. For more information, the full initscripts documentation les may be listed thus:
rpm -qd initscripts

even in a environment lacking the man manual reading package and its

3 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

dependencies.

4. Why does CentOS-6 refuse to install on my i686 CPU?


Upstream has made the decision not to support non-PAE capable CPUs. If your CPU does not support PAE then when running the installer you will see the error: This kernel requires the following features present on the CPU pae cx8 You can still install CentOS-5 but will not be able to run CentOS-6.

5. How do I disable IPv6?


Upstream employee Daniel Walsh recommends not disabling the ipv6 module, as that can cause issues with SELinux and other components, but adding the following to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1

To disable in the running system:


echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6

or
sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1

Additional note #1: If problems with X forwarding are encountered on systems with IPv6 disabled, edit /etc/ssh/sshd_cong and make either of the following changes: (1) Change the line
#AddressFamily any

to

4 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

AddressFamily inet

(inet is ipv4 only; inet6 is ipv6 only) or (2) Remove the hash mark (#) in front of the line
#ListenAddress 0.0.0.0

Then restart ssh. Additional note #2: If problems with starting postx are encountered on systems with IPv6 disabled, either (1) edit /etc/postx/main.cf and comment out the localhost part of the cong and use ipv4 loopback.
#inet_interfaces = localhost inet_interfaces = 127.0.0.1

or (2) take out the ipv6 localhost from /etc/hosts . Additional Note #3 : To disable RPCBIND ipv6 (rpcbind, rpc.mountd, prc.statd) remark out the udp6 and tcp6 lines in /etc/netcong:
udp tcp #udp6 #tcp6 rawip local unix tpi_clts tpi_cots_ord tpi_clts tpi_cots_ord tpi_raw tpi_cots_ord tpi_cots_ord v v v v inet udp inet tcp inet6 udp inet6 tcp inet loopback loopback -

6. Why do I get an error importing a GPG key for a repository?


Many instructions for conguring 3rd party repositories include importing a GPG key with rpm --import .... If you get an error message like the following:
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.

it can be ignored as the key has already been imported. You can conrm

5 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

this by running the following command:


rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} \n %{SUMMARY} \n" gpg-pubkey

7. Why can't I install KVM on my 32-bit CentOS?


Upstream only provides KVM support on 64-bit (x86_64) so CentOS support is the same. You must do a 64-bit install to use KVM.

8. What groups are included in each option at install time?


Based on /usr/lib/anaconda/installclasses/rhel.py from images/install.img the following options are available: Desktop: base, core, debugging, directory-client, java-platform, networkle-system-client, server-platform, fonts, print-client, basic-desktop, desktop-debugging, desktop-platform, general-desktop, graphical-admintools, input-methods, legacy-x, x11, internet-applications, internet-browser, oce-suite, remote-desktop-clients Minimal Desktop: base, core, debugging, directory-client, java-platform, network-le-system-client, server-platform, fonts, print-client, basicdesktop, desktop-debugging, desktop-platform, input-methods, legacy-x, x11, internet-browser, remote-desktop-clients Minimal: core Basic Server: base, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-le-systemclient, performance, perl-runtime, server-platform Database Server: base, console-internet, core, debugging, directoryclient, hardware-monitoring, java-platform, large-systems, networkle-system-client, performance, perl-runtime, server-platform, mysql-client, mysql, postgresql-client, postgresql, system-admin-tools Web Server: base, console-internet, core, debugging, directory-client, java-platform, network-le-system-client, performance, perl-runtime, server-platform, web-server, web-servlet, php, turbogears, mysql-client, postgresql-client

6 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

Virtual Host: base, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-le-systemclient, performance, perl-runtime, server-platform, virtualization, virtualization-client, virtualization-platform Software Development Workstation: base, core, debugging, directoryclient, java-platform, network-le-system-client, performance, perl-runtime, server-platform, fonts, print-client, basic-desktop, desktop-debugging, desktop-platform, general-desktop, graphical-admin-tools, input-methods, legacy-x, x11, internet-browser, graphics, emacs, tex, remote-desktopclients, virtualization, virtualization-client, virtualization-platform, desktopplatform-devel, development, eclipse, server-platform-devel, technicalwriting, additional-devel The contents of each group can be seen by
yum groupinfo <groupname>

9. How can I use two monitors on my system? Do I need proprietary drivers?


Contrary to one of the most common misconceptions, dual monitor setup is supported 'out of the box' and does not require the use of any proprietary drivers. Here is a short tutorial on how to achieve that. 1. Connect your monitors and turn them on. 2. We need rst to discover what is known. For this purpose run:
xrandr -q

The output should look similar to:


[wolfy@wolfy ~]$ xrandr -q Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 2560 DFP1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0*+ 75.0 1152x648 60.0 + 1280x960 75.0 60.0 1280x800 75.0 60.0 1152x864 75.0 60.0 1280x768 74.9 59.9 1280x720 60.0 1024x768 75.0 70.1 60.0 800x600 72.2 75.0 70.0 60.3 56.2 720x480 60.0 640x480 75.0 72.8 60.0

7 of 8

04/09/2014 10:24 AM

FAQ/CentOS6 - CentOS Wiki

http://wiki.centos.org/FAQ/CentOS6

DFP2 disconnected (normal left inverted right x axis y axis) CRT1 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0 + 75.0* 1280x960 75.0 60.0 1280x800 75.0 60.0 1152x864 75.0 60.0 1280x768 74.9 59.9 1280x720 60.0 1024x768 75.0 70.1 60.0 800x600 72.2 75.0 70.0 60.3 56.2 720x480 60.0 640x480 75.0 72.8 60.0

In the above example, the key information is that we have a monitor connected to the digital interface named DFP1 supporting 1280x1024 resolution and a second, analogue, monitor connected to the interface named CRT1 also supporting 1280x1024 resolution. Other common names that can be seen are VGA, DVI, HDMI and LVDS. (The name depends upon the type of output device and the video driver.) The fact that both monitors have the same maximum resolution in this example is a pure coincidence. 3. Using the information thus obtained, run xrandr again, asking it to activate and use the desired placement of information on the two screens:
xrandr --output DFP1 --auto --left-of CRT1

This will select the preferred resolution for both monitors and place the analogue monitor (CRT1 in this case) on the right-hand side of the digital monitor (DFP1). All changes made via xrandr are instantaneous. Monitor outputs are controlled independently of each other, so the resolutions and refresh rates can be dierent. (This is a pretty nifty feature in the case, for example, where you have a large monitor connected to a laptop computer or any other situation with two monitors having dierent resolutions.) The manual page and extensive tutorials available on Internet will show more of the powers of xrandr, so we strongly advise you to make use of those resources.
FAQ/CentOS6 (last edited 2014-02-27 11:03:31 by JohnnyHughes)

8 of 8

04/09/2014 10:24 AM

You might also like