WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to make rdesktop close after logout  (Read 4979 times)

Offline tha

  • Newbie
  • *
  • Posts: 5
how to make rdesktop close after logout
« on: April 27, 2015, 06:28:45 AM »
I installed the tiny core on HP. RDesktop starts automatic after boot and I can login fine on my windows server 2012, I run rdesktop with the following call

rdesktop -f -k as -D -d domain server-address

when I log out of my windows than I on the login screen for my remote desktop. But what I would like it to shut down the computer or shut rdesktop window.

is there a way where in I can achieve this?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to make rdesktop close after logout
« Reply #1 on: April 27, 2015, 06:37:50 AM »
Hi tha
Are you talking about shutting down the remote computer? Click Start->Shutdown
If you mean the computer running rdesktop, run rdesktop from a script and have it shut down your computer when the
program exits.

Offline tha

  • Newbie
  • *
  • Posts: 5
Re: how to make rdesktop close after logout
« Reply #2 on: April 28, 2015, 12:00:14 AM »
Our staff log all together on the same rds server and log only the server and does not turn it off. Therefore closes rdesktop window never when in fullscreen mode. Unless employees click Esc.

Idene is that TC must run as a thin client where RDesktop starts at startup and when you log off rdesktop server, the thin client shuts down

Run it from the terminal.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to make rdesktop close after logout
« Reply #3 on: April 28, 2015, 06:39:38 AM »
Hi tha
Create a file in:
Code: [Select]
/home/tc/.X.d/remotePlace the following in the file:
Code: [Select]
rdesktop (add your parameters)
exitcheck.sh shutdown
Run a backup so the file gets saved. You may still have to close the rdesktop window but the machine will power down when you do.

Offline tha

  • Newbie
  • *
  • Posts: 5
Re: how to make rdesktop close after logout
« Reply #4 on: May 09, 2015, 11:46:16 PM »
nice thank you.

Normally, when you log off a Windows .rdp connection, then closes the window automatically. Can we not also get RDesktop to do this?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to make rdesktop close after logout
« Reply #5 on: May 10, 2015, 12:00:44 AM »
Hi tha
I don't use RDesktop myself. I use xfreerdp and if I log off, the window closes.

Offline tha

  • Newbie
  • *
  • Posts: 5
Re: how to make rdesktop close after logout
« Reply #6 on: May 10, 2015, 06:43:03 AM »
Okay, but how do I install xfreerdp in tcl? can not find the package when I search for it in their install program

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to make rdesktop close after logout
« Reply #7 on: May 10, 2015, 07:18:10 AM »
Hi tha
It seems xfreerdp is currently only available in TC4. A simple solution might be to remove the  -D  option you are using so the
window decorations are visible and then just click on the close button.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: how to make rdesktop close after logout
« Reply #8 on: May 10, 2015, 08:37:33 AM »
Hi tha
I just checked and I happened to have rdesktop installed on my machine so I decided to play with it a bit. Under TC4 with
rdesktop Version 1.7.0   Server 2008R2   FLWM_Topside. Regardless of which command line options I tried the window
always closed when I logged out of the server. I don't know why the window won't close for you but I could not reproduce
your symptoms and Google did not turn up anything similar.  I did notice that removing  -D  in full screen mode did not make
the window decorations visible, so that won't help you. You could try:
Code: [Select]
rdesktop -g 99% -k as  -d domain server-addressThat should make the window cover the full screen and give you access to the close button.