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 [ …

pip virtualenv virtualenvwrapper osx install on mac

To install pip, virtual environment (virtualenv, virtualenvwrapper) on OS X, do the following on the command line: sudo easy_install pip sudo pip install virtualenv sudo pip install virtualenvwrapper   To enable the workon tab-completion feature, append the following to your profile file (located at ~/.profile): source /usr/local/bin/virtualenvwrapper.sh Create a directory …

Openwrt Band Shape

/etc/config/wshaper config ‘wshaper’ ‘settings’ option ‘network’ ‘wlan0’ option ‘downlink’ ‘500’ option ‘uplink’ ‘240’ wlan0 = SSid lalla (guardando su luci di openwrt) Now, start wondershaper. /etc/init.d/wshaper start By default, wshaper isnt enabled at startup. so, ln -s /etc/init.d/wshaper /etc/rc.d/S99wshaper http://jwalanta.blogspot.it/2012/03/multiple-ssid-on-openwrt-with-bandwidth.html

Installing PIL in a virtualenv on Ubuntu 12.04

http://www.sandersnewmedia.com/why/2012/04/16/installing-pil-virtualenv-ubuntu-1204-precise-pangolin/ APR 16, 2012 The following technique should work for both 32-bit and 64-bit systems. Install the build dependencies: sudo apt-get build-dep python-imaging Symlink the libraries: sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/ Install: pip install PIL You should see something like …

Installare PostgreSQL 9.0 e pgAdmin3 su Ubuntu Server 10.04LTS

I repository per PostgreSQL 9.0 sono mantenuti da Martin Pitt, come comunicato anche dal sito Postgresql Procediamo con l’installazione, apriamo un terminale e digitiamo: sudo apt-get install python-software-properties sudo add-apt-repository ppa:pitti/postgresql sudo apt-get update sudo apt-get install postgresql-9.0 libpq-dev postgresql-contrib-9.0 php5-pgsql   L’installazione è terminale e da questo momento avremo …

Git Repository How To Create a Remote Shared

Per annullare l’ultimo push: “git reset –hard HEAD^” for one commit behind HEAD or “HEAD^^” for two commits behind HEAD – one ^ for each commit behind HEAD. I prefer this way. per connettersi (git clone): ssh://claudio@esempio.it:22/home/git/project2.git http://kovshenin.com/2011/howto-remote-shared-git-repository/ So Github doesn’t work for you? This article is about setting up …