Repository navigation
Expand file tree
/
Copy pathubuntu_setup.html
More file actions
126 lines (98 loc) · 3.66 KB
/
Copy pathubuntu_setup.html
File metadata and controls
126 lines (98 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="DIBI Rails : DIBI 2012 Workshop: Ubuntu Setup" />
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<title>DIBI Rails</title>
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/rubynortheast/dibirails">See Me on GitHub</a>
<h1 id="project_title">Introduction to Ruby on Rails</h1>
<h2 id="project_tagline">DIBI 2012 Workshop</h2>
<section id="downloads">
<a class="zip_download_link" href="https://github.com/rubynortheast/dibirails/zipball/master">Download this project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/rubynortheast/dibirails/tarball/master">Download this project as a tar.gz file</a>
</section>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h3>Ubuntu Setup.</h3>
<p>This is a briefly annotated account of how we set up a Ruby & Rails Environment on a fresh install of Ubuntu 10.04 LTS (Lucid Lynx).</p>
<pre><code># retrieve the latest packages
$ sudo apt-get update
# update the current packages
$ sudo apt-get upgrade
# allow configuration of newly updated packages
$ restart
# allow us to install RVM via curl
$ sudo apt-get install curl
# install rvm
$ curl -L get.rvm.io | bash -s stable
# install rvm dependencies
$ sudo 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
# Install Ruby 1.9.3
$ rvm install 1.9.3
-----
# You should't have to do this bit but RVM was not a function so:
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
# apply changes to current shell
$ source ~/.bash_profile
-----
# set 1.9.3 as default system Ruby
$ rvm --default use 1.9.3
# Install The Editor
$ sudo apt-get install vim
# Install The Framework
$ gem install rails
# create new Rails application
$ rails new demo
# go to it
$ cd demo
# install application dependencies
$ bundle install
# boot up the server
$ rails s
# visit http://localhost:3000/
</code></pre>
<h3>Authors and Contributors</h3>
<p>Created and curated by @pootsbook and @xocs from @AudaciousHQ</p>
<h3>Support or Contact</h3>
<p>Having trouble with anything? Open an GitHub Issue on <a href="https://github.com/rubynortheast/dibirails/issues">this repository</a> and we’ll help you sort it out.</p>
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">DIBI Rails maintained by <a href="https://github.com/rubynortheast">rubynortheast</a></p>
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>