Setup MariaDB/NginX/PHP on RHEL and Derivatives.

Setting up MariaDB and using it is just as easy as setting up mySQL. MariaDB was designed as a drop in for mySQL. This guide is designed to walk you through the process.

Initial Setup

First we need to install the EPEL Package source.

# rpm -Uivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

PHP and php-fpm

What is php-fpm?

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

To install via yum you can simply do Continue reading

YUM Repo

Hey Guys,

I’ve setup a yum repo for packages that are not in any of the existing repos for various reasons.

So Far I have added fragrouter. I will be adding more.

[affix]
name=Affix' Repo
baseurl=http://affix.me/repo/Fedora/20/$basearch
gpgkey=http://affix.me/RPM-GPG-KEY-affix
enabled=1

Fedora at LinuxCon Europe 2013

CC BY-NC 2.0 – Linux Foundation

CC BY-NC 2.0 – Linux Foundation

Our booth was very well attended through the whole conference. We had alot of interest by some major companies, not naming any names, about using fedora as a platform for their
development cloud.

Most of the visitors to our booth seemed very impressed with our display featuring Fedora 19 (Shrödingers Cat) and Fedora 20 (Heisenbug)

Being along side GlusterFS and oVirt had some big advantages the main one being I learned about what GlusterFS can do and how to setup oVirt and RDO (Guides coming soon).

Alot of the attendees at the Gluster Booth picked up some of our Fedora for your Cloud fliers and asked us how to setup Gluster and oVirt using Fedora.

By Far the highlight of my week was meeting Linus Torvalds after his Keynote.

Linus Torvalds

Linus Torvalds

Thanks to Jiri Eischmann, Jon Archer, Tom Callaway and Tony Dyer who also staffed the booth, also Welcome to our future new ambasador Eilidh McAdam she aims to contribute to fedora and join in with our already sizable pool of female contributors.

An Honorable mention to the guys at Red Hat that were there for us throughout the event if we had any questions we were unsure about relating to the other Red Hat Products.

Nagios Packages Updated

Nagios

Nagios

I have submitted an update to testing to resolve bug #926192.

 

 

These packages are available for and will be pushed to updates-testing during the next release engineering push.

Rawhide

Fedora 19

Fedora 18

The patch applied is available here from Dennis Gilmore : http://ausil.fedorapeople.org/aarch64/nagios/nagios-aarch64.patch

ProTip : Hot Adding Disks to KVM Guest using virsh

kvmbanner-logo2Today mysqld was killed on the VM that hosts this blog.

After checking a few log files and finally dmesg I saw that mysqld was oom killed. For those that do not know an OOM kill means Out of Memory.

The relevant lines in dmesg were as follows.

Out of memory: Kill process 3844 (mysqld) score 104 or sacrifice child
Killed process 3844, UID 27, (mysqld) total-vm:909216kB, anon-rss:106172kB, file-rss:168kB

Instead of adding more ram outside one of my downtime windows I came up with a quick and easy solution…

Add a Swap Device.

 

However it’s not as simple as I had no spare disks for my VM.

So heres the Procedure I went through.

Created a new LVM called affix-swap
Attached it to the Guest

On the Guest used mkswap to make the new HD a swap device
used swapon to enable the swap.

 

Command Line :

HOST

[root@rbx01 ~]# lvcreate -L 2G -n affix-swap virtual
Logical volume "affix-swap" created
[root@rbx01 ~]# virsh attach-disk AFXVM-01 /dev/virtual/affix-swap vdb
Disk attached successfully

GUEST


[root@delta ~]# free -m
total used free shared buffers cached
Mem: 996 900 96 0 7 66
-/+ buffers/cache: 826 170
Swap: 0 0 0
[root@delta ~]# mkswap /dev/vdb
mkswap: /dev/vdb: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 2097148 KiB
no label, UUID=d22d0207-3583-4af1-961f-817dac348374
[root@delta ~]# swapon /dev/vdb
[root@delta ~]# free -m
total used free shared buffers cached
Mem: 996 913 83 0 8 79
-/+ buffers/cache: 825 171
Swap: 2047 0 2047

This however is a temporary solution and will last until the next reboot of the VM. That will be done over the weekend during my next window.

Hope this has helped someone out at least.

Are Canonical Hurting the Open Source Community?

Are Canonical hurting the Open Source Community? In my opinion yes they are!

A slight dig at Microsoft

Canonical having a dig at microsoft

Taking a dig at Microsoft

I am not the biggest fan of Microsoft Products however think the way canonical are marketing Ubuntu 12.10 will encourage microsoft to distance itself from the Open Source World.

I do not think canonical realise that instead of working against one of the largest tech companies in the world that we should be working with them.

 

Pay what you think its worth?

Pay for Ubuntu

Yes they do want money for Ubuntu!

Canonical have an attractive page designed to encourage users to donate to them before you download Ubuntu. There is however a small link to skip the donation and just download but it isn’t very clear.

 

Distancing from Linux

Canonical recently made the move to distance themselves from Linux. They don’t seem to make it clear anywhere that Ubuntu is infact a Linux Operating System . Instead they promote Ubuntu. For example Valve and Canonical work together to create “Steam for Ubuntu”.

 

As a conclusion I think that canonical do infact hurt the community and attempts to drive everything in their favour by insulting the competition and basically demanding payment for work that was done by a community of millions of developers.

It’s time for Fedora 17 Beta

Yes its that time again where I road test a Beta Release of Fedora!

First I want to talk about the codename “Beefy Miracle” and I must say I didn’t like the name at first.  But now it has kind of grown on me a bit. It may be because of what I found when testing it.

Lets start with my review!

The Bootloader

I noticed straight away when booting that Grub now shows “Advanced Boot Options for Fedora” this is an awesome idea.  It hides away recovery mode simply making grub appear clean and more user friendly.

Wallpaper

The Wallpaper is a perfect example of what fedora is supposed to be. Simple yet stunning!

Mount Points

I plugged my USB Drive into the laptop I’m testing on to get the screenshot. I noticed that my USB Drive was no longer mounted in ‘/media’ instead I found it in ‘/run/media/affix’ I think this is a good idea as the world slowly moved into the cloud. I think its a good idea as with tools like spice where fedora and other distributions can be run on thin clients each user can have its own mounted devices on the host.

The Simple Things

Right down to the Scroll Bars fedora has been designed with the user experience in mind.

Stability

Featuring Gnome-Shell version 3.4.1 fedora has become more stable since version 16. I noticed a massive performance boost on this laptop than when I was running F16. My trackpad also performs actions more smoothly than with any other distro I have tried on this laptop.

Release Ready!

I believe if F17 was released today as a file release it would be accepted. However there are a few niggling issues that will be corrected before the final release.

Give Fedora 17 a Chance and click here