Droo-Labs

the perspicacious ramblings of droo

December, 2009

.htaccess – No Auth for local access/Auth for outside access

For this, we’ll throw an .htaccess file into the directory you don’t want anyone to access that’s served via apache. For this, we’ll also have to have the following set for the directory in the httpd.conf file: AllowOverides AuthConfig Here’s what the .htaccess file should look like (with a few modifications for location and network […]

,

Fixing The Error: DB_RUNRECOVERY: Fatal error, run database recovery

If you get a message similar to this: [username@localhost ~]$ sudo yum update rpmdb: Thread/process 2402/139688794072832 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 – (-30974) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed […]

,

HowTo: Clone a VirtualBox HDD (.vdi)

Okay, this will be short and sweet. Here’s how you clone a VirtualBox HDD in Windows: “C:\Program Files\Sun\VirtualBox\VBoxManage.exe” clonevdi “C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP.vdi” “C:\Users\Andrew\.VirtualBox\HardDisks\Windows XP Clone.vdi” and in Linux: VBoxManage clonevdi /home/andrew/.VirtualBox/HardDisks/WindowsXP.vdi /home/andrew/.VirtualBox/HardDisks/WindowsXPClone.vdi The basic form is “VBoxManage clonevdi sourcevdi destinationvdi”. Now you may ask, why clone a virtual machine’s hard drive? Well, if you want to […]

, ,