Droo-Labs

the perspicacious ramblings of droo

Linux

Triple Head with nVidia Optimus on Fedora 21 (includes Docking udev Rules for Systemd)

In this post, we’re going to look at how to setup a laptop (Lenovo T530, in this case) to utilize both the nVidia and Intel GPUs to drive a triple head or quadruple head system and to automatically configure those displays at boot, on docking, and undocking. If you don’t have a Lenovo T530, aren’t […]

, , , , , , , , ,

Running Scripts Using NetworkManager

For years now, I’ve had to run vpnc after connecting my school’s wireless. Truly, it never bothered me; however, at my new job, I need to run route after I connect to their wireless. For whatever reason, that got to me. I didn’t really want to run route when I wasn’t on their network (it […]

, , ,

Distributed Commands With Ruby

Lately, I’ve been getting acquainted with Rails development at work. It’s been a pretty steep learning curve (for that matter, I guess it still is), but I’ve enjoyed it thus far. So, with my new found Ruby skills (or, I guess more-so my new found need to learn Ruby), I wrote a script that uses […]

, , , , ,

HowTo Setup Authenticated Postfix

I recently had the experience of setting up Postfix. It works really well, in my opinion; however, setting it up wasn’t the simplest for what I wanted. But, at least it was simpler than sendmail Reading through several articles on the Internet, everyone was giving steps on how to setup postfix to handle e-mail for […]

, , ,

Quick Overview of SELinux and Apache

I found this link on-line and found it to be quite useful. http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux I refer to it often as I forget some of the commands once in a while when I add new files for Apache to serve.

,

DBDesigner 4 on Fedora 12

I found this very useful article on running DBDesigner 4 on Fedora 8, here. I followed the directions and found it to work on Fedora 11 and Fedora 12. I’m sure it’ll work for just about any distro, so I’m just reposting the directions here as I find it to be a very useful program. […]

, , ,

.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 […]

, ,