Sysadmin

How to use Archlinux Pacman?

Packages installation: pacman -Sy package_name - packages installation and local packages db sync pacman -S package_name - packages installation along with dependencies pacman -Sl repository_name - display packages list of a given reposito…

GMail backup

After the rumors about locked GMail accounts, decided to backup my important emails. The article How to back up your Gmail on Linux in four easy steps helped me a lot. My setting in ~/.getmail/getmail.gmail are (IMAP, Maildir): [retriever]…

Locale problems with Ubuntu-7.10 minimal install

Problem (after any package install i've got): perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your syste…

Merb on Joyent Accelerator (part 1)

The Accelerator including almost everything by default - Ruby, gems etc. Adding the Merb framework was without any problems. Some tips: Pre-requirements: $ sudo gem install mongrel json json_pure erubis mime-types rspec hpricot mocha \ rub…

Optimizing HTTP server performance on Linux

via DebianHelpDisabling the TCP options reduces the overhead of each TCP packet and might help to get the last few percent of performance out of the server. Be aware that disabling these options most likely decreases performance for high-l…

Network upgrade for Ubuntu servers

The new server upgrade system: 1. Install update-manager-core: $ sudo apt-get install update-manager-core 2. Launch the upgrade tool: $ sudo do-release-upgradeLike usual, there is no step 3 ;)

Dump MySQL Database using ssh

via nixCraft mysqldump -u USER -p'PASS' DB-NAME | ssh user@example.com "dd of=/mysql/$(date '%d-%m-%y')"

Speedup Ruby on Linux

Origin: discussion on comp.lang.rubyIt appears that when compiled with --enable-pthread ruby will call sigprocmask MANY MANY more times than without. You can verify this with strace -c: $ strace -c ruby -e '1.upto(100000) {|i| i.to_s}' % t…

New OpenVZ for Linux 2.6.22 includes live migration

...The team behind the OpenVZ project will announce today (11-Sep-2007) the availability of its operating system virtualization software for the latest stable release of the Linux kernel. OpenVZ for Linux 2.6.22 now supports user ID namesp…

NginX, PHP, FastCGI

I added PHP to bbox512 nginx .1. PreparationFor Debian/Ubuntu it needed FastCGI: # apt-get install libfcgi02. RTFM Init-script for php-cgi in external FASTCGI Mode Nginx, PHP and a PHP FastCGI daemon init script bye Redskin, zdravstvujte R…

Evented Mongrel and bbox2 blog

On bbox2 i installed swiftiply gem . This changed the mongrel_rails command to use evented mongrel – mongrel, patched to use eventmachine tcp stack instead of the original pure ruby one. In /etc/init.d/mongrel_cluster i’m starting all mong…

Junebug Wiki on BrightBox

I installed JuneBug wiki on bbox . There was some bugs in the installation documentation so will put small notes here. The installation process is for Ubuntu Dapper box on BrightBox beta hosting. Adjust for your own situation: # Ubuntu/Deb…

nginx-0.5.24, server executable upgrade "on the fly"

There is a new version of the nginx web server - nginx-0.5.24. Too many upgrades recently :( From the changelog: Bugfix: a part of response body may be passed uncompressed if gzip was used; bug appeared in 0.5.23. I have a small ugly shell…

Rubygems on Debian "one-click installer"

Before I mentioned Rails on Debian "one-click installer". Seems there is also a way to install ruby gems with apt-get on debian-like systems. It's in japanese, so just a short translation: Add to your /etc/apt/sources.list: deb http://back…

Deploying Rails google group

From the About page: Discussions related to deploying applications built with Ruby on Rails.From the RoR ML: ...A few of us decided that it would be a good idea to expand on some of the deployment-related conversations in another mailing l…

Apache vs Others

Interesting comment in Homo-Adminus Blog. Will copy it here just to not disapear. Meditate on this I will (Yoda-style speaking ;) ). Apache doesn’t fork a new instance for every connection.Rather it “preforks” some instances, and all those…

Merb = Mongrel + Erb

Merb == Mongrel + Erb. It is a super lightwieght ruby app server that maps urls to simple classes that can render erb templates...If you have a few pages of your dynamic site that have to be fast and you maybe don’t need the full power of …

nginx notes

I put some notes for nginx on my wiki .The rails system administration is like waves – somebody found a new software and the community just fulfill it. Maybe there must be some name for this effect. Something like digg-effect but maybe Rai…

WebDAV Ruby On Rails Plugin

Uhoo, finally. Now I can access my Rails applications not only with browser, but also mount them from the OS X Finger or like Windows Network Disks. Pretty cool. I'm waiting also for the changes in the Rails itself, to support PUT and DELE…

Litespeed+mongrel+HTTPS

Great news from LiteSpeed Technologies – after a post to the forum they have ”X-Forwarded-Proto: https” AUTOMATICALY added to the headers, when proxing requests, initially comming via HTTPS. Now Rails applications are not confused, when do…

Rails "one-click" installer for Debian Sarge

Add to your /etc/apt/sources.list : deb http://rails.netlab.jp/debian sarge rails Install Rails $ sudo apt-get update $ sudo apt-get install rails There is no step 3 ;) And if your question is "who the hack made this package?", it's NaCl -…

Distribute your Rails application as a Gem

1. Install fossilize plugin $ ./script/plugin source http://opensvn.csie.org/mmediasys/trunk/rails/plugins/ $ ./script/plugin install fossilize2. Create the default script and configuration for your application # will create config/applica…

Gmail for your domain

Gmail for your domain just rocks! After 1 or 2 weeks of waiting you can have the latest on the web 2.0 email market for your own domain (personal or the company one). I already have my Gmail-based family webmail ;) Try send me an email on …

Steve Kemp’s software: i like it

Found very good site: steve.org.ukSome interesting stuff: Argo ― Xen Monitor / Control Panel. Simple, extensible, framework for controling a host running multiple Xen instances. Exactly what I need for the company. lua-httpd ― simple, but …

(InstantRails/Locomotive)-like install for Linux

ROROX - Package providing Ruby, Rails plus dependencies and other gems, Apache SCGI module, and scgi_rails, to be installed over a XAMPP installation. The aim is to get close to a "one-click" installer for Linux (a la Locomotive or Instant…

Mongrel Clustering

mongrel_cluster makes it easy to manage multiple Mongrel processes behind a reverse-proxy server and load balancer such as Pound, Balance, Lighttpd, or Apache. See also: Apache: Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel…

The adventures of scaling, Stage 4

...Stage 4 is the last part of the scaling series containing last polishing steps, a summary of what helped and what didn’t, as well as a look at future optimization plans...

Lighttpd and Rails upgrade troubles

Some notes from the latest discussion with Moro-san about his lighty and rails upgrade troubles:Lighttpd after version 1.4.9 requires the full path in the "bin-path" part of the lighttpd.conf file. Also from version 1.4.10 you will have CW…

The adventures of scaling

Must read articles for everybody, doing RoR systems administration: The adventures of scaling, Stage 1 Questions and answers for Stage 1 The adventures of scaling, Stage 2 The adventures of scaling, Stage 3 Expect the last part on 02-Apr-2…

Xen 3.0 on Debian

We are using Xen 3.0.1 on Debian Sarge from several months. Working great. Finally on HowtoForge they upgraded their manual too - The Perfect Xen 3.0 Setup For Debian. Good. Also something else bring my attention: Setting Up A Highly Avail…