Jan 20
pdfcrop <inputfile> <outputfile>
“pdfcrop is a utility to calculate and remove empty
margins from each page in the input PDF file. The
resulting output file occupies the minimal paper size
needed for the contents and is therefore suitable for
inclusion as a graphic.”
Thanks, Töns.
Feb 21
Ever tried to get rid of the annoying PC Speaker sound (e.g. when using auto-completion in a shell)? Under Ubuntu (and probably other distributions as well) do the following to bring silence to the masses:
For the running system:
rmmod pcspkr
Forever (aka after a reboot) edit /etc/modprobe.d/blacklist and add the following line to the bottom
blacklist pcspkr
Feb 21
Since upgrading to Ubuntu Hardy (what was I thinking when I did that…) I had the weird issue of my external screen (connected via VGA out) going black after a non-specific amount of time (e.g. sometimes after an hour, sometimes after 6 hours). xrandr still showed the external screen as connected and the monitor also received enough signal to actually not go into standby mode but whatever I tried, nothing made the black screen show my desktop again. So here is the workaround if you inhibit a similar type of issue (additionally the external screen lost sync for a tiny amount of time creating some kind of funny disturbed images from time to time – flickering if you will or maybe the matrix just tried fight it’s way to the surface):
Edit your xorg.conf to include the following Option in the Device Section of “Configured Video Device”:
Section "Device"
Identifier "Configured Video Device"
Option "FramebufferCompression" "off"
EndSection
Interesting: With the latest Ubuntu release the goal seems to be to actually have X guess all the configuration settings automagically so the xorg.conf was pretty empty after a fresh installation.
Nov 09
http://ubuntuforums.org/showthread.php?t=263851
Recent Comments