Category Archives: Linux

All Linux distributions will be filed here.

OS: Patching the linux kernel with grsecurity patch

I have been wanted to do linux kernel hardening a long time ago. I first heard about grsecurity from my friend William who is a security enthusiast. I have read several guides on how to patch the kernel source code … Continue reading

Posted in Linux, Security | Tagged , , , , | 2 Comments

Disable SELinux

There are times when disabling SELinux is required for some webapp to work. You can modify the SELinux from /etc/selinux/config Modifying the config file will make SELinux to be enabled (default), permissive or disabled upon boot up. To temporarily disable … Continue reading

Posted in Linux, System OS | Tagged , , | Leave a comment

Building an IDS : installing snorby, suricata and barnyard2

Reference 1: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricata_Snorby_and_Barnyard2_set_up_guide Reference 2: http://www.aldeid.com/wiki/Suricata/Setting-up-rules Reference 3: https://www.corelan.be/index.php/2011/02/27/cheat-sheet-installing-snorby-2-2-with-apache2-and-suricata-with-barnyard2-on-ubuntu-10-x/ Reference 4: https://github.com/Snorby/snorby/issues/102#issuecomment-1704653 Reference 5: http://www.aldeid.com/wiki/Snorby Disclaimer I claimed no credits for this post, this post is for my own personal reference while installing the components onto the Ubuntu Server 12.04 … Continue reading

Posted in IDS/IPS, Linux, Security, System OS | Tagged , , , , , , , , , , , , , , | 10 Comments

libmysqlclient.* not found

I have encountered a problem while configure barnyard2 with mysql on unbuntu server 12.04, it turns out that the package libmysqlclient16-dev was deleted from the repository, if you need to get the package you need to add the repo into … Continue reading

Posted in Linux, System OS | Tagged , | Leave a comment

Debian: Bundle command not found

Reference:http://stackoverflow.com/questions/6675373/bundle-command-not-found-in-linux-debian Supposed you have already installed ruby and rubygems in Debian, and install bundler using gem install command, however when you are trying to get bundle update you got an error which says bundle command not found. The path to … Continue reading

Posted in Linux, System OS | Tagged , | Leave a comment

Setting up SQUID proxy on CentOS

I have heard that Squid supports Cisco WCCP version 1 and 2, I need a proxy server / cache engine that can help me do proof of concept with WCCP. I created a VM which runs on CentOS, and install … Continue reading

Posted in Linux, System OS | Tagged , , , , , , , | Leave a comment

CentOS6.2: Installing apache webserver

I really like Debian based linux, and I really prefer apt to yum. Searching packages from apt is easier than from yum in my humble opinion. CentOS rename the package the same as RedHat I supposed, apache cannot be found … Continue reading

Posted in Linux, System OS | Tagged , , , | Leave a comment

CentOS6.2: Static IP and default gateway

I am a debian linux user, the way CentOS configures is slightly different, this post is a reminder for myself. Statically assign ip address to an interface on boot Edit the script file /etc/sysconfig/network-scripts/ifcfg-eth0 Use a text editor to put … Continue reading

Posted in Linux, System OS | Tagged , , , , | 1 Comment

CentOS 6.2: mcrypt and libmcrypt not found in yum repolist

mcrypt is an encryption program which replaces old unix crypt program. The libmcrypt is the library file of mcrypt. CentOS version 6 repolist does not maintain mcrypt and libmcrypt, if you really must use mcrypt or libmcrypt use the Fedoraproject … Continue reading

Posted in Linux, System OS | Tagged , , | Leave a comment

BT5r2: Auto-resize after upgraded from BT5r1 to r2

Previously BT5r1 auto-size guest display worked perfectly, however I did a distro upgrade  from r1 to r2 and got problem doing auto resizing. Well here’s how to do it: 1. prepare-kernel-sources this script is included with BT, great script for … Continue reading

Posted in General stuffs, Linux | Tagged , , | 4 Comments