gem install rails
rails new my_app -T
I haven't set up an install guide for the latest ubuntu release, largely because the last set of instructions worked pretty closely with the latest and greatest Ubuntu, 12.04 Precise Pangolin, however when installing today, I found that there were enough differences in the way that I configure my setup to justify an update, so here it goes. Yes, I'm late to the party, but a quick google search didn't find anything that I felt was as complete for my requirements as my previous install guides, so here I go.
As always with my install guides, I have included here is just about everything you'll need (and then some) to get started with ruby on rails development with Ubuntu 12.04 as a platform. These are my settings and preferences, and this is certainly not the only way of doing things, so keep that in mind.
sudo apt-get update && sudo apt-get upgrade
These commands are good as of 2011-07-27.
The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.
Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.
# simple ruby code example for running python script | |
path_to_script = File.dirname(__FILE__) | |
puts "It's a ruby script" | |
puts "Run python script with backticks" | |
puts "Result is available in caller.ru" | |
puts `python #{path_to_script}/processing.py UserName 37` |
Option Infer On | |
Option Compare Text | |
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Update-ExecutionPolicy Unrestricted | |
cinst IIS-WebServerRole -source windowsfeatures | |
cinst IIS-HttpCompressionDynamic -source windowsfeatures | |
cinst IIS-ManagementScriptingTools -source windowsfeatures | |
cinst IIS-WindowsAuthentication -source windowsfeatures |
; Change your hotkey here | |
^1:: | |
DetectHiddenWindows, on | |
IfWinExist ahk_class Console_2_Main | |
{ | |
IfWinActive ahk_class Console_2_Main | |
{ | |
WinHide ahk_clasas Console_2_Main | |
WinActivate ahk_class Shell_TrayWnd |
# http://boxstarter.org/package/url? | |
##################### | |
# BEGIN CONFIGURATION | |
##################### | |
#region Initial Windows Config | |
Install-WindowsUpdate -AcceptEula | |
Update-ExecutionPolicy Unrestricted |
var ffi = require('ffi'), | |
ref = require('ref'), | |
Struct = require('ref-struct'), | |
Library = require('./Library'), | |
Type = ref.Type, | |
NULL = ref.NULL, | |
isNull = ref.isNull; | |
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums']; |
# bring up the vagrant box | |
vagrant up | |
=> [default] Importing base box 'lucid32'... | |
# ssh into the vagrant box | |
vagrant ssh | |
=> Linux lucid32 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686... | |
# take special note of the ip address of your host machine that ssh reports here | |
# in my case it is 10.0.2.2, a value that I will use later to allow connections |