Installing Squid on ZFS

The recommended filesystem for Squid on OpenSolaris is ZFS: http://wiki.squid-cache.org/BestOsForSquid It is also recommended to disable the atime property on the filesystem holding the cache, and you may want to avoid using any type of RAID. To achieve this on Nexenta (or OpenSolaris, whatever), first create the ZFS filesystem: # zfs create -o atime=off -o mountpoint=/var/spool/squid3 syspool/squidcache Then install Squid (here for version 3.x, as you might have noticed from the com

HOWTO Install and maintain free software easily under Solaris: pkg-get

This article was first written in August 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/161).
pkg-get is somewhat a rewrite of the apt-get of to Sun's Solaris. It is a script that uses wget and the pkg suite [1] of tools from Solaris to install, upgrade, and uninstall free software easily on Solaris. The list of packages available is already impressive: http://www.blastwave.org/packages.php. To

HOWTO Manually set NIC speed on Sun Solaris

This article was first written in July 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/143).
Here is how to set manually speed and duplex parameters on network interfaces in Sun Solaris. Adding the following code (comment lines start with '*') to you /etc/system file and rebooting will put your hme type interfaces to 10 Mbits/s Half-Duplex: * * set hme driver modes * *set hme:hme_adv_100T4_cap = 0 *set hme:hme_adv_100fdx_cap = 1 *set hme:hme_adv_100hdx_cap = 0 *set hme:hme_adv_10fdx_cap = 0 set hme:hme_adv_10hdx_cap = 1 set hme:hme_adv_autoneg_cap = 0

Running PostgreSQL on Solaris 8

This article was first written in February 2004 for
the BeezNest technical website (http://glasnost.beeznest.org/articles/107)
The default values for Shared Memory in Sun's Solaris (starting from 2.6, at least) are set too low to run. Here is how to change it (see also PostgreSQL's Admin Guide, Managing Kernel Ressources): The relevant settings can be changed in /etc/system, for example: set shmsys:shminfo_shmmax=0x2000000 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=256 set shmsys:shminfo_shmseg=256 set semsys:seminfo_semmap=256 set semsys:seminfo_semmni=512

HOWTO Determine which application is listening on a network port under Solaris

This article is incomplete and was first written in July 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/362).
Netstat on Solaris (at least until 10 04/06) is not able to list which application is listening to which network ports but you sometimes need this. A simple script just doing the job Though, this script is pretty rough, and very slow.

Sun Solaris

This article was first written in February 2006 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/326).
Sun Solaris is probably today's most-used UNIX OS around, probably due to its security and high-performance approach. It has been traditionally running mostly on SPARC, a little on Intel platforms, but is now happily running on AMD64 also. Lately, Sun decided to opensource it, and everybody should probably be happy of this move.

HOWTO Netboot a Sun machine using RARP

This article was first written in June 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/271).
This article will explain how to netboot a Sun machine using RARP with a Debian/GNU Linux server. Install package rarpd:
$ sudo apt-get install rarpd
Configure your TFTP server: Adapt the options in /etc/init.d/rarpd to match the directory where you TFTP server delivers its files from. Create a /etc/ethers file:
xx.xx.xx.xx machine
Take care of «machine» name being resolvable from /etc/hosts or whatever other name-resolution system o

HOWTO Add journalization on a filesystem in Solaris

This article was first written in January 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/202).
Solaris supports journalization (aka logging) on UFS filesystems which allows for shorter reboot times after a crash. To activate it, it is really simple: Go edit /etc/vfstab and add the term logging in the last column (mount options) for the UFS filesystems you want.