Thursday, May 20, 2010
Best Ways From Chennai To Vailankanni
Well, as we all know the version upgrade for Ubuntu LTS Desktop environments, it is way too simple, and guided, but what happens when we have a Ubuntu Server, MySQL, Apache2, POSTFIX, BIND9. ........ etc, and many more applications.
as we update.
update all manuals say
1.Press Alt-F2 and type update-manager - devel-release
2. Click the Check button to check for new updates, blah, blah, blah
but I do if I have no graphical environment?? I'm looking to upgrade my server, well no, not despair, here are the steps to follow:
NOTE: backing up configuration files and WWW files, in case something goes wrong, in my personal experience I had problems with the MYSQL database, but just in case, make copies of these also. copy: # tar-czvf / mi_carpeta_backup / www.tar.gz / var / www /
remember to change / mi_carpeta_backup / for the location to store the copy
if Documen Root (/ var / www /) is another, change it so that you do not copy what is not.
1. first of all we update all the packages we have in the server
# apt-get dist-upgrade
(we must be careful when updating the packages we use and maintain the configuration files modified by us, such as php.ini, main.php, my.cnf)
once we have our system 8.04 with the last parcel available, proceed to upgrade to the new version
2.Install update-manager-core if you do not have it installed: sudo
apt-get install update-manager-core
3.editamos / etc / update-manager / release-upgrades and verify that the line has Prompt = "l"
so: Prompt = l
4.Lanzamos update tool
# sudo do-release-upgrade - devel-release
once launched the tool follow the onscreen instructions, first download the packages, then installed all, we must be aware that when you update the packages and installed (services), to retain the configuration files, the previous version published by us and not to alter, the operation of our services.
FINAL NOTES: * I had installed
Ocsinventory, so it does not start apache2 after updating the server, simply reinstall the application and do not modify the database that holds the information they already have stored.
* if they have problems when you are uploading the update Bind9 just press CTRL + C, to continue the upgrade of other packages, and after a review of what happened to the configuration of DNS and manually start the service.
* Iptables change some variables, such exceptions with "!" (Symbol admiration), if you have a firewall configured in this manner, change this part.
that's all:)
Tuesday, May 4, 2010
Model Of A Soccer Field
Upgrading from Ubuntu 8.04 to 10.04 LTS
today I will show one of the techniques que he empleado para bloquear los correos SPAM que llegan diariamente a los buzones de los usuarios, esta vez me enfoque en los Asuntos y el Contenido del Mensaje, es algo similar a lo implementado por mi amigo
hollman
para bloquear el contenido adjunto del mensaje.
ahora si vamos a la practica.
Queremos bloquear la palabra Viagra tanto en Asunto del Mensaje y tambien si esta hace parte del contenido del mensaje, lo hariamos de la siguiente forma
"editamos el archivo main.cf"
#vi /etc/postfix/main.cf
"agregamos estas dos lineas"
body_checks = regexp:/etc/postfix/body_checks header_checks = regexp:/etc/postfix/header_checks.regexp
well now we have to create these files (they are ordinary text files)
# vi / postfix / header_checks.regexp
"add the following content"
/ ^ Subject: .* Viagra $ .* / REJECT "Invalid Subject" (1)
"inside the quotes put the message that will be released in the logs to see what you are filtering, usually list the block line by line with (a) (2) to make this easier by if you have any problems or because no blockade. "
file with some of the issues look like this:
/ ^ Subject: .* viagra .* $ / REJECT "Invalid Subject" (1) / ^ Subject: .* V1agra .* $ / REJECT "Invalid Subject" (2) / ^ Subject: .* V! agra .* $ / REJECT "Invalid Subject" (3)
/ ^ Subject:. * V1 agra .* $ / REJECT "Invalid Subject" (4)
/ ^ Subject: .* Cialis .* $ / REJECT "Invalid Subject" (5)
/ ^ Subject: .* sex .* $ / REJECT "Subject not valid" (6)
/ ^ Subject: .* strong .* $ / REJECT "Invalid Subject" (7) / ^ Subject: .* herbal .* $ / REJECT "Invalid Subject" (8) / ^ Subject: .* Herbal Formule .* $ / REJECT "Invalid Subject" (9)
"save"
well what was just created the file to the issues.
now create those who checked the body of the message.
# vi / etc / postfix / body_checks
"we enter the content"
/ Viagra & Cialis / REJECT
put the word (s) to block within the "/" and accompanied by the word REJECT.
a file with multiple keywords to block looks more or less:
/ casino online / REJECT / real casino / REJECT / seven casino / REJECT
/ European Union / REJECT
/ great games / REJECT
/ REJECT http://www.bestlux-games.net/
/ female / REJECT / Click here to view as a web page / REJECT / drudgery / REJECT
"save"
NOTE: we need to verify rather than words or phrases are going to block, since this method is very accurate, but usually crashes coincidences "
give right now:
# postmap / etc / postfix / body_checks
# postmap / etc / postfix / header_checks.regexp
after this we can see that files are created with the same name but accompanied. db, well now if we restart postfix to
changes take
# / etc / init.d / postfix restart
if we try to send an email and it contains the words we enter in our database we will see is rejected by the server.
you can feed your "database" so that your email contains less SPAM. Always remember
enter words in these files restart postfix for him to take the changes. Hello
today I will show one of the techniques que he empleado para bloquear los correos SPAM que llegan diariamente a los buzones de los usuarios, esta vez me enfoque en los Asuntos y el Contenido del Mensaje, es algo similar a lo implementado por mi amigo
hollman
para bloquear el contenido adjunto del mensaje.
ahora si vamos a la practica.
Queremos bloquear la palabra Viagra tanto en Asunto del Mensaje y tambien si esta hace parte del contenido del mensaje, lo hariamos de la siguiente forma
"editamos el archivo main.cf"
#vi /etc/postfix/main.cf
"agregamos estas dos lineas"
well now we have to create these files (they are ordinary text files)
# vi / postfix / header_checks.regexp
"add the following content"
/ ^ Subject: .* Viagra $ .* / REJECT "Invalid Subject" (1)
"inside the quotes put the message that will be released in the logs to see what you are filtering, usually list the block line by line with (a) (2) to make this easier by if you have any problems or because no blockade. "
file with some of the issues look like this:
/ ^ Subject: .* viagra .* $ / REJECT "Invalid Subject" (1) / ^ Subject: .* V1agra .* $ / REJECT "Invalid Subject" (2) / ^ Subject: .* V! agra .* $ / REJECT "Invalid Subject" (3)
/ ^ Subject:. * V1 agra .* $ / REJECT "Invalid Subject" (4)
/ ^ Subject: .* Cialis .* $ / REJECT "Invalid Subject" (5)
/ ^ Subject: .* sex .* $ / REJECT "Subject not valid" (6)
/ ^ Subject: .* strong .* $ / REJECT "Invalid Subject" (7) / ^ Subject: .* herbal .* $ / REJECT "Invalid Subject" (8) / ^ Subject: .* Herbal Formule .* $ / REJECT "Invalid Subject" (9)
"save"
well what was just created the file to the issues.
now create those who checked the body of the message.
# vi / etc / postfix / body_checks
"we enter the content"
/ Viagra & Cialis / REJECT
put the word (s) to block within the "/" and accompanied by the word REJECT.
a file with multiple keywords to block looks more or less:
/ casino online / REJECT / real casino / REJECT / seven casino / REJECT
/ European Union / REJECT
/ great games / REJECT
/ REJECT http://www.bestlux-games.net/
/ female / REJECT / Click here to view as a web page / REJECT / drudgery / REJECT
"save"
NOTE: we need to verify rather than words or phrases are going to block, since this method is very accurate, but usually crashes coincidences "
give right now:
# postmap / etc / postfix / body_checks
# postmap / etc / postfix / header_checks.regexp
after this we can see that files are created with the same name but accompanied. db, well now if we restart postfix to
changes take
# / etc / init.d / postfix restart
if we try to send an email and it contains the words we enter in our database we will see is rejected by the server.
you can feed your "database" so that your email contains less SPAM. Always remember
enter words in these files restart postfix for him to take the changes. Hello
Subscribe to:
Posts (Atom)