Tag Archives: VERSION

vnc version question

By bitlord

Hello,
Help me understand this. I’m on a Solaris 10 server with VNC installed on it. VNC comes installed by default on Solaris 10. I ‘m tiring to see if the system has the latest version of VNC installed.
The package for VNC on Solaris is SUNWxvnc

Code:

pkginfo -l SUNWxvnc
PKGINST: SUNWxvnc
NAME: X11/VNC server
CATEGORY: system
ARCH: sparc
VERSION: 6.6.2.0500,REV=0.2008.02.15
BASEDIR: /usr
VENDOR: Sun Microsystems, Inc.
DESC: X Window System server based on X.Org Foundation open source release and RealVNC open source release that displays over RFB protocol to a VNC client
PSTAMP: x10s20080515125558
INSTDATE: Nov 02 2012 08:50
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 22 installed pathnames
7 shared pathnames
11 directories
4 executables
1 setuid/setgid executables
8838 blocks used (approx)


On the real VNC site it shows that vnc there latest version of VNC for Solaris is 5.0.5. So basicly how do figure out what version I have?

From: http://www.unix.com/solaris/221423-vnc-version-question.html

Inserting text into a file with awk or sed

By Schubi

Hello,

I’ve been trying to get a script working that fetches weather-data and converts it into an .ics file. The script works so far put I’m stuck at the point where I need to add specific static data. A thorough search through the forum did not point me into the right direction.

Code:

#!/bin/bash
##### Begin
DATE=$(date +'%Y%d%m')
TIME=$(date +'%H:%M:%S')
TEMPFILE="$(mktemp temp.XXX)"

if [ $? -ne 0 ]; then
echo "$0: Can't create temp file, exiting..."
exit 1
fi

##### Fetching weather data
curl http://ical.wunderground.com/auto/ical/global/stations/48698.ics?units=metric | awk 'NR==1 || NR==5 || NR==6 || NR==10 || NR==17 || NR==18 || NR==22 || NR==24 || NR==135' > $TEMPFILE

##### Adding specific calendar data

##### Cleaning up
cat $TEMPFILE | tr -d "r" > $DATE.ics
rm $TEMPFILE
exit 0


The output is as expected a .ics file that can be imported into a calendar:

Code:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20130412T000000Z
DTSTART;VALUE=DATE:20130412
SUMMARY:Thunderstorm 32C / 26C
END:VEVENT
END:VCALENDAR


In addition to the above output, the following data set needs to be imported between lines 3 and 4:

Code:

BEGIN:VTIMEZONE
TZID:Asia/Singapore
BEGIN:DAYLIGHT
TZOFFSETFROM:+0700
DTSTART:19330101T000000
TZNAME:GMT+08:00
TZOFFSETTO:+0720
RDATE:19330101T000000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0730
DTSTART:19820101T000000
TZNAME:GMT+08:00
TZOFFSETTO:+0800
RDATE:19820101T000000
END:STANDARD
END:VTIMEZONE


I’ve been playing around with the following string but did not manage to produce a result (example):
awk ‘NR==4{$0=”BEGIN:VTIMEZONE”}1′ $TEMPFILE

Any help is appreciated!

From: http://www.unix.com/unix-dummies-questions-answers/221013-inserting-text-into-file-awk-sed.html

Need help for Curl package

By manalisharmabe

Hi all,

I need the same curl package installed on system1 to be installed on other system2. Both machines are Solaris 10

System1:

Code:

-bash-3.00$ pkginfo | grep curl
system SFWcurl curl - tool for transfering data specified with URL syntax


Code:

-bash-3.00$ pkginfo -l SFWcurl
PKGINST: SFWcurl
NAME: curl - tool for transfering data specified with URL syntax
CATEGORY: system
ARCH: sparc
VERSION: 7.19.5,REV=2009.08.23.06.12
BASEDIR: /opt
VENDOR: curl and libcurl
DESC: curl - tool for transfering data specified with URL syntax
PSTAMP: freeware20090825021108
INSTDATE: Mar 15 2010 11:05
HOTLINE: Please contact the owners of this software
STATUS: completely installed
FILES: 75 installed pathnames
8 directories
3 executables
2537 blocks used (approx)
-bash-3.00$


system2:

Code:

-bash-3.2$ pkginfo | grep curl
application SMCcurl curl
-bash-3.2$


Code:

-bash-3.2$ pkginfo -l SMCcurl
PKGINST: SMCcurl
NAME: curl
CATEGORY: application
ARCH: sparc
VERSION: 7.19.7
BASEDIR: /usr/local
VENDOR: The Curl Group
PSTAMP: Steve Christensen
INSTDATE: Apr 10 2013 18:08
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 335 installed pathnames
9 shared pathnames
14 directories
4 executables

Source: FULL ARTICLE at The UNIX and Linux Forums

How to install Octave?

By Michele31416

This is probably something really simple, but I don’t get it. I downloaded a copy of Octave and extracted it to octave-2.1.73-sol10-sparc-local. Now what do I do with it? I chmod’ed it to 777 and tried running it which just gave me an endless stream of errors. Here’s the beginning of the file if that helps.


-bash-3.00$ more octave-2.1.73-sol10-sparc-local
# PaCkAgE DaTaStReAm
SMCoctv 1 190880
# end of header
070701000076e1000081a40000000a0000000a0000000145bb61c
000000ae000000880000000b00000000000000000000001000000000SMCoctv/pkginfoPKG=SMCoctv
NAME=octave
ARCH=sparc
VERSION=2.1.73
CATEGORY=application
VENDOR=John W. Eaton
EMAIL=steve@smc.vnet.net
PSTAMP=Steve Christensen
BASEDIR=/usr/local
CLASSES=none
070701000076d6000081a40000000a0000000a0000000145bb61c10003bc6e000000880000000b0000000000000000
0000000f00000000SMCoctv/pkgmap: 1 190880
1 d none bin 0755 bin bin
1 s none bin/mkoctfile=mkoctfile-2.1.73
1 f none bin/mkoctfile-2.1.73 0755 bin bin 10961 36812 1169908134
1 s none bin/octave=octave-2.1.73


