Archive for the ‘Computers’ Category

Want a free VOIP home phone system? Build it yourself with “PBX in a flash”

Wednesday, January 27th, 2010

I took a good look at my monthly bills and found that I needed to curtail them. One useless bill was my phone bill. Almost 600 bucks a year. So I decided to turn to, yes the internet, to find a low cost solution that would do the same things and more than my current Vonage setup.

There are many home PBX software solutions out there, but I chose “PBX in a Flash” based on FreePBX and Asterisk. It can run on a very low end system 1.5 GHz Pentium would do fine. I chose to use an old laptop for my Linux based PBX (Private Branch Exchange) solution.

So first step was to download and install an ISO from http://pbxinaflash.net/downloads. Burn the ISO to a CD and then boot from it.

Follow the instructions as the install will take you through basic Linux setup such as IP etc.

Once you have installed it, fairly straight forward, you will need the following:

  • Google Voice Account
  • Free SIP account ( I used SipGateOne residential account )
  • Configure SIP phone or Software based VOIP ( I used Linksys SPA-3102 )

To be continued…

Create Windows7 install from usb

Wednesday, October 28th, 2009

Requirements:

*USB Flash Drive (Minimum 4GB)

*Windows 7 or Vista installation files.

Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily.

1. Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.

2. Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.

*Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.

Or

*Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.

3. You need to know about the USB drive a little bit. Type in the following commands in the command prompt:

First type DISKPART and hit enter to see the below message.

 

Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the below screenshot my Flash Drive Disk no is Disk 1.
4. Next type all the below commands one by one. Here I assume that your disk drive no is “Disk 1”.If you have Disk 2 as your USB flash drive then use Disk 2.Refer the above step to confirm it.

So below are the commands you need to type and execute one by one:

SELECT DISK 1

CLEAN

CREATE PARTITION PRIMARY

SELECT PARTITION 1

ACTIVE

FORMAT FS=NTFS

(Format process may take few seconds)

ASSIGN

EXIT

Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.

 

5. Next insert your Windows7/Vista DVD into the optical drive and check the drive letter of the DVD drive. In this guide I will assume that your DVD drive letter is “D” and USB drive letter is “H” (open my computer to know about it).
6. Maximize the minimized Command Prompt in the 4th step.Type  the following command now:

D:CD BOOT and hit enter.Where “D” is your DVD drive letter.

CD BOOT and hit enter to see the below message.
7. Type another command given below to update the USB drive with BOOTMGR compatible code.

BOOTSECT.EXE/NT60 H:

 

Where “H” is your USB drive letter. Once you enter the above command you will see the below message.
8. Copy your Windows 7/Vista DVD contents to the USB flash drive.
9. Your USB drive is ready to boot and install Windows 7/Vista. Only thing you need to change the boot priority at the BIOS to USB from the HDD or CD ROM drive. I won’t explain it as it’s just the matter the changing the boot priority or enabling the USB boot option in the BIOS.

Note: If you are not able to boot after following this guide means you haven’t set the BIOS priority to USB. If you got any problem in following this guide feel free to ask questions by leaving comment.

Installing Apache2, PHP5, MySQL on Centos

Monday, October 5th, 2009

yum -y install httpd php mysql mysql-server php-mysql
mysqladmin -u root password ‘ENTER-PASSWORD-HERE’

mysql -u root -p
 mysql> DRO P DATABASE test;
 mysql> DELETE FROM mysql.user WHERE user = ”;
 mysql> FLUSH PRIVILEGES;
 
  /sbin/chkconfig httpd on
  /sbin/chkconfig –add mysqld
  /sbin/chkconfig mysqld on
  /sbin/service httpd start
  /sbin/service mysqld start
 
Check your php is working

<php echo phpinfo(); ?>

Centos, LifeRay with mysql database install

Tuesday, September 15th, 2009
  • Install Centos 4.8 using DVD
  • vi /etc/yum.conf to include proxy server if internal
  • Run “yum update” to upgrade your CENTOS to the latest.
  • Install MySQL server “yum install mysql-server”
  • /etc/init.d/mysqld start
  • mysqladmin -u root password ‘hardpassword’
  • mysqladmin -u root -p create liferay
  • mysqladmin -u root -p reload

Setup MySQL Permissions

To access the user, host databases, etc… type this;

mysql> use mysql;
Database changed
mysql>

To give localhost permission to access all databases, enter this:

mysql> insert into
         -> host(host,db,Select_priv, Insert_priv, Update_priv,
         -> Delete_priv, Create_priv, Drop_priv)
         -> values('localhost','%','Y','Y','Y','Y','Y','Y');

