Author Archives: kenno

VIM backspace delete problem

In insert mode, backpace doesn’t delete characters as intended. To fix it add this to .vimrc:

set backspace=indent,eol,start

Ref: http://vim.wikia.com/wiki/Backspace_and_delete_problems

Tagged ,

FreeBSD: How to check version of installed packages

# pkg_version -v

Running pkg_version -v could take a while. If we only want a quick look:

# pkg_info -xI

If we want to see if some packages are out of date:

# pkg_version -v -X -s

And to check all out of date packages:

# pkg_version -vL "="

Tagged

Installing FreeBSD 9 source

Well, I need FreebSD 9 source to compile fusefs-kmod, which is required by gvfs, which’s in turn required by xfce.

A lot of people recommend to use sysinstall to add the so called userland sources.

sysinstall -> Configure -> Distribution -> src

However, it didn’t work!!

Thanks to wblock@[1] who pointed out that “sysinstall is mostly dead” and suggested a few ways to get the sources to your system. One of them is:

Download the tar file that matches the version you installed. In my case it’s amd64:
# wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.0-RELEASE/src.txz

Unpack the archive to /usr/src:
# tar -C / -xvzf src.txz

[1] http://forums.freebsd.org/showthread.php?t=29172

Tagged

Change cursor theme in Xfce on Freebsd

1. Install the preferred cursor theme. I personally like dmz-cursor-theme.

# pkg_add -r cursor-dmz-theme

2. Then, Applications Menu -> Settings -> Mouse. Click on Theme tab, select the preferred theme and click Close.

3. Log out of the current Xfce session, then log back in.

Tagged , ,

KDE4 System-wide Force Font DPI Setting

Recently, while setting up a Kubuntu Linux terminal server using freenx, I’ve got an issue with the font display being too small. A quick check in Font settings (Applications -> Settings -> System Settings -> Fonts) showed that the “Force fonts DPI” was set to Disabled.

To correct this per user, it’s as easy as to select the 96 DPI from the drop down menu, logout and log back in. However, if we want to apply this setting to all users, there’s a bit of more work.

Create a file /usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kcmfonts. Then add the following content:

[General]
dontChangeAASettings=true
forceFontDPI=96

If you’ve previously logged on before, you might want to delete this file $HOME/.kde/share/config/startupconfig so that it can be generated again.

Tagged , ,
Follow

Get every new post delivered to your Inbox.