Skip to content

Commit

Permalink
Fixed bugs in Task Zero's linux list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Sep 13, 2010
1 parent 7044cee commit 1c3fede
Showing 1 changed file with 23 additions and 58 deletions.
81 changes: 23 additions & 58 deletions task-zero.md
Expand Up @@ -10,33 +10,25 @@ If you're using an OS different from these three we assume you know what you're

### Linux (Ubuntu)

1. Find out if you have gedit (Menu -> Accessories -> Gedit), if not do step 3.1b
2. Open up a terminal (Menu -> Accessories -> Terminal)
3. Type the following in the terminal:
1. `sudo apt-get update && sudo apt-get upgrade`
a. If you don't have gedit: sudo apt-get install gedit
2. `sudo apt-get install build-essential bison autoconf g++ curl zlib1g-dev libreadline5-dev libsqlite3-dev libxslt-dev libxml2-dev`
3. `sudo apt-get install sqlite3 git-core subversion nginx`
1. Open up a terminal (Menu -> Accessories -> Terminal)
2. Type the following in the terminal:
1. `sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential bison autoconf g++`
2. `sudo apt-get install zlib1g-dev libreadline-dev libsqlite3-dev libxslt-dev libxml2-dev`
3. `sudo apt-get install curl sqlite3 git-core subversion nginx gedit`
4. `bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )`
5. `source ~/.rvm/scripts/rvm`
5. `rvm install 1.9.2 && rvm --default 1.9.2`
6. `gedit ~/.bashrc ~/.bash_profile`
4. Inside the .bashrc file delete this: `[ -z "$PS1" ] && return`
5. Add at the very bottom `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
7. Inside the .bash_Profile add this: `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
8. Save and close both files
9. Type in the terminal: `exit`
10. In Gedit, open the Edit menu and go to Preferences:
1. Check off `Highlight Current Line`
2. Check off `Highlight Maching Bracket`
3. Go to the Editor tab.
4. `Tab Width` should be 4
5. Check off `Insert Spaces Instead Of Tabs
6. Check off `Enable Automatic Indention`
7. Go to Font & Colors, pick something sane (Use monospace fonts, size 8-12)
8. Close Preferences.
11. Add the Terminal & Gedit shortcut somewhere close
12. Open up the terminal and type this: `mkdir ~/repo ~/repo/rb ~/repo/rb/lyar`
5. `source ~/.rvm/scripts/rvm && rvm install 1.9.2 && rvm --default 1.9.2`
6. `mkdir ~/repo ~/repo/rb ~/repo/rb/lyar && gedit ~/.bashrc ~/.bash_profile`
3. Inside the .bashrc file delete this: `[ -z "$PS1" ] && return`
4. Add at the very bottom `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
5. Inside the .bash_profile add this: `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
6. Save and close both files
7. Type in the terminal: `exit`
8. In Gedit, open the Edit menu and go to Preferences:
1. Check off `Highlight Current Line` and `Highlight Matching Bracket`
2. Go to the Editor tab.
3. `Tab Width` should be 4
4. Check off `Insert Spaces Instead Of Tabs` and `Enable Automatic Indention`
9. Add the Terminal & Gedit shortcuts to the panel

### Windows (XP)

Expand All @@ -49,34 +41,7 @@ If you're using an OS different from these three we assume you know what you're

### Mac (OS 10.5)

1. Find out if you have gedit ( ... magic ... ), if not do step 3.1b
2. Open up a terminal ( ... magic ... )
3. Type the following in the terminal:
1. ... magic ...
2. ... magic ...
3. ... magic ...
4. `bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )`
5. `rvm install 1.9.2 && rvm --default 1.9.2 && source ~/.rvm/scripts/rvm`
6. `gedit ~/.bashrc ~/.bash_profile`
4. Inside the .bashrc file delete this: `[ -z "$PS1" ] && return`
5. Add at the very bottom `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
7. Inside the .bash_Profile add this: `[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"`
8. Save and close both files
9. Go back to the terminal and type: `rvm update --head`
9. Type in the terminal: `exit`
10. In Gedit, open the Edit menu and go to Preferences:
1. Check off `Enable Text Wrapping`
2. Check off `Display Line Numbers`
3. Check off `Highlight Current Line`
4. Check off `Highlight Maching Bracket`
5. Go to the Editor tab.
6. `Tab Width` should be 4
7. Check off `Insert Spaces Instead Of Tabs
8. Check off `Enable Automatic Indention`
9. Go to Font & Colors, pick something sane (Use monospace fonts, size 8-12)
10. Close Preferences.
11. Add the Terminal & Gedit shortcut somewhere close
12. Open up the terminal and type this: ... magic ...
MAGIC STUFF

## Result

Expand All @@ -90,7 +55,7 @@ If you have a problem simply copy the error, open up your browser to here: [http

## Extra Credit

1. Open and use Gedit a few times, write some things.
2. Install and setup git/github [http://github.com/](http://github.com/)
3. Download all the LYAR Tasks.
4. Type this into a terminal: `gem install facets linguistics sqlite3-ruby nokogiri rake prawn pony sequel gist sinatra rails padrino nanoc eventmachine thin rack haml rdiscount builder --no-ri --no-rdoc`
1. Open a few text files with gedit, get to know the interface and shortcuts.
2. Customize Gedit, Terminal, and your OS to better suit programming.
3. Go to the Learn You An Ruby website and download all the tasks and read through the glossary
4. Type this into a terminal: `gem install facets linguistics sqlite3-ruby nokogiri rake pony sequel sinatra rails padrino nanoc eventmachine thin rack haml rdiscount --no-ri --no-rdoc`

0 comments on commit 1c3fede

Please sign in to comment.