Barnoid’s Knowledge Base

Bits of Collected Wisdom

September 10th, 2008

Ebuild for nslookup / dig?

Can’t find the ebuild containing nslookup or digg? Install the bind-tools:

# emerge -avD net-dns/bind-tools

and you’re all set:

# nslookup 127.0.0.1

Server:        xxx.yyy.zzz.1
Address:    xxx.yyy.zzz.1#53

1.0.0.127.in-addr.arpa    name = localhost.
September 1st, 2008

Thunderbird + Lightning: Layout Messed Up?

If Thunderbird’s Lightning calendar extension messes with your Thunderbird layout and doesn’t work as expected, make sure to install libstdc++5 and then re-install Lightning.

# emerge -av libstdc++

[ebuild  N    ] virtual/libstdc++-3.3

September 1st, 2008

VIM: Search for selection

After yanking a piece of text into the buffer, you can search for it by pressing <ctrl>-<r> ” (that is: control-r double quotes) in search mode (”/”).

September 1st, 2008

VIM <-> X11 middle-mouse copy/paste

That one is easy: just enable the “vim-with-x” USE flag and recompile vim:

# echo "app-editors/vim vim-with-x" >> /etc/portage/packages.use

# emerge -av vim

[ebuild   R   ] app-editors/vim-7.2  USE="acl gpm nls perl python vim-with-x -bash-completion -cscope -minimal -ruby -vim-pager”