Check out Packt’s amazing Buy One, Get One Free offer http://bit.ly/1j26nPN
PACKT’S $5 EBOOK BONANZA IS BACK!
Following on from the success of last year’s festive offer, the publisher will be celebrating the holiday season with an even bigger $5 Bonanza.
From December 19th, customers will be able to get any eBook or Video from Packt for just $5. This sale covers every title in the 1700+ range and customers can grab as many as they like until January 3rd 2014 – more information is available at http://bit.ly/1jdCr2W
Moodboster for System/Network Administrators
This time I will give you a secret drink recipe for the Network Admin, sysadmin and the other noc-turnal.
This drinks have the effect of boosting mood, so it can help with tasks that require concentration and focus.
Here’s the basic materials
1. instant coffee
2. Fresh milk without sugar
3. honey

First step, dissolve 1 teaspoon of coffee with 50ml milk. Stir evenly so that coffee and milk mixed together.
Second, add 1 teaspoon of honey. Stir evenly so the coffee, milk and honey get mixed evenly.
Then, add milk till the glass full, it’s about 200ml of milk glasses. Stir well.
Delicious when using cold milk. But can also be served warm.
Here’s the end result. Good luck!

Webserver and SELinux
Finally got a chance to setup a webserver with selinux enabled. The most important thing is to set security context where the files located to be in httpd security context using ‘chcon’ command.
Here’s some example:
# chcon -v --type=httpd_sys_content_t /html
context of /html changed to user_u:object_r:httpd_sys_content_t
# chcon -v --type=httpd_sys_content_t /html/index.html
context of /html/index.html changed to user_u:object_r:httpd_sys_content_t
# ls -Z /html/index.html
-rw-r--r-- root root user_u:object_r:httpd_sys_content_t /html/index.html
# ls -Z | grep html
drwxr-xr-x root root user_u:object_r:httpd_sys_content_t html
SELinux also by default denied httpd process to send an email. You can override this by using ‘setsebool’ command. Here’s some example using getsebool and setsebool.
# getsebool -a | grep httpd_can_sendmail
httpd_can_sendmail --> off
# setsebool -P httpd_can_sendmail on
# getsebool -a | grep httpd_can_sendmail
httpd_can_sendmail --> on
That’s it.
Thank you
Budiwijaya
Varnish – tips trick #1
Here’s varnish tips trick number 1
How to check varnish rule? Create a file (ie: check-varnish.sh) with this content:
#!/bin/bash
varnishd -C -f /etc/varnish/default.vcl
How to check top domain on multi domain varnish configuration? Create a file (ie: check-top-domain.sh) with this content:
#!/bin/bash
varnishtop -i RxHeader -C -I ^Host