Thursday, July 15, 2010

pulseaudio switch default sound card

$ pacmd
>> list-sinks
>> set-default-sink 1

Sunday, July 11, 2010

Change default port apache2 ubuntu

in /etc/apache2/ports.conf, change 80 in these lines:
NameVirtualHost *:80
Listen 80


also, in /etc/apache2/sites-enabled/000-default:
<virtualhost *:80>

Tuesday, June 22, 2010

~/.Xdefaults

XTerm*reverseVideo:true

Wednesday, June 16, 2010

djb stuff on newer ubuntu

Since maybe 9.04 (for sure on 10.4), djb stuff (daemontools, ptyget, ...) does not compile out of the box. The only change needed is to replace, in errno.h,
extern int errno;
with
#include <errno.h>

Tuesday, June 15, 2010

blogger publish preview broken?

Sometimes, preview doesn't show newlines correctly, like paragraphs are concatenated.

tag doesn't work either.

EDIT: html tags are not escaped in compose mode?

EDIT: as of July 2010, previews are supposed to be accurate (blogger update).

dbus and X forwarding

Under Ubuntu 10.4
It seems some files under ~/.dbus are set to owner root, which causes problems when starting an X application over SSH.

chowning -R ~/.dbus to user seems to fix the problem.

Under Windows 7
PuTTY often crashes when forwarding an X application. Could this be related?

Monday, June 14, 2010

~/.vimrc

set autoindent number
set ts=2
set hlsearch
syntax on
colorscheme darkblue


On Linux, file is ~/.vimrc
On Windows, you put a file named _vimrc in the root of user directory (ex: C:\Users\username).
Also, add something like

behave mswin
set guifont=Lucida_Console:h12:w6.5
set nobackup nowritebackup noswapfile