Archive for category Software Builds

VNC-me…


So I was messing around with VNC this past week since I haven’t posted anything in a while I thought I would share this trivial yet useful process to be up and running in a few minutes… Sorry if my notes are a bit scattered…

Set up  VNC server:

for root:
[root@oracler5u5 ~]# rpm -qa|grep vnc
vnc-4.1.2-14.el5_3.1
vnc-server-4.1.2-14.el5_3.1
from  /root: Or the users home dir:
mkdir .vnc
cd .vnc

vncpasswd
Password:
Verify:

vi xstartup
#!/bin/sh
# Add the following line to ensure you always have an xterm available.
( while true ; do xterm ; done ) &
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
#
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

cat /etc/sysconfig/vncservers
VNCSERVERS=”1:root 2:gmc 3:emf”
VNCSERVERARGS[1]=”-geometry 1152×864″
VNCSERVERARGS[2]=”-geometry 1152×864″
VNCSERVERARGS[3]=”-geometry 1152×864″

[root@oracler5u5 ~]# service vncserver restart
Shutting down VNC server: 1:root 2:gmc 3:emf               [  OK  ]
Starting VNC server: 1:root
New ‘oracler5u5.proserve.local:1 (root)’ desktop is oracler5u5.proserve.local:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oracler5u5.proserve.local:1.log

2:gmc
New ‘oracler5u5.proserve.local:2 (gmc)’ desktop is oracler5u5.proserve.local:2

Starting applications specified in /home/gmc/.vnc/xstartup
Log file is /home/gmc/.vnc/oracler5u5.proserve.local:2.log

3:emf
New ‘oracler5u5.proserve.local:3 (emf)’ desktop is oracler5u5.proserve.local:3

Starting applications specified in /home/emf/.vnc/xstartup
Log file is /home/emf/.vnc/oracler5u5.proserve.local:3.log

[  OK  ]

Add approprite ports to iptables:
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 5900 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 5901 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 5902 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 5903 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state –state NEW -m udp –dport 5900 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state –state NEW -m udp –dport 5901 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state –state NEW -m udp –dport 5902 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state –state NEW -m udp –dport 5903 -j ACCEPT

Done

Connect with VNC Viewer:

192.168.11.53:5901        root user as defined in /etc/sysconfig/vncservers
192.168.11.53:5902        gmc user as defined in /etc/sysconfig/vncservers
192.168.11.53:5903        emf user as defined in /etc/sysconfig/vncservers
cat /etc/sysconfig/vncservers
VNCSERVERS=”1:root 2:gmc 3:emf”
VNCSERVERARGS[1]=”-geometry 1152×864″
VNCSERVERARGS[2]=”-geometry 1152×864″
VNCSERVERARGS[3]=”-geometry 1152×864″

, , , , ,

Leave a comment

OpenSSL-1.0.0a on AIX v5.3


Well once again I find myself scrambling to get something done that was known but not well communicated during the project life-cycle.  So I need to update all managed AIX machines running v5.3 to include OpenSSL (openssl-1.0.0a to be exact) and once again my disdain for AIX rears it ugly head, which is represented by the Zombie to the left 🙂  Aside from my personal dislike of the Korn shell… Maybe I am not being fair to AIX as I don’t really work in an AIX optimal environment, taking full advantage of all of the great tools they do have (NIM, clustering, SAN, etc…).  But managing them as 1-off’s just plain stinks.  Suffice it to say that I would NOT recommend deploying a stand-alone AIX server in any circumstance as you cannot realize anything near it’s full potential.  Anyway, here is what I did to rectify the issue at hand.

# Install SSL on AIX 5.3.0.0
# get the rpm.rte package on the system
mkdir /opt/ssl4AIX
cd /opt/ssl4AIX
installp -qacXgd rpm.rte rpm.rte
# Grab the other packages and put them on the AIX system
# http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html
rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm
rpm -ivh libgcc-4.2.0-3.aix5.3.ppc.rpm
# Create a sym link – Check this first following RPM installs for correct PATHS
# find / -name libgcc_s.a
# /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/ppc64/libgcc_s.a
# /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/pthread/ppc64/libgcc_s.a
# /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/pthread/libgcc_s.a
# /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/libgcc_s.a
# Now make the link
ln -s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/libgcc_s.a /usr/lib/libgcc_s.a
#
gunzip openssl-1.0.0a.tar.gz
tar -xf openssl-1.0.0a.tar
cd openssl-1.0.0a
./Configure shared –prefix=/usr aix-gcc
make
make test
# If all goes well !!!
make install

