Submitted by tensai on
I use Rdesktop to RDP into Windows machines, but I needed something to set all my default options and I wanted a GUI for it so I didn't have to remember all the server names. I tried out Remmina and TSclient, but nothing so far has been just right. So I made my own, which is attached below. The rdp-servers.conf file is just a simple, unordered list of server names or IP addresses.
#!/bin/bash
servers="${HOME}/local/rdp-servers.conf"
resolution="1014x758"
args="-g ${resolution} -n $(hostname) -r clipboard:CLIPBOARD -a 8 -x b"
host="${1}"
if [ "x$host" = "x" ]
then
hosts=$(cat ${servers} | sort | while read s; do echo "${s} ${s}"; done)
host=$(zenity --list --text "Select an RDP server" --radiolist --width 300 --height 400 --column '' --column 'Server' ${hosts})
if [ "x$host" = "x" ]
then
exit 1
fi
fi
if [ "x${2}" != "x" ]
then
host="${2}"
args="${args} -0"
fi
rdesktop ${args} -T "${host}" "${host}"
| Attachment | Size |
|---|---|
| 540 bytes |




Recent comments