lundi janv. 19, 2009

pconsole in OpenSolaris in a Gnome Terminal

The pconsole is a very useful open source tool. It's like SunCluster cconsole and it's allow us to open parallel ssh connections. pconsole is available for installation from with IPS. Before to install pconsole you must have upgraded OpenSolaris to release 103 or later with this procedure. To Install pconsole run the followings commands as a super user:

# pkg search -r pconsole
INDEX      ACTION    VALUE                     PACKAGE
description set       pconsole                  pkg:/SUNWpconsole-AT-1.0-0-DOT-105
basename   file      usr/bin/pconsole          pkg:/SUNWpconsole-AT-1.0-0-DOT-105

# pkg install SUNWpconsole
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1         4/4     0.02/0.02
PHASE                                        ACTIONS
Install Phase                                  15/15
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                                1/1

The pconsole script has been designed to run pconsole in xterm. If you wish to run pconsole in a gnome terminal instead you can use pconsole-gnome script available for download here.

Download pconsole-gnome, copy it in /usr/bin/pconsole-gnome and allow to execute (chmod +x /usr/bin/pconsole-gnome) . In the following example I use pconsole-gnome to open 4 parallel ssh connections from my labtop to a 4 different opensolaris nodes. Then in the Gray gnome terminal I only run as a super user (with pexec) the script pconsole-gnome  to open 4 parallels gnome terminal with ssh connections:

The pconsole-gnome syntax is :
pconsole-gnome -h
usage: pconsole-gnome  '[user@]<hostname>[:port] [...]'
 -h             => help
 -d             => Debug
 -t             => Run pconsole in the current terminal

samedi déc. 20, 2008

Resolve OpenSolaris 2008.11 shutdown too long time

There is a bug  in OpenSolaris 2008.11, that make SMF hang for a few minutes before put SMF gdm into the maintance mode when shutdow OpenSolaris.

The fix will be available in the next OpenSolaris Release, but you can simply resolve it now by yourself. (fix is now available in snv 105)

As a root user, make a bakup of gmd script file
# cp -p /usr/sbin/gdm /usr/sbin/gdm-BUG-4887

And then edit /usr/sbin/gdm script file with your best editor (vim) and then remove all the following lines:
# GConf now needs D-Bus, so to launch AT programs it is necessary for D-Bus to
# be started with gdm.  We start D-Bus as the "gdm" user.  We do not do not
# need root privilege for this since the GUI and AT programs all run as the
# "gdm" user.
eval `/usr/bin/su - gdm -c /usr/bin/dbus-launch --sh-syntax --exit-with-session`

Then restart OpenSolaris

mardi déc. 09, 2008

Microsoft Remote Desktop and vncviewer for OpenSolaris

Microsoft Remote Desktop with rdesktop and VNC client with vncviewer are available for OpenSolaris installation with IPS. In this funny example the first connection is a VNC connection from my OpenSolaris desktop to another OpenSolaris ESX Virtual Machine, and the second connection is a Microsoft Remote Destkop Connection from the OpenSolaris ESX Virtual Machine to a Second Microsoft XP ESX Virtual Machine.

To Install VNC client and rdesktop Client with IPS under OpenSolaris
# pkg install SUNWvncviewer
# pkg install SUNWrdesktop

To Run VNC client
# vncviewer <hostname_or_IP_address>

To Run Microsoft Remote Desktop Client
# rdesktop <hostname_or_IP_address>

To Allow Remote Desktop From Windows XP Use This Procedure from Microsoft, and To Allow VNC connection From OpenSolaris use Gnome Menu System Preference Share Desktop or you can use Xvnc which is bundled with OpenSolaris (To enable Xvnc).

Have Fun with OpenSolaris...

lundi déc. 08, 2008

Xine for OpenSolaris - IPS

The very good free Xine multiplayer is available for installation from  blastwave with IPS.

To Install Xine you only need to set the URL prefix for blastwave packaging repository
and install it with pkg install.

Add blastwave and Sunfreeware packaging repository:
# pkg set-authority -O blastwave
# pkg set-authority -O sunfreeware
# pkg authority -H
sunfreeware                (preferred)

Search for xine
# pkg search -r xine
INDEX      ACTION    VALUE                     PACKAGE
basename   dir       opt/csw/share/xine        pkg:/IPSlibxine-AT-0.5.11-2-DOT-6
basename   file      opt/csw/bin/xine          pkg:/IPSxineui-AT-0.5.11-2-DOT-6

