Skip to content

Instantly share code, notes, and snippets.

@dmartz86
Forked from edymerchk/Ubuntu Guide.txt
Last active August 29, 2015 14:05
Show Gist options
  • Save dmartz86/40917d216a8cc76f6d93 to your computer and use it in GitHub Desktop.
Save dmartz86/40917d216a8cc76f6d93 to your computer and use it in GitHub Desktop.
apt-get update
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
apt-get install install postgresql-9.1 libpq-dev 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
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
# 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