Shahzeb Ihsan

"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


Blog | Archive | About Me | Projects

Configuring Your Arch Linux VM for Development

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.

Installing Python

$ 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]

Installing Ruby, Rails and Node.js:

$ 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
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH)"
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
PATH="/home/schaazzz/.gem/ruby/2.2.0/bin":$PATH
GEM_HOME="/home/schaazzz/.gem/ruby/2.2.0"

Installing and Configuring SSH:

$ sudo  pacman  -S  openssh
$ nano  /etc/ssh/sshd_config         # Enable "AddressFamily any"
$ sudo  systemctl  enable  sshd.service
comments powered by Disqus

Older · View Archive (8)

Download Arch Linux VMs

I have uploaded 3 Arch Linux Virtual Machines to Dropbox. One without any desktop environment (command line only), another with LXQT and a third with XFCE. You will need to create a new user since these VMs only contain the default “root” account with password “root”. If you’d rather install Arch Linux on VirtualBox from scratch, go here.

Newer

A Stepwise Tutorial for Building a Chrome App

A great tutorial for building a packaged Chrome app is available in this Google Code Lab and I used it as a starting point when I was working on my very first Chrome app, Simple TCP Client – BUT…..