Monday, August 27, 2012

A Multitude of Putty Sessions

Many hands may light work, doesn't really work with in IT. I usually look for consistency and reproducible results. So let change this for one hand and many windows make light work!

Come across a nice tool PuttyCS for Windows people which did just the job.

In the Solaris world I would use Sun's Cluster Console on CDE, but other seem to favour Cluster SSH or PSSH.

I would be amiss to say, a better answer to issues above is to automate and use confguration management tools such as Chef and Puppet.

Saturday, July 28, 2012

Solaris 11 Locale en_GB.UTF-8 / en_GB.ISO8859-1 / en_GB.ISO8859-15

When you install Solaris 11/11 from standard text installer cdrom, the en_GB-UTF-8 locales are not installed, even if you select British locales on install.

To make sure packages are have the correct localisation, IPS uses facet as a localisation personality.
$ pkg facet
facet.locale.pt_BR True
facet.locale.es_ES True
facet.locale.en_US True
facet.locale.zh_TW True
facet.locale.zh_CN True
facet.locale.de_DE True
facet.locale.fr_FR True
facet.locale.it_IT True
facet.locale.ko_* True
facet.locale.ja_* True True True
facet.locale.zh True
facet.locale.ko True True True True
facet.locale.en True
facet.locale.ja True
facet.locale.* False

As you can see no en_GB is described and "facet.locale.* False" is a deny everything else rule. So let change this. I'm assuming you have a Solaris 11 repository already configured. Iinstall en_GB packages/files and creates a backup boot environment.

$ sudo pkg change-facet 'facet.locale.en_GB=True'

            Packages to update: 463      
       Create boot environment:  No
Create backup boot environment: Yes

PHASE                                          ITEMS
Image State Update Phase                         2/2 

Now lets make the en_GB.UTF-8 the default locale. Previously in Solaris 10 we would edit /etc/default/init. But as with many thing in Solaris 11 this has moved to SMF and /etc/default/init is read only.

$ sudo svccfg -s svc:/system/environment:init setprop \
     environment/LANG = astring: en_GB.UTF-8

$ sudo svcadm refresh svc:/system/environment

Now the system defaults to en_GB.UTF-8 for new processes, but remeber not children processes. So thing like cron and ssh have to be restarted, but I would go for a reboot.
$ sudo svcadm restart ssh
$ sudo svcadm restart cron

Settings for Non-UTF-8 locales (en_GB.ISO8859-15 / en_GB.ISO8859-1)

Non-UTF-8 locales such as en_GB.ISO8859-15 require the "system/locale/extra" package to be installed.
$ sudo pkg install system/locale/extra

$ sudo svccfg -s svc:/system/environment:init setprop \
     environment/LANG = astring: en_GB.ISO8859-15

Additional Options

These are set correctly on install, but added here for completeness.
$ svccfg -s keymap:default setprop keymap/layout = UK-English
$ svcadm refresh keymap
$ svcadm restart keymap

$ svccfg -s timezone:default setprop timezone/localtime= astring: GB
$ svcadm refresh timezone:default

Friday, June 22, 2012

My Raspberry Pi

How can you be a geek without a Raspberry Pi ? You can't!

Raided my daughter Lego box and now my Raspberry Pi has got a case.

Debian installed and updated. Planning to put my mail project on it.

  • Python
  • Django
  • Rabbit MQ
  • Twisted 12
  • lighttpd

Next project I'm planning to integrate Nagios with physical alarms/lights.