/etc/X11/xorg.conf

May 7, 2008
# /etc/X11/xorg.conf
#
# LOG:
# version 0.2 (2008 May 7)
# version 0.1 (?? ??, ??)
#
# NOTES:
# The touchpad acceleration options are still not ideal.
#

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"
    Identifier    "Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "InputDevice"
    Identifier    "Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/input/by-path/platform-i8042-serio-4-mouse"
    Option        "Protocol"        "auto-dev"
    Option        "LeftEdge"        "1400"
    Option        "RightEdge"        "5500"
    Option        "TopEdge"        "1700"
    Option        "BottomEdge"        "4400"
    Option        "FingerLow"        "25"
    Option        "FingerHigh"        "30"
    Option        "MaxTapTime"        "180"
    Option        "MaxTapMove"        "220"
    Option        "VertEdgeScroll"    "true"
    Option        "HorizEdgeScroll"    "true"
    Option        "VertScrollDelta"    "100"
    Option        "HorizScrollDelta"    "100"
    Option        "MinSpeed"        "0.1"
    Option        "MaxSpeed"        "0.5"
    Option        "AccelFactor"        "0.001"
    Option        "SHMConfig"        "on"
EndSection

Section "Device"
    Identifier    "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Driver        "ati"
    BusID        "PCI:1:5:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "ATI Technologies Inc RS300M AGP [Radeon Mobility 9100IGP]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Modes        "1024x768"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Mouse"
    InputDevice    "Touchpad"
EndSection

An older version which worked with Beryl (but couldn’t suspend to disk):

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/X11/fonts/misc"
    FontPath    "/usr/share/X11/fonts/cyrillic"
    FontPath    "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/Type1"
    FontPath    "/usr/share/X11/fonts/100dpi"
    FontPath    "/usr/share/X11/fonts/75dpi"
    FontPath    "/usr/share/fonts/X11/misc"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load    "i2c"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "type1"
    Load    "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
#    Option        "XkbOptions"    "lv3:ralt_switch"
EndSection

Section "InputDevice"
    Identifier    "Touchpad"
    Driver        "synaptics"
    Option        "Device"        "/dev/input/by-path/platform-i8042-serio-3-"
    Option        "Protocol"      "auto-dev"
    Option        "LeftEdge"      "1400"
    Option        "RightEdge"     "5500"
    Option        "TopEdge"       "1700"
    Option        "BottomEdge"    "4400"
    Option        "FingerLow"     "25"
    Option        "FingerHigh"    "30"
    Option        "MaxTapTime"    "180"
    Option        "MaxTapMove"    "220"
    Option        "VertEdgeScroll" "true"
    Option        "HorizEdgeScroll" "true"
    Option        "VertScrollDelta" "100"
    Option        "HorizScrollDelta" "100"
    Option        "MinSpeed"      "0.05"
    Option        "MaxSpeed"      "0.18"
    Option        "AccelFactor"   "0.0005"
    Option        "SHMConfig"     "on"
EndSection

Section "InputDevice"
    Identifier    "Mouse"
    Driver        "mouse"
    Option        "Device"        "/dev/input/mice"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "Device"
    Identifier    "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
    Driver        "ati"
    Option        "DRI" "true"
    Option        "ColorTiling" "on"
    Option        "EnablePageFlip" "true"
    Option        "AccelMethod" "EXA"
    Option        "EXANoOffscreenPixmaps"
    Option        "RenderAccel" "true"
    Option        "AGPFastWrite" "on"
    BusID        "PCI:1:5:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
    HorizSync    28-51
    VertRefresh    43-60
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "ATI Technologies, Inc. Radeon Mobility 9100 U3 (R200 IGP)"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Depth        24
        Modes        "1024x768"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    Option        "AIGLX" "true"
    InputDevice    "Generic Keyboard"
    InputDevice    "Touchpad"        "SendCoreEvents"
    InputDevice    "Mouse"            "CorePointer"
EndSection

Section "DRI"
    Mode    0666
EndSection

/etc/network/interfaces

May 7, 2008

Censorship is so easy to forget!!

