Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rdesktop from GDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Oschtan
n00b
n00b


Joined: 27 Dec 2008
Posts: 71
Location: Russia, Novosibirsk

PostPosted: Wed May 05, 2010 6:46 am    Post subject: Rdesktop from GDM Reply with quote

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"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum