content top

History

History

A history file on Linux is one of the important files for the Audit Trail. But there are some complications with it if you use the Red Hat standards. Here i’m going to explain how a simple script can make your life much easier later. Timestamps First of all if you check a history file, you do not know at what date / time a user executed a specific command. So that last shutdown -r you see might be the reason you server went down....

Read More

Steam

Steam

Onlangs wilde ik een spel kopen en ging ik naar Steam, alleen ging ik via mijn werk. En deze wordt schijnbaar gerouteerd via de UK. Het resultaat hiervan is dat ik alle prijzen in ponden zag staan. En in GBP is de prijs goedkoper dan in euro. Uiteraard was dit nu een uitdaging om de prijzen in dollars te krijgen. En dat was uiteindelijk niet zo heel moeilijk, via Amazon Elastic Compute Cloud (Amazon EC2) kan je namelijk on-demand VPS...

Read More

pxelinux and Windows

pxelinux and Windows

Installing RedHat / Fedora / CentOS over the network using pxelinux is pretty straightforward. But installing Windows with pxelinux is a bit harder (what a suprise…) Setup My setup contains the following systems: Windows 7 (x64) CentOS 6 (x64) 1 VM running on VMware Workstation, able to boot from the same network as CentOS 6 server Preparing an Windows PE image First you need a valid Windows P(re) E(xecute) image, this requires...

Read More

Restricted shell with OpenSSH

Restricted shell with OpenSSH

If you need to have users that can download or upload files to your server but over an encrypted (SSH) protocol you quickly end up with scp or sftp. The bad thing about this is that it requires an account, with actually a shell. What if you don’t want them give a shell, and if we are at it we also want to give that user a chrooted / jailed environment. With my search I ended up with rssh. This application gives you the possibility to...

Read More

CentOS 6 & XenServer

CentOS 6 & XenServer

Well CentOS 6 is out for some days now, and I wanted to update to it. Updating through yum wasn’t as easy as I was hoping, just pointing to the 6 repository and do yum update… too bad doesn’t work [root@www ~]# cd /etc/yum.repos.d/ [root@www yum.repos.d]# perl -pi -e 's/gpgcheck\s*=\s*1/gpgcheck=0/' *.repo [root@www yum.repos.d]# yum clean all [root@www yum.repos.d]# perl -pi -e 's/\$releasever/6/g' *.repo [root@www...

Read More

Encode PHP

Encode PHP

There are a lot of tools to encrypt your PHP files, most of them cost a lot of money. Here are some examples: Zend Guard $696 ByteRun Protector for PHP $49 ionCube PHP Encoder $199 Source Guardian $199 NuSphere Nu-Coder $299 Besides this you have a lot of free encoders, who are quite useless. You can recognize them on that your encoded PHP file will have a eval() somewhere in it. <?php...

Read More

Your own certificate authority

Your own certificate authority

If you want to run your website with https, or you want to use client verification, or any other SSL enabled mechanism you will need a certificate. If you don’t want client verification you could create your own certificate using a self-signed certificate. But in this article I will explain how to run your own Certificate Authority, so you can sign your own certificates. No, browsers will still give you the warning unless you install...

Read More
Page 1 of 712345...Last »
content top