Wednesday, October 3, 2012

Sync Linux and Windows Clocks

Windows doesn't handle the PC clock correctly, so when dual-booting or multi-booting with other operating systems, such as Linux, the time which Windows shows will be wrong.  On Linux (as root) run:
hwclock --localtime --systohc

Wednesday, September 12, 2012

Paging to a regular file

From http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/:

cd /
dd if=/dev/zero of=/swapfile1 bs=1024 count=262144
mkswap /swapfile1
chown root:root /swapfile1
chmod 0600 /swapfile1
swapon /swapfile1
vi /etc/fstab:
   /swapfile1 swap swap defaults 0 0

Tuesday, July 24, 2012

Solaris: mounting NFS filesystems at startup

By default Solaris doesn't mount NFS partitions when it starts.

Fix it with:

svcadm enable network/nfs/client
 
Alternatively only mount the NFS partition when it's needed.  Add this to
/etc/auto_master:
 
/mnt            auto_cpan       -ro,-nobrowse
 
Then create the file /etc/auto_cpan:
 
 +auto_cpan
CPAN -ro,actimeo=0 gateway:/var/www/mirrors/CPAN
 
 

Friday, April 27, 2012

Putting a C compiler on OpenIndiana

Seems to be gcc version 3 only.  Also, it's impenetrable getting SunStudio to work on it, so don't bother.

pfexec pkg install developer/gcc-3
pfexec pkg install developer/opensolaris/pkg5 developer/build/automake-110 developer/build/autoconf