Note, the ‘%’ can be replaced with a database name. The ‘%’ is a wildcard.

Following the previous format, to allow access from another hostname (in this case “windowsbox”) add this:

mysql> insert into
         -> host(host,db,Select_priv, Insert_priv, Update_priv,
         -> Delete_priv, Create_priv, Drop_priv)
         -> values('windowsbox','%','Y','Y','Y','Y','Y','Y');

Again, ‘%’ is used as a Wild-Card.

To create a user ‘djg’ who can access the MySQL server from localhost, type this:

mysql> insert into
         -> user (host, user, password)
         -> values('localhost','djg',password('mypassword'));

To give the user access from another hostname, domain, etc… add other entries accordingly. For example, to give user djg access from windowsbox:

mysql> insert into
         -> user (host, user, password)
         -> values('windowsbox','djg',password('mypassword'));

Now… to give the user permissions to access a database from localhost, add this entry and change with your appropriate information:

mysql> insert into
-> db (host,db,user,Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv)
-> values (‘localhost’,'mydatabase’,'djg’,'Y’,'Y’,'Y’,'Y’,'Y’,'Y’);

To give the user permissions from windowsbox, add this:

mysql> insert into
-> db (host,db,user,Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv)
-> values (‘windowsbox’,'mydatabase’,'djg’,'Y’,'Y’,'Y’,'Y’,'Y’,'Y’);

Now, type: quit and you will exit mysql.

Finally, create the actual database (in this case, ‘mydatabase’) type this:

mysqladmin -u root -p create mydatabase

After prompting you for a password, it should create the database.

At this point, you must reload MySQL. Type:

mysqladmin -u root -p reload

After prompting you for a password it should reload MySQL.

Bluetooth Tethering for Blackberry 8830

Saturday, June 6th, 2009

I feel stupid today… I finally got around to setting up my Bluetooth and Blackberry connection. I have a IBM Thinkpad T43 what does not come with built in Bluetooth transmitter. So, I found a Zoom USB Bluetooth adapter for 19 bucks at Microcenter and plugged it in. Bam installed no fuss no drivers needed.

For years I have been tethering my Laptops to my Blackberry’s with a USB cable because I thought that was the only way that was supported (worked). Not so. I thought this because I had tried with an earlier version of the Blackberry and the DUN was disabled. Well, the 8830 is apparently turned on and I was able to connect using the following setup:

Install IBM ThinkPad USB Software 7jba10ww.exe from Lenovo site. 100+MB. I then plugged in my Zoom Bluetooth adapter and paired my devices. You have to goto BB first and say pair, put in passcode which can be anything, then enter that same passcode on the Laptop. Enable Dialup Networking Service in BlueTooth Config.

Once everything is paired, you just need to add a Dialup connection using the Blackberry DUN.

Control Panel / Network Connections / Add new connection / Dialup

phone number = #777
user = mynumber@vzw3g.com
pw = vzw

That’s it. I guess it pays to to a little digging.

8703e Blackberry Tethering with Ubuntu 8.10 (Verizon)

Monday, November 10th, 2008

