cancel
Showing results for 
Search instead for 
Did you mean: 

simple script for rdesktop

SOLVED
Go to solution
'chris'
Super Advisor

simple script for rdesktop

hi

I'm looking for a simple script, running on the xfce desktop, asking me for the IP address or server name and starting rdesktop session.
2 REPLIES
Lucifer Megacruel
Valued Contributor
Solution

Re: simple script for rdesktop

Hi chris,

This simple python script should do trick :) . I wrote it within a few minutes and i have not tested it well. Feel free to hack and use it as you wish
<----------------------------------------->
from tkinter import *
import os
class RemoteDesktopFrontEnd:
def __init__(self,master):
frame = Frame(master)
frame.pack()
self.username_label = Label(master,text="Username")
self.username_label.pack()
self.username_textbox = Entry(master)
self.username_textbox.pack()
self.password_label = Label(master,text="Password")
self.password_label.pack()
self.password_textbox = Entry(master,show="*")
self.password_textbox.pack()
self.ip_label = Label(master , text=" IP ")
self.ip_label.pack();
self.ip_textbox = Entry(master)
self.ip_textbox.pack()
self.login_button = Button(master,text="Login",command=self.do_login)
self.login_button.pack()
def do_login(self):
self.command_to_execute = "rdesktop -k en-us -a 16 -u "+ self.username_textbox.get() + " -p "+self.password_textbox.get() +" " + self.ip_textbox.get()
os.system(self.command_to_execute)


rootWidget=Tk()
rdesktopApp =RemoteDesktopFrontEnd(rootWidget)
rootWidget.mainloop()

Truly Evil
Lucifer Megacruel
"To Denouce the Evils of Truth and Love. To cause may hem and destruction and necromancy , Lucifer is here"
Michal Kapalka (mikap)
Honored Contributor

Re: simple script for rdesktop

hi chris,

check this link :

http://www.linuxquestions.org/questions/debian-26/simple-x-rdesktop-client-for-xfce-860765/

2nd respons from this user :gradinaruvasile


Simple.
Run this from terminal:
....

i think it could be a solution for you.

mikap