Archive for the 'hetzner.de' Category

HOWTO: Install Ruby on Rails on Ubuntu 7.10 Gutsy Gibbon

1. Enable the universe repository
sudo vi /etc/apt/sources.list
Find and uncomment the following lines
deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security universe

2. Install ruby
sudo apt-get install ruby ri rdoc

3. Install rubygems
sudo apt-get install rubygems

4. Install Rails
sudo gem install rails
NOTE: If you get, as I did, an error at this point:

uninitialized constant Gem::GemRunner

then the fix is:
sudo vi /usr/bin/gem
After the line require ‘rubygems’ add the line:
require 'rubygems/gem_runner'

5. Test installation
cd
rails testapp
cd testapp
./server start

Open a browser to http://localhost:3000 and you should see the rails welcome page.

You can remove the testapp with:
cd
rm -fr testapp

HOWTO: Install ProFTP on Ubuntu Gutsy Gibbon

I couldn’t get this working in inet.d mode but here’s what I did to get it working in standalone.

1. Install ProFTP
sudo apt-get install proftpd
2. Edit proftpd.conf
sudo vi /etc/proftpd/proftpd.conf
Make sure that ServerType is set to standalone and that you have your chosen hostname in ServerName.
ServerName myftphost
ServerType standalone

3. Make sure you have the same host name in you /etc/hosts file
sudo vi /etc/hosts
It should read something similar to:
# IPv4
127.0.0.1 localhost
xxx.xxx.xxx.xxx myftphost
#
# IPv6
::1 ip6-localhost ip6-loopback myftphost

You should then be able to start the server with:
sudo /etc/init.d/proftpd start

HOWTO: Set up Apache Virtual Hosts on Ubuntu Gutsy Gibbon

Assuming you have a fresh installation of apache2.

First we need to tell apache we will be using name based virtual hosts.

Continue reading ‘HOWTO: Set up Apache Virtual Hosts on Ubuntu Gutsy Gibbon’




Add to Technorati Favorites
Zen Handbook

Latest Posts

RSS