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

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

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

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

Step 2: Zesty Zapus (17.04)

	echo "deb http://winswitch.org/ zesty 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

Step 2: Zesty Zapus (17.04) - Beta Builds

	echo "deb http://winswitch.org/beta/ zesty main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ zesty 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

Step 2: Artful Aardvark (17.10)

	echo "deb http://winswitch.org/ artful 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

Step 2: Artful Aardvark (17.10) - Beta Builds

	echo "deb http://winswitch.org/beta/ artful main" > /etc/apt/sources.list.d/winswitch.list;
	echo "deb http://winswitch.org/ artful 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

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

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

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

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

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

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
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.

(the NX packages were built by the FreeNX team)