# /etc/network/interfaces
#
# LOG:
# version 0.3 (May 07, 2008)
# version 0.2 blessed be NetworkManager (?? ??, ??)
# version 0.1 a Windows-shared connection is NOT_A_GOOD_THING (tm) (?? ??, ??)
#
# TODO:
# WPA eventually
#

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid Wireless
wireless-key s:XXXXXXXXXXXXXXXXXXXXXXXX

auto wlan0

An older version:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
#iface eth0 inet static
#    address 192.168.2.2
#    netmask 255.255.255.0

auto wlan0
iface wlan0 inet static
    address 192.168.0.3
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1
    wireless-essid try
    wireless-key ####################
    wireless-mode Ad-Hoc

#iface wlan0 inet dhcp
#    wireless-essid wl600g
#    wireless-key ####################
#    wireless-mode Managed

/etc/apt/sources.list

May 7, 2008
# /etc/apt/sources.list
# version 0.2 (May 07, 2008)
# version 0.1 MD mirrors are infuriating (?? ??, ??)
# 

# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-updates main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-backports main restricted universe multiverse
# slow # deb ftp://ftp.lug.md/pub/mirrors/ubuntulinux.org/ubuntu/ gutsy-security main restricted universe multiverse

deb http://md.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://md.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://md.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse


/etc/bash.bashrc

May 7, 2008

I am proud of my aliases

See also this thread.

# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
#    ;;
#*)
#    ;;
#esac

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
    case " $(groups) " in *\ admin\ *)
    if [ -x /usr/bin/sudo ]; then
    cat <<-EOF
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
   
    EOF
    fi
    esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
    function command_not_found_handle {
                /usr/bin/python /usr/lib/command-not-found -- $1
                return $?
    }
fi

# EXIT:
alias grep="grep --color=auto"
alias ls='ls --color'
alias ll='ls -l'
alias l='ls -CF'
alias la='ls -A'
alias lla='ll -A'
alias dir='ls -ba'
alias lh='ll -h'

alias dh='df -h'
alias dhh='dh ~ / /media/big/'
alias md='mkdir'
alias c='clear'
alias p='pstree -pl'
alias j='jobs'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias e='editor'
alias v='view'
alias m='less -i'
alias a='cat'
alias h='history 30'
alias hh='history'

alias gh='history |grep ' # arg
alias ii='dpkg -l |grep -i' # arg
alias ir='ps aux |head -n 1 && ps aux |grep -i $1' # this one outputs some garbage at the end.
                                                   # can't find an easy way to avoid it.
# not as harmless as they look!
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

alias rmi='rm -i'
alias cpi='cp -i'
alias mvi='mv -i'

alias rmprog='rm -vf *.o *.e *.bak *~ *.out *.class *.gcov *.gcda *.gcno'

# alias xwpe='xwpe -font 9x15'
# when I used to use xwpe
# alias hibernate='kdesktop_lock --forcelock &  sudo hibernate'
# when I used to use swsusp2

alias push='pushd .'
alias pop='popd'
# any ideas for better names?

alias tpush='rm -f /tmp/pushed_pwd && pwd >/tmp/pushed_pwd && chmod a+rw /tmp/pushed_pwd'
alias tpop='cd "$(cat /tmp/pushed_pwd)"'

alias smbx='sudo mount -t smbfs -o username=exit //desktop/x$ /media/samba/'
alias unsmbx='sudo umount /media/samba/'

alias ase='apt-cache search'
alias ash='apt-cache show'

set -o noclobber

HISTSIZE=10000
HISTFILESIZE=10000

alias calc='bc -ql'
alias lg='lsof -n |grep -i ' # arg
alias ko='kfmclient openURL'
alias whatip='w3m -dump whatismyip.org'

LOGGED_IN_AT=$(date)
echo "Logged in at $LOGGED_IN_AT"

# /EXIT:

.vimrc

May 7, 2008
" .vimrc
" version 0.03 +-comments (May 07, 2008)
" version 0.02 added case stuff (May 12, 2007)
" version 0.01 first created on Apr 2, 2007.
"

set number
set cindent
set ignorecase
set hlsearch
set smartcase
set background=dark
syntax on
map <F9> <Esc>:w<CR>:make<CR>

" backspace=indent,eol,start is the default here, some greasy lizards screw
" this up.