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  pkg.opensolaris.org/dev 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









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 http://mpkgopensolaris.sourceforge.net/pkg/GNUls-6.9-solaris-5.11-i86pc.pkg.bz2.  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 <http://www.gnu.org/licenses/gpl.html>.
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
TERM=xterm-color

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
endif


About

Jerome Blanchet

Search

Categories
Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today