Installing Xorg on Gentoo with the nouveau Driver

I configured my kernel as shown here. That was based on the information found here and here. Check out the resources section at the bottom.

Because my kernel is good-to-go, I should just need to make the following changes to my make.conf file before installing xorg-server.

nano /etc/portage/make.conf

These are the changes I made.


INPUT_DEVICES="evdev"
VIDEO_CARDS="nouveau"

Make sure you have the following USE flag.

echo "x11-base/xorg-server" >> /etc/portage/package.use

Before installing xorg-server.

emerge --ask xorg-server

Now refresh your environment.

env-update
source /etc/profile

I choose to reboot here.

Starting X

Xorg “should” work out-of-the-box so there “should” be no need to manually create and edit configuration file in the /etc/X11/xorg.conf.d/ directory. Here goes…

startx

The Necessary Troubleshooting

Obviously that didn’t work because that would be too easy!! The output showed xauth complaining about a few things, namely stuff like.

hostname Unknown host
xauth: file /root/.serverauth.4170 does not exist

Then Xorg tries to start but fails with this.

/etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost

waiting for X server to shut down Server terminated successfully (0). Closing log file.

The Fix

Funnily enough, it was the hostname Unknown host message that bothered me the most as this indicates a general networking issue. Turned out I hadn’t associated my hostname with the localhost. This was easily solved by editing /etc/hosts and amending the below line. This removed that particular error but did not get Xorg working.

127.0.0.1            localhost storm

Now I have a fairly good idea what might be up here but if all this is new to you and your Xorg is failing with similar messages, there a few clues in errors.

One thing to bear in mind is that users of X must be part of the video group. I thought this might explain the xauth warnings. However this can be easily checked with.

storm ~ # groups andy
root bin daemon sys adm disk wheel floppy tape video

Lastly, as per the docs, I believe twm and xterm should be installed. This certainly fits with the last few errors.

emerge --ask twm xterm xclock

This will pull in a few extra packages but hopefully Xorg should work now. Although not strictly necessary, I install xclock here too.

xterm screen shot

Nice!

Resources

Gentoo Wiki – Xorg/Configuration
https://wiki.gentoo.org/wiki/Xorg/Configuration

Gentoo Wiki – X server
http://wiki.gentoo.org/wiki/X_server

Gentoo Wiki – X without Display Manager
http://wiki.gentoo.org/wiki/X_without_Display_Manager

Linux Reviews – Screenshot grabbing
http://linuxreviews.org/quicktips/screenshots

======================================

Gentoo Wiki Archives – Dell_2407WFP_LCD
http://www.gentoo-wiki.info/Dell_2407WFP_LCD

Gentoo Wiki – xorg.conf
http://wiki.gentoo.org/wiki/Xorg.conf

Gentoo – X.Org/xsession
http://gentoo-en.vfose.ru/wiki/X.Org/xsession

Gentoo Wiki – Fontconfig
http://wiki.gentoo.org/wiki/Fontconfig

Gentoo Wiki Archives – HOWTO_Xorg_and_Fonts
http://www.gentoo-wiki.info/HOWTO_Xorg_and_Fonts#Emerging_the_Necessary_Packages

Gentoo.org – rxvt-unicode
http://wiki.gentoo.org/wiki/Rxvt-unicode

ArchLinux – Multihead
https://wiki.archlinux.org/index.php/Multihead

ArchLinux – Nouveau
https://wiki.archlinux.org/index.php/Nouveau#Configuration

ArchLinux – Xorg
https://wiki.archlinux.org/index.php/Xorg

ArchLinux – X resources
https://wiki.archlinux.org/index.php/X_resources#rxvt-unicode_.28urxvt.29_resources

ArchLinux – rxvt-unicode
https://wiki.archlinux.org/index.php/Urxvt#Creating_.7E.2F.Xresources

pod.tst.eu – RXVT-UNICODE/URXVT FREQUENTLY ASKED QUESTIONS
http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#How_does_rxvt_unicode_determine_the_

How-To Geek – How to Quickly Resize, Convert & Modify Images from the Linux Terminal
http://www.howtogeek.com/109369/how-to-quickly-resize-convert-modify-images-from-the-linux-terminal

geom.uiuc.edu – Manipulating Images
http://www.geom.uiuc.edu/events/courses/1996/cmwh/Stills/manipulating.html

Redhat.com – Doing more with…more: Dual-head display
http://www.redhat.com/magazine/014dec05/features/multihead

Gentoo – X.Org/Dual Monitors
http://gentoo-en.vfose.ru/wiki/X.Org/Dual_Monitors

ArchLinux – Configuring keyboard layouts in X
https://wiki.archlinux.org/index.php/Configuring_keyboard_layouts_in_X

Unable to Install mkpasswd on CentOS 6.4

I was surprised to find the mkpasswd utility missing from my new installation of CentOS 6.4.

Yum has a feature called whatprovides, which can be used to find out which installable package provides some feature, utility or file. The below demonstrates its use. You just need to prefix ‘*/’ to the utility name that your searching for.

[root@server ~]# yum whatprovides */mkpasswd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base/filelists_db                                                                                                                     | 5.9 MB     00:00     
extras/filelists_db                                                                                                                   |  10 kB     00:00     
updates/filelists_db                                                                                                                  | 2.8 MB     00:00     
expect-5.44.1.15-4.el6.x86_64 : A program-script interaction and testing utility
Repo        : base
Matched from:
Filename    : /usr/bin/mkpasswd

[root@server ~]# 

The output shows us that the expect package contains the mkpasswd utility.

[root@server ~]# yum install expect

Now I can quickly and easily generate strong passwords from the Linux command line. For example, the following command produces a password using the default set of arguments.

[root@server ~]# mkpasswd
N5cZ8v*dq

A default password is 9 characters long. Each password will have at least 2 digits (numbers); 2 upper and 2 lowercase alphabetic characters; plus 1 special character, which in our example is an asterisk (‘*‘).

Connect to a NFS Share with Gentoo

Install NFSv4

The below command will install with the default USE flags of ipv6, tpcd and nfsv4.

emerge --ask nfs-utils

Find NFS Shares

If you don’t know or can remember the name of your NFS shared drives, you can use the below command to list the exports.

storm ~ # showmount -e "192.168.111.200"
Export list for 192.168.111.200:
/personal shared
/Web
/Usb
/Recordings
/Public
/Network Recycle Bin 1
/Multimedia
/Download
storm ~ #

I want to connect to “/personal shared“, but note the space in the share name.

mount -t nfs "192.168.111.200:/personal shared" ~/nfs/

To mount a share like this you will need to encase it in double quotes.

If you get a message like this…

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

…you need to start the statd daemon.

storm ~ # /etc/init.d/rpc.statd start
 * Caching service dependencies ...                                                                                                                               [ ok ]
 * Starting rpcbind ...                                                                                                                                           [ ok ]
 * Starting NFS statd ...                                                                                                                                         [ ok ]
storm ~ #

To make this change permanent, you need to add statd and other NFS related daemons to the default runlevel.

rc-update add nfsmount default

You should not be able to run the above mount command even after a reboot. To un-mount.

umount -v ~/nfs

Auto-Mount NFS Shares

Now to auto-mount, provided nfsmount is on the default runlevel, you just need to add an entry to your /etc/fstab file.

192.168.111.200:personal\040shared     /root/nfs     nfs      rw,_netdev,auto,sync    0 0

Note the \040\ where the space should be in “personal shared“. Using double quotes or the like does not appear to work in fstab.

References

Gentoo Wiki – NFSv4
http://wiki.gentoo.org/wiki/NFSv4

The Secure Copy (scp) Command

Secure Copy (scp) is a Linux remote file copy command. It can be used like the Copy (cp) command but supports the secure transfer of file between hosts on a network.

The basic synopsis for this program is as follows. See the manual page for more information.

scp [[ user@ ] host1: ] file1 ... [[ user@ ] host2: ] file2

To copy a file from a remote machine to the local host.

scp yourusername@remotehost.com:file.txt /home/yourusername/

To copy a file from the local host to a remote machine.

scp file.txt yourusername@remotehost.com:/remote/directory

Installing XMonad on Gentoo

I have already installed Gentoo with a Kernel supporting NVidia graphics cards using the open-source Nouveau driver. I also have a working installation of Xorg server.

Now all that’s left to do now is install XMonad!

emerge --ask xmonad xmonad-contrib

Notes that will probably be removed/deleted

The above pulled in a lot of additional software and took quite a long time to complete. However, all seemed to work. Here I should mention about how to start and link to command/cheatsheet etc. Include .xinitrc and how .xsession does not work (should be removed it present).

After that I decided to install firefox. That too pulled in a lot of software and took ages to complete. More so than the above! I did need to add the following to package.use.

=/dev-lang/python-2.7.5 sqlite

After the installation, I saw the below Portage warning messages.

* For more information on udev on Gentoo, upgrading, writing udev rules, and
*     fixing know issues visit:
*     http://wiki.gentoo.org/wiki/Udev
*     http://wiki.gentoo.org/wiki/Udev/upgrade

* Messages for package sys-fs/udisks-2..1.0:

*    CONFIG_USB_SUSPEND:               is not set when it should be.
*    Please check to make sure these options are set correctly.
*    Failure to do so may cause unexpected problems.

* Messages for  package media-video/mjpegtools-2.0.0-r3:

* mjpegtools installs user contributed scripts which require additional
* dependencies not pulled in by the installation.
* These have to be installed manually.
* Currently know extra dependencies are: ffmpeg, mencoder from mplayer,
* parts of transcode, mpeg2dec from libmpeg2, sox, toolame, vcdimager, python.

* Messages for package app-misc/strigi-0.7.7-r2:

* Because you didn't enable either of the available backends:
* clucene or hyerestraier, strigi may not be functional.
* If you indend to use standalone strigi indexer (not needed for KDE),
* be sure to reinstall app-misc/strigi with either cluence (recommended)
* or hyperestraier (unreliable) USE flag enabled.

* Message for package sys-auth/polkit-kde-agent-0.99.0-r1:

* WARNING! Your system configuration contains neither "kde-base/kdebase-runtime-meta"
* nor "kde-base/kde-base-startkde".  You need one of the above.
* With this setting you are unsupported by the KDE team.
* All missing features you report for misc packages will be probably ignored for closed as INVALID.

I made the above kernel change on the next next kernel upgrade but as far as I could tell XMonad seemed to work fine without it anyway.

Resources

Arguments With My Friends – How to Install Xmonad on Gentoo
http://awmf.blogspot.co.uk/2007/08/how-to-install-xmonad-on-gentoo.html

Haskell.org – Tutorials
http://www.haskell.org/haskellwiki/Tutorials

learnyouahaskell.com – Learn You a Haskell for Great Good!
http://learnyouahaskell.com/chapters

Gentoo Wiki – Xmonad
http://wiki.gentoo.org/wiki/Xmonad

Haskell.org – Xmonad/Installing xmonad
http://www.haskell.org/haskellwiki/Xmonad/Installing_xmonad

Haskell.org – Xmonad/Basic Desktop Environment Integration
http://www.haskell.org/haskellwiki/Xmonad/Basic_Desktop_Environment_Integration

Wikipedia – xmonad
http://en.wikipedia.org/wiki/Xmonad

Think In Geek – Simple guide to configure xmonad, dzen2 and conky
http://thinkingeek.com/2011/11/21/simple-guide-configure-xmonad-dzen2-conky/

Wikipedia – Conky (software)
http://en.wikipedia.org/wiki/Conky_(software)

Gentoo Wiki – rxvt-unicode
http://wiki.gentoo.org/wiki/Rxvt-unicode

Haskell.org – Xmonad/General xmonad.hs config tips
http://www.haskell.org/haskellwiki/Xmonad/General_xmonad.hs_config_tips

Haskell.org – Xmonad/Config archive/John Goerzen’s Configuration
http://www.haskell.org/haskellwiki/Xmonad/Config_archive/John_Goerzen%27s_Configuration

ArchLinux – Xmonad
https://wiki.archlinux.org/index.php/Xmonad

Haskell.org – Xmonad/Frequently asked questions
http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view

How-To Geek – How to use Xmonad, a Tiling Window Manager for Linux
http://www.howtogeek.com/114728/how-to-use-xmonad-a-tiling-window-manager-for-linux/

Huntly Cameron Web Stuffs – How-to: Set up XMonad & XMobar on Ubuntu
http://www.huntlycameron.co.uk/2010/11/how-to-set-up-xmonad-xmobar-ubuntu/

Haskell.org – Xmonad/Using xmonad in Gnome
http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome

Xmonad.org – XMonad.Config.Gnome
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Config-Gnome.html

Xmonad.org – XMonad.Layout.PerWorkspace
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-PerWorkspace.html

Xmonad.org – xmonad-0.11 manual
http://xmonad.org/manpage.html

Xmonad.org – A guided tour
http://xmonad.org/tour.html

ArchLinux – dmenu
https://wiki.archlinux.org/index.php/Dmenu

ArchLinux – Gmrun
https://wiki.archlinux.org/index.php/Gmrun

Haskell.org – Xmonad/Using xmonad in KDE
http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_KDE

