Oschtan n00b
Joined: 27 Dec 2008 Posts: 71 Location: Russia, Novosibirsk
|
Posted: Wed May 05, 2010 6:46 am Post subject: Rdesktop from GDM |
|
|
It appeared the big question. We must start from Rdesktop gdm as the regular session. To use the login and password from gdm, and then you ask me only the URL and screen resolution. The idea is you want to run Xsession and autostart rdesktop. To the client was not xterm, but was rdesktop. Previously tried a variant of type gdm-ssh-session using ZENITY write a script. Although after the introduction of the data session is terminated. Starting the session, as Rdesktop.desktop in /usr/share/xsession and running the script gdm-rdesktop-session
Code: | #!/bin/bash
ZENITY=`which zenity`
TARGETUSER=`$ZENITY --title "Username Windows RDP Host" --entry --text "Enter your username."`
TARGETPASSWD=`$ZENITY --title "Password" --entry --text "Enter your password."`
TARGETHOST=`$ZENITY --title "Host to connect" --entry --text "Enter the name of the host."`
TARGETDISPLAY=`$ZENITY --title "Desktop geometry" --entry --text "Enter Desktop Geometry: 1440x900, 1280x1024, 1024x768..."`
if [[ ! $TARGETDISPLAY =~ "" ]]; then
TARGETDISPLAY="1440x900"
fi
rdesktop -u "$TARGETUSER" -p "$TARGETPASSWD" -g "$TARGETDISPLAY" -f -N -a 24 -z "$TARGETHOST" |
|
|