Monthly Archives: February 2013

OpenBSD: /tmp in memory


My laptop is equipped with a reasonable amount of memory (8 Gb), never used in its entirety. Surplus memory can be used, for example, for memory file systems, and /tmp in particular. Simply edit /etc/fstab and comment the /tmp line … Continue reading

Posted in BSD, OpenBSD | Leave a comment

OpenBSD: automate wired/wifi network connection


Despite of missing applications like NetworkManager in OpenBSD, it’s possible to implement some kind of network autodetection, wired and wireless. I launch the following script in the boot process: /etc/activatewifi.sh #!/bin/sh IF_WIRED=em0IF_WIRELESS=iwn0 WIFI_SCRIPT=”/etc/wifinwid ${IF_WIRELESS}” STATE_IF_WIRED=`ifconfig $IF_WIRED |grep status|cut -d: -f … Continue reading

Posted in BSD, OpenBSD | Leave a comment

OpenBSD: adding a partition


Add a new partition to a whole system is a matter of editing the bsdlabel and format the partition. In my case, the disk is structured as:# fdisk sd1 Disk: sd1       geometry: 32301/240/63 [488397168 Sectors]Offset: 0       Signature: 0xAA55            Starting         Ending         … Continue reading

Posted in BSD, OpenBSD | Leave a comment