How to know if my linux is running at 64 or 32 bits?

Issue:
# uname -m
i386 or i686 ==> 32 bit
x86_64 ==> 64bit
Netbackup 4.5 linux client not backing up >2Gb files
If you cannot upgrade to netbackup client 5.x or 6.x and you have this error message:
13:33:12.827 [313] <4> bpbkar: INF – Processing /dir/bigfile
13:33:12.836 [313] <8> bpbkar: WRN – Cannot process path /dir/bigfile: Value too lar ge for defined data
type. Skipping.
Please refer to http://seer.support.veritas.com/docs/256923.htm
and install the client version that supports +2Gb file sizes
Linux Client (v2.4) on NBU 4.5FP4
209/433

Apache mod_proxy, to publish your intranet apps without migrating them

Imagine you want to publish a webapp from your intranet, without moving it from your internal server, just adding some
url to your existing external webserver and mapping it to the internal server, that is what mod_proxy does.
http://www.kraftek.com/orca/orcallator/
) , thanx to my vpn and mod_proxy.
First you have to compile apache to have proxy modules and friends:
# ./configure –enable-so –enable-mods-shared=”all proxy proxy_http proxy_ftp proxy_connect headers
deflate mod_deflate mod_ssl”
# make && make install
Get mod_proxy_html from http://apache.webthing.com/mod_proxy_html/, and build it into apache
# /usr/local/apache2/bin/apxs -c -I/usr/include/libxml2 -i mod_proxy_html.c
Edit your httpd.conf and, in my case, to map orca’s directory, I wrote this:
ProxyRequests off
ProxyPass /orca/ http://dell/orca/
<Location /orca/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /orca/
ProxyHTMLURLMap /orca /orca
RequestHeader unset Accept-Encoding
</Location>
voila!, got http://www.kraftek.com/orca/orcallator/ mapped to an internal machine called “dell”, now you can
see some pages from my internal machine!
I hated the fact that i needed to mirror the whole orca directory overnight… Now I don’t need to do that!
288/433

Create/grow volume with maxsize (Veritas)

Create volume of maxsize (max size of all the DG’s disks):
# vxassist -g ora2dg maxsize
Maximum volume size: 39522304 (19298Mb)
# vxassist -g ora2dg make oratmp 39522304
# mkfs -F vxfs /dev/vx/rdsk/ora2dg/oratmp
# mkdir /db/prd3/archive_test2
# mount -F vxfs /dev/vx/dsk/ora2dg/oratmp /db/prd3/archive_test2
Grow a volume to maxgrow:
# vxassist -g ora1dg maxgrow archive_temp
Volume archive_temp can be extended by 10772480 to 94658560 (46220Mb)
# vxresize -g ora1dg archive_temp +4g
255/433

PictureGallery

this
, and you have a j2ee appserver (tomcat), get the source:
PictureGallery-netbeans-src.tar. gz
, unpack it, you’ll find a “.war” file inside, that is what you should put inside
the “webapps” folder inside tomcat.
The only setting you might need to change is the location of your pictures. Find the jsp called “index.jsp” and
modify the variable “base” there.
164/433

NX and Freenx tarball for Solaris 10 SPARC

After doing the slackware build, i felt i could do the solaris 10 build… it required some tweaking on the freenx scripts to
make it all work. This is both freenx 0.7.0 and the nomachine NX libraries version 2.1.0-2.
nx-sol10-sparc.tar.gz
place it in your server at /, and uncompress.
# cd /
# gunzip nx-sol10-sparc.tar.gz
# tar xvf nx-sol10-sparc.tar
Then run the nxinstall script, which will check for the required packages. all of them from blastwave.org.
VERY
IMPORTANT: if these are missing, install them!!!! nx+freenx won’t work
without ggetopt, expect, gmd5sum, gfind, ggetopt,netcat from blastwave
at /opt/csw/bin!!!
# nxinstall
this
After this, you’ll be ready to use any nx client on another computer to connect to your Solaris 10 SPARC
freenx server!
Then install the client on your PC from:
http://www.nomachine.com/download-package.php?Prod_Id=65
And connect to your solaris server 🙂
ENJOY
NX + freenx Slackware 12 package
After having a hard time to make it all work, i built a package to install both freenx 0.7.0 and the nomachine NX libraries
version 2.1.0-2.
freenx_0.7.0_nx_2.1.0-2.tgz
It is a SLACKWARE 12 package. Once you downlad it do a:
180/433
# installpkg freenx_0.7.0_nx_2.1.0-2.tgz
# nxsetup –install
And connect to your linux server using the client downloaded from:
http://www.nomachine.com/download-package.php?Prod_Id=65
ENJOY
181/433

To wipe out all disks

Sometimes you need to delete all info in your disks, perhaps because it contains private data. You can effectively do this
by erasing the first 1024 blocks on the disk. After doing this the disk will lose its label and the partition schema. You can
run the next script to obtain the list of commands that will do it on your server:
#!/bin/ksh
format < /dev/null| egrep “cyl” | while read l;do
D=`echo $l | awk ‘{ print “dd if=/dev/zero of=/dev/dsk/”$2″s2 count=1024” }’`
echo $D
done
Thanks to Alejandro Siller
108/433