September 28, 2014
I don't play the lottery but I find random number generators and the Linux Kernel interesting so I wrote a simple Linux Kernel module that does a PowerballTM "quick pick". You can download it from GitHub: https://github.com/gdonald/linux-kernel-powerball-module
linux (10) kernel (5) lottery (1) powerball (1) module (1)
January 26, 2010
If you're using a flavor of *nix that has an rc.local file, and then you start using Debian GNU/Linux, you might be wondering where your rc.local file is. Quite simply, it's not there. Here's how to add it.
Create a new file named /etc/init.d/local like this:
#!/bin/sh
# put startup stuff here
Make the file executable:
chmod 755 /etc/init.d/local
Add it to startup:
update-rc.d local defaults 80
You should be seeing something like this:
Adding system startup for /etc/init.d/local ...
/etc/rc0.d/K80local -> ../init.d/local
/etc/rc1.d/K80local -> ../init.d/local
/etc/rc6.d/K80local -> ../init.d/local
/etc/rc2.d/S80local -> ../init.d/local
/etc/rc3.d/S80local -> ../init.d/local
/etc/rc4.d/S80local -> ../init.d/local
/etc/rc5.d/S80local -> ../init.d/local
linux (10) debian (5)