Wednesday, September 5, 2012

Downloading unapproved attachments in Outlook

If you want to download an unapproved attachment in Outlook (that it actually already downloaded, but is protecting you from), you have to edit the goddamn registry. Even in Outlook 2010. Apparently it's been this way since Outlook 2000.
Anyway, here's the link to the MSKB, which pretty much says add a string key to HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security called Level1Remove containing semicolon-separated file extenstions (including the dot) that you wish to be able to download from an email you received. So, it would contain something like ".exe;.jar;.bat" if you can trust yourself to not become the reason email attachment viruses successfully spread.

Monday, June 11, 2012

Optimizing Lubuntu 12.04 for solid-state drives

1. add noatime and discard to root drive
sudo nano /etc/fstab

UUID=265db2a0-0839-4299-8995-b8ead0acda42      /      ext4    discard,noatime,errors=remount-ro 0 1


2. add tmpfs ram filesystem folders for /tmp, /var/tmp, /var/log

tmpfs   /tmp             tmpfs   defaults   0 0
tmpfs   /var/tmp       tmpfs   defaults   0 0
tmpfs   /var/log        tmpfs   defaults   0 0

3. set chromium-browser to use cache folders in /tmp ramdrive
sudo nano /usr/share/applications/chromium-browser.desktop
#Exec=/usr/bin/chromium-browser %U
Exec=/usr/bin/chromium-browser --disk-cache-dir="/tmp/chromium-browser" %U

4.Edit /etc/default/grub using your favorite editor, and add "elevator=noop" to the list of GRUB_CMDLINE_LINUX_DEFAULT values. The corresponding line will then look like:
GRUB_CMDLINE_LINUX_DEFAULT="elevator=noop quiet splash"

Then rebuild GRUB2 configuration files:
$ sudo update-grub

Wednesday, April 11, 2012

Arch Linux tweaks

Disable console bell/beeps:
https://wiki.archlinux.org/index.php/Disable_PC_Speaker_Beep

echo 'setterm -blength 0' >> /etc/profile
echo 'set bell-style none' >> ~/.inputrc
amixer set 'Beep' 0% mute
alsactl store

Monday, February 13, 2012

Toggle Touchpad Input in Linux

I'm using Ubuntu 11.10 Desktop on a laptop. This the bash script I wrote to toggle the touchpad on and off:

#!/bin/bash
# This script toggles the touchpad on and off
# $KEYWORD is the word grep searches with to find the id of the touchpad
# $STATE is the on or off state of the touchpad
# $ID is the xinput identifier number of the touchpad

# If this script does not work for your touchpad, look at
# the output of 'xinput list' to see what keyword to replace
# 'touchpad' with

KEYWORD="touchpad"
ID=$(xinput list | grep -i $KEYWORD | grep -o "id=.." | grep -o "[0-9][0-9]")
STATE=$(xinput list-props $ID | grep "Device Enabled[^:]*:" | grep -o "\<[01$]\>")

if [ "$STATE" == "0" ]
then
xinput set-prop $ID "Device Enabled" 1
else
xinput set-prop $ID "Device Enabled" 0
fi

exit 0