FreeBSD: how to get rid of annoying option asking during port install
Posted on November 15th, 2011
As you may notice, sometimes you install package using ports you have been asking about some compile time options shown as dialog(1) window. That is not bad but when you need to do massive port installation or portupgrade many hundreds ports at once this can be a real pain. So, you want to trust default option set and forget about build-time-decision-making. All you need is one string in /etc/make.conf
BATCH=yes
Filed under FreeBSD | No Comments »
FreeBSD: How to set certain packages not to be updated with portupgrade
Posted on November 15th, 2011
Suppose you need some packages remain intact while updating other ones with portupgrade. Then you need to tell to do so via /usr/local/etc/pkgtools.conf
HOLD_PKGS = [
'bsdpan-*',
'tomcat-*',
'jdk-*',
'javavmwrapper-*',
'diablo-*',
]Next time you run pkgtools you see that some packages are marked as “held”
# portversion -v | grep needs ... diablo-jdk-1.6.0.07.02_16 < [held] needs updating (port has 1.6.0.07.02_17) glib-2.28.8_1 < needs updating (port has 2.28.8_2) gnutls-2.12.12 < needs updating (port has 2.12.14) jdk-1.6.0.3p4_26 < [held] needs updating (port has 1.6.0.3p4_27) ...
Filed under FreeBSD | No Comments »
Disabling mpxio in Solaris 10
Posted on September 16th, 2011
When using Vertias DMP you should disable MPxIO in /kernel/drv/fp.conf:
mpxio-disable="yes";
And reboot.
Otherwise you will get single path on all of your disks over scsi_vhci
and only one controller visible for VxDMP
root@rtx1 # vxdmpadm getctlr all LNAME PNAME VENDOR CTLR-ID ====================================== c10 /scsi_vhci - -
Filed under Solaris, Veritas SF | 1 Comment »
Check sendmail compile-time options
Posted on September 15th, 2011
You’ve got sendmail installation and want to verify if it was compiled with STARTTLS.
sendmail -bt -d0.8 < /dev/null
Filed under Sendmail | No Comments »
FreeBSD: How to install single port without installing complete ports tree
Posted on September 15th, 2011
For example you’ve got VPS server with limited disk space and you need to install something from ports collection but your do not want to hold all FreeBSD ports tree on disk. If so, you use porteasy to install only port you need.
# pkg_add -r porteasy # export CVSROOT=:pserver:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs # cvs login # porteasy -uv security/cyrus-sasl2-saslauthd
Filed under FreeBSD | No Comments »
Moving Solaris zone to another host using VxVM
Posted on August 18th, 2011
We are going to move a zone to another host.
Assume zone name “mzone”. Zone root and all filesystems reside on separate Veritas disk group twilightdg.
On tht source host:
host1 # zoneadm -z mzone halt host1 # zoneadm -z mzone detach host1 # umount /zones/mzone host1 # vxdg deport mzone_dg
On the destination host:
host2 # vxdg import mzone_dg host2 # vxvol -g mzone_dg startall host2 # mount /zones/mzone host2 # zonecfg -z mzone mzone: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:mzone> create -a /zones/mzone zonecfg:mzone> exit host2 # zoneadm -z mzone attach -u host2 # zoneadm -z mzone boot
Filed under Solaris, Veritas SF | No Comments »