Default settings  
vim.gif

.vimrc:
set uc=0
set nobackup
set nowritebackup
set noswapfile
set nomodeline
syn on

.Xmodmap:
!Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

keyboard.png

On the Kinesis keyboard, Progrm + \ turns off sound for all regular keys. Progrm + - turns off Caps Lock and Num Lock sound.

terminal.png

.bash_profile:
# Colors.
NC='\e[0m'
black='\e[0;30m'
BLACK='\e[1;30m'
red='\e[0;31m'
RED='\e[1;31m'
green='\e[0;32m'
GREEN='\e[1;32m'
yellow='\e[0;33m'
YELLOW='\e[1;33m'
blue='\e[0;34m'
BLUE='\e[1;34m'
magenta='\e[0;35m'
MAGENTA='\e[1;35m'
cyan='\e[0;36m'
CYAN='\e[1;36m'
white='\e[0;37m'
WHITE='\e[1;37m'

# A prompt showing the current directory.
PS1="\[$GREEN\]\W \[$BLUE\]$\[$NC\] "

scim-anthy.png

.bash_profile or /etc/profile or (on Gentoo) /etc/env.d/99local:
# Enable scim-anthy for Japanese character input.
export XMODIFIERS='@im=SCIM'
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"

mercurial.png

.hgrc:
[extensions]
color =

[defaults]
pull = --verbose --update --debug
update = --verbose
push = --verbose --debug
commit = --verbose

conky.png

.conkyrc:
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont Courier New:size=12
xftalpha 0.1
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 100
update_interval 1
double_buffer yes
draw_shades no
draw_outline no
draw_borders no

default_color white
default_shade_color black
default_outline_color white

alignment bottom_right
gap_x 10
gap_y 10

use_spacer right
no_buffers yes
uppercase no

TEXT
${time %A, %B %d}${alignr}${time %H:%M}
${nodename}  -  ${sysname} ${kernel}  on  ${machine}

Battery: ${battery_percent}%
Uptime:  ${uptime}
CPU:     ${cpu}% (${freq_g}GhZ, ${execi 5 acpi -t |grep 'Thermal 0' |cut -b 16-19}°C) ${alignr}${cpugauge 15,30}
${cpugraph}
Memory:  ${memperc}% (${mem} of ${memmax})
${membar 5}
Swap:    ${swapperc} (${swap} of ${swapmax})
${swapbar 5}
${color slate grey}
(CPU) NAME         PID   CPU%   MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}

(MEM) NAME         PID   CPU%   MEM%
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color}
(eth0)  ▲ ${upspeedf eth0} kB/s ▼ ${downspeedf eth0} kB/s
(wlan0) ▲ ${upspeedf wlan0} kB/s ▼ ${downspeedf wlan0} kB/s
        Mode:  ${wireless_mode wlan0}
        Essid: ${wireless_essid wlan0}
        AP:    ${wireless_ap wlan0}
${color slate grey}
/     ${fs_used /}/${fs_size /} (${fs_used_perc /}%) ${fs_bar 5 /}
/home ${fs_used /home}/${fs_size /home} (${fs_used_perc /home}%) ${fs_bar 5 /home}

transmission.png

The following does forwarding to the transmission daemon when browsing to /transmission/web/, where the daemon should be running. It is also necessary to enable mod_proxy in lighttpd. It would be appropriate to put access control somewhere in lighttpd.conf. By default, the daemon listens for local requests on port 9091, and using this, one can access it remotely. The transmission daemon is quite picky about its location — even a slight variant of this may fail.

/etc/lighttpd/lighttpd.conf:
...
$HTTP["url"] =~ "^/transmission/" {
  proxy.server = ( "" => ( (
                   "host" => "127.0.0.1",
                   "port" => 9091
                 ) )
  )
}
...
by.png
This blog entry is licensed under a Creative Commons Attribution 3.0 Unported License. For attribution of this work, link to this page and include my name, Douglas P Perkins.