Questions About Centos 6: Search
Questions About Centos 6: Search
http://wiki.centos.org/FAQ/CentOS6
Search
Text
Titles
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
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.
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 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
http://wiki.centos.org/FAQ/CentOS6
dependencies.
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
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 -
it can be ignored as the key has already been imported. You can conrm
5 of 8
04/09/2014 10:24 AM
http://wiki.centos.org/FAQ/CentOS6
6 of 8
04/09/2014 10:24 AM
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>
7 of 8
04/09/2014 10:24 AM
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