HowTo: Huawei E173 on Ubuntu

# sudo aptitude install usb_modeswitch -y
Once this is installed, attach your modem. Then issue this command.
# lsusb

Bus 001 Device 003: ID 12d1:1d35 Huawei Technologies Co., Ltd.
With this command you will be able to find out vendor id and the product id of the modem. Now just open the /etc/modules file and put in a new line there
usbserial vendor=0x12d1 product=0x1d35
Save and Quit the file and simply reboot the machine.

Installing Open MPI on Mac OS X

The installation of Open MPI on Mac is surprisingly easy.
  1. Download source code from http://www.open-mpi.org/software/. At the time of posting the current stable release of Open MPI is version 1.6.1.
  2. Copy the archive file to a temporary location to compile it. Open Terminal.app and change directories to the new location of the Open MPI archive. If you downloaded the source code as a .tar.gz file, you can untar/zip it by typing

    tar zxvf openmpi-1.6.1.tar.gz

     which will create a directory called openmpi-1.6.1/. Change directories into the new directory.
  3. Assuming you have some compilers installed, you can now run the configuration script. As mentioned above, if you don't have any compilers installed, you can check out my page on installing the GNU compilers before proceeding. If you only have one set of compilers installed, you can run the configuration script by typing

    ./configure --prefix=/usr/local

     If you would like to install Open MPI someplace other than /usr/local, you can change the directory listed for the prefix flag.
    • If you have multiple compilers installed, you can specify which compilers you would like to use as follows

      ./configure CC=icc CXX=icpc F77=ifort FC=ifort --prefix=/usr/local

      where you specify the C (CC), C++ (CXX), Fortran 77 (F77) and Fortran 90 (FC) compilers with the listed variables*.
  4. Assuming the configuration script runs without issue, you can compile the code by typing

    make all

    which will compile the Open MPI libraries/binaries and configure the wrappers for using the specified compilers. This should take a bit...
  5. Again, assuming the code compiles without issue, you can install Open MPI by typing

    sudo make install

    Beware that using 
    sudo can do major damage to your computer if you aren't careful. You can now feel free to delete the temporary Open MPI build directory (e.g.,openmpi-1.6.1/) since the code has been installed. If you think you might want to rebuild with different compilers or change the configuration, you may want  to keep this directory around.
So now you should have a functional installation of Open MPI on your Mac. You should be able to compile code that uses MPI by using the Open MPI compiler wrappers (mpicc,mpicxxmpif77mpif90) and run MPI-enabled programs with mpiexec. If you try to use the new Open MPI executables and they are not found, it may be that/usr/local/bin (or wherever you specified with the --prefix flag in the configure stage) is not in your $PATH environment variable. You can confirm this by typing 

echo $PATH

if you do not see /usr/local/bin listed between the colons, you will need to add it. I describe how to do this at the end of my page on installing the GNU compilers.

For assistance on linking to Open MPI or running MPI-enabled software, check out the Open MPI documentation.

* Minor typo fixed 08/12A previous version of this page listed the configuration step as
./configure CC=icc CXX=icpc F77=ifort F90=ifort --prefix=/usr/local

where you specify the C (CC), C++ (CXX), Fortran 77 (F77) and Fortran 90 (F90) compilers with the listed variables.
I believe that the use of the environment variable F90 is no longer supported and F90 has been replaced by FC in the GNU automake tools.

SSH Login Without Password Using ssh-keygen & ssh-copy-id

You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article.

ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home, ~/.ssh, and ~/.ssh/authorized_keys.

This article also explains 3 minor annoyances of using ssh-copy-id and how to use ssh-copy-id along with ssh-agent.

Step 1: Create public and private keys using ssh-key-gen on local-host

jsmith@local-host$ [Note: You are on local-host here]

jsmith@local-host$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Pess enter key]
Your identification has been saved in /home/jsmith/.ssh/id_rsa.
Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.
The key fingerprint is:
33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host

Step 2: Copy the public key to remote-host using ssh-copy-id

jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
jsmith@remote-host's password:
Now try logging into the machine, with "ssh 'remote-host'", and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.
Note: ssh-copy-id appends the keys to the remote-host’s .ssh/authorized_key.

Step 3: Login to remote-host without entering the password

jsmith@local-host$ ssh remote-host
Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2
[Note: SSH did not ask for password.]

jsmith@remote-host$ [Note: You are on remote-host here]

Magento Installation in GoDaddY!

If you are still having the problem of “no file input specified” after changing the htaccess and php5.ini files as posted everywhere in this forum… and are using GoDaddy, try this:
Login to your Godaddy Account.  Click on your hosting account. 
Go to Settings > File Extensions Management
and change .php and .php5 to run under PHP5.2X (instead of PHP5.2xFastCGI)
I had tried everything posted in the forums and kept getting the “no input file selected” even after getting to the installation page and clicking continue.....for an entire week and the above fix is what finally worked for me!!!!