Last active
September 23, 2016 19:29
-
-
Save alankis/b2620a0af2728421bec88454e7517f16 to your computer and use it in GitHub Desktop.
Perfect RubyOnRails Developer Environment to Run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This guide is assuming that you are actually running Windows Machine, which is bad, and can ocassionaly occur at your working place :) | |
This is written and tested on Ubuntu Server 16.04 LTS running as guest OS on Windows host inside VirtulBox. Network adapter is set up to a bridge network. If you changed your network adapter, don't forget to restart guest OS. Ususally sudo init 0 make this magic happen. | |
1. Add a password for root user | |
~ sudo passwd root | |
Enter password twice when prompter | |
2. Find out your local network IP address | |
~ ifconfig -a | |
// Everything different than lo device is actually your network device. Lo is local loopback device. Watch out for inet addr. That is your local IP address. | |
3. Change IP from dynamic to static | |
~ vi /etc/network/interfaces | |
3. Tweak ssh service | |
Change ssh listening port and disable password authentication for god's sake | |
Navigate to /etc/ssh/sshd_config, if you are awesome you will use vi. | |
So; | |
~ vi /etc/ssh/sshd_config | |
Change "Port 22" to something line "Port 23332", and | |
uncomment "#PasswordAuthentication yes" and change it to "PasswordAuthentication no" | |
If you mess up your sshd_config file, you can get back by hitin "u" key, when not in insert mode | |
Hit wq! and Restart SSH service if you haven't allready | |
~ service ssh restart | |
4. Generate some SSH keys | |
~ ssh-keygen -t rsa // for other prompts just hit enter | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment