Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 am trying out different options for remote desktop control, and at the moment Slashtop Streamer seems promising due to the speed, and some other things regarding the way it handles multiple screens.

My problem is that I would like to use wake-on-LAN to boot my Ubuntu desktop, so as to not waste a lot of power having the computer run all day while I'm at school or the like, so the Slashtop client needs to start on login. This is done with the startup applications system in Ubuntu, but Slashtop requires me to press the enter key in order to log in.

So, is it possible to add something to the command line in startup apps, that tell the computer to pass this enter keystroke into the active window on the desktop?

I realise that this is a somewhat narrow question, and I a similar one being posted a while back that got shut down due to it's less than broad nature, but I hope to get an answer none the less.

share|improve this question
Why you don't configure Ubuntu to log into a determinate account by default? – Lucio Jan 7 '13 at 15:14
Can we have the command? Oh and\n is considered an enter while coding. – Rinzwind Jan 7 '13 at 15:15
When you say log in are you talking about an Ubuntu user or a Slashtop procedure? – Lucio Jan 7 '13 at 15:17
Try the xdotool utility. I have not been able to make it fully work, so I'm not adding it as an answer. You'd need to use the functions search, windowfocus, and key. – Paddy Landau Jan 7 '13 at 16:48
I see I should have been more specific (and thanks for the answers!). In Ubuntu's Startup Applications I have added the entry "Slashtop" which executes this command: "python /opt/splashtop-streamer/streamer.pyc" This launches a promt there my credentials for loging on to Slashtop's central servers are already filled in (email and password). The problem is that the promt also needs me to hit a confirm button. When I am at the computer I do this by pressing enter, but when I am trying to remote control the computer I can not physically press any keys. – Jonas Blomberg Ghini Jan 7 '13 at 20:30

Jonas, this is exactly what i needed since my laptop screen is broken and i'm converting it into a server. I tried the code in your last post but it didn't do the job completely. It opened the splashtop window but the click didn't happen, the cursor remained in its default position. Did you have any luck?

share|improve this answer
I am afraid it did not work the way I intended it to. I have abandoned the whole idea as it seems the splashtop login window is placed some kind of strange way in relation to the mouse pointers initial placement on the desktop (I can't figure out this relationship, so to me the placement of the login seems random). I am sorry I can not help you. But it took me some time to figure out the xdotool. I used the man-page (all the way to the end of it there are some examples) but it is slightly messy regarding structure. – Jonas Blomberg Ghini Jan 20 '13 at 12:03
I found a solution and its working. I figured that the command you mentioned above ("python /opt/splashtop-streamer/streamer.pyc & xdotool sleep 1 getactivewindow windowmove 0 0 mousemove 280 200 sleep 1 click 1") does run but we need to add a delay before the click so i added the following link before click: X-GNOME-Autostart-Delay=60 you can change the delay to something like 15 or 20 sec and it works fine. – Murad Ahmed Jan 21 '13 at 16:01

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.