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 […]
Category Archives: Debian setup
Monitor Delayed Job in rails
Install monit: sudo apt-get install monit Edit the /etc/default/monit file and enable the start up flag, which ensures that the configuration is done so that monit can start. # vim /etc/default/monit startup=1 Configure monit: sudo vim /etc/monit/monitrc
Subversion
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
http://www.rubyenterpriseedition.com/download.html /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 http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm apache2 -V (verifica prefork sau itk) apache2ctl -M (verifica modulele)
Ubuntu 12.04 setup Apache 2 with RoR 3
Installing ImageMagick on Debian
1. Install the delegate libraries http://www.imagemagick.org/download/delegates/ freetype ghostscripts (pdf) libpng jpegsrc etc… 2. Install ImageMagick http://www.imagemagick.org/download/ tar xvzf ImageMagick.tar.gz cd ImageMagick-X.Y.Z ./configure make sudo make install /sbin/ldconfig /usr/local/lib —-f important http://rmagick.rubyforge.org/install-linux.html http://www.krzywanski.net/archives/630
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 http://articles.slicehost.com/2008/5/1/ubuntu-hardy-mod_rails-installation
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’; http://articles.slicehost.com/2011/3/10/installing-mysql-server-on-debian
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.gz tar xzvf ruby-1.8.7-p249.tar.gz cd ruby-1.8.7-p249 ./configure make sudo make install […]