Creating a CentOS repository

This is just a quick howto on creating a CentOS repository with EPEL on CentOS.

First we need to have a webserver installed as we need to access the repository via http.
I am going to use Apache. On Redhat based systems the package is called httpd and on Debian it is Apache2.

Install Apache and rsync client
[root@logoff]# yum install httpd rsync
Start Apache
[root@logoff]# /etc/init.d/httpd start

The default directory for the DocumentRoot is under /var/www/html

Create the repository directorys
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/os/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/updates/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/extras/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/isos/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/centosplus/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/fasttrack/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/contrib/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/cr/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/CentOS/7/xen4/x86_64
[root@logoff]# mkdir -p /var/www/html/repo/EPEL

Create the scripts directory
[root@logoff]# mkdir -p /opt/scripts

Create the CentOS mirror script
In your favourite editor add the following in /opt/scripts/centos.sh


rsync=”/usr/bin/rsync -avqHz –delete”

baselist=”SCL os updates extras isos centosplus contrib cr fasttrack xen4″

for ver in $verlist
for arch in $archlist
for base in $baselist
$rsync $remote $local/$ver/$base/$arch/

Make the script executable
[root@logoff]# chmod +x /opt/scripts/centos.sh
Run the script
[root@logoff]# /opt/scripts/centos.sh

Create the EPEL mirror script
In your favourite editor add the following in /opt/scripts/epel.sh

#!/bin/bash /usr/bin/rsync -avqHz --exclude-from="/opt/scripts/epel_excludes.txt" --numeric-ids --delete --delete-after --delay-updates rsync://dl.fedoraproject.org/fedora-epel /var/www/html/repo/EPEL/

Create the epel_excludes
In your favourite editor add the following in /opt/scripts/epel_excludes.txt


Make the script executable
[root@logoff]# chmod +x /opt/scripts/epel.sh
Run the script
[root@logoff]# /opt/scripts/epel.sh

Do note, this is extremely big it’s about 32GB

You can edit the following file on the client machine.
Replace the http://logoff part with your repository’s IP or dns name if you have set it up.


# CentOS-Base.repo
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.

name=CentOS-$releasever – Base

#released updates
name=CentOS-$releasever – Updates

#additional packages that may be useful
name=CentOS-$releasever – Extras

#additional packages that extend functionality of existing packages
name=CentOS-$releasever – CentosPlus

#contrib – packages by Centos Users
name=CentOS-$releasever – Contrib

name=CentOS-$releasever – SCL

name=CentOS-$releasever – cr

name=CentOS-$releasever – xen4

name=CentOS-$releasever – os

name=Extra Packages for Enterprise Linux 6 – $basearch

name=Extra Packages for Enterprise Linux 6 – $basearch – Source

Then run the following on the client machine:

[root@client]# yum update



Reinventing the wheel

So many of you may have been wondering what’s happened to me and why I stopped posting here well…

I have been blogging since 2005. I first started out on Xanga (I saw they redesigned the whole aspect of it) where I used that to vent my frustrations and it actually helped a lot! I then moved over to cloud.za.net –> empyrean.za.net and then I finally moved it to Logoff.
My goal of blogging was to share some of my life moments, share funny videos and anything I found interesting. Towards the beginning of last year I found that many bloggers I followed would blog the same thing basically most of the time and it felt like I was wasting my time.
My last post was last year November and I decided to take a break.
During this year I have thought about what I wanted to do with my site to make it unique and see what direction I wanted to take it. The past month I’ve been thinking of making it a more technology based. So after a long year I think I am ready to pick this up and start something new. I see a goal, but to reach that goal I need to start somewhere and here I start. So expect more updates and cosmetic changes here the next couple of weeks!

My older posts are still going to be on this site of course, but I have decided to keep it out of the visible eye just to seem that it looks like a fresh clean blog again.

Thank you to those who have been following my blog over the years 🙂

TED – 1,000,000,000,000 Frames/Second Photography [video]

Ramesh Raskar talks about creating images by recording light. He has invented a camera that can photograph light itself as it moves at the speed of light. This camera can capture not just a bullet, but light itself which is nearly 300 million meters per second!
The camera and software can visualize pictures as if they are recorded at 1 trillion frames per second. The same photon-imaging technology can also be used to create a camera that can peer “around” corners , by exploiting specific properties of the photons when they bounce off surfaces and objects.

It’s sick.

Check out his bio here: Ramesh Raskar

Windows rsync backups

So I was having a dilemma where I am running a Windows Server and I needed to backup data to an rsync server. Now the way I used to do it before was install cwrsync and create a batch script and then add it to the windows scheduler to do the backups. What a bitch to maintain and setup.

So I searched around on the web and I finally found this piece of gem.  QtdTools.

This can be used for both Rsync, SSH and local.
It is also for windows and linux.
Not only is this easy to install and setup it comes with a scheduler and email notification.

Just some of the features:

  • Local and remote backups with two modes:
  1. Differential: Only the changes are backuped. However, thanks to NTFS and hardlinks with every backup you have a complete file tree of your data. Older backups can be deleted without loosing your data integrity.
  2. Synchronization: The backup folder is updated. Only the newest version exists as backup.
  • Multiple Backup Sets with an arbitrary number of folders to be backuped (Exclude filters)
  • Portable
  • Restoring folders
  • Backup scheduling
  1. By Date and Time
  2. On drive plugin
  • Folder binding to specific drives (Windows only)
  • E-Mail Notification
  • Drag’n’Drop
  • Command line support (qtdsync.exe –help)

Tech Paradise 2012 Roundup

I wanted to blog about everyday’s experience but I just couldn’t find the time to sit down for an hour or two to write up posts so I thought I would do a big one when I was back home to share with everyone.


We continued where we left off playing either Forza 4 or Guitar Hero while Hannes continued to play Uncharted 3 on the PS3. I must admit, I played Guitar Hero on easy before and everyone else were frikking masters in it so I had to get with the game and practice it on medium! I struggled at first but once you get to play it for a couple of days you really get the hang of it!
The Chaos crew arrived just after 12 and they layed down the next challenge for us. Dance Revolution on the Xbox Kinect to Britney’s Toxic. We each had a chance to practice for a minute or two to get the hang of it. In the meanwhile I went upstairs for some interviews. There were some epic dance moves by the guys in the freestyle section but there could only be one winner and it seems Weber can actually dance! Our man cards were taken away but Chaos managed to cheer us up with an awesome Samsung N102 netbook each.

The afternoon we ordered some pizza from Col’cacchio through Mr Delivery and watched Some IPL cricket. I even had a quick hour nap after that so that I wouldn’t fade early!
The evening we drank beer, played bowling, cricket, guitar hero and even attempted Pro Evolution Soccer 2012.

[nggallery id=2]


Wokeup and switched on the one TV to watch the Super Rugby and jammed Guitar Hero while it was on. We ordered Nandos for brunch and I could swear they upped the spices on the frikking things.
The Chaos crew arrived again and then we were told to go to one of the rooms and lock ourselves in there for 5 minutes. 25 minutes later we were brought out and told to sit on the couch. We were pretty nervous as to what to expect. We got explained as to what was going to happen. Basically we had to fight each other on Street Fighter VS Tekken. The prize was an Alienware X51 RIG with keyboard, mouse, 22″ monitor and headset. I for one was drooling over it but knew that only one of us could win it and that’s when the nerves and adrenaline kicked in. We all just looked at each other knowing only one of us could win it.
The last man standing would get the rig! Dewald defeated Hannes first and then it was me next. I defeated Dewald and Steve to face off with Weber and whoever won it between the two of us got the Alienware rig. It was a close one but Weber managed to win it with a sick combo of characters which left me utterly down and the rest of us pondering on how to get rid of Weber to take the gear.
We each then had to go upstairs in turn for interviews on how our stay has been thus far. I get through the door and Riaan says to me, you know Chaos will never do that to you? And I was like sorry come again, when all of a sudden I notice 4 other Alienware RIGs on the table. I was shocked and speechless. Receiving something like this is almost every gamer’s dream to own an Alienware rig and I could not believe that I would be a proud owner of one of these!
After everyone came upstairs we were all pretty excited and felt darn good! There were some more photoshoots and then the Chaos team bid farewell knowing they played with our feelings real damn good!
The rest of the afternoon we were smiling from ear to ear and continued to play games and drink beer!
The evening we ordered from Spur from Mr Delivery and watched Borat and later on watched Inception. Yes, we still played games and I will NOT say what I attempted to play.

[nggallery id=3]


Day 4 went the same as the previous days, wakeup, put the Super Rugby on and jam to guitar hero. Chaos came over a bit earlier than usual and we did some group interviews outside. Because of the Champions League that evening they decided the challenge would be Kinect Sports and we had to show our goalkeeping moves and try and stop as many goals as possible! Dewald set the bar pretty high with 70 saves. Hannes and Steve only managed to get around 50 or 60. I was next and managed to get to 72! Damn those balls come through pretty fast after a while. Weber was last and it looked like he might have take it but he fell 1 short and only managed to stop 71! Which made me the winner! *air fist punch*
Because everyone is a winner, Chaos gave us all an awesome XBOX 360 Kinect bundle!
The afternoon we ordered some St Elmos from Mr D and we watched Tower Heist before the Super Rugby games started. Don’t get me wrong, while the Rugby was on we still managed to play games! We watched the Champions League which was pretty much a bore fest and the only thing that was enjoyable was the hilarious commentary! Hannes stayed up afterwards to actually finish Uncharted 3 which he was attempting to finish the last few days! With alot of Rockstar drinks he managed it!

[nggallery id=4]


We all woke up in a sad and depro mood knowing that it was our last day in the house. We cleaned up and bit and we packed our stuff. We decided to all jam guitar hero and try to finish it before we left but alas, we ran out of time. Chaos came and we did some final photoshoots and interviews and Chaos were so awesome that they even thought about our wives and girlfriends that they gave us each an Acer Aspire netbook to give to them! We all gathered our things and crammed everything into the Limo and we said our goodbyes.

[nggallery id=5]

