Skip to content

Instantly share code, notes, and snippets.

@RohitRox
Created July 21, 2014 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RohitRox/48b4f512eff79aaa279f to your computer and use it in GitHub Desktop.
Save RohitRox/48b4f512eff79aaa279f to your computer and use it in GitHub Desktop.
Ubuntu after do for web developers
sudo apt-get update
sudo apt-get install curl
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
#In the text that RVM shows you, look for this paragraph.
#Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
# ruby: /usr/bin/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
#Just follow the instructions to get your system up to date with all of the required dependancies.
rvm install 1.9.3
rvm use 1.9.3 --default
#You need to change your terminal emulator preferences to allow login shell.
#Sometimes it is required to use `/bin/bash --login` as the command.
#Please visit https://rvm.io/integration/gnome-terminal/ for a example.
#add
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
#to last line of bashrc
rvm rubygems current
#rails
#Javascript Runtime
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
#rails
gem install rails
#github
https://help.github.com/articles/generating-ssh-keys
https://help.github.com/articles/error-agent-admitted-failure-to-sign
#sublime
https://gist.github.com/1305797
http://wbond.net/sublime_packages/package_control/installation
#skype
wget -O skype http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_i386.deb
sudo dpkg -i skype
sudo apt-get -f install && sudo rm skype
#mysql
sudo apt-get install mysql-server mysql-client
#php env
#apache2
sudo apt-get install apache2
#visit http://localhost
# Apache default document root is located in this path /var/www/ )
#php
sudo apt-get install php5 libapache2-mod-php5 php5-mysql
#restart apache
#The document root of the default web site is /var/www. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.
vi /var/www/info.php
<?php
phpinfo();
?>
#call that file in a browser (e.g. http://localhost/info.php):
#phpmyadmin
sudo apt-get install phpmyadmin
#You will see the following questions:
#Web server to reconfigure automatically: <-- apache2
#Configure database for phpmyadmin with dbconfig-common? <-- No
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
#Afterwards, you can access phpMyAdmin under http://localhost/phpmyadmin/:
#you may not be able to login if you have not set mysql password so..
#set this option to true by uncommenting this line
# $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
# in /etc/phpmyadmin/config.inc.php
#colors in git commands
git config --global color.ui true
#gem mysql trick
sudo apt-get install libmysqlclient-dev
#and gem install mysql2
#imagemagick
sudo apt-get install imagemagick graphicsmagick-libmagick-dev-compat
sudo apt-get install libmagickwand-dev
#and gem install rmagick
#disable mysql and apache on startup
update-rc.d -f apache2 remove
echo "manual" | sudo tee /etc/init/mysql.override
#to restore defaults
update-rc.d apache2 defaults
#also manual start
service apache2 start
#redis
sudo apt-get install redis-server
#to start
/usr/bin/redis-server /etc/redis/redis.conf
#mongoid
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
#At the end of your /etc/apt/sources.list file add
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
sudo apt-get update && sudo apt-get install mongodb-10gen
# sudo service mongodb start/stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment