Using NTP to Sync Time

Keeping your system’s date and time accurate is easy to do using NTP. Having an accurate clock on your server ensures that time stamps in emails sent from your machine are correct. An accurate clock is especially helpful when you need to look at the logs from a particular time of day. If you don’t […]


Backup your old Repository svnadmin dump /path/to/repository > repo_name.svn_dump Import your old repository into the new one svnadmin load /path/to/repository < repo_name.svn_dump Installation # Install required packages $ sudo apt-get install subversion libapache2-svn # Create subversion repositories: sudo mkdir /var/svn sudo chown -R www-data:www-data /var/svn

Ruby Enterprise Edition /opt/ree/bin/gem update –system 1.5.2 delete all gems in ree: /opt/ree/bin/gem list –no-version | xargs /opt/ree/bin/gem uninstall -aIx /etc/environment: PATH=”/opt/ree/bin ….” sudo passenger-memory-stats sudo passenger-status apache2 -V (verifica prefork sau itk) apache2ctl -M (verifica modulele)

Installing ImageMagick on Debian

1. Install the delegate libraries freetype ghostscripts (pdf) libpng jpegsrc etc… 2. Install ImageMagick tar xvzf ImageMagick.tar.gz cd ImageMagick-X.Y.Z ./configure make sudo make install /sbin/ldconfig /usr/local/lib —-f important

Install Appache + Passenger

Intall Apache: sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert Install Passenger: sudo gem install passenger sudo passenger-install-apache2-module

Debian Lenny – Installing MySQL

sudo aptitude install mysql-server mysql-client libmysqlclient15-dev sudo gem install mysql mysql -u root -p CREATE DATABASE my_table; INSERT INTO mysql.user (User,Host,Password) VALUES(‘my_user’,’localhost’,PASSWORD(‘mypassword’)); FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON my_table.* to my_user@localhost; FLUSH PRIVILEGES; SHOW GRANTS FOR ‘my_user’@’localhost’;

Install ruby 1.8.7 on debian lenny

sudo aptitude update sudo aptitude install build-essential sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby sudo aptitude install libssl-dev libreadline5-dev zlib1g-dev sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb tar xzvf ruby-1.8.7-p249.tar.gz cd ruby-1.8.7-p249 ./configure make sudo make install […]