Add this lines to /etc/mail/spamassassin/local.cf:
body LOCAL_DEMONSTRATION_RULE /test/
score LOCAL_DEMONSTRATION_RULE 0.1
describe LOCAL_DEMONSTRATION_RULE This is a simple test rule
then you must restart the SpamAssassin Process:
You can also add rule to each user in ~/.spamassassin/user_prefs
but remember that by default allow_user_rules is 0, and you must change
that to 1. Add this line to:
Don't forget to restart the SpamAssassin.
Wednesday, November 10, 2010
Thursday, October 28, 2010
Friday, August 13, 2010
sudo apt-get install likewise-open
Or you could download appropriate Script from here.
The main executable file of the likewise-open package is
/usr/bin/domainjoin-cli, which is used to join your computer to the domain. Before you join a domain you will need to make sure you have:
Access to an Active Directory user with appropriate rights to join the domain.
The Fully Qualified Domain Name (FQDN) of the domain you want to join. If your AD domain does not match a valid domain such as example.com, it is likely that it has the form of domainname.local.
DNS for the domain setup properly. In a production AD environment this should be the case. Proper Microsoft DNS is needed so that client workstations can determine the Active Directory domain is available.
To join a domain, from a terminal prompt enter:sudo domainjoin-cli join example.com Administrator
See here for more details.
edit user_prefs and add the new Score for desire rule:
score RDNS_NONE 5.0
that overrides the defualt score.
You can find all rules here:
Wednesday, June 2, 2010
Monday, May 10, 2010
Be sure that this line in /etc/ssh/sshd_config exists:
Subsystem sftp internal-sftp
Chroot the user to his home:
The owner of home must be root (mod 755).
These lines are important, otherwise the root user could not login into system:
Match User root
Restart the ssh process:
Thursday, April 8, 2010
echo -e '\E[color1;color2mYour Text.'
(color1 is the foreground, color2 the background color)
Shell Scripting Syntax
- echo -e '\E[30m black \E[31mred \E[32mgreen \E[33myellow \E[34mblue \E[35mmagenta \E[36mcyan \E[37mwhite'
- echo -e '\E[30;41mblack on red'
- Color: Foreground: Background:
- black 30 40
- red 31 41
- green 32 42
- yellow 33 43
- blue 34 44
- magenta 35 45
- cyan 36 46
- white 37 47
Monday, March 8, 2010
Tuesday, March 2, 2010
Then apps --> nautilus --> preferences
Make sure "show_desktop" is checked.
If it's checked then double click on it and hit ok.
Wednesday, February 24, 2010
Then use this command in Mysql shell:
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' \
IDENTIFIED BY '
If you are running Debian and have lost track of which packages you are running, it could be useful to get a backup of your currently installed packages. You can get a list by running:
dpkg --get-selections > debianlist.txt
This will put the entire list in debianlist.txt. You could then install the same packages on a different computer with:
dpkg --set-selections < debianlist.txt
You should bear in mind that you would also need to copy over configuration files from /etc when copying your system to a new computer.
To actually install the selections, use:
apt-get -u dselect-upgrade
Tuesday, February 16, 2010
apt-get install putty-tools
then use this command to convert ssh-key:
puttygen YOUR-KEY -o OUTPUTFILE.PPK
Monday, January 25, 2010
Unlike apt-cache search, apt-file can find files in uninstalled or can list the content of uninstalled packages.
First, we will install the apt-file package:
apt-get install apt-file
then we need to update database:
now we can query the database for myfile:
apt-file search FILENAME