AWS Consulting Blog

Problem: when installing Sun Java via apt-get in Ubuntu’s command line, you must accept Java’s license before installing the package. This causes problems for sysadmins that want to automate deployments without user interaction. Solution: install java with the following script to auto-accept the license: sudo sh -c ‘echo sun-java6-jre shared/accepted-sun-dlj-v1-1 select true | /usr/bin/debconf-set-selections’; sudo […]
Continue Reading
Problem: While deploying, Capistrano keeps asking for your SSH key passphrase, but fails to connect to the remote server. Possible solution – run this command: ssh-add ~/.ssh/id_rsa Then redeploy.
Continue Reading
You can terminate an EC2 instance via the command line with the EC2 API Tools. However, what if you want to terminate an instance by an IP address instead of by AMI ID? Turns out it’s not that difficult. From the command-line: AMI=`ec2-describe-instances | grep your.public.ip.address | cut -c 10-19`; ec2kill $AMI;
Continue Reading
Scenario: you’re running a script on an Amazon EC2 Linux instance that needs to know the server’s external/public IP address.  However, ifconfig only shows you what its private IP address is. Solution — run this command on the instance: curl https://169.254.169.254/latest/meta-data/public-ipv4 The server will return its public IP address.
Continue Reading
Problem You want to update your WordPress installation or plugin automatically, but do not want to setup FTP access on your server installation (or your hosting provider does not provide access). Solution Add the following line to your wp-config.php file: define(’FS_METHOD’,’direct’); WordPress will now update directly without requiring FTP access.
Continue Reading
When attempting to do a Ruby on Rails rake db:migrate on Mac OS X, you receive the following error message: rake aborted! uninitialized constant MysqlCompat::MysqlRes Solution: Steven Hamton over at TechLiberty came up with the solution for this one: sudo gem uninstall mysql and then run one of the following commands, dependent on your operating system/hardware: […]
Continue Reading
Problem HP DL360 or DL380 will freeze on boot up after POST when Debian 5 (“Lenny”) has been installed Cause During the install process, Debian will request a firmware file for the onboard Broadcom NIC (bnx2-06-4.0.5.fw), either on a USB floppy or USB stick. If the USB device is left connected to server for the […]
Continue Reading
1 2 3

AWS Consulting

Casey Labs provides AWS consulting for growing companies, helping them to build secure server infrastructure in the cloud.

Contact us today: [email protected]