Posted by: Jeff Owens in Rails
I enjoy coding websites. I like coming up with elegant and flexible solutions to problems. If you saw David Heinemeier Hanssons’ early screen casts on web development with Ruby on Rails, you may have been as impressed as I was. Unfortunately, deployment of a website to a *nix server can be a daunting task if you haven’t done it before. It doesn’t matter if it is a PHP, Python, or Ruby on Rails website, you need to have some basic sysadmin skills to set everything up on a newly installed server. You’ve got to know something about web servers (Apache, NginX, etc.), something about databases (MySQL, Postgres), about firewalls (iptables or Shorewall), source control (Subversion), email (SendMail, Postfix), monitoring your server (Monit, Nagios), statistics (Awstats, etc.), log rotation, cron jobs, offsite backups (Amazon s3). I have yet to meet an expert in all of these areas. For those sysadmins out there that fit the description I bow deeply. I’ve decided to do a series on setting up a full Rails stack on Ubuntu. So far I have deployed production Rails web applications to Red Hat, Open Solaris, CentOS, and Ubuntu servers. I’ve learned enough to know how truly ignorant I am. I don’t claim to be an expert. But I am willing to share what I’ve learned so far in hopes it will help others out there. Here is what you’ll get (in no particular order) when finished with the series. Read the rest of this entry »
Tags: install, mongrel, monit, nginx, Rails, setup, stack, Ubuntu
Posted by: Jeff Owens in Linux
So lets setup the final piece of the puzzle so we can install some packages and start coding already. If you've been following along (Part Two), we are now ready to setup the shorewall firewall. This will lock down all ports we aren't using, both tcp and udp. Go ahead and ssh into your slice from terminal and type in the code below to install the shorewall package.
CODE:
-
sudo -i
-
apt-get install shorewall
-
cd /etc/shorewall
Read the rest of this entry »
Tags: firewall, howto, install, setup, shorewall, Ubuntu
Posted by: Jeff Owens in Linux
So now that we've got Ubuntu Feisty installed (Part One), we'll setup some basic security for our new slice. Fire up terminal and ssh into your slice.
CODE:
-
ssh -l your_username your_ip_address
Read the rest of this entry »
Tags: howto, Security, setup, tutorial, Ubuntu, vps
Posted by: Jeff Owens in Linux
Today I'm focusing on setting up a new VPS at Slicehost. BTW, I'm assuming you're new to Linux. Lets get started.I'm assuming you got an email from Slicehost with the url to manage your new vps. Grab your uid and pwd they sent you and log into your new vps here. Once you've logged in, click on the link that lets you create your new slice. Create a new name for your slice and select Ubuntu Dapper for the distribution. It should take only a couple of minutes before your new vps is setup. Once its done grab the new password Slicehost will show you after your slice has been created and open a command prompt (Terminal or iTerm on Mac OSX, Putty on PC). Note that you should not type in the line numbers below in the code snippets. They are for reference only.Let's login (you'll be prompted for your pwd so have it handy):
CODE:
-
ssh -l your_username your_ip_address
Read the rest of this entry »
Tags: howto, Security, setup, tutorial, Ubuntu, vps