Xmonad.org – XMonad.Config.Kde
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Config-Kde.html

Xmonad.org – XMonad.Doc.Configuring
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Doc-Configuring.html

cgogolin.de – sample xmonad.hs by Christian Gogolin
http://www.cgogolin.de/downloads/xmonad.hs

Shinobu’s Secrets – Tag Archives: xmonad
http://zuttobenkyou.wordpress.com/tag/xmonad/

Gentoo: Installing a File Manager

After a little research I have decided to install krusader as my file manager. Installing it should be fairly simple.

emerge --ask krusader

After seeing the below output…


Spoiler

storm ~ # emerge --ask krusader

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] kde-base/libkonq-4.10.5 USE="(-aqua) -debug {-test}"
[ebuild N ] kde-base/keditbookmarks-4.10.5 USE="(-aqua) -debug {-test}"
[ebuild N ] kde-misc/krusader-2.4.0_beta3 USE="bookmarks handbook (-aqua) -debug" LINGUAS="-bg -bs -ca -ca@valencia -cs -da -de -el -en_GB -eo -es -et -fi -fr -ga -gl -hr -hu -it -ja -ko -lt -mai -nb -nds -nl -pa -pl -pt -pt_BR -ro -ru -sk -sl -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv -tr -ug -uk -zh_CN -zh_TW"

Would you like to merge these packages? [Yes/No]

[collapse]

…I run the below to make use of the English/British USE flag. I install both en_GB and uk USE flags.

echo "kde-misc/krusader en_GB uk" >> /etc/portage/package.use

For some reason the change in USE flags were not picked up. However, I proceeded and installed it anyway. The below was the output.


Spoiler

...
-- Installing: /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/image/usr/share/locale/ja/LC_MESSAGES/krusader.mo
>>> Completed installing krusader-2.4.0_beta3 into /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
usr/lib64/kde4/kio_krarc.so
usr/bin/krusader
usr/lib64/kde4/kio_iso.so
ecompressdir: bzip2 -9 /usr/share/doc

* QA Notice: Package triggers severe warnings which indicate that it
* may exhibit random runtime failures.
* /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/work/krusader-2.4.0-beta3/iso/kiso.cpp:261:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
* /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/work/krusader-2.4.0-beta3/iso/kiso.cpp:261:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
* /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/work/krusader-2.4.0-beta3/iso/kiso.cpp:318:79: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
* /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/work/krusader-2.4.0-beta3/iso/kiso.cpp:319:79: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
* /var/tmp/portage/kde-misc/krusader-2.4.0_beta3/work/krusader-2.4.0-beta3/iso/kiso.cpp:325:90: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

* Please do not file a Gentoo bug and instead report the above QA
* issues directly to the upstream developers of this software.
* Homepage: http://www.krusader.org/

>>> Installing (3 of 3) kde-misc/krusader-2.4.0_beta3
* QA Notice: Symbolic link /usr/share/doc/HTML/pt_BR/krusader/common points to /usr/share/doc/HTML/pt_BR/common which does not exist.
* QA Notice: Symbolic link /usr/share/doc/HTML/uk/krusader/common points to /usr/share/doc/HTML/uk/common which does not exist.
* QA Notice: Symbolic link /usr/share/doc/HTML/pt/krusader/common points to /usr/share/doc/HTML/pt/common which does not exist.
* QA Notice: Symbolic link /usr/share/doc/HTML/sv/krusader/common points to /usr/share/doc/HTML/sv/common which does not exist.
* Updating icons cache ... [ ok ]
* Updating desktop mime database ...
* Updating shared mime info database ...

* WARNING! Your system configuration contains neither "kde-base/kdebase-runtime-meta"
* nor "kde-base/kdebase-startkde". You need one of above.
* With this setting you are unsupported by KDE team.
* All missing features you report for misc packages will be probably ignored or closed as INVALID.

>>> Recording kde-misc/krusader in "world" favorites file...

* Messages for package kde-misc/krusader-2.4.0_beta3:

* WARNING! Your system configuration contains neither "kde-base/kdebase-runtime-meta"
* nor "kde-base/kdebase-startkde". You need one of above.
* With this setting you are unsupported by KDE team.
* All missing features you report for misc packages will be probably ignored or closed as INVALID.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.
storm ~ #

[collapse]

This seems to have worked anyway.

Krusader file manager
Krusader file manager

Resources

Tech Republic – 10 Linux file managers worth checking out
http://www.techrepublic.com/blog/10things/10-linux-file-managers-worth-checking-out/993