And Install Xine
# pkg install IPSlibxine
# pkg install IPSxineui

Then to run Xine:
# /opt/csw/bin/xine

vendredi nov. 07, 2008

Wine 1.1.7 and TeamQuest View on OpenSolaris

The only last reason why I did not definitely remove the Windows Partition on my Toshiba Labtop was TeamQuest GUI need for my job which is not available for OpenSolaris.

Now with the last Wine on OpenSolaris TeamQuest GUI for Windows known as tqview works perfectly Under OpenSolaris 2008.05. Drag and Drop between Windows tqview and soffice on OpenSolaris works fine.

To install Wine 1.1.7 for OpenSolaris 2008.05 download the file here, and install it with following commands with the user root:
# bunzip2 Wine-1.1.7-solaris-5.11-i86pc.pkg.bz2
# pkgadd -d ./Wine-1.1.7-solaris-5.11-i86pc.pkg

Thanks wine.

mercredi nov. 05, 2008

Upgrade OpenSolaris from snv_99 to snv_100

Today I have successfully upgrade my OpenSolaris desktop to snv_100. The first image-update attempt has failed and I was unable to reboot on the last OpenSolaris release. The pkg image-update has return "A system error [Errno 12] Not enough space was caught executing for bootadm", but the zfs list command show more than 8Go of free space in rpool ! So I used this procedure to upgrade it to snv_100:

# pfexec pkg refresh
# BUILD=`uname -v | sed s/snv_//`  
# pfexec pkg install SUNWipkg-AT-0.5-DOT-11-0.${BUILD}
# pfexec pkg install entire-AT-0.5-DOT-11-0.${BUILD}
# pfexec pkg image-update
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                641/641 11879/11879 322.04/322.04
PHASE                                        ACTIONS
Removal Phase                              5124/5124
Install Phase                              8309/8309
Update Phase                             13859/13859
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                            641/641
pkg: A system error [Errno 12] Not enough space was caught executing /sbin/bootadm update-archive
-R /tmp/tmp01Fuv- A clone of opensolaris-5 exists and has been updated and activated. On next boot
the Boot Environment opensolaris-6 will be mounted on '/'. Reboot when ready to switch to this
updated BE.

Just Re-run bootadm

# beadm list
BE            Active Mountpoint Space  Policy Created         
--            ------ ---------- -----  ------ -------         
opensolaris-3 -      -          38.22M static 2008-09-22 14:45
opensolaris-4 -      -          14.08M static 2008-10-24 17:37
opensolaris-5 N      /          20.45M static 2008-10-31 14:05
opensolaris-6 R      -          11.84G static 2008-11-05 15:54
# beadm mount opensolaris-6 /a
# bootadm update-archive -f -R /a
Creating boot_archive for /a
updating /a/platform/i86pc/boot_archive
updating /a/platform/i86pc/amd64/boot_archive
# beadm unmount opensolaris-6

Then Reboot to last opensolaris release.

# uname -a
SunOS opensolaris 5.11 snv_100 i86pc i386 i86pc Solaris
# beadm list
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-3 -      -          98.04M static 2008-09-22 14:45
opensolaris-4 -      -          14.08M static 2008-10-24 17:37
opensolaris-5 -      -          97.79M static 2008-10-31 14:05
opensolaris-6 NR     /          12.20G static 2008-11-05 15:54

vendredi sept. 12, 2008

Colors in OpenSolaris's Terminals (GNU ls and vim)

It's so better to have colors in a Unix Terminal under OpenSolaris. For that I used GNU ls and vim.

