Android: adding 2nd Google account error “can’t establish a reliable data connection to the server”

March 31st, 2011 Alex Posted in Android, internet, phone Comments Off

I tried to add a 2nd google account on my Android phone and got the following error even if I connected using wifi: “can’t establish a reliable data connection to the server”.

The workaround that I found is to register your Google account through your YouTube app, after which your gmail for that account will be available for syncing.

Source http://forum.xda-developers.com/showthread.php?t=780545

AddThis Social Bookmark Button

Text-based location address bar Ubuntu

November 14th, 2010 Alex Posted in linux, ubuntu Comments Off

If, like me, you never use button mode you can set the location to text mode permenantly via the gconf editor. The easiest way to do this is to ALT+F2, type in gconf-editor and hit Run.In the configuration editor go to apps > nautilus > preferences then tick check always_use_locaion_entry. With that checked you’ll permenantly have the text based location bar.

via Text-based location address bar Ubuntu Lucid Lynx | Daniel Gibbs Journal.

AddThis Social Bookmark Button

Output Audio to Airport Express From Unbuntu Lucid Lynx 10.04 (PulseAudio)

July 13th, 2010 Alex Posted in linux, music, ubuntu Comments Off

  1. :~$ sudo apt-get install pulse-audio-module-raop paprefs
    :~$ paprefs
    
  2. check "Make discoverable network sound devices available locally"
    check "Make discoverable Apple Airtunes sound devices available locally"
    
  3. Reboot (or restart pulseaudio)
  4. Go to Sound Preferences – Output (by clicking on the speaker in the taskbar)
  5. Select Base Sation as output
  6. Start your favorite radio station (Pandora?), mp3, etc..
AddThis Social Bookmark Button

Move The Minimize, Maximize And Close Buttons To The Right In Ubuntu 10.04 (Lucid Lynx)

May 6th, 2010 Alex Posted in linux, ubuntu Comments Off

How-to move the minimize, maximize and close buttons to the right of the window in Ubuntu 10.04 (Lucid Lynx).

  1. Press ALT-F2, type: gconf-editor and click Run
  2. Go to: apps > metacity > general and right-click on button_layout and choose “Edit Key….”
  3. Type in menu:minimize,maximize,close and click OK
  4. That’s it.
AddThis Social Bookmark Button

Installing Skype 32 bit on Slackware64

May 1st, 2010 Alex Posted in linux, slackware Comments Off

You first need to upgrade your gcc and glibc packages to their multi-lib versions and then install the 32 bits libraries (along with your 64bits libraries that are already installed). Detailed instructions at: http://connie.slackware.com/~alien/multilib/.

AddThis Social Bookmark Button

Download Excel Spreadsheet from Microsoft using Firefox in Linux

February 8th, 2010 Alex Posted in linux, windows Comments Off

To avoid getting the error “Your operating system does not meet system requirements”, I had to use User Agent Switcher to download the spreadsheet at http://office.microsoft.com/en-us/templates/TC300022771033.aspx for electric meter logging for energy efficiency. Then I used cabextract to extract the .cab file and used Open Office to view the 30002277.xltx file. Here it is saved using Open Office’s ODS format: electricity_tracking.

AddThis Social Bookmark Button

Playing Call Of Duty 4: Modern Warfare Under Ubuntu Linux

December 5th, 2009 Alex Posted in 3D, games, linux, ubuntu Comments Off

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wine1.2
wget http://www.kegel.com/wine/winetricks
sh winetricks vcrun2005
sh winetricks d3dx9
wine regedit
  • under HKEY_CURRENT_USER/Software/Wine, create key Direct3D if it doesn’t already exist
  • inside Direct3D create the following values:
    • string: DirectDrawRenderer value: opengl
    • string: OffscreenRenderingMode value: fbo
    • string: RenderTargetLockMode value: auto
    • string: UseGLSL value: readtex
    • string: VideoMemorySize value: (video card memory size in MB)
AddThis Social Bookmark Button

Sound Problems With Urban Terror, Pulseaudio and Ubuntu Karmic

October 2nd, 2009 Alex Posted in games, ubuntu Comments Off

I fixed it by installing libsdl1.2debian-pulseaudio (which replaces libsdl1.2debian-alsa). So it might be worth a try if you get sound problems with any other programs.

Source: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/372843

AddThis Social Bookmark Button