Krusader.org – Twin panel file management for your desktop
http://www.krusader.org/

Konqueror.org – What is Konqueror?
http://www.konqueror.org/

Wikipedia.org – Comparison of file managers
http://en.wikipedia.org/wiki/Comparison_of_file_managers

Linux Links – 14 of the Best Free Linux File Manager
http://www.linuxlinks.com/article/20081224191928555/FileManagers.html

Rackspace Cloud DNS

Rackspace provides a great easy to use tool for managing your DNS.

The first thing you need to do is create a zone file for the domain you want to manage. To do this, first log into the mycloud.rackspace.co.uk customer portal and navigate to the DNS tab at the top of the page.

Click on “Create Domain” and fill out the details from the drop-down menu.

Rackspace Cloud DNS
Rackspace Cloud DNS

Click on “Create Domain” to create the zone file.

Create Domain
Create Domain

Now we need to add some DNS records to the zone file. Here I add an A record so the domain dummydomains.org.uk resolves to the IP 162.13.144.164.

Add DNS Records
Add DNS Records

The last thing we need to do is make sure the Rackspace name servers are authoritative for our domain. To do this, you will need to make contact with whoever you lease the domain name through. I bought my domain name through fasthosts.co.uk; normally you will just need to log onto the control panel provided by your DNS registrar and set the DNS name servers for the domain in question to the below.


dns1.stabletransit.com
dns2.stabletransit.com

Job done!

You can check to see how your DNS changes propagate around the world using the below website.

www.whatsmydns.net

www.whatsmydns.net--A-dummydomains.org.uk
www.whatsmydns.net–A-dummydomains.org.uk

Load Balance you Rackspace Cloud Server

Rackspace cloud load-balancers allow you to easily distribute the traffic across multiple nodes.

Every time you create a new cloud server, it is assigned a new public IP address. If you were to image that server, delete it and then re-create it, it will be given a new IP address. For this reason, I would recommend a load-balancer from the off. Especially if you know the site is going to be about for a while. That way, the IP address will not change, even if the IP address of the nodes behind it do….And yes, you only need one node behind the load-balancer for it to work.

Create a Load Balancer

Navigate to the Load Balancer section of your mycloud.rackspace.co.uk customer portal. Once there, click on “Create Load Balancer“.

Rackspace Cloud Load Balancers
Rackspace Cloud Load Balancers

Fill in the details. Most of which is fairly self explanatory. My load balancer is for a website so I want it to be publicly accessible on port 80.

I chose the “least connections” algorithm. If you are unsure which one to choose, hover your mouse over the question mark icon for a description of each.

Load Balancer Configuration
Load Balancer Configuration

Now click on “Add Cloud Servers” and select the nodes you want behind the load balancer. Here I only chose one server.

Add Node to Load Balancer
Add Node to Load Balancer

Now confirm the load balancer details and click on “Create Load Balancer“.

Create load balancer
Create load balancer

Test the Load Balancer

To test it works, simply enter the public IP address of the load balancer in a web browser. You should see your website.

Test Load Balancer
Test Load Balancer

Job done!

Install Apache on Ubuntu Server 13.10

First you need to prepare the machine that you are going to use. I’m using a Rackspace cloud server. In which case, all I need to do is spin up a server and update the Operating System software.

Install Apache2

Installing Apache is easy, simply run apt-get install apache2 as the root user.

root@apache:~# apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
  ssl-cert
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,302 kB of archives.
After this operation, 5,314 kB of additional disk space will be used.
Do you want to continue [Y/n]? 

Once the installation has finished, open up a web browser and enter the IP address into the address bar. Hopefully you should see a page like the below.

Installing Apache
Testing apache

And that’s it! Apache is now installed and working!

Set the Hostname

Your likely to see the below error message.

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2a00:1a48:7806:117:936d:610a:ff08:747d. Set the 'ServerName' directive globally to suppress this message
                                                                                                  [ OK ]

This is caused by the hostname not being set correctly. Open up /etc/hosts and enter something similar to the below, adjusting for your own environment.

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 www.yourdomain.co.uk www localhost

2a00:1a48:7806:0117:936d:610a:ff08:747d	www.yourdomain.co.uk www
162.13.144.164	www.yourdomain.co.uk www
10.180.66.169	www.yourdomain.co.uk www

If you too are using a Rackspace cloud server, the most important line is shown below.

2a00:1a48:7806:0117:936d:610a:ff08:747d	www.yourdomain.co.uk www

This will stop the warning message.