Showing posts with label installation procedures. Show all posts
Showing posts with label installation procedures. Show all posts

Thursday, 3 September 2015

Sublime text2 package control install:



Go to link
https://packagecontrol.io/installation
Copy python code for sublime text2/3

ctrl+`  --> To open console.

Paste python code, then press enter

Restart sublime.

Ex: To install trailing spaces.

Then install package Trailing spaces(like package control)

ctrl+shift+p search for package control press enter.

ctrl+shift+p search for trailing space press enter.

Tuesday, 10 June 2014

MONGODB INSTALLATION ON UBUNTU

MONGODB INSTALLATION ON UBUNTU OS


Step 1: The Ubuntu package management tool (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys.

$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10



Step 2: Create mongodb source list.

$echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list



Step 3: Reload your Repository.
$sudo apt-get update



Step 4:Install mongodb pakages.

$sudo apt-get install mongodb-10gen



Step 5: Test new mongodb.
Let's try  to Start, Stop and Restart MongoDB 



 You can see in the image above, after installation process is finished, it's start mongoDb automatically.  If not, you should use the command : sudo service mongodb start  to start it up.
We also have the command: sudo service mongodb stop  and sudo service mongodb restart  to stop and start it.

 Testing mogodb on mongo shell 

  - To ensure mongodb works well, try some basic command to save new data and find them on mongo shell.
 - To use mongodb on mongo shell, just type : mongo on terminal.
    + To add new data  into mongodb try : db.test.save ({codingtip : 1})
    + To see all data in database , try : db.test.find() 
with db.test is Test database which is auto created by mongodb in installations




Tuesday, 27 May 2014

HOW TO INSTALL CHROME IN UBUNTU

HOW TO INSTALL CHROME IN UBUNTU

 

1, OPEN THE TERMINAL USING CTRL+ALT+T
2, COPY AND PASTE FOLLOWING SCRIPT TO TERMINAL:

if [[ $(getconf LONG_BIT) = "64" ]]
then
    echo "64bit Detected" &&
    echo "Installing Google Chrome" &&
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
    sudo dpkg -i google-chrome-stable_current_amd64.deb &&
    rm -f google-chrome-stable_current_amd64.deb
else
    echo "32bit Detected" &&
    echo "Installing Google Chrome" &&
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
    sudo dpkg -i google-chrome-stable_current_i386.deb &&
    rm -f google-chrome-stable_current_i386.deb
fi

source from ::::http://howtoubuntu.org/



************HAPPY CODING.....**********

Tuesday, 20 May 2014

ERROR WHILE FETCHING MYSQL GEM

BUNDLE INSTALLATION ERROR WHILE FETCHING MYSQL GEM:

PROBLEM:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    /home/saritha/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

SOLUTION:

INSTALL BELOW TWO COMMANDS:
$sudo apt-get install libmysqlclient-dev
$gem install mysql2
Screenshot from 2014-05-20 15:54:17.png

Monday, 19 May 2014

PHP MYADMIN INSTALLATION IN UBUNRU


PHP MYADMIN INSTALLATION IN UBUNTU

sudo apt-get install phpmyadmin mysql-server
sudo ln -s /etc/phpmyadmin/apache.conf
           /etc/apache2/sites-available/phpmyadmin.conf
sudo a2ensite phpmyadmin.conf
sudo /etc/init.d/apache2 restart

SUBLIME INSTALLATION IN UBUNTU




sudo add-apt-repository ppa:webupd8team/sublime-text-3 
sudo apt-get update 
sudo apt-get install sublime-text-installer

Tuesday, 13 May 2014

SKYPE INSTALLATION IN UBUNTU

SKYPE INSTALLATION IN UBUNTU

  • sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" 

  • sudo apt-get update 

  • sudo apt-get install skype

Wednesday, 16 April 2014

RVM INSTALLATION IN UBUNTU


RVM INSTALLATION IN UBUNTU 13

Step 1:The first step is to install some dependencies for Ruby.
$sudo apt-get update
step 2:
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config libgdbm-dev libffi-dev libreadline-dev
step3: Then, run the installer:
$ curl -L https://get.rvm.io | bash -s stable
step4:Make rvm acessible to your enviroment:
$ echo ‘source ~/.rvm/scripts/rvm’ » ~/.bash_aliases && bash
step 5:To check rvm requirements
$ rvm requirements
step 6: Install Ruby 1.9.3:
$ rvm install 1.9.3
step 7:Make 1.9.3 the default version:
$ rvm use 1.9.3 –default
step 8**:And, finally, rails:
$ gem install rails 
 TO GIVE ALIAS NAME FOR RVM
$rvm alias create [newname] [rvm version]
EX:$rvm alias create latest ruby-2.0.0-p247
 
 
 
 

Friday, 28 March 2014

RVM FOR WINDOWS

This is done by using a gem called pik.
Step 1: install a gem by issuing fallowing command in command prompt
>gem install pik
...
Successfully installed pik-0.3.0
1 gem installed
Step 2: after successful installation of gem, you can use the ‘pik_install’ script to install the pik executable. Install pik to a location that’s in your path, but someplace other than your rubybin dir. For instance, the directory C:bin is in my path:
>path
PATH=c:\bin;C:\Program Files\Windows Resource Kits\Tools\;c:\ruby\Ruby-186-p383\bin;
So i run,
>pik_install C:\bin
Thank you for using pik.
Installing to C:\bin
...
pik is installed
Simply type the command pik on command prompt, then the current ruby version is added as default ruby of u r system.

>pik

U can add another ruby version by using fallowing commands: 
.....
 
$ pik install ruby 1.9.2
 
** Adding:  192: ruby 1.9.2 (2011-06-30 patchlevel 352) [i386-mingw32]
 
Now we can check current installed versions by fallowing command:
 
> pik list
  *187: ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
  192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
 
 
the * before 187 means that we are using Ruby 1.8.7 at this moment, let’s switch to Ruby 1.9.2
 
> pik use 192
 
If you run one last command you will see what happened
 
> ruby -v
ruby 1.9.2 (2011-06-30 patchlevel 352) [i386-mingw32]