Ubuntu Doesn’t Save My Sound Settings …

September 24th, 2009 Alex Posted in linux, ubuntu Comments Off

For some reason, Ubuntu Karmic wasn’t saving my sound volume and settings that I set using the Sound Preferences. After attempting to run alsactl store I got:

$ alsactl store
alsactl: save_state:1530: Cannot open /var/lib/alsa/asound.state for writing: Permission denied
$ sudo alsactl store
E: core-util.c: Home directory /home/mycurrentuser not ours.

So I deciced to change “/var/lib/alsa/asound.state” ownership temporarily to the current user and then was able to successfully save my sound settings (then switched back ownership to root). I also added “alsactl restore” to /etc/rc.local to automatically reload my sound settings when I reboot.

AddThis Social Bookmark Button

Broken Ubuntu Karmic: How To apt-get upgrade Using The LiveCD

September 15th, 2009 Alex Posted in linux Comments Off

If your Ubuntu installation (or any other linux distribution that has a liveCD) is broken and can’t boot because of a faulty update, you can try to update your installation after booting from the LiveCD.

Start a terminal and use these commands (/dev/sda2 might need to be changed to match your configuration, you can use fdisk to figure out which partition is your main one):

sudo mkdir /media/karmic
sudo mount /dev/sda2 /media/karmic
sudo mount -o bind /proc /media/karmic/proc
sudo mount -o bind /dev /media/karmic/dev/
sudo cp /etc/resolv.conf /media/karmic/etc/resolv.conf
sudo chroot /media/karmic apt-get update
sudo chroot /media/karmic apt-get upgrade
sudo chroot /media/karmic apt-get dist-upgrade

AddThis Social Bookmark Button

Linux Xorg Broken After Kernel Update and Reboot Because of Nvidia Driver

September 14th, 2009 Alex Posted in linux Comments Off

Re: help!! the last update broke my boot

  1. press alt+printscreen+r (to release the keyboard from the Xserver)

  2. then hit crtl+alt+F1 (and log in)
  3. sudo pico /etc/X11/xorg.conf and change the lines that says
    Section "Device"
    Driver "nvidia"
  4. to

    Section "Device"
    Driver "nv"

  5. Save the file and then issue the startx command or just reboot. That should get your desktop up and running, minus any hardware acceleration (e.g.: for compiz or video games).

Hope that helps and I hope the nvidia driver was opens source!

Source: http://ubuntuforums.org/showthread.php?t=1265224&page=3.

Note: I was updating my Ubuntu Karmic Alpha 5 machine.

AddThis Social Bookmark Button

Change Skype’s 2.1.0.47 Default Sound Device in PulseAudio

September 13th, 2009 Alex Posted in internet, linux, phone, voip Comments Off

Skype 2.1.0.47 beta uses pulseaudio as the default sound device, so you need to change the default sound device fo skype using a pulseaudio.

  1. Install pavucontrol if it’s not already installed
  2. Start pavucontrol
  3. Play a sound in the application where you need to change the default sound device.
  4. While the sound is playing, switch back to pavucontrol and change the sound device.
  5. that should be it.

I needed to set my Logitech Clearchat Wireless Headphones as the default sound device for Skype 2.1.0.47 beta in Ubuntu Karmic Alpha (pavucontrol was not installed).

AddThis Social Bookmark Button

Firefox Can’t Find Acobat Reader In Your Home Directory (Linux)

September 1st, 2009 Alex Posted in linux, pdf Comments Off

After installing Acrobat Reader in my home directory, I was getting the following error when trying to view a PDF using Firefox:

Could not launch Adobe Reader 9.1.2. Please make sure it exists in PATH variable in the environment. If the problem persists, please reinstall the application..

I fixed it by creating a “.profile” file in my home directory (/home/user/.profile) with the following line:

export PATH=$PATH:$HOME/apps/acrobatreader/Adobe/Reader9/bin/

Note: You might need to adapt acrobat reader’s binary path.

AddThis Social Bookmark Button

Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux

August 19th, 2009 Alex Posted in electronics, internet, linux Comments Off

Using Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux

