sox -V msg.wav -r 8000 -c 1 -t ul -w msg.ulaw
14/433
Uncategorized
create big concat using svm (disksuite)
Please use the right syntax to concatenate disks and
create a big metadevice
# metainit d40 4 1 c0t1d0s0 1 c0t2d0s0 1 c0t2d0s0 1 c0t2d1s0
the “4” is for the number of disks we are using.
214/433
Disaster recovery linux procedure
inux bare metal restore procedure
using netbackup, it can save you lots of research, all for free!!!!
182/433
time and date duration
To calculate how many hours and minutes does an activity take
http://www.timeanddate.com/date/timeduration.html?m1=&d1=&y1=&m2=&d2=&y2=
115/433
Stop/start iptables
# /etc/init.d/iptables stop
# /etc/init.d/iptables save
# /etc/init.d/iptables start
84/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
Split files
I’ve splitted a 31gb file to fit into dvds:
split –bytes=4296m 80gbdd.7z 80gbdd_7z_
To join the pieces back:
cat 80gbdd_7z_* > 80gbdd_joined. 7z
59/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
Disk Array DMP support in veritas volume manager
You might want to know if you have support for dmp in your array for veritas, you do this by checking the right ASL
package is installed.
# vxddladm listsupport
Then check if there’s an entry for your type of disk array
258/433
physical slot location
Do you want to know where a I/O card is physically located in the server?
If you have the device path you can know.
Read this doc:
http://sunsolve. sun.com/search/document.do?asset key=1-9-21216
here
268/433