Skip to content

edvardvb/monitr

Repository files navigation

monitr

Expanding the universe

Get ready for development (on linux):

1)

Install linux Mint
If you are using virtual box: Remember to set up bidirectional clipboard (and drag-and-drop)

1.1)

If you are setting up linux mint:
- press windows key
- type "keyboard"
- press "keyboard", "layout"
- press "plus sign", find your keyboard
- move the new keyboardlayout to the top (press keyboard, press up-arrow)

2)

type the following in "terminal" (tip: press windows key and search):

required (for developing): sudo apt-get -y install ruby ruby-dev git rails zsh xclip libsqlite3-dev zlib1g-dev

optional (but used on actual server): sudo apt-get -y install nginx unicorn

3) Moving around (tips)

Tips: cd foldername/subfolder <-- takes you to subfolder
cd .. <-- takes you back to previous folder (foldername)
ls <-- lists files and folders
rm <-- deletes files
rm -r <-- deletes recursively => use if folder

ctrl+shift+c <-- copy

4) Setting up git

Generate ssh key: ssh-keygen -t rsa -b 4096 -C "email@address.something"

4.1) Go to folder where it is saved (it is written in the terminal after execution):

Could be something like "/home/mint/.ssh/" #### 4.2) Check if ssh agent is running: eval "$(ssh-agent -s)"

Should return something like: "Agent pid 59566"

4.3) Just do this:

ssh-add ~/.ssh/id_rsa

5) Do this:

xclip -sel c ~/.ssh/id_rsa.pub

-- Copies the contents of the id_rsa.pub file to your clipboard

Now you can paste it in your browser (as described under)

6)

Do points 2 to 8: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

#### 7) (For Windows, fixes errors) Windows functions a little differently to UNIX-based systems. Two gems specifically for windows installed. Please use the windows branch when using windows, just in case something breaks.

If you get errors, try the following:

  1. Run the following commands ( opens irb console ): irb Then write the following in the console: File.expand_path("./") exit ( or ctrl+c )

  2. Possible solution 2: ruby -e "puts RUBY_PLATFORM"

  3. Possible solution 3: mv sites tmpsites mv tmpsites sites (Take a look at the error message. This applies if the error is of the format /Users/XXXX/Sites/xxxx. Rails on windows is not fond of capital letters... and OSX is fond of repacitalizing. :/)

About

Expanding the universe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6