sudo: unable to resolve host ubuntu
Sometimes after changing elastic-IP settings or stopping/starting instances on EC2, I get an irritating error like this when I execute a command with sudo: sudo: unable to resolve host domU-12-34-ab-cd-56-78 The fix is to lookup the instance’s private dns name (via ec2-describe-instances or the AWS console ui) and update the hostname on the instance with [...]
Install s3cmd/s3tools Debian/Ubuntu
1. Register for Amazon AWS (yes, it asks for credit card) 2. Install s3cmd (following commands are for debian/ubuntu, but you can find how-to for other Linux distributions on s3tools.org/repositories) wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add – sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list sudo apt-get update && sudo apt-get install s3cmd 3. Get your key [...]