Ramblings of a Scotsman

Mon, 05 Jan 2009

Easy updating OpenBSD
It is really easy to update the base system with OpenBSD. With a persistent internet connection or the install sets on a disk you do not need to burn any more CD's.

All you have to do is pull down a bsd.rd image from an OpenBSD image from your prefered server, and then reboot
When you reach the boot>> prompt enter bsd.rd. And you will be booted into the familar cd enviroment. Everything works as normal

Have fun


posted at: 17:50 | path: /data | permanent link to this entry

Sun, 10 Aug 2008

Exaggeration is fun
Im qute bored, and I tend to exaggerate words a lot more it times of strife like these, so i wrote a very simple little tool that doesn't exactly work, which will do my exaggeration for me. Heres some source, under a lovely little BSD license contact me if you wish to reuse(Please question your sanity before touching my code)


// a simple program that exaggerated words, should copy stdin, stdout

#include 
#include 

int main(){
	int c,i;

	srandom(time(0));

	while((c=getchar()) != EOF){
		if(isspace(c))
			putchar(c);
		else 
			for(i = (random()%7)+3 ; i > 0;i--)
				putchar(c);
	}
}


That was easy any fun, if only i had the coffe to make it a real filter.


posted at: 23:24 | path: /data | permanent link to this entry

XTerm is awesome
I read a post on undeadly.org, which focused around using tools available in the base OpenBSD system to do as much as you can, before having to add more software from ports.

What stood out most for me was the awesome configuration possibilities of XTerm, no copy paste is not within grasp with the basic tool, but you can set font size and colour, and get rid of the pointless sidebar.

The config options can go several places, but I'm using .Xdefaults
Basic syntax for an option is: XTerm*option:value

For full options, as always, check the man pages and dig through documentation. Here are the basics i use some places have more, but I'm trying to make this as lean a config file as possible

XTerm*foreground:green
XTerm*background:black
XTerm*scrollBar:false

Why haven't I set a font size? Well you can, it becomes the xterm default font, but few seem to know about the secret xterm right click menu. Right click there are fancy options and control over the size of your xterm fonts.

Xterm*awesome,

jones


posted at: 11:02 | path: /data | permanent link to this entry

Thu, 17 Jul 2008

Gnash, and the power of youTube
I think the main reason flash is so popular it due to youtube, and I part of that crazy crowd. Gnash on OpenBSD is simple as getting the package with pkg_add, after that firing up firefox is easy, and boom youtube works.

Badly


posted at: 11:42 | path: /data | permanent link to this entry

Tue, 24 Jun 2008

Upgrade and Update OpenBSD
Following -current the binary way has been troubling, so far i haven't found the way to upgrade all my installed packages, with pkg_add. Looking at the OpenBSD FAQ's trying to find stuff about make.
The answer to your package upgrading nightmare

#pkg_add -ui -F update -F updatedepends

Upgrading, easy, done


posted at: 23:35 | path: /data | permanent link to this entry