Ubuntu 9.04 has everything you need except for minicom. So all I had to do was to:

  • plug it in

    dmesg should get you the following output:

    usb 2-9: new full speed USB device using ohci_hcd and address 50
    usb 2-9: configuration #1 chosen from 1 choice
    io_ti 2-9:1.0: Edgeport TI 1 port adapter converter detected
    usb 2-9: Edgeport TI 1 port adapter converter now attached to ttyUSB0

  • Install minicom: sudo apt-get install minicom
  • Edit minicom settings: ~$ minicom -s
    1. Change the Serial Device to /dev/ttyUSB0

    2. Change the Bps/Par/Bits field to 9600 8N1, (9600 baud, 8 bits, no parity, 1 stop bit). These are the default settings used by the Linux kernel; they can, if necessary, be overridden from the kernel command line by adding extra parameters to the console= option. See kernel-parameters.txt and serial-console.txt.

    3. Turn off both Hardware Flow Control and Software Flow Control.

    4. In the Modem and dialing menu, remove the Init string and Reset string completely if required.

    5. Save your new config
    6. start minicom
    7. more details
  • Use one of the following commands:
    Command Description Return Value
    ?<CR> Tells about the command set available for this Watchport as described in this section
    I<CR> Tells what kind of Watchport is connected. Watchport/H<CR>
    H<CR> Gives the percentage relative humidity. 38%<CR>
    T<CR> Gives temperature in Celsius. +22.2500C<CR>
    TC<CR> Also gives temperature in Celsius. +22.2500C<CR>
    TF<CR> Gives temperature in Fahrenheit. +72.0000F<CR>
    TF+<CR> Repeats the TF command every 3-4 seconds until the next keystroke. Appending + also works with the TC and H commands +72.0000F<CR>
    L4<CR> Adjusts the slew rate of the data line. When “L” is followed by a numeric value, 1 through 8, Watchport responds with OK. Other values return Invalid Command. The default setting is 4. Adjust the parameter until the data transmission becomes error-free. The setting remains in effect until the Watchport is power-cycled. OK

Download Watchport’s manual

Now all I need is a perl script to automate the posting of these values to twitter?

AddThis Social Bookmark Button

Apache error: Access Informix Database throught ODBC using Perl (Windows)

July 20th, 2009 Alex Posted in linux, programming, windows Comments Off

I was getting this error:

[Mon Jul 20 12:32:05 2009] [error] [client 192.168.241.233] Premature end of script headers: elite_inventory.pl
[Mon Jul 20 12:32:05 2009] [error] [client 192.168.241.233] DBI connect('my_database','my_user',...) failed: [INTERSOLV][ODBC Informix driver][Informix]Unable to load locale categories. (SQL-HY000) at C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/script.pl line 37

The fix involved modifying Apache’s environment variables using SetEnv in httpd.conf:


SetEnv INFORMIXDIR "C:/informix32"
SetEnv INFORMIXSERVER "isaac_net"
SetEnv DELIMIDENT n
SetEnv DBANSIWARN n
SetEnv CLIENT_LOCAL "en_US.CP1252"
SetEnv DB_LOCAL "en_US.CP1252"

This is because even if the variables are set in the registries in Windows (they are environment variables in Linux), the web server doesn’t use them.

Reference #1 and Reference #2.

You might need to use a different locale under Linux or Unix.

AddThis Social Bookmark Button

How-To Change The Default Sound Card in Slackware Linux

April 20th, 2009 Alex Posted in linux, slackware Comments Off

How-To Change The Default Sound Card in Slackware Linux

My case: I have an on-board sound card that I use for everything except for Skype, where I use my Logitech ClearChat Wireless USB Headset. It is easy in Skype to select a different sound device. So I needed to set my on-board sound card as the default output for everything else.

If they both use a different kernel module you can easily make sure the right one is the default card.

Find out what module is being used for your soundcards:

cat /proc/asound/modules

On my computer this gave

0 snd_usb_audio
1 snd_intel8x0

Sound card 0 is the default one (snd_usb_audio in this case). This is the module’s name.

You can’t assign card 0 because whichever card get’s loaded first get # 0. So, you have to assign # 1 to the one you don’t want as the default card. This can be done by adding one simple line to /etc/modprobe.d/sound (create it if it doesn’t exist):

options name_of_offending_module index=1

So, in my case this would be

options snd_usb_audio index=1

Reboot and try

via HOWTO make one soundcard default.

AddThis Social Bookmark Button

K3B/growisofs – more than 50% of space will be *wasted*!

February 22nd, 2009 Alex Posted in linux Comments Off

While trying to burn a 900mb ISO file on a dual layer DVD, I got the error. “more than 50% of space will be *wasted*! use single layer media for this recordiong”. I avoided it by burning a multi-session DVD (e.g.: growisofs -Z /dev/hdc -R -J /home/user/files/*). Another solution would be to add more files to the iso (using isomaster) until it is more then 50% of the capacity of a dual-layer DVD.

Debug output:

growisofs: 7.1
growisofs
-----------------------
Executing 'builtin_dd if=/dev/fd/0 of=/dev/hda obs=32k seek=0'
:-( more than 50% of space will be *wasted*!
use single layer media for this recording
growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hda=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=tracksize:437396 -dvd-compat -speed=2.4 -use-the-force-luke=bufsize:32m

AddThis Social Bookmark Button

Flash crashes/hangs Firefox when switching to fullscreen

February 8th, 2009 Alex Posted in flash, linux, video, web Comments Off

The best solution/workaround I found is to create an executable script (eg: start_firefox) with the following lines (1, 2):

#!/bin/sh
export LD_PRELOAD="/usr/lib/libGL.so.1"
/home/alexb/apps/firefox/firefox

chmod +x start_firefox
./start_firefox

Another solution is to disable the hardware acceleration in Flash (probably a bad solution):

  1. Right click on the embedded Flash window inside Firefox (flash video)
  2. Settings…
  3. go to the first tab
  4. un-check “Enable hardware acceleration”

Now you should be able to go full screen…

Here is the version of the software I was using.

  • Flash v10,0,15,3
  • Firefox 3.0.5 and 3.5.2
  • NVIDIA video driver 180.22
  • Kernel 2.6.27.7-smp
AddThis Social Bookmark Button

Backup Your Security Camery System Captured Images to a Remote Server

January 9th, 2009 Alex Posted in linux, security, slackware Comments Off

Safer Security Camera System with Motion

Now that you have your motion activated security camera system, you could make if safer by uploading the captured images automatically to a remote server just in case something happens to your computer. I’m using Slackware Linux but the setup should be very similar on other distributions.

  1. Create an executable batch file containing the following (pico ~/batch_file):

    rsync -avz /usr/local/apache2/htdocs/cam1 destinationserver.com:~/

  2. Edit /etc/motion.conf and add/uncomment the following line

    on_event_end /home/user/batch_file

  3. Edit ~/.ssh/config (create the .ssh folder if it doesn’t exist) and add the following lines to it:


    Host destinationserver.com
    HostName destinationserver.com
    IdentityFile ~/.ssh/id_dsa
    User your_user_name

  4. Install and setup keychain so that ssh doesn't ask for your pass-phrase every time it tries to connect. Take a look at this keychain/ssh-agent tutorial

You can use a webcam like the one listed below, which features infrared lights for improved night vision (and it is USB so don't need any special hardware for composite input).

infrared security cameraInfrared Night Vision Security Camera

AddThis Social Bookmark Button

Passing parameters to modules in Ubuntu

December 18th, 2008 Alex Posted in linux Comments Off

In this example, I pass the parameter “card=42″ to the module “saa7134″ when the module loads at boot time.

  1. Add your module to /etc/modules

    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules
    # that should be loaded at boot time, one per line.
    # Lines beginning with "#" are ignored.
    saa7134

  2. Add options saa7134 card=42 to the end of /etc/modprobe.d/options

    # Enable double-buffering so gstreamer et. al. work
    options quickcam compatible=2
    # Default hostap to managed mode
    options hostap_pci iw_mode=2
    options hostap_cs iw_mode=2
    # Stop auto-association.
    # LP: #264104
    options ipw2200 associate=0
    # XXX: Ignore HPA by default. Needs to be revisted in jaunty
    options libata ignore_hpa=1
    options saa7134 card=42

Now reboot and you should be all set.

AddThis Social Bookmark Button

Really cheap and well rated GPS USB adaptors for laptop/netbook

December 6th, 2008 Alex Posted in electronics, hardware, linux, windows Comments Off

GLOBALSAT BU353 Waterproof USB GPS Receiver

  • GARMIN 010-00321-00 GPS 18 Deluxe USB Sensor
  • The Globalsat BU-353 would be my first choice, it has very good reviews and it is waterproof.

    AddThis Social Bookmark Button

    Backup your Firefox Passwords

    December 5th, 2008 Alex Posted in linux, web, windows Comments Off

    There are only 2 files you need to backup:

    • signons.sqlite
    • key3.db

    You can find those in your Firefox profile:

    Linux

    ~/.mozilla/firefox/xxxxxxxx.default/

    Windows

    1. Click the Windows Start button, and select Run….
    2. Type in %APPDATA%\Mozilla\Firefox\Profiles\ then click OK.

    You can then copy those file to another computer in your Firefox profile to use them.

    AddThis Social Bookmark Button

    Linux Mass Rename Recursively using a Bash Script

    September 14th, 2008 Alex Posted in linux, productivity Comments Off

    This example Bash script replaces “.JPG” with “.jpg” recursively in the current directory (It can handle filenames with spaces):


    #!/bin/bash

    find ./ -type f -name "*.JPG" | while read FILE
    do
    newname=`echo $FILE | sed s/.JPG/.jpg/`
    echo $newname
    mv "$FILE" "$newname"
    done

    Convert all characters to lowercase:


    #!/bin/bash

    find ./ -type f -name "*" | while read FILE
    do
    newname=`echo $FILE | tr 'a-z' 'A-Z'`
    echo $newname
    mv "$FILE" "$newname"
    done

    AddThis Social Bookmark Button

    Active Perl’s Package Manager: ppm

    August 6th, 2008 Alex Posted in perl, programming, slackware Comments Off

    It allows you to get Perl pre-compiled packages. You can avoid installing a C compiler which is needed for some packages (KinoSearch for example).

    http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/

    Alternate packages repositories:
    http://cpan.uwinnipeg.ca/PPMPackages/10xx/

    AddThis Social Bookmark Button

    Compare four columns in Open Office or Excel

    August 6th, 2008 Alex Posted in linux, productivity, windows Comments Off

    For example, you have 2 sheets, Sheet1 and Sheet2: they both have a list of part numbers in column A and a list of prices in column B. You want to compare the prices for the same part numbers in each sheets. One way to do this is to copy the prices from Sheet1 to Sheet2 in a third column and then use conditional formatting to highlight the different prices:

    Copy this formula in cell C2 of Sheet2 (and then drag it down to the cells below):
    =INDEX($Sheet1.A$2:B$3001;MATCH(A2;$Sheet1.A$2:A$3001;0);2)

    This formula assumes that there is a maximum of 3000 different products in Sheet1 (starting at cell A2).

    Sample file:compare_four_columns.ods

    AddThis Social Bookmark Button

    Compile MythTV 0.21 Slackbuild for Slackware 12.1

    July 27th, 2008 Alex Posted in linux, slackware, video Comments Off

    with the latest ffmpeg installed, I add to temporarily move the following directories in my home directory for the MythTV compilation to go smoothly:
    /usr/include/libavcodec/
    /usr/include/libavformat/
    /usr/include/libavutil/

    AddThis Social Bookmark Button

    Perl’s KinoSearch vs Plucene

    July 17th, 2008 Alex Posted in linux, perl, programming, windows Comments Off

    KinoSearch is the winner

    The following perl scripts index *.txt in the current folder and search for “TEST”. The first one is using Perl’s KinoSearch module and the other one is using Plucene. KinoSearch is alot faster then Plucene and also gives better results.

    (right click to download)

    KinoSearch.pl

    Plucene.pl

    AddThis Social Bookmark Button

    Linux: record a Screencast w/ sound using ffmpeg

    June 4th, 2008 Alex Posted in free, linux, video Comments Off

    How to record a screencast with sound from the sound server (e.g.: ALSA) using ffmpeg:

    ffmpeg -f oss -i /dev/audio -f x11grab -s 800x600 -r 15 -i :0.0 output.avi

    AddThis Social Bookmark Button

    UMPC Laptops Comparison (Open Office Spread Sheet)

    May 27th, 2008 Alex Posted in hardware, linux, windows Comments Off

    Ultra-Mobile PC (laptops)

    AddThis Social Bookmark Button

    Bonding multiple network interfaces (NIC) in Linux

    May 7th, 2008 Alex Posted in internet, linux Comments Off

    Bonding multiple network interfaces can be used for load balancing or fault tolerance.

    Note: Bonding is also called port trunking or teaming.
    AddThis Social Bookmark Button

    Home Camera Security System

    March 22nd, 2007 Alex Posted in linux, security, windows Comments Off

    Resources for setting up a motion-detection camera security system controlled from your PC using an analog camera.

    1. Tutorials

    2. Software

      • Dorgem (Free)Supports an unlimited number of simultaneous cameras. It has a built-in webserver for still images and can be used as security camera because of its motion detection. (Windows)
      • Motion (Free)Software motion detector for Linux. Guide or Download
      • ZoneMinder (Free)Set of applications which together provides a complete surveillance solution allowing capture, analysis, recording and monitoring of any cctv cameras attached to a Linux based machine. Documentation
        or Download
      • Gspy (Free)Special motion detection algorithms are used to reduce the size of the daily movies by eliminating pictures with similar content as well as the mpeg compression. (Linux)
      • VideoLAN (Free)Video streaming server with extended features (Multi-Platform)
      • DSLR Remote ProAllows remote operation of a Canon EOS 5D, 1D Mark II, 1Ds Mark II, 1D, 1DS, 30D, 20D, 10D, 400D/Digital Rebel XTi/Kiss Digital X , 350D/Digital Rebel XT/Kiss Digital N or 300D/Digital Rebel/Kiss Digital digital SLR via a PC using a FireWire or USB cable.
      • Webcam Camera System
    3. Recommended Cheap Hardware

      Look for a TV Tuner card or USB capture device with composite(RCA) input if you have an analog camera. Get one which uses one of the following chipset (Should be listed in the product’s specifications):

      You should be able to find something for about $20 to $30 on the internet.

    4. My Setup

      • I have a TV Tuner card with cable, composite and s-video inputs which has an SAA7130 chip (Module SAA7134 from Kernel 2.6.X is
        required)
      • I couldn’t get it to work with Zone Minder, but it does work pretty well with Motion. I got it from eBay for $15.

      • I also bought an analog wireless camera with receiver for $30 on eBay (composite output).
      • Motion. It is not a GUI program but it is easily setup from the
        motion.conf file and has many nice features (capture video or pictures on motion detection for example).
      • I use Slackware on a P-III 1Ghz (I get about 5 frame per second while motion is detected)

    You could also use a webcam like the one listed below, which features infrared lights for improved night vision (and it is USB so don’t need any special hardware for composite input).

    AddThis Social Bookmark Button

    Move Rails Project From Windows to Slackware Linux

    October 5th, 2006 Alex Posted in linux, slackware, windows Comments Off

    So you want to move your Rails project from Windows to Slackware and your are using MySQL database?
    Then you can fallow these step-by-step instructions.

    Table of contents

    1. Backups
    2. Packages you’ll need
    3. Install Ruby
    4. Install Rubygems
    5. Install Rails
    6. Install MySQL gem
    7. Import your Database schema
    8. Edit config files
    1. BackupsFrom Windows, use mysqldump to create a backup of your database schema and data:
      c:mysqldump -u root -p Database_name > DB_backup.sql

      or to backup all database without the data

      c:mysqldump -u root -p --all-database --no-date > DB_backup.sql

      Next, copy your project directory and you database backup (DB_backup.sql) to a CD
      (or you can mount your windows partition from linux if they are on the same computer)

    2. Packages you’ll need
    3. Install Ruby
      ~$ sudo installpkg ruby-1.8.2-i686-1.tgz
    4. Install Ruby gems
      ~$ tar zxvf rubygems-0.8.10.tgz
      ~$ cd gems-0.8.10
      ~$ sudo ruby setup.rb
    5. Install Rails
      ~$ sudo gem install rails

      or to install latest beta:

      ~$ sudo gem install rails --source http://gems.rubyonrails.com
    6. Install Mysql gem (the first — are meant to be there)
      ~$ sudo gem install mysql --with-mysql-include=/usr/include/mysql 
      --with-mysql-lib=/usr/lib/mysql
    7. Import your Database schema
      ~$ mysqldump -u root --password='Yourpassword'
      mysql> create database database_name;
      mysql> exit
      ~$ mysqldump -u root --password='Yourpassword' 
      database_name > DB_backup.sql
    8. Edit files
      ~$ edit ~/yourproject/public/dispatch.*

      and change the first line to:

      #!/usr/bin/ruby

      (or wherever ruby binary is)

    You should be all set.

    AddThis Social Bookmark Button