Here's how you can install gksu to your Debian Linux system.
1. Open a terminal window.
2. Type in the following command then hit Enter.
sudo apt-get install gksu
For more, see the original article at the link below.
Enable auto shutdown in Transmission with your own script in Linux | Fresh Tutorial