Skip to content

Instantly share code, notes, and snippets.

@pythonicrubyist
Last active November 29, 2016 10:59
Show Gist options
  • Save pythonicrubyist/7234246 to your computer and use it in GitHub Desktop.
Save pythonicrubyist/7234246 to your computer and use it in GitHub Desktop.
Converting Ubuntu 12.04 LTS or LInux Mint 13 into a Ruby Developer’s Environment
# Installing RVM and Ruby:
sudo apt-get install curl
\curl -L https://get.rvm.io | bash -s stable --ruby
echo 'source $HOME/.rvm/scripts/rvm' >> ~/.bashrc
source ~/.bashrc
rvm requirements
rvm install 1.8.7-p371
rvm install 1.9.3-p125
rvm --default use ruby-1.9.3-p125
# Installing SQLIte:
sudo apt-get install libsqlite3-dev
gem install sqlite3-ruby
# Installing MySQL:
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
gem install mysql
# Installing PostgreSQL:
sudo apt-get install postgresql postgresql-client
sudo apt-get install libpq-dev
gem install pg
# Installing Microsoft SQL Server Driver and TDS Client:
sudo apt-get install unixodbc unixodbc-dev freetds-dev tdsodbc
gem install tiny_tds
# Installing Oracle Client, SQLPlus and SDK:
sudo apt-get install alien
sudo apt-get install libaio1
#Download Oracle Instanct basic, sqlplus and devel rpm packages from Orcale client download page and then run alien on the three downloaded packages by the following commands. Also please note that you may need to replace version numbers in the commands below.
sudo alien -i oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm
sudo alien -i oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm
sudo alien -i oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm
sudo echo 'export ORACLE_HOME=/usr/lib/oracle/12.1/client/' >> ~/.bashrc
sudo echo 'export LD_LIBRARY_PATH=”${ORACLE_HOME}/lib' >> ~/.bashrc
sudo echo 'export TNS_ADMIN=${ORACLE_HOME}' >> ~/.bashrc
sudo echo 'export PATH=$PATH:$ORACLE_HOME/bin' >> ~/.bashrc
source ~/.bashrc
sudo echo 'ORACLE_HOME DEFAULT=$ORACLE_HOME' >> ~/.pam_environment
sudo echo 'TNS_ADMIN DEFAULT=$ORACLE_HOME' >> ~/.pam_environment
sudo echo $ORACLE_HOME/lib | sudo tee -a /etc/ld.so.conf.d/oracle.conf
sudo ldconfig
sudo mkdir $ORACLE_HOME/lib/sdk
sudo ln -s /usr/include/oracle/12.1/client $ORACLE_HOME/include
sudo ln -s /usr/include/oracle/12.1/client $ORACLE_HOME/lib/sdk/include
gem install ruby-oci8
# Installing git
sudo apt-get install git
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
ssh-keygen -t rsa -C “your_email@example.com”
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub #paste the copied key from the clipboard to your github account.
#Installing vim:
sudo apt-get install vim
# Installing sublime text:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get --purge remove sublime-text*
sudo apt-get install sublime-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment