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 need to run a command in Ubuntu Terminal on my computer. I am connected to the other computer by SSH. I need to be able to start X server from my remote computer (without being able to interact with X server once it has started) and run a script in X server once it starts.

Any suggestions?

Thanks in advance! :)

share|improve this question
Are you using any login manager (the login screen)? In default Ubuntu the X session is managed by LightDM. Are you using anything custom or just want to start a regular Ubuntu login screen? – gertvdijk Jun 28 '13 at 12:44

Try starting X server using screen. It will keep it running as a daemon, so that nothing can close/suspend the process.

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.