Move Gem install to Ruby file, set apt-get commands to silent.