I will run through some use cases for using LVM. I will begin by giving an easy-to-understand description of how LVM works. Followed by how to set up the first volume group and logical volume and I’ll end it with info on how to extend an existing partition using ext3, ext4 and XFS.… Continue reading Linux LVM – how to!
SFTP only chroot users with OpenSSH in Debian
From OpenSSH version 4.9 and up it is now possible to create chrooted SFTP-only users with OpenSSH without the need for any add-ons. In my example i want all users within the “sftp” group to hit /srv/sftponly. This can be done on userlevel or on group level. I will be using groups. At first, use… Continue reading SFTP only chroot users with OpenSSH in Debian
Howto: APC UPS and Debian
So, I have a couple of NAS boxes and a laptop as server running at home. It’s all good until thunder appears. There are multiple risks with this. If the lightning strikes it can cause large surges of electricity that will destroy your equipment, if a power loss occurs it can cause the two RAID5… Continue reading Howto: APC UPS and Debian
Setting up OpenVPN server
Please read through the entire tutorial BEFORE doing anything. If you do not read through this you might end up with some unanswered questions on how to do something, that is actually described further down. Thanks. Test setup: XEN based VPS. 256 slice from Slicehost running Debian Lenny 64-bit Let’s get started! The first thin… Continue reading Setting up OpenVPN server
Recover MySQL root password
Ever tried losing your MySQL root password, because you’re an idiot or a coworker changed it without documenting or telling? Well, within 10 minutes this can be fixed. This guide applies to Debian and probably others too. su – to root and perform the following. 1. Stop MySQL /etc/init.d/mysql stop 2. Start MySQL and skip… Continue reading Recover MySQL root password
iPhone: Customize Carrier Logo
How to make a custom logo like this To use this guide you must have access to the filesystem. If you do not know how to do this, read this post. Go to installer.app Browse to Utilities and install “Make It Mine” Access the root filesystem and browse to /System/Library/CoreServices and then ctrl+click on “SpringBoard”… Continue reading iPhone: Customize Carrier Logo
iPhone pt. 1: Accessing filesystem
So.. I got it.. The iPhone, finally. What I could do is to write the regular stuff that everyone does on how it works and so on.. But I’d rather not. Hacking devices and gadgets is funny, and that is exactly what my iPhone is. Hacked. To do all of this you need: Jailbroken iPhone.… Continue reading iPhone pt. 1: Accessing filesystem