-
-
Save jvidalba1/39dcde15a05f9fc07b2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installation guide for Ruby stack in Ubuntu (Work In Progress) | |
Open your terminal and copy and paste the following commands: | |
# This will install: git, ruby and zsh: | |
sudo apt-get update | |
sudo apt-get install build-essential git zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev libcurl4-gnutls-dev librtmp-dev curl -y | |
sudo apt-get install zsh -y | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
zsh | |
chsh -s /bin/zsh # This will set zsh as you default shell | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
exit #Exit zsh | |
zsh #Enter again to zsh | |
rbenv install 1.9.3-p374 | |
rbenv global 1.9.3-p374 | |
rbenv rehash | |
# Postgrest: | |
sudo apt-get -y install postgresql-9.1 libpq-dev -y | |
Next, we need to change the password for the postgres user as follows | |
sudo -u postgres psql | |
\password | |
\q | |
The next step is to edit the pg_hba.conf file in order to change the authentication method by md5 for all the connections. | |
we can do this with any text editor, using nano it will be: | |
sudo nano /etc/postgresql/9.1/main/pg_hba.conf | |
Now we need to restart the postgres sever doing: | |
sudo /etc/init.d/postgresql restart | |
Now you should be able to connect to the DB, I recommend to install PGADMIN, you can find this in the Ubuntu Software Center | |
# Node.js | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install python-software-properties python g++ make nodejs | |
# Sublime Text 2 | |
sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get install sublime-text | |
Now that you have Sublime text 2 installed, maybe its a good idea to install package manager, just open the console using ctrl+` shortcut or the View > Show Console menu and paste this python code: | |
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') | |
If you have problems, refers to this link https://sublime.wbond.net/installation#st2 | |
Redis | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make | |
It is a good idea to copy both the Redis server than the command line interface in proper places using the following commands: | |
sudo cp src/redis-server /usr/local/bin/ | |
sudo cp src/redis-cli /usr/local/bin/ | |
now you can start redis server executing: redis-server | |
If you want to install Redis more properly, please go to http://redis.io/topics/quickstart and follow the steps in the 'Installing Redis more properly' section | |
This was written by Luis Edimerchk Laverde |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment