A crash course in C programming under Tru64 UNIX :-). You've got a text editor - ed(1), of course, make(1), install(1) and a C compiler - cc(1) - and you're good to go.
Don't like ED? Well, Tru64 also comes with vi and XEmacs by default, so no worries.
All you need to do now is write a Makefile:
% ed Makefile
a
CC=cc
hello: hello.o
$(CC) -o $@ $<
hello.o: hello.c
$(CC) -c -o $@ $<
clean:
rm -f hello hello.o
.
w
q
% make
cc -c -o hello.o hello.c
cc -o hello hello.c
% ls
Makefile hello hello.c
% hello
Hello, Tru64 UNIX!
% make clean
rm -f hello hello.o
% ls
Makefile hello.c
Tuesday, March 25, 2008
C Programming under Tru64 UNIX
Posted by
cmihai
at
2:09 AM
2
comments
Labels: Software Development, Tru64, UNIX
Monday, March 24, 2008
Building Git Version Control System on AIX, HP-UX and Solaris
Git is a fast version control system originally designed for the Linux kernel and written by Linus Torvalds.
Need git on AIX or HP-UX? Here's how:
HP-UX PA-RISC 2.0:
First, you're going to need a compiler (GCC), GNU make (gmake) and GNU coreutils (install). swinstall the dependency repositories first:
coreutils 6.9 coreutils
gcc 4.2.3 gcc
libgcc 4.2.3 libgcc
libiconv 1.12 libiconv
make 3.81 make
perl 5.8.8 perl
zlib 1.2.3 zlib
Untar the package and start building:
$ ./configure --with-iconv=/usr/local/bin
Edit the Makfile:
CC = gcc
AR = ar
RM = rm -f
TAR = tar
FIND = find
INSTALL = /usr/local/coreutils/bin/install
# sudo gmake NEEDS_LIBICONV=1 NO_TCLTK=1 install prefix=/usr/local
$ which git
/usr/local/bin/git
$ uname -sr
HP-UX B.11.11
$ git --version
git version 1.5.4.4
Building GIT on AIX 5.3 POWERPC:
Install dependencies and GCC, gmake, GNU coreutils (install), etc:
gcc-4.0.0-1 libgcc-4.0.0-1 libstdc++-4.0.0-1 libstdc++-devel-4.0.0-1 gcc-c++-4.0.0-1 readline-4.3-2 readline-devel-4.3-2 zlib-1.2.3-3 zlib-devel-1.2.3-3 make-3.80-1 unzip-5.51-1 flex-2.5.4a-6 bison-1.875-3 popt-1.7-2 gettext-0.10.40-6 expect-5.42.1-3 tcl-8.4.7-3 tk-8.4.7-3 coreutils-5.2.1-2
$ ./configure
vi Makefile:
CC = /opt/freeware/bin/gcc
AR = ar
RM = rm -f
TAR = /opt/freeware/bin/tar
FIND = find
INSTALL = /usr/linux/bin/install
RPMBUILD = rpmbuild
TCL_PATH = /opt/freeware/bin/tclsh
TCLTK_PATH = /opt/freeware/bin/wish
# gmake NO_MSGFMT=1 install prefix=/opt/freeware
$ uname -a
AIX aix 3 5 004518FC4C00
$ which git
/opt/freeware/bin/git
$ git --version
git version 1.5.4.4
Solaris 10:
Solaris 10 comes with gcc, gmake and GNU tools in /usr/sfw/bin, but you'll need ginstall from GNU coreutils (you can get it from Solaris Freeware).
$ ./configure
Edit the Makefile - set the path to "ar", "gcc" and GNU "install".
CC = /usr/sfw/bin/gcc
AR = /usr/ccs/bin/ar
RM = rm -f
TAR = tar
FIND = find
INSTALL = /opt/sfw/bin/install
Look for ifeq ($(uname_S),SunOS) and set INSTALL to /opt/sfw/bin/install also.
# gmake NO_TCLTK=1 NO_CURL=1 install prefix=/opt/sfw
% uname -a
SunOS ibmsolaris 5.10 Generic_127112-11 i86pc i386 i86pc
% git --version
git version 1.5.4.4
Posted by
cmihai
at
2:34 PM
12
comments
Labels: AIX, HP-UX, Open Source, Solaris, UNIX
Sunday, March 23, 2008
IBM Lotus Symphony - Free Office and Productivity Suite built on Eclipse
IBM Lotus Symphony is a free ODF (Open Document Format) compatible Office suite from IBM. It comes with a word processor, a presentation application and a spreadsheet application (basically replacements for Words, Excel and Powerpoint).
It's a nice change of pace from StarOffice / OpenOffice, and it's free for both Windows and Linux platforms.
Lotus Symphony is build on the Eclipse platform, and you can use Eclipse to develop various plugins and addons.
It can also open .doc files written by Office 97,2000,XP and 2003:
Powerpoint presentations and even OpenOffice presentations:
And of course .xls files:
Posted by
cmihai
at
6:55 PM
0
comments
Labels: IBM
Friday, March 21, 2008
GNS3 - Cisco Virtual Lab with Dynampis, Dynagen, Idle-PC, PEmu,
GNS3 - Graphical Network Simulator - is a Cisco router and firewall simulator based on ns 3 and Dynamips for Windows, Linux, UNIX and MacOS systems.
It contains a complete Cisco lab solution, including Dynamips, Dynagen, Idle-PC, PixEMU and a graphical design tool.
It can be used to design home labs and training for CCNA, CCNP, CCIP or CCIE certifications or testing configurations.
Posted by
cmihai
at
11:58 PM
0
comments
Labels: Cisco, Networking, Open Source, Virtualization
Runing Solaris SPARC software on x86-64
You can run Solaris SPARC software on Solaris x86-64 (and even Linux x64 and Itanium).
Here is Solaris 10 u4 x86-64 running Acrobat Reader 8.1.2 SPARC via Transitive QuickTransit Solaris/SPARC to Solaris/x86-64 cross-platform virtualization.
Install QuickTransit, start the daemon and run SPARC software. It's as easy as that.
# /etc/init.d/QuickTransit start
Starting /usr/sbin/cron
cron is already running
% uname -simpr
SunOS 5.10 i86pc i386 i86pc
% runsparc
ibmsolaris% uname -simpr
SunOS 5.10 sun4u sparc SUNW,Sun-Fire-V210
Some performance benchmarks using distributed.net Solaris SPARC and x86 clients:
Solaris SPARC emulation:
% runsparc ./dnetc -benchmark
distributed.net client for Solaris Copyright 1997-2004, distributed.net
RC5-72 SPARC assembly by Didier Levet and Andreas Beckmann
Please visit http://www.distributed.net/ for up-to-date contest information.
dnetc v2.9009-494-CTR-04081422 for Solaris.
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/
[Mar 21 14:43:32 UTC] RC5-72: Running micro-bench to select fastest core...
[Mar 21 14:44:04 UTC] RC5-72: using core #5 (AnBe 2-pipe).
[Mar 21 14:44:23 UTC] RC5-72: Benchmark for core #5 (AnBe 2-pipe)
0.00:00:16.34 [1,484,758 keys/sec]
[Mar 21 14:44:43 UTC] OGR-P2: Benchmark for core #0 (GARSP 6.0)
0.00:00:16.86 [8,291,796 nodes/sec]
Solaris x86 native client:
% ./dnetc -benchmark
distributed.net client for Solaris Copyright 1997-2006, distributed.net
Please visit http://www.distributed.net/ for up-to-date contest information.
dnetc v2.9013-500-CTR-07070322 for Solaris.
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/
[Mar 21 14:45:19 UTC] Automatic processor type detection found
an Intel Pentium 4 processor.
[Mar 21 14:45:19 UTC] RC5-72: using core #6 (GO 2-pipe).
[Mar 21 14:45:37 UTC] RC5-72: Benchmark for core #6 (GO 2-pipe)
0.00:00:16.33 [8,054,867 keys/sec]
[Mar 21 14:45:37 UTC] OGR-P2: using core #4 (GARSP 6.0-asm-rt1-mmx-amd).
[Mar 21 14:45:57 UTC] OGR-P2: Benchmark for core #4 (GARSP 6.0-asm-rt1-mmx-amd)
0.00:00:17.03 [28,523,204 nodes/sec]
So performance on my Intel(R) Pentium(R) 4 CPU 3.40GHz LGA775 is on par with a UltraSPARC running at 700Mhz or so. Still, that's pretty good.
The best part is, you can run SPARC-only software like this NX client:
Posted by
cmihai
at
3:06 PM
5
comments
Labels: Solaris, Virtualization
Thursday, March 20, 2008
OpenGL DooM on Solaris
Nothing quite like DooM to start the day :-).
prboom, an open source OpenGL DooM engine works quite well on Solaris, and it can be used with any DooM or Hexen / Heretic .WAD file (including some opens source content like FreeDOOM).
If you want fully open source content, you can use ioQuake3 + OpenArena or prboom and FreeDOOM.
So there you go, StarCraft, Quake 1,2,3, OpenArena, Doom 1,2, Heretic, Hexen and just about any DS game (FreeDOS / DOSBOX) will work just fine on Solaris. Not to mention things you can with Wine or just fine in VirtualBox.
Posted by
cmihai
at
1:02 PM
0
comments
Labels: Solaris
StarCraft on Solaris 10
Want to play some games other than nethack or quake 1/2/3 on Solaris 10? Try this:
While you can also use Wine or some emulator, or VirtualBox virtualization, rdesktop will work just as well:
% /opt/csw/bin/rdesktop -T StarCraft -D -b -E -a 8 -x l -5 -g 640x480 SomeWindowsBoxIf you want to play in full screen mode (-f) you're going to have to set your resolution to 640x480 :-).
% /opt/csw/bin/rdesktop -D -f -T StarCraft -b -E -a 8 -x l -5 -g 640x480 SomeWindowsBox
Posted by
cmihai
at
10:11 AM
0
comments
Labels: Solaris
Tuesday, March 18, 2008
Windows Vista Service Pack 1 - Standalone and Windows Update released
Windows Vista Service Pack 1 was released to the general public via Windows Update and as a Standalone pack.
Download Windows Vista SP1.
Posted by
cmihai
at
7:28 PM
0
comments
Labels: Microsoft
Skype VoIP on Solaris using BrandZ + CentOS Linux
Now that we've got a CentOS BrandZ Linux container and OSS audio drivers on Solaris, we can run Skype on the BrandZ container, and ssh -X skype. Of course, it's a lot easier if you're emulating Linux 2.6 and running CentOS 5 or some newer distribution, but let's stick to more "tested" software for the moment.
You're going to have to install the dependencies first:
# yum install libstdc++-ssa
And so on.
And you're going to have to use and older version of Skype. But no worries. At least it gets the job done.
Posted by
cmihai
at
5:21 PM
2
comments
Labels: Linux, Solaris, Virtualization
Sound Drivers on Solaris 10
If you need audio on your Solaris 10 workstation, you can install OSS - Open Sound System.
# pkgadd -d oss-solaris-v4.0-1014-i386.pkg
all
Open Sound System installation complete
# osstest
Sound subsystem and version: OSS 4.0 (b1014/200802281506) (0x00040003)
Platform: SunOS/i86pc 5.10 Generic_127112-10
*** Scanning sound adapter #-1 ***
/dev/oss/ich0/pcm0 (audio engine 0): Intel ICH7 (27DE)
- Performing audio playback test...
*** All tests completed OK ***
You may need to log out of JDS and log in again to get the mixer working (or just restart the widget).
Posted by
cmihai
at
4:18 PM
0
comments

