You often have to connect to Windows remotely, so rdesktop is a must.
Recently installed the Gnome interface of the CENTOS7, found that the Rdesktop command has been used to become rdesktop-vrdp, but can be used on the line.
To add a GUI to the rdesktop with a shell script, first install the zenity, and then write a script like this:
#!/bin/bashipaddr=$ (zenity--entry--title "rdesktop"--text "Enter the IP address to prepare the connection"--entry-text "192.168.0.") If [-z] $ipaddr "];then exit 2else ping-c 1 $ipaddr 1>/dev/null 2>&1 if [$? = 0];then Rdeskt Op-vrdp-a 16-u admin-g 1024x768-r clipboard:primaryclipboard-r disk:rdp=/home/rdesktop $ipaddr Else zenity --error--text= "IP not reached!! "Exit 2 Fifi
This interface will appear when the script is run
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/D4/wKioL1RF7r-h6FQQAABU1pWkOd4995.jpg "title=" 2014-10-21 13:21:27 screenshot. png "alt=" wkiol1rf7r-h6fqqaabu1pwkod4995.jpg "/>
After the loss of IP is directly connected to the past.
If you want to start faster, think of a way to put a shortcut to the desktop.
That's what I'm using:
Put the terminal on the desktop to copy more than one, to see the properties, in the command here, the original is gnome-terminal, put him an-e parameter, and then add a script location, such as my: Gnome-terminal-e/home/willron/rdesktop.sh
As for the name and the icon is optional. Then just double click on the icon to start. is not faster! ~ ~
Some of the zenity and Rdesktop parameters used above explain:
Zenity
--entry Create a text box
--title window Title
--text text displayed in a text box
--entry-text default text for text fields displayed in a text box
--error Creating an Error Prompt window
Rdesktop
-A 16 connection in 16-bit color
-u admin with admin for user name connection
-G 1024x768 connection at 1024x768 resolution
-R clipboard:primaryclipboard sharing native and remote PC clipboard
-R disk:rdp=/home/rdesktop mapping/home/rdesktop to remote PC
This article is from the "Willron Study notes" blog, so be sure to keep this source http://willron.blog.51cto.com/4871077/1566267
Shell Script--Add GUI interface to Rdesktop