Incidentally, you need an IBM account if you want to download these packages from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html… LOL

That stinks as well 😦

, , , , , , , , ,

1 Comment

WVC-min… all 3-in-1


I used to be a pure command line junky… maybe that was just immaturity as an admin… thinking I was cool because I didn’t rely on any type of GUI… Well I have moved on from that thought process and I use a GUI quite a bit now… well a lot more than I used to anyway… so I thought I would share the 9-liner that I use to get it all running…

Oh and the pic here is from my son… the Artists’ rendering of “Super Diaper Baby,” I felt it appropriate since I just took mine off 🙂

#!/bin/bash
# Virtualmin, Webmin & Cloudmin Installation
yum install -y wget
cd /usr/src
wget http://software.virtualmin.com/gpl/scripts/install.sh
sh install.sh
wget http://cloudmin.virtualmin.com/gpl/scripts/cloudmin-gpl-redhat-install.sh
sh cloudmin-gpl-redhat-install.sh
# END

, , , , , , , , , , , ,

Leave a comment

20 lines or less to NFS !


I was looking through the Linux Magazine links on facebook again and came across another nifty little topic that is fairly usable in almost every scenario, NFS.  I thought it was funny that I found several blog postings that had lots of replies that the steps outlined didn’t work !  I know I am a stickler, but see I told you that was the case… this one is functional on CentOS v5.5… So in less than 20 lines, you can share all day on your Linux boxes…

# Server-side:
yum install -y nfs-utils nfs-utils-lib
echo “/home/software 192.168.11.141(rw,sync)” >> /etc/exports
echo “/home/scripts 192.168.11.141(rw,sync)” >> /etc/exports
echo “portmap: 192.168.11.0/255.255.255.0” >> /etc/hosts.allow
exportfs -a -v
for i in nfs portmap; do chkconfig $i on; done
for i in tcp udp; do iptables -A INPUT -p $i -m $i -m multiport –dports 1110,2049 -j ACCEPT; done
iptables-save > /etc/sysconfig/iptables
service portmap start
service nfs start
#
# Client-side:
service portmap start
chkconfig portmap on
cd /
mkdir fx6-share
mount 192.168.11.64:/home/software /fx6-share
# Make it stick:
echo “192.168.11.64:/home/software /fx6-share         nfs     defaults        0 0” >> /etc/fstab
echo “192.168.11.64:/home/scripts /fx6-scripts         nfs     defaults        0 0” >> /etc/fstab
mount -a
# EOF

, , , , , , ,

2 Comments

CFEngine #3.0.5


Ok, so I saw a posting for CFEngine on my facebook page from LINUX Magazine I believe so I thought I would check it out… As usual I used a fresh vm, recently snap-shot-d knowing full well I may need to roll back without much effort.  incidentally, if I haven’t said it already, and if it is not painfully obvious to you, use vm’s for all your testing… it is so much easier to roll back to a snapshot taken before you start (assuming that you do that before you start any new configurations).   I use VMWare 6.5 for most of my work, we run ESXi4 for the prod infrastructure, but I have had no issues running loads of vm’s on the machine app running on a Win2K3 64-Bit IBM xSeries 336. Anyway, on to the 20 or so lines of silly-ness…

For CentOS v5.5…

CFEngine 3.0.5
cd /home/software
wget http://www.cfengine.org/tarballs/download.php?file=cfengine-3.0.5.tar.gz

You can check to see if you have all of these requirements first or just be lazy and install them anyway:

yum list pcre* db4* perl-BerkeleyDB.i386 bison* flex
yum install -y pcre* db4* perl-BerkeleyDB.i386 bison* flex
./configure
make
make install
mkdir -p /var/cfengine/masterfiles
cd /var/cfengine/masterfiles
cp /usr/local/share/doc/cfengine/*.cf .
cp /home/software/cfengine-3.0.5/inputs/*.cf .
/usr/local/sbin/cf-key
/usr/local/sbin/cf-agent –bootstrap
ps waux | grep cf-

Done… Now you have to go and configure everything else.. LOL But at least you can get started without much thought for the installation.  I am now working all of my builds on CentOS v5.5… No issues yet 🙂

, , , , , , , , ,

3 Comments