[ad#header]Wow, this was a good one, kept me going for a good 2 days!  So I’ve been using the VZAccess software for Windows for some time now and it’s pretty solid. The operating system however is not, so I’ve loaded Ubuntu 8.10 on my Lenovo Thinkpad T400. This kernel had the Wireless capabilities I needed. So let’s get to it:

First make sure you have all these packages from SPM

libtool autoconf automake cvs libglib2.0-dev libxml2-dev libssl-dev libopensync0-dev libxt-dev x11proto-print-dev libxmu-dev libxft-dev libfreetype6-dev libXp-dev flex byacc libgd2-xpm-dev libc6-dev g++ gcc make build-essential libxaw7-dev

Next you need to download the following packages:

openmotif-2.3.0.tar.gz

configure, make, make install

Xlt-13.0.13.gz

configure, make, make install

xmblackberry-0.3.0.gz

configure, make, make install

Then you need to create the communication scripts

/etc/chatscripts/blackberry
with the contents;

ABORT BUSY ABORT ‘NO CARRIER’ ABORT VOICE ABORT ‘NO DIALTONE’ ABORT ‘NO DIAL TONE’ ABORT ‘NO ANSWER’ ABORT DELAYED ABORT ERROR
SAY “Initializing\n”
” ATZ
OK-AT-OK ATDT#777
CONNECT \d\c

And then
/etc/ppp/peers/blackberry
with,

debug debug debug
nodetach
/dev/pts/1
115200
connect “/usr/sbin/chat -f /etc/chatscripts/blackberry”
nomultilink
defaultroute
noipdefault
ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote
# added this, so that it doesn’t disconnect after few mn of innactivity
lcp-echo-interval 0
lcp-echo-failure 999
modem
noauth
nocrtscts
noipdefault
novj # refused anyway, no point in trying every time
usepeerdns
user Your10digitnumber@vzw3g.com
password Your10digitnumber

(*The /dev/pts/1 from above depends on what device you Blackberry is connecting to. This is displayed when you successfully run the XmBlackberry for the first time)

To be continued….

DSEE 6.3 Windows Server 2003 Installation

Sunday, July 27th, 2008

DSEE 6.2 Windows Server 2003 Installation Notes

DSEE 6.2 Windows Server 2003 Installation Notes

Obtain the zip file from here

  1. Unpack the DSEE6.2 zip file… c:\Temp\DSEE62 using folder names
  2. c:\Temp\DSEE62\dsee_deploy install –install-path c:\DSEE62 –no-inter
  3. C:\DSEE62\ds6\bin>dsadm create -p 44444 -P 44445 c:\DSEE62\sedemo
    Choose the Directory Manager password:
    Confirm the Directory Manager password:
    Use ‘dsadm start ‘c:\DSEE62\sedemo” to start the instance
  4. C:\DSEE62\ds6\bin>dsadm start c:\DSEE62\sedemo
    Waiting for server to start…
    Waiting for server to start…
    Server started: pid=8132
  5. C:\DSEE62\ds6\bin>dsadm stop c:\DSEE62\sedemo
    Server stopped
  6. C:\DSEE62\ds6\bin>dsadm enable-service –type WIN_SERVICE c:\DSEE62\sedemo
    Instance c:/DSEE62/sedemo registered in WIN_SERVICE
  7. Deploy the DSCC
    Stop Tomcat
    Copy C:\DSEE62\var\dscc6\dscc.war to Tomcats webapps folder
    Start Tomcat
  8. C:\DSEE62\dscc6\bin>dsccsetup initialize
    ***
    DSCC Application cannot be registered because it is not installed
    ***
    DSCC Agent is already registered
    ***
    Choose password for Directory Service Manager:
    Confirm password for Directory Service Manager:
    Creating DSCC registry…
    DSCC Registry has been created successfully
    ***
  9. C:\DSEE62\dscc6\bin>dsccreg add-server -d SEDemo_Directory c:\DSEE62\sedemo
    Enter DSCC administrator’s password:
    c:\DSEE62\sedemo is an instance of DS
    Enter password of “cn=Directory Manager” for c:\DSEE62\sedemo:
    Enter password of “cn=Directory Manager” for c:\DSEE62\sedemo:This operation will restart c:\DSEE62\
    sedemo.
    Do you want to continue ? (y/n) y
    Starting c:/DSEE62/sedemo
    Connecting to c:/DSEE62/sedemo
    Enabling DSCC access to c:/DSEE62/sedemo
    Restarting c:/DSEE62/sedemo
    Registering c:/DSEE62/sedemo in DSCC on localhost.

Trac Installation with Postgresql

Thursday, July 17th, 2008

Multiple Jboss Instances on one server

Wednesday, April 2nd, 2008

This works for JBOSS 4.0.5.GA! hopefully, it will work on some other versions. The important thing is to change the port number for the services you are running in your application – http, rmi, jndi, Webservice e.t.c. You will find these in the following xml files -All xml are in the server directory JBOSS.

Leave the first instance of your JBoss unchanged. In the 2nd instance, for example, update the xml files as described below:

…<jboss folder>…/server/default/deploy/jbossweb-tomcat55.sar/server.xml:
update 8080 to 18080

…<jboss folder>…/server/default/conf/jboss-service.xml:
update 1099 to 11099
update 1098 to 11098
update 4445 to 14445
update 4444 to 14444

…<jboss folder>…/server/default/conf/jboss-minimal.xml:
update 1099 to 11099
update 1098 to 11098
…<jboss folder>…/server/default/deploy/jms/uil2-service.xml – update 8093 to 18093

…<jboss folder>…/server/default/conf/jboss-service.xml – update 8083 to 18083

ipower web hosting is the worst hosting company in the world

Wednesday, February 20th, 2008

Fix for MySQL upgrade without any notification. Completely broke all ecommerce on 2 of my sites hosted at ipower.com Recommendation: never never never never never ever use IPOWER.com for anything.

http://forums.oscommerce.com/index.php?showtopic=230304