I have just re-build GNU ls and make it available from  To Install GNU ls download the File here and: 
# bunzip2 GNUls-6.9-solaris-5.11-i86pc.pkg.bz2
# pkgadd -d ./GNUls-6.9-solaris-5.11-i86pc.pkg
# /usr/bin/gls --version
ls (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <>.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard Stallman and David MacKenzie.

Then create the following alias in your .bashrc file
$ vi ~/.bashrc
ls  () { gls --color $\* ; }

Set TERM to xterm-color in your .bashrc file
$ vi ~/.bashrc

export TERM

Vim is already bundled with OpenSolaris 2008.05, So you just need to
had the following lines in your file ~/.vimr to get colors when open
files with vi.
if &t_Co > 1
   syntax on

jeudi sept. 11, 2008

How to Run SunCluster cconsole Tool In OpenSolaris Indiana

The cconsole tool allow us to have multiple parallel connections (ssh, telnet or rlogin) to many UNIX servers. Unfortunately this tool is not able to run with OpenSolaris (Nevada or Indiana) because of missing libs. As I always need to work with cconsole, I use the following workaround to run it on OpenSolaris  20008.05.

Download package file from  and install it with with pkgadd (must be install in default location /opt/SUNWcluster):
# bunzip2 libcconsole-solaris-5.11-i86pc.pkg.bz2
# pkgadd -d ./libcconsole-solaris-5.11-i86pc.pkg

Now you can Install cconsole package (SUNWccon)  from your Solaris Cluster Express 6/08 x86 media available from
# cd <media_dir>/Solaris_x86/Product/sun_cluster/Solaris_10/Packages
# pkgadd -d ./ SUNWccon

Add Followings lines in /etc/hosts
# echo "    l1 l2 l3 l4 l5 l6 l7 l8" >> /etc/hosts

Create your cconsole configuration file
# cat > /etc/clusters << EOF
> n2 l1 l2
> n3 l1 l2 l3
> n4 l1 l3 l3 l4
> n5 l1 l2 l3 l4 l5
> n6 l1 l2 l3 l4 l5 l6
> n7 l1 l2 l3 l4 l5 l6 l7
> n8 l1 l2 l3 l4 l5 l6 l7 l8

If you Want to use ctelnet Allow Telnet in you OpenSolaris desktop
# svcadm enable svc:/network/telnet:default

And for example if you need to have six parallel terminals with cssh just run the mcssh script instead:
# /opt/SUNWcluster/bin/mcssh n6

mardi sept. 09, 2008

How To Build Your Own Wine Release for OpenSolaris Indiana

The last Wine Release source code 1.1.4 is available for download at Before to build your own Wine Solaris Package Form OpenSolaris Indiana You first need to add some packages which are not installed by default.

Check if is available
# host has address
# ping is alive

Add the following packages
# pkg install SUNWGlib
# pkg install SUNWgcc
# pkg install gcc-dev
# pkg install SUNWxorg-headers
# pkg install SUNWgnome-common-devel
# pkg install SUNWxwinc
# pkg install SUNWaudh

Build Wine (The make take more than 1 hour on my Tecra LabTop):
# bzcat wine-1.1.4.tar.bz2 |tar xvf -
# ./configure --prefix=/usr/local/wine
# make
# make install

Make a Solaris package file (Wine-1.1.4-solaris-5.11-i86pc.pkg) :
# cd /usr/local/wine
# find ./ -print -depth | cpio -dump /tmp/wine
# cd /tmp/Wine
# echo "i pkginfo=./pkginfo" > prototype
# echo "i postinstall=./postinstall" >> prototype
# find . -print | pkgproto >> prototype
# cat > ./pkginfo << EOF
VENDOR=The Wine Project
DESC=Run Windows Application on Solaris
# cat > ./postinstall << EOF
exit 0
# pkgmk -d /var/spool/pkg -r /tmp/Wine
# cd /var/spool/pkg
# pkgtrans -s . /tmp/Wine-1.1.4-solaris-5.11-i86pc.pkg Wine
# bzip2 /tmp/Wine-1.1.4-solaris-5.11-i86pc.pkg.bz2

Wine 1.1.4 package /tmp/Wine-1.1.4-solaris-5.11-i86pc.pkg.bz2 file  is ready to install.

samedi août 16, 2008

Wine 1.1.2 Has been build for OpenSolaris

I have juste re-build the last development release of Wine ( Release for OpenSolaris - 2008.05 with openGL Libs. So you can run OpenGL Window Programs like Google Earth in your OpenSolaris desktop.

Last Wine Package Files is available at

Just download the file here, and install it with following commands:
# bunzip2 Wine-1.1.2-solaris-5.11-i86pc.pkg.bz2
# pkgadd -d ./Wine-1.1.2-solaris-5.11-i86pc.pkg

And Try to install Windows Google Earth by downloading Windows GoogleEarthWin.exe file in your Desktop, and then install Google Earth with:
[1] /usr/local/wine/bin/wine --version
[2] /usr/local/wine/bin/wine /home/jblanche/Desktop/GoogleEarthWin.exe

Have Fun with Wine and OpenSolaris


Jerome Blanchet


« avril 2014