I must say that this has been the top guys get-a-away I have EVER had. The fact that we never got on each other’s nerves, got on well with each other and simply had tons of fun was amazing.

The folks at Chaos Computers and World Wide Creative were simply phenomenal. They brought out all the stops and could not have done anything better! All expectations we had before we went were blown away as it was more awesome than we had ever thought. If you didn’t enter for this year’s Tech Paradise, I urge you…no I command you to watch out for next year’s Tech Paradise. If you think this year looked awesome, wait till you see what they will bring next year!

I just want to thank EVERYONE that was involved, Chaos Computers, World Wide Creative and all the sponsors that were involved! It was 5 days we will never forget!

Pictures were all taken from Chaos Computers Facebook Page

Some more photos we took among ourselves

[nggallery id=6]

Tech Paradise 2012 – Day 1


So as most of you will know I won the Tech Paradise competition last week and I said I would post about our adventures.

We were picked up in a snazzy white Limo from my place and we were all so excited we almost forgot to pop the champaign that was given to us!

Upon arrival we were greated by the organisers and we were put to hard work with photoshoots and video retakes. Now I know how models and actors must feel but of course we were living the dream and felt like celebraties.

We were shown around the house and got given the lay down of the rules and I must say one thing. The pictures you see do NOT do it justice. You have to be here to exprience the awesomeness of the place. We each received an awesome goodie back with some kick ass stuff in it.

You are all wondering where is the tech! I was saving the best for last folks!
Now picture this

one part of the room has a 2 X 42″ led screens both hooked up to xboxes with guitar hero and the Xbox steering wheels.
Another part has a 42″ led with the ps3 or Xbox or Dstv pvr hooked up to it.
Then another part has a 52″ led with the Xbox kinetic.

Downstairs is a 52″ led with the wii hooked up.

Games, DVDs, blurays you name your poison it is there!

We had a forza 4 competition and whoever clocked the fastest time would win a prize. We each in the end got a kick ass tablet which I am currently writing this post from.

We drank beer ate food and basically jammed forza, tekken, cricket, football, guitar hero and even watched some insane IPL.
oh almost forgot about Starship Troopers and Face/Off we watched too.

I would love to post pics on my blog but unfortunately I do not have anything to copy the photos from my phone onto so I will have to do the pics on twitter/Facebook. Video will be up soon too from yesterday so keep your eyes peeled!

The folks at Chaos Computers put up an album on their Facebook page. I will post the link below.
Keep watching their Facebook page for updates aswell as join us on twitter with the hashtag #techparadise2012

Chaos Computers

Right, enough blogging…time to kick some ass and chew bubblegum.

Are you making the most of your iPad?

If you are into technology, maybe you own one of the new iPads or you attend gadget shows, then you are sure to enjoy reading about some of the best iPad apps about.

One of the iPad’s selling points is its huge, crystal-clear screen. Not only does it make everything look sharp and clear, but the large screen has many other advantages too. You are able to appreciate the finest details in fantastic photography, as well as browse through the internet effortlessly and not have to squint at small print or zoom into a webpage like you might have to do on a small cellphone screen. If you only use your iPad to browse sites like Facebook or visit Party Poker then you’re not making the most of your screen. If you want to get the most out of your iPad then below are two great apps which you might be interested in.

Sketchbook Pro

Sketchbook Pro is a professional-grade paint and drawing application which is perfect for creative and artistic people. With SketchBook Pro you can choose from a complete set of sketching and painting tools, which allows you to transform your doodles and sketches into pieces of art. This app converts your iPad into the ultimate digital sketch pad where you can draw, edit, import photos, merge layers and more. And once you’re finished, you can save your work and upload it to Facebook and show it off to your friends.


If you love music then you are sure to have fun composing your own funky tunes on Beatwave. You create and edit your melody using the integrated Tenori-On-style synth. In a nutshell, you are able to build melodies by placing blocks of sound onto a specially designed music grid. If you’re quite nifty with your music skills, you can build several layers to compose complex melodies. Once you’ve composed something you’re proud of, you can compress it down and e-mail it to a friend and see what they think.

Prague Astronomical Clock – 600th Anniversary Show

I came across this video of a beautiful video-mapping show on the Prague Astronomical Clock in Old Town Square that celebrated the 600th anniversary of the construction of the clock.

For those of you that don’t know, a bit of a history lesson here.
The Prague Astronomical Clock or Prague Orloj is a medieval astronomical clock located in Prague, the capital of the Czech Republic. The clock was first installed in 1410, making it the third-oldest astronomical clock in the world and the only one still working.
The clock mechanism itself is composed of three main components: the astronomical dial, representing the position of the Sun and Moon in the sky and displaying various astronomical details; “The Walk of the Apostles”, a clockwork hourly show of figures of the Apostles and other moving sculptures – notably a figure of Death (represented by a skeleton) striking the time; and a calendar dial with medallions representing the months.

Read more about it here – Prague_Astronomical_Clock

Here is the video of the most awesome video mapping I have ever seen. Warning, it is 10 minutes long, but it will be so worth watching it you will be totally blown away. Imagine actually being there and seeing it with your own eyes! #mindblown