--- format: rst toc: no ... ========================================= Generic Server Setup Tricks ========================================= See also `debian `_ and `freebsd tricks `_. bind ------------- You probably want to hide your bind verison name to prevent scanning and attacks. Edit ``/etc/bind/named.conf`` or ``/etc/bind/named.conf.options`` and add this line to the options block:: version "Withheld"; ntp ------------ ntp servers listen on port 37. temboz ---------- The temboz feed reader is started by:: $ ./temboz --server & in the appropriate directory. File Hierarchy ------------------ /srv/ Root for server files, scripts, and databases /srv/http/ Subdirectories for each virtual host live in this folder, out of which static `HTTP `__ content is served. /srv/django/ Django applications and their databases live in here. /srv/git/ Bare git repositories are stored here; those with a file ``git-daemon-export-ok`` get served up through a web interface and can be publically cloned. /srv/ SVN repository roots are stored in sub folder in here. /srv/python/ Standalone python scripts and applications are stored in here (not Django apps). Ruby on Rails Deployment ------------------------------ This method will mess around with nginx. It uses ` Phusion Passenger`_ on Ubuntu Server:: nano /etc/apt/sources.list # uncomment the 'universes' lines sudo aptitude update sudo aptitude install ruby ruby1.8-dev rubygems build-essential libopenssl-ruby libssl-dev zlib1g-dev sudo aptitude install irb1.8 bzip2 unzip less screen wget curl sysinfo # Optional sudo gem install passenger sudo /var/lib/gems/1.8/bin/passenger-install-nginx-module