debianRepository for Ubuntu and Debian

Step 0: Administrator privileges

All the instructions below must be run as root, so open a terminal and become root (and don't forget to exit the session when you're done with these instructions):

	sudo su -

Step 1: Import the packager's key:

	apt-get install curl
	curl https://winswitch.org/gpg.asc | apt-key add -

Step 2: Trusty Tahr (14.04)

	echo "deb http://winswitch.org/ trusty main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Trusty Tahr (14.04) - Beta Builds

	echo "deb http://winswitch.org/beta/ trusty main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ trusty main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Xenial Xerus (16.04)

	echo "deb http://winswitch.org/ xenial main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Xenial Xerus (16.04) - Beta Builds

	echo "deb http://winswitch.org/beta/ xenial main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ xenial main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Bionic Beaver (18.04)

	echo "deb http://winswitch.org/ bionic main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Bionic Beaver (18.04) - Beta Builds

	echo "deb http://winswitch.org/beta/ bionic main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ bionic main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Cosmic Cuttlefish (18.10)

	echo "deb http://winswitch.org/ cosmic main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Cosmic Cuttlefish (18.10) - Beta Builds

	echo "deb http://winswitch.org/beta/ cosmic main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ cosmic main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Precise Pangolin (12.04)

	echo "deb http://winswitch.org/ precise main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Precise Pangolin (12.04) - Beta Builds

	echo "deb http://winswitch.org/ precise main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ precise main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get install -y software-properties-common >& /dev/null;
	add-apt-repository universe >& /dev/null;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Debian Jessie

	echo "deb http://winswitch.org/ jessie main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Debian Jessie - Beta Builds

	echo "deb http://winswitch.org/beta/ jessie main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ jessie main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Debian Stretch

	echo "deb http://winswitch.org/ stretch main" > /etc/apt/sources.list.d/winswitch.list;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;

Step 2: Debian Stretch - Beta Builds

	echo "deb http://winswitch.org/beta/ stretch main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ stretch main" >> /etc/apt/sources.list.d/winswitch.list;
	apt-get update;
	apt-get install winswitch;
	#or to only install xpra:
	apt-get install xpra;
Please consider subscribing to the low traffic mailing list to keep informed of important changes and new features.
About the commands above: first we install the packager's public key, add the repository to the list, update the list of packages and finally download and install Window Switch.