Syntax color in less

If you want syntax highlighting in less, you can use source highlight software: In Debian bases systems, package name is source-highlight and you can start using just setting two environment values as below: [bash light=”true”]export LESSOPEN="| /usr/share/source-highlight/ %s"[/bash]   [bash light=”true”]export LESS=’ -R ‘[/bash]

Spamassassin exim4 debian configuration

Filtraggio dello spam Exim ha la configurazione predefinita per l’uso di spamassassin (è richiesto exim4-daemon-heavy). [bash]apt-get install spamassassin[/bash] Modificare [bash] /etc/default/spamassassin ENABLED=1 [/bash] Avviare il demone: [bash]/etc/init.d/spamassassin start[/bash] Modificare /etc/exim4/exim4.conf.template decommentando o facendo cambiamenti a seconda della propria configurazione: [bash] Per l’analisi dello spam esiste un’opzione simile che definisce l’interfaccia …

Copy files using ssh scp

copy from remote server scp -P22 user@ /Users/user/requirements.txt copy from local server scp -P22 somefile username@server:/home/username/ Copy a directory scp -r* /var/www/whatportis/

Running Bloodhound via apache: 404 error

Here is the list of commands I used, which might be helpful in updating the docs: === [bash]mkdir /var/www/ cd !$ tar zxvf /usr/local/src/apache-bloodhound-0.7.tar.gz mv apache-bloodhound-0.7/ src cd src/installer/ virtualenv –system-site-packages ../../python-virtualenv . !$/bin/activate pip install -r requirements.txt python –environments_directory=../../env -d sqlite –project= –default-product-prefix= –admin-user=<admin username> tracd –port=8000 /var/www/ …


rsync -avz -e “ssh -p 22” /home/user/Scrivania/dati copiare file da locale a server con rsync

Remote Desktop

SERVER [bash]apt-get install xrdp sudo netstat -anpt | grep -E "vino|vnc|xrdp"[/bash] CLIENT [bash]apt-get install rdesktop[/bash] [bash]rdesktop -a 24 -g 1240×800 -K[/bash] SERVER: You can start the environment you want only for xrdp (not for local login) in /etc/xrdp/ For example, to start xfce, I use: [bash] #!/bin/sh if [ …