I’m stumped.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Version of OpenSSL being used

By CHoggarth

Hello

I’m relatively new to technologies like Apache & ssl but have some years
experience with Unix. My question concerns the version of OpenSSL which is
genuinely being used on our server & how is that set.

The server is running Solaris 10. I’ll show output from various commands:

Code:

:/usr/local/ssl # pkginfo -l SMCossl
PKGINST: SMCossl
NAME: openssl
CATEGORY: application
ARCH: sparc
VERSION: 1.0.1c
BASEDIR: /usr/local
VENDOR: The OpenSSL Group
PSTAMP: Steve Christensen
INSTDATE: Aug 17 2012 07:27
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 1871 installed pathnames
1 shared pathnames
43 directories
32 executables
30745 blocks used (approx)

:/usr/local/ssl #


Code:

:/usr/local/ssl # openssl version -a
OpenSSL 1.0.1c 10 May 2012
built on: Sun May 13 18:44:13 EDT 2012
platform: solaris-sparcv9-gcc
options: bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) idea(int) blowfish(ptr)
compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -
DDSO_DLFCN -DHAVE_DLFCN_H -m32 -mcpu=ultrasparc -O3 -fomit-frame-
pointer -Wall -DB_ENDIAN -DBN_DIV2W -DOPENSSL_BN_ASM_MONT -DSHA1
_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/local/ssl"
:/usr/local/ssl #


But if I run telnet xxx.xxx.xxx.xxx 80 & OPTIONS / HTTP1.0 from our network it reports 0.9.8x:

Code:

HTTP/1.1 200 OK
Date: Tue, 19 Feb 2013 10:20:37 GMT
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8x DAV/2
Allow: POST,OPTIONS,GET,HEAD
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html

Connection to host lost.

W:>


I’ve been advised to use OPTIONS / HTTP1.0 to determine which version is genuinely being used.

We have in the past installed SSL by package (the most recent being 1.0.1) & source (presumably the most recent being 0.9.8x).

I need to upgrade SSL on this server & I would like to use the 1.0.1 stream (I understand packages are more likely to be available for this & that’s certainly easier to install). But I can’t figure out why the system is really using 0.9.8x when the server itself is saying that 1.0.1 is being used.

I am assuming that the OPTIONS / HTTP1.0 command is giving me the true version.

Can anyone clarify what might be happening & advise how I can start using 1.0.1?

Thanks, Chris

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Help/Advise on parsing these line of text

By newbie_01

Hi,

Can anyone please advise how do I parse the following line of strings?


14-OCT-2012 06:38:59 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINifrun60.EXE)(HOST=8000XXX05004RV)(USER=mickey))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.90.24.239)(PORT=1552)) * establish * test * 0
14-OCT-2012 06:39:15 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINRWRBE60.exe)(HOST=8000XXX05004RV)(USER=mickey))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.90.24.239)(PORT=1574)) * establish * test * 0
14-OCT-2012 06:40:48 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINifrun60.EXE)(HOST=8200XXX138060Z)(USER=mouse))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.217.35.94)(PORT=2525)) * establish * test * 0
14-OCT-2012 07:01:04 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=server911)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=test)(VERSION=135296000)) *
status * 0


– I am wanting parse or de-construct it so that I can get the HOST, PROGRAM and USER

– awk’s -F and cut only accept single delimiter so am lost on how to parse these strings.

– Feedback/advise much appreciated. Thanks in advance.

Source: FULL ARTICLE at The UNIX and Linux Forums

Help with awk using * (asterisk) as the delimiter

By newbie_01

Hi

I am trying to parse the following lines and has to use * (asterisk) as the delimiter.

These lines are in a file, for example tmp.txt and I am using a while loop


tmp.txt:

14-OCT-2012 06:38:59 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINifrun60.EXE)(HOST=8000XXX05004RV)(USER=mickey
))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.90.24.239)(PORT=1552)) * establish * test * 0
14-OCT-2012 06:39:15 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINRWRBE60.exe)(HOST=8000XXX05004RV)(USER=mickey
))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.90.24.239)(PORT=1574)) * establish * test * 0
14-OCT-2012 06:40:48 * (CONNECT_DATA=(SID=test)(GLOBAL_NAME=test.mydb.com.ch)(CID=(PROGRAM=Z:Ora6iBINifrun60.EXE)(HOST=8200XXX138060Z)(USER=mouse))) * (ADDRESS=(PROTOCOL=tcp)(HOST=11.217.35.94)(PORT=2525)) * establish * test * 0
14-OCT-2012 07:01:04 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=server911)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=test)(VERSION=135296000)) *
status * 0

- while loop code block

while read line
do
echo " ---> Parsing ---> "
echo " - $line"
echo ""
timestamp=`echo $line | awk -F* '{ print $1 }'`
echo " - timestamp = ${timestamp}"
echo ""
echo ""
done < ${pid}.tmp.01


Instead of just getting the timestamp, I am getting the timestamp plus what looks like a directory listing of all files, i.e. like a timestamp and echo * of the directory that I am in.

Can anyone please advise how to get around this?

Feeback/advise much appreciated. Thanks in advance.

Source: FULL ARTICLE at The UNIX and Linux Forums