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
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
So, I burn a fresh CD in my MacBook Pro and it gets stuck. When I hit the eject key, it tries to come out but only pokes out a couple of millimeters before getting sucked back in.
Searching all over the internet, Mac users were useless for helping me. Everyone suggested alternate ways to eject the disc (push the eject key, command-E, drag the disc to the trash, hold down the mouse button on boot) ignoring the fact that it may be physically stuck.
Then I found the solution (queue the angelic choir)
*** Do this at your own risk. It worked the first time for me but I take no responsibility for you doing something stupid and messing up your laptop. ***
There are two levers on a slot-loading CD/DVD drive that help center a CD/DVD disc. Some CDs and DVDs have an uneven edge which can cause enough friction to prevent the disc from ejecting.
If this happens follow these steps:
1. Take a large paperclip and grasp it with one hand so that about three quarters of an inch, or 18 millimeters, extends beyond your fingers. Insert the paperclip into the CD/DVD slot about 1.5 inches, or 36 millimeters, from the left edge of the slot.
2. With the other hand, push the eject key on the keyboard to eject the disc. When you hear the disc attempt to eject, slide the paperclip to the left edge of the slot and then remove the paperclip. You should feel a little resistance from the spring loaded centering lever.
3. Once the disc has been successfully ejected, wipe the outside edge of the CD/DVD with your hands. Cleaning the edge of the disc in this way will reduce the likelihood of the disc becoming stuck again.
When building ruby 1.9.2 on Ubuntu 11.10
ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
ossl_ssl.c:111:1: error: ‘SSLv2_server_method’ undeclared here (not in a function)
ossl_ssl.c:112:1: error: ‘SSLv2_client_method’ undeclared here (not in a function)
make: *** [ossl_ssl.o] Error 1
make: Leaving directory `/home/username/.rvm/src/ruby-1.9.2-p180/ext/openssl’
make: *** [mkmain.sh] Error 1
rvm pkg install openssl
rvm install ruby-1.9.2-p180 –with-openssl-dir=$rvm_path/usr
If you run Ubuntu 11.10 (Oneiric Ocelot) on Amazon EC2, you may notice an annoying “feature” that they enabled on this release. A byobu session is started when you login.
Fortunately, this is easy to fix:
Also fortunate, this will not be the case for future releases as it has been removed.
I recently ran into this error part way through when checking out a large repository from subversion:
svn: REPORT of '/svn/!svn/vcc/default': Could not read chunk size: connection was closed by server (http://some.hostname.com)
Since it was a rather large repository, I’m guessing it is the size of this checkout process causing the problem. Fortunately, the fix is easy. You just have to go into the directory with the partial checkout and run ‘svn up’ In my case, I had to run it two more times to get the entire repository.
Dragging a window in KDE to the top of the screen maximizes the window (this is another personal preference
Go to System Settings, Desktop, Screen Edges and uncheck “Maximize windows by dragging them to the top of the screen”, then click “Apply”
Default editor for common commands is nano (yes, this is an error in my eyes)
sudo update-alternatives --config editor
Unable to open env file: /etc/default/locale: No such file or directory
I recently upgraded my systems to Kubuntu 9.10 and when I plug in my Treo 755p to charge, it keeps rebooting over and over.
The fix is simple. Add the following line to /etc/modprobe.d/blacklist.conf: