So, I’m building a new desktop and thought I’d drop my shopping list here….
usbguard is a project that prevents authorized USB devices from connecting to your Linux system.
So, here’s my first stab at creating a public PPA for Ubuntu 16.04:
From this project:
Inspired by this post, NFA Fun Data by state, and feeling that Utah was underrepresented, I crunched some per-capita numbers using the census estimated populations for 2014. Here are the top states for each section (per 10,000 people):
Top state for Machine Guns: Connecticut at 74 per 10k people
Top state for Silencers: Utah at 171 per 10k people
Top state for Destructive Devices: Wyoming at 2,022 per 10k people (D.C. is #2 at 583)
Top state for Short Barreled Rifle: New Hampshire at 21 per 10k people
Top state for Short Barreled Shotguns: Alaska at 16.9 per 10k people (D.C. a close 2nd place at 16.6)
Top state for Any Other Weapons: Wyoming at 5 per 10k people
Top state for FFLs: Wyoming at 15.3 per 10k people (Montana a close 2nd place at 15.2)
Utah made the list!
I must admit that I was initially surprised to see D.C near the top of the lists, but I suspect that it is due to Law Enforcement Agencies. It is interesting to note that D.C. only has 25 FFLs. Also, I have no idea why there are so many destructive devices per person in Wyoming.
Original data source ATF’s Firearms commerce in the USA
My formatted data is here and here
baloo is a performance killer in Kubuntu so I wanted it off. Here’s how:
Change the following line (or add it if it’s not there):
The view from Salt Lake City…
Error: An error occurred while trying to import the certificate /path/to/cert.p12:
Fix: import it from the command line with these two commands:
openssl pkcs12 -in cert.p12 | gpgsm --import
gpgsm --call-protect-tool --p12-import --store -P password cert.p12
Linux has protections in place to prevent you from running shell scripts with root permissions that have the setuid bit set.
But there’s a way to work around that. (yay! but also be careful!)
You’ll need to create a binary with setuid on it…. Here’s how to create the binary:
Create the your C file (somefile.c)
setuid( 0 );
system( "/yourpath/to/yourscript.bash" );
gcc somefile.c -o somefile
Set permissions on it:
chown root:root somefile
chmod 4755 somefile
Error (or undesired behavior, in this case): Out of Memory killer kills mysqld when memory runs low. I’d rather have it kill apache processes instead.
Fix: specifically exclude OOM from killing the mysqld process with:
echo -17 > /proc/`cat /var/run/mysqld/mysqld.pid`/oom_adj
When setting up an Amazon Elastic Load Balancer (ELB) with SSL:
Error: “Error: Invalid Private Key” when attempting to upload your keyfile to Amazon EC2
Convert the key to a format that ELB likes with the command:
openssl rsa -in somekeyfile.key -outform PEM
edit: I got this message today “Error: Unable to parse certificate.” when I was adding a new SSL certificate for a loadbalancer. It turned out to be my key. The command above fixed it.
I must admit I’m a bit surprised. This morning, I tweeted about a DNS issues I was seeing on some EC2 instances (which turned out to be a Godaddy problem)
Amazon responded to my tweet by opening up a support case:
I am sorry to hear that you are having issues with DNS Services, Can you please let us know what issues you are seeing so we can resolve this for you.
Amazon Web Services
I must admit, I’m surprised and impressed. Good job AWS!