Monday, April 25, 2005

rc.conf.local

You need a rc.conf.local in your /etc directory. By default, it is not there.
The rc.conf.local is basically a local extension of your rc.conf file. Instead
of editing the rc.conf file directly, you edit rc.conf.local and put your
settings there.

for example, in my rc.conf
wsmoused_flags=NO

so, to enable it, I would put in rc.conf.local
wsmoused_flags=""

Add X11R6 path to .profile

If you are using the sh or Korn shell, the .profile is being read.
By default, the path to X11R6 is not there. Simply add it there.

.profile

PATH = $HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/X11R6/bin:.

The ":" above are separators and the "." is meant as the current dir.
If you are root, you should not include the current dir.

Monday, April 18, 2005

How to Get Colors in OpenBSD Terminals

Due to compliance with POSIX standards, by default you won’t get any colors in terminals in an out-of-the-box OpenBSD installation as the default terminal is vt220. Here is what you need to do:

A. Colors in Terminals without X
1. Install the "colorls" package
2. In ~/.profile, set your TERM so that it supports color and create an alias for "ls" command so that it will show list of color directories in color.

export TERM=wsvt25
alias ls='colorls -G'

B. Colors in Terminals with X (xterms)
The only issue here is when you open xterms it won’t read your ~/.profile file (the xterm is not a login shell) as OpenBSD has followed the xfree86 way. So, in ~/.Xdefaults add the following line:

XTerm*loginShell: true

If you don’t have the .Xdefaults file in your home directory, simple copy it from /etc/X11/app-defaults/ directory.

Comment: Yeah, you have to do a bit of tweaking, but the wonderful fact is the way OpenBSD sticks to compliances and standards. There is always a clear policy why things happen and not just because of arbitrary decisions or random user needs.

A Tribute to OpenBSD

Of all the operatings sytems I have tried, nothing has captivated my attention and heart more than OpenBSD.

Many praise OpenBSD because of it's security. OpenBSD is not only secure, but also has very high quality code and structure. The tools are extremely reliable. And, if something seems odd to you, rest assured there has been a very good reason why the OpenBSD team has left it to its oddity.

Cheers!