Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Linux Mint to one of my desktop PCs. I have downloaded and installed Freerdp-x11 for me to connect into my Windows Terminal Server. I want the terminal command line to connect automatically to the Windows terminal server, so that every time I boot my Linux Mint PC, I wouldn't have to keep typing xfreerdp on the terminal command line. Is there a script for it?

share|improve this question

Your title and text are asking two different questions.

In the title you would like to automagically run freerdp ON LOGIN, while in the text you would like to start freerdp "ON BOOT". The major difference is that in the first case you actually log in with username and password to your Linux where in the second case you don't but are presented a Windows login screen right away. If you choose to login to your Linux first: do you want freerdp to be the only application running or do you want your normal session started and the program freerdp as an automatically started application in your session?

I'm using Linux Mint myself and trying to answer your question exhaustively I am forced to acknoledge that Linux Mint (and probably all of Ubuntu or even all of Debian) has become quite nasty when it comes to what used to be a quite simple task ...

Please specify your question and I will do my best to give advice on your specific problem. Giving an exhaustive answer is too difficult as nowadays people choose to hide or forget about documentation ...

share|improve this answer

According to this Linux Mint tutorial:

To run a command after you log in, select "Preferences > Startup Applications" in the system menu. Click "Add", enter a name, and enter xfreerdp as the command. This is analogous to adding a shortcut in the "Startup" menu under Windows.

(Note that this is somewhat dependent on the desktop environment and on how the distribution sets it up. Most desktop environments have something similar, but it may be located in a different menu and have a different name.)

share|improve this answer

How can i set autologin to this so that it will automatically login into rdp session when i boot. Also i would like to now if theres a way to set it without any other programs or graphical enviroment on the background. Only rdp and autologin? is there a script for that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.