Posts Tagged server
Protocol version mismatch
I met the “aborted by signal=PIPE” when i used Backuppc to backup the remote server
so i run the commands on console:
>/usr/bin/ssh -q -x -l backup remote_ip /usr/bin/rsync –server –sender -v –ignore-times . /
protocol version mismatch — is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(171) [sender=3.0.4]
I search from internet, get the answer: “clean the .bashrc .bash_profile”….
but still doesn’t work
Finally I got the answer, because the argLists was overwritten, so I changed backup. the Backuppc works.
the right argLists is :
/usr/bin/ssh -q -x -l backup remote_ip /usr/bin/rsync –server –sender –numeric-ids –perms –owner –group -D –links –hard-links –times –block-size=2048 –recursive –ignore-times . /
Update Ubuntu with Approx
Read some articles on Ubuntu recently.
occasionally read an article about approx, It works like a cache server. can cache the *.deb for other usage
the approx server: run sudo apt-get install approx
/etc/approx/approx.conf :
—–start———
ubuntu http://us.archive.ubuntu.com/ubuntu
security http://security.ubuntu.com/ubuntu
canonical http://archive.canonical.com/ubuntu
—–stop———
sudo /etc/init.d/approx start
if u has firewall, open port 9999
the clients: sudo mv /etc/atp/source.list /etc/atp/source.list.orgin
sudo vi /etc/atp/source.list
paste the following lines
(note: change SID to ur release )
deb http://approx_server_ip:9999/ubuntu/ intrepid main restricted universe multiverse
deb http://approx_server_ip:9999/buntu/ intrepid-updates universe multiverse
deb http://approx_server_ip:9999/ubuntu intrepid-security main restricted universe multiverse
warning: Certificate validation failed
warning: Certificate validation failed; consider using the certname configuration option
err: Could not retrieve catalog: Certificates were not trusted: certificate verify failed
warning: Not using cache on failed catalog
edit
/etc/hosts
add
ip puppet puppet.ur_domain.com
puppetd –server puppet.ur_domain.com –waitforcert 60 –test
FuzzyOCR , a plugin for SpamAssassin
FuzzyOCR , a plugin for SpamAssassin can filter some Image Spam
http://fuzzyocr.own-hero.net/
Maybe can be used by Donkey Ba
How do I disabling Email output?
How do I disabling Email output?
By default the output of a command or a script (if any produced),
will be email to your local email account.
To stop receiving email output from crontab you need to append >/dev/null 2>&1.
For example:0 3 * * * /root/backup.sh >/dev/null 2>&
To mail output to particluer email account let us say vivek@nixcraft.in
you need to define MAILTO variable to your cron job:
MAILTO=”vivek@nixcraft.in”
0 3 * * * /root/backup.sh >/dev/null 2>&1
More details:
http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
redWall, a bootable CD-ROM Firewall
redWall is a bootable CD-ROM Firewall. It’s goal is to provide a feature rich firewall solution, with the main goal, to provide a webinterface for all the logfiles generated!
http://www.redwall-firewall.com/
Preparation Enable the Dag repo
Preparation
Enable the Dag repo
rpm -Uhv \
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Enable the Epel repo
rpm -ivh http://download.fedora.redhat.com//pub/epel/5/`uname -i`/epel-release-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $1}’`-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $2}’`.noarch.rpm
Install the gcc and other tools
yum install -y make gcc gcc-c++ ncurses-devel.x86_64 automake autoconf boost-devel.x86_64 libedit-devel.x86_64 fuse-devel.x86_64 rpm-build.x86_64
Get the kernel source from kernel.org
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.1.tar.bz2
Get the Ceph-0.8 sources package
from: http://ceph.newdream.net/download/
http://ceph.newdream.net/download/ceph-0.8.tar.gz
Proceed
Install versioned_urls plugin
Install versioned_urls plugin via
script/plugin install http://svn.lingr.com/plugins/versioned_urls
Add appropriate rewriting and cache-header-pushing configuration to your web servers, e.g., for lightty:
url.rewrite-once = ( “^/(.*.(css|js|gif|png|jpg)).v[0-9.]+$” => “/$1″ )
expire.url = ( “/stylesheets/” => “access 10 years” ,
“/javascripts/” => “access 10 years”,
“/images/” => “access 10 years” )
More details
http://blog.dannyburkes.com/2006/11/2/versioned-urls-for-rails/
I am sorry to mongrel !
I am sorry to mongrel ! What are we focuse on, Mongrel ?
Mongrel V.S. Passenger
just forget about Mongrel, and to know why ?
Read the rest of this entry »
Besides the Mongrel_Rail for RoR app
Besides the Mongrel_Rail for RoR app, I found a new server modules:
Phusion Passenger
It is easy to deploy with Apache
http://www.modrails.com/
I have tried it, it works well, maybe more test on it in the future.
my ruby.conf for my app in Apache
“<"VirtualHost *:80">”
ServerName myip
DocumentRoot /path/to/app/public/ # the RoR app’s public directory
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType text/html M604800
“<"/VirtualHost">“