Allowing user to set environment variable with sudo

Published on

I encountered the following error today while installing a few packages on a ubuntu server using a sudo user. “sudo: sorry, you are not allowed to set the following environment variables: DEBIAN_FRONTEND” The command I ran was: “sudo DEBIAN_FRONTEND=noninteractive apt-get install -qy git-core” I did search on google and did’nt find any direct answer for … Continue reading Allowing user to set environment variable with sudo

Skiping installation of ri and RDoc documentation while installing gems

Published on

Probably most of the time you would like to skip ri and RDoc installation while installing some new gems, specially on production server. I do like to skip ri and RDoc documentation while installing gems on my development machine, because it takes more time to generate ri and RDoc then actual installation of gem. We … Continue reading Skiping installation of ri and RDoc documentation while installing gems