"The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw
26 Jun 2015 | virtualbox, virtualmachine, archlinux, linux, development, python, ruby, ssh
I am stuck on a Windows machine most of the time, but I prefer Linux. Also, Ruby on Rails on Windows is a real PITA. So, I configure a VM with all the necessary development tools and share my project/work folders with the VM and mount it using mount.vboxsf
. Then I run the VM in headless mode and SSH into it.
$ pacman -S python2
(replace with python3 if you need Python 3). $ sudo ln -s /usr/bin/python2 /usr/bin/python
$ wget https://bootstrap.pypa.io/get-pip.py $ sudo python get-pip.py
$ sudo python -m pip install [package] $ sudo pip [package]
$ sudo pacman -S ruby` $ gem install rails $ gem install bundler $ gem update $ sudo install nodejs # Installing Node.js also fixes JavaScript issues while running Jekyll
~/.bashrc
add the following lines and use the $ source ~/.bashrc
command to update the environment with the new values:PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH)" export GEM_HOME=$(ruby -e 'print Gem.user_dir')
/etc/environment
file is a better option than ~/.bashrc
:PATH="/home/schaazzz/.gem/ruby/2.2.0/bin":$PATH GEM_HOME="/home/schaazzz/.gem/ruby/2.2.0"
$ sudo pacman -S openssh $ nano /etc/ssh/sshd_config # Enable "AddressFamily any" $ sudo systemctl enable sshd.service