Have an Iphone and want to save $$ on AT&T?

April 9th, 2010 Omar No comments

If you want to keep your iphone for just voice and dont mind losing data access outside of wifi areas do the following:

1. Jailbreak it (redsn0w, quickpwn, etc..)

2. Head to http://www.unlockit.co.nz on your iphone and install/follow directions (disabled iphone from using edge and 3g access for data).

3. Find a gsm compatible att phone (or unlocked gsm phone) and place your iphone’s sim card in it.

4. Call AT&T tell them you want to drop data, block all data (WIX service) and give them the info of your new phone.

5. Place same SIM card back into your iphone and and enjoy $30 less on your monthly bill.

Categories: Personal Tags:

DST Time Check w/ SNMPGET

March 10th, 2010 Omar No comments

I’ll be lazy to log into my servers this sunday to check the new time changes. Hmm I’m now inspired to make a passive check to nagios for all my system date and time (that logic is missing from the script):

#!/bin/bash
echo “” > time.results

for server in $(cat server.list) ; do
echo “$server date is: `snmpget -c communityName  $server -v 1 hrSystemDate.0 | awk ‘{print $4}’ | awk -F”,” ‘{print “\t\t\t” $1 “\t” $2}’`” >> time.results
done

mutt -s “*** DST check for linux/unix ****” omar@myjobEmail.com <<EOF
`cat time.results`
EOF

Categories: Linux, Unix, Windows Tags:

[Mental Note] RH 4 vs 5 resizing after a lvextend

February 2nd, 2010 Omar No comments

Unpatched RedHat4/CentOS 4 kernel for online resizing use:

ext2online /mount path

RedHat5/CentOS5

resize2fs /mount path

Categories: Linux Tags:

CYGWIN – Email

February 2nd, 2010 Omar No comments

I have new duties managing windows servers (a new headache). I refuse to work with windows powershell and ran into a lil snag sending email with my bash scripts under cygwin. (sendmail was not implemented under cygwin and all the cygwin mail clients which were built for linux look for sendmail as the MTA gateway.)

Resolution:

Install exim

Run exim-config (defauly options are fine if you just want to relay the messages to your smtp host to send the messages)

Install what ever mail client (I’ve always used mutt for the simple -a option for attachments)

Running exim-config will create a symbolic link of sendmail which exim will act as the MTA gateway for any linux client you install under cygwin.

Categories: Linux, Shell Scripting, Windows Tags:

Digitizing Old Home Videos

January 26th, 2010 Omar No comments

I made it my project to digitize all of my family’s old video recordings.  This is my

recommend cheapest method for digitizing any VHS, camcorder and legacy video format.

Hardware:

Hauppauge Card (I forgot what model – some current ATSC tuner model)

(if you use an OLDER PVR Hauppauge card, make sure if you are running a 64bit Windows OS to limit the memory on the system to under 4gigs; bound to be driver issues)

Old School VCR

Software:

WinTV (included with Hauppauge Card)

HDTVtoMPEG http://www.videohelp.com/tools/HDTVtoMPEG2 (converted files created by WinTV to MPEG, I’ll explain more later)

MPEG Video Editor of your choice (My case iMovie on my mac).

Video Repo:

Smugmug  (I love their service and just upgraded to hold my video content)

Recipe: (on a Windows Box – my case Windows 7 64bit)

1. Set WinTV channel listing to a Analog Set Top box and select s-video or composite video for the capture source.

2. Create a random channel # (example channel 5 named S-video)

3. Tune that station after plugging in your composite video (or s-video) and RCA audio in (or if you don’t care about quality use old school coax cable) to your video source (VCR or camcorder).

4. Hit record and start playing from VCR.

The files created above will be in the “ts” format which is the current format hdtv uses to hold video and audio. We must strip out the video and audio using HDTVtoMPEG2.

1. Open HDTVtoMPEG2 and add the file you want to convert.

2. Select the output type to be mpeg2.

3. Click PROCESS

4. Transfer the new files to where ever you want to edit. imovie, pinnacle stuido etc.. would handle these mpeg2 files with ease.

(Also on default HDTV2MPEG2 will chunk these files to 1024MB chunks. You can increase this to avoid splitting your files.)

Grrr I should charge people for my knowledge. Enjoy :)

Categories: Windows Tags:

Remote kill for windows terminal/RDP

September 14th, 2009 Omar No comments

http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

Logon via cmd

psexec \\SERVER_NAME -u admin -p password cmd

qwinsta (id of users should be listed)

logoff id# /v

Categories: Windows Tags:

Mental Note: Memory %

August 14th, 2009 Omar No comments

omar@onix ~: ps aux | awk ‘{sum +=$4}; END {print sum}’
6.7

EDITED: 1.13.10

The above is not good enough. There can be shared libraries and give you an off count.

free|awk ‘/^Mem/ {printf “%4.1f\n”,($2-$4-$6-$7)/$2*100}’

Ah I need read more on the linux kernel :)

Categories: Linux Tags:

RMAN over NFS – error

June 2nd, 2009 Omar No comments

ORA-27054 error:

source server:

[root@DB1 etc]# cat /etc/exports

/RMAN_Dir   DB2(rw,no_all_squash,anonuid=1005)

destination server:

root@DB2:/

# mount -o rw,nointr,hard,rsize=32768,wsize=32768 DB1:/RMAN_Dir/ /RMAN_Dir

Categories: Linux, OS Tags:

Allow apache to bind to privileged port (below port 1024)

May 21st, 2009 Omar No comments

cd $apache_home/bin

chown root .apachectl

chmod 6750 .apachectl

restart….

Categories: Linux, Unix Tags:

Oracle Application Server: Get OAS 10.1.2 and OAS 10.1.3 communicate to each other

May 21st, 2009 Omar No comments

Edit OAS 10.1.2 to have it communicate with OAS 10.1.3

A. Find and note the remote ports on OAS 10.1.2 and OAS 10.1.3

found in -> $ORACLE_HOME/opmn/conf/opmn.xml on both applications

B. On OAS 10.1.2 run the following:

$ORACLE_HOME/dcm/bin/dcmctl addOPMNLink server-ip:<remote port for OAS 10.1.3>

C. Edit on OAS 10.1.3 $ORACLE_HOME/opmn/conf/opmn.xml
(Avoid using localhost as the IP if the two web server instances are on the same machine)

Add inside <notification-server> field ..
OAS 10.1.2 = server_A
OAS 10.1.3 = servr_B

<notification-server>

<topology>
<nodes list=”[server_A ip]:[remote port],[server_B ip]:[remote port]“/>
</topology>

</notification-server>

D. Reload OPMN on BOTH application instances

Run `$ORACLE_HOME/opmn/bin/opmnctl reload`

E. Verify both can see each other

Run on OAS 10.1.2 ->    $ORACLE_HOME/opmn/bin/opmnctl @farm status

Run on OAS 10.1.3 ->     $ORACLE_HOME/opmn/bin/opmnctl @cluster status

Categories: Linux, Unix Tags: