Skip to content
Browse files

Version 2.3

  • Loading branch information...
1 parent c6551e8 commit 166beb13aa18acd203e7b129dffbc1d00910045d @PrasannaVenkadesh PrasannaVenkadesh committed Nov 20, 2011
Showing with 27 additions and 24 deletions.
  1. +13 −16 README.txt
  2. +2 −8 chat.rb
  3. +12 −0 install.sh
View
29 README.txt
@@ -1,39 +1,36 @@
Whiz-Chat is a ruby script for Linux through which terminal users can chat from terminal by using their Gmail account.
This is a team work of
- S. Sathianarayanan(http://sathia27.wordpress.com/) &
+ S. Sathianarayanan(http://lquery.com) &
S. Prasanna Venkadesh (http://prasopensource.wordpress.com/)
-md5checksum - 56950b231f1f8e64c6bf07924beaf426 chat.rb
+md5checksum - fc2bb96a624c308b6276510f622c38e2 chat.rb
-Step 1: Download the file 'chat.rb' from the repository
+Step 1: Download either tar.gz or .zip file from Download section or you can also download each file individually.
-Step 2: Make sure you have installed Ruby 1.8.x (Recommended) in your Linux box and have installed Rubygems1.8 (Recommended).
+Step 2: Extract the files from tar.gz or .zip file by right clicking and Extracting the files. If you have donwloaded individual files you can skip this step.
-Step 3: Run the Ruby script like './chat.rb' or 'ruby1.8 chat.rb' from your terminal.
+Step 3: Now run the install.sh shell script using the following command "sudo sh install.sh" and let the dependencies and ruby libraries get downloaded from the internet, wait till it gets completed.
-Step 4: Dependencies need to be satisfied for the first time, so type 'y' to satisfy dependencies from Internet.
+Step 4: The above thing works only for Debian/Ubuntu users, and if you are an Redhat/Fedora based user please do install ruby1.8.x and Rubygems1.8 manually.
-Step 5: Repeat step 3 again. If it again prompt for dependencies, do repeat step 3 as Super User using 'sudo' command before it.
+Step 5: Run the Ruby script like './chat.rb' or 'ruby1.8 chat.rb' from your terminal.
-Step 6: The above thing works only for Debian/Ubuntu users, and if you are an Redhat/Fedora based user please do install ruby1.8.x and Rubygems1.8 manually.
+Step 6: Enter your Google mail account user_id alone (Eg:prasmailme) and dont add (@gmail.com), it will be automatically appended.
-Step 7: Enter your Google mail account user_id alone (Eg:prasmailme) and dont add (@gmail.com), it will be automatically appended.
+Step 7: Enter the password for your account.
-Step 8: Enter the password for your account.
+Step 8: Now you will be displayed with a menu and you can choose one from the menu using the corresponding options.
-Step 9: Now you will be displayed with a menu and you can choose one from the menu using the corresponding options.
+Step 9: When you choose to chat - In 'To Username: ' type the recepient user_id like above in Step 6.
-Step 10: When you choose to chat - In 'to address: ' type the recepient user_id like above in Step 7.
+Step 10: If everything went fine you have will be ready to send or receive messages, or else exceptions will be thrown for User_id / Password mismatch.
-Step 11: If everything went fine you have will be ready to send or receive messages, or else exceptions will be thrown for User_id / Password mismatch.
-
-Step 12: Type 'bye' to quit from chat, the message bye will also be delivered for the receiver.
+Step 11: Type 'bye' to quit from chat, the message bye will also be delivered for the receiver and you will be disconnected
We have a list of features. Check features.rdoc file.
Please do help us by mailing the bugs you find.
Note: We have used 'espeak' to make sound alerts and it comes as default in ubuntu 10.10 and 11.04, so if you are using some other distro or versions of linux see to that you have got that tool installed or install it manually using the following command:
-Debian / Ubuntu distro's: sudo apt-get install espeak
Redhat / Fedora / CentOS : Search in repository for espeak, they have their own 'rpm' package for espeak.
View
10 chat.rb
@@ -105,14 +105,8 @@ def receive
#for first time users who have not installed the required gems, this method will be run only once
rescue LoadError
- print 'Dependencies was not installed. Do you want to install (y) or not (n)'
- a = gets.chomp
- if( a == 'y')
- system('sudo apt-get install rubygems1.8')
- system('gem install xmpp4r-simple')
- system('gem install highline')
- system('gem install colorize')
- end
+ puts "Please execute the install.sh file before running this file.\nUse 'sudo sh install.sh' to execute"
+
rescue Jabber::ClientAuthenticationFailure
print "Invalid username / password\n".colorize(:red) + "Run again\n".colorize(:yellow)
View
12 install.sh
@@ -0,0 +1,12 @@
+sudo apt-get install libopenssl-ruby libreadline-ruby1.8 rdoc ri ruby ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libruby1.8 libxslt-dev libxml2-dev espeak
+wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
+tar xzvf rubygems-1.3.6.tgz
+cd rubygems-1.3.6
+sudo ruby setup.rb
+rm -R rubygems-1.3.6 rubygems-1.3.6.tgz
+gem1.8 install xmpp4r-simple
+gem1.8 install highline
+gem1.8 install gmail
+gem1.8 install mechanize
+gem1.8 install colorize
+

0 comments on commit 166beb1

Please sign in to comment.
Something went wrong with that request. Please try again.