Syntax color in less

If you want syntax highlighting in less, you can use source highlight software: http://www.gnu.org/software/src-highlite 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/src-hilite-lesspipe.sh %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@192.168.1.161:/home/user/.virtualenvs/vallo/requirements.txt /Users/user/requirements.txt copy from local server scp -P22 somefile username@server:/home/username/ Copy a directory scp -r root@my.web.server.com:/var/www/whatportis/* /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/bh.mysite.com/ 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 bloodhound_setup.py –environments_directory=../../env -d sqlite –project= –default-product-prefix= –admin-user=<admin username> tracd –port=8000 /var/www/bh.mysite.com/env/ …

Rsync

rsync -avz -e “ssh -p 22” /home/user/Scrivania/dati user@esempio.it:/home/user/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 192.168.1.161[/bash] SERVER: You can start the environment you want only for xrdp (not for local login) in /etc/xrdp/startwm.sh For example, to start xfce, I use: [bash] #!/bin/sh if [ …