Monday, February 28, 2011
MSM LSI MEGARAID
Install the latest MSM Megaraid manager regardless of whatever version actually belongs to the storage card on LSI website
Wednesday, January 19, 2011
Monday, January 10, 2011
Sunday, January 09, 2011
resize LVM by adding new disk to lvm
fdisk /dev/sdb
mkfs -t ext3 -c /dev/sdb1
pvcreate /dev/sdb1
vgextend VolGroup00 /dev/sdb1
lvextend -L+1G /dev/VolGroup00/LogVol00 ;for adding one more GB to Logical Volume LogVol01
resize2fs /dev/VolGroup00/LogVol00
Thanks to http://sujithemmanuel.blogspot.com/2007/04/how-to-add-disk-to-lvm.html
amplify sound volume of a video file
To amplify - increase sound volume of - a video file do
ffmpeg -i myvideo.avi -vcodec copy -vol 5000 myvideo_louder.avi
thanks to http://superuser.com/questions/13552/how-to-amplify-the-audio-in-a-video-file
Thursday, January 06, 2011
VMWARE ESX 4.1 boot from ISO does not work
Remember to check the box which says "Connected", the damn thing took soooo much of my time.
Monday, December 20, 2010
Tuesday, December 07, 2010
linux detach screen
to exit a session created by screen command without stopping what is going on in the session do a
CTRL+a then d
CTRL+a then d
Friday, November 19, 2010
awk dmidecode output
dmidecode | awk 'BEGIN {RS = "\n\n"} /System Information/'
thanks to http://aixhealthcheck.com/index.php?id=246
thanks to http://aixhealthcheck.com/index.php?id=246
Wednesday, October 27, 2010
Tuesday, October 26, 2010
copy and backup
find /tmp/test/ -name '*.csv' -exec cp --backup=numbered {} /tmp/test2/ \;
if a file exists in the destination cp will create a copy first like filename.~1~
Thanks to RAMIN the RAMPALO
Sunday, October 24, 2010
Saturday, October 23, 2010
linux iptables SNAT
you do not have to have the ip address of a machine behind iptables set on the gateway machine before you can SNAT with the ipaddress of the machine behind the firewall. In other words you can keep your valid ip address on the machine behind the gateway and still ask your gateway to SNAT with that IP.
Wednesday, October 20, 2010
Visio add text to shape with yellow dot
In detail, it goes something like this:
1. Create or select a shape (duh!)
2. Open the ShapeSheet via Window > Show ShapeSheet
Go to: Insert > Section and check Controls and Text Transform (if it isn’t grayed out)
You should now see both the Controls section and the Text Transform section in the ShapeSheet.
3. In the Text Transform section, set the TxtPin cells as follows:
TxtPinX = Controls.Row_1.X
TxtPinY = Controls.Row_1.Y
4. In the drawing window, reposition the control handle to a suitable default position. The text should follow along!
Taken from: http://www.visguy.com/2009/05/06/top-twelve-text-tips/
Wednesday, August 25, 2010
rsync from windows to linux
1.
vi /etc/xinetd.d/rsync
set disabled = no
2.
cat /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Random things available for download
path = /home/oracle/work
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub
secrets file = /etc/rsyncd.secrets
[share2]
comment = t2
path = /home/oracle/work2
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub2
secrets file = /etc/rsyncd.secrets
3.
cat /etc/rsyncd.secrets
pub:pub
pub2:pub2
4.
chmod 600 /etc/rsyncd.secrets
5.
download http://www.brentnorris.net/rsync.zip
6. rsync like this:
rsync -aPv rsync://pub@192.168.0.213/pub .
vi /etc/xinetd.d/rsync
set disabled = no
2.
cat /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Random things available for download
path = /home/oracle/work
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub
secrets file = /etc/rsyncd.secrets
[share2]
comment = t2
path = /home/oracle/work2
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub2
secrets file = /etc/rsyncd.secrets
3.
cat /etc/rsyncd.secrets
pub:pub
pub2:pub2
4.
chmod 600 /etc/rsyncd.secrets
5.
download http://www.brentnorris.net/rsync.zip
6. rsync like this:
rsync -aPv rsync://pub@192.168.0.213/pub .
Saturday, August 14, 2010
Windows XP enable AHCI mode after IDE Install
1. download the corresponding Intel Matrix Storage driver for your Motherboard (ICHX)
2. c:\iata_enu.exe -a
3. copy c:\Program Files\Intel\Intel Matrix Storage Manager\IaStor.sys c:\windows\system32\drivers
4. find the corresponding AHCI.reg file from the internet for your motherboard (ICHX)
5. load the reg file into you registry
6. reboot and enable AHCI mode
7. When windows started cancel automatic hard disk detection and install Intel Matrix Storage and reboot
taken from http://forums.hexus.net/hexus-hardware/112584-how-enable-ahci-raid-mode-without-reinstalling-windows-p35-ich9-ich9r-4.html
2. c:\iata_enu.exe -a
3. copy c:\Program Files\Intel\Intel Matrix Storage Manager\IaStor.sys c:\windows\system32\drivers
4. find the corresponding AHCI.reg file from the internet for your motherboard (ICHX)
5. load the reg file into you registry
6. reboot and enable AHCI mode
7. When windows started cancel automatic hard disk detection and install Intel Matrix Storage and reboot
taken from http://forums.hexus.net/hexus-hardware/112584-how-enable-ahci-raid-mode-without-reinstalling-windows-p35-ich9-ich9r-4.html
Wednesday, August 11, 2010
exporting files from a specific user
/var/www/html/mp3 *(ro,sync,all_squash,anonuid=100,anongid=101)
This will answer request from nfs clients as if the request has come from the specific use anonuid:anongid
This will answer request from nfs clients as if the request has come from the specific use anonuid:anongid
Subscribe to:
Posts (Atom)