Troubleshooting locales in the cloud on debian and ubuntu
If you use Amazon EC2 or Rackspace Cloud Servers, you may end up running into this after your create your instance. I often get these on Debian and Ubuntu (since it's debian based also).
lennycloud:~# perl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
You're missing locales.
Update your apt database. sudo apt-get update
Download locales. sudo apt-get install locales
Now configure it, and download what locales you need. dpkg-reconfigure locales on Debian. sudo locale-gen en_US.UTF-8 on Ubuntu Hardy Heron 8.04 (Note: on server, you may be logged in as root).
I pick en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15 and en_US.UTF-8 UTF-8.
And that solves it.
Updated April 03, 2010 to include locale-gen.
Use s3sync.rb + screen to move your files to the cloud
Move to your s3sync dir.
screen ./s3sync.rb -r /home/tony/backups/ backup:backups -v
screen means you will be able to run the command as a screen process. ctrl-d to detach screen, screen -r to resume.
-r means recursive copy.
/home/tony/backups is where cron stores you backupps. You can replace this with whatever dir you want to sync.
backups is the name of the bucket. Do ./s3cmd createbucket
: is a seperator
backups is a prefix for the bucket.
-v means verbose, so you can see the progress in your screen.
If screen quits too fast, the command may not have worked.
If you detached and screen doesn't resume, your job may done, check your s3 to see if files transferred.
Also, make sure you have your s3config.yml file ready, you need to copy your key from your Amazon AWS account.
Troubleshooting s3sync
Amazon S3 is a superb, cost-effective, scalable storage solution. It's been around for a few years. s3sync.rb is a well-maintained ruby script to backup your important files.
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
/usr/bin/env: ruby: No such file or directory
You don't have ruby installed. Easy.
sudo apt-get install rubyor
yum install ruby
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
./S3.rb:14:in `require': no such file to load -- openssl (LoadError)
from ./S3.rb:14
from ./s3try.rb:26:in `require'
from ./s3try.rb:26
from ./s3cmd.rb:16:in `require'
from ./s3cmd.rb:16
Missing openssl libraries.
sudo apt-get install libopenssl-ruby





