LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal doesn't allow me to run the next command :( (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-doesn%27t-allow-me-to-run-the-next-command-704931/)

QueenZ 02-15-2009 11:09 PM

Terminal doesn't allow me to run the next command :(
 
OK. I started ubuntu in Consule mode, then i did "xinit" to start X Window System, then i did "metacity" to start window manager and then it looks like this..

Quote:

queenz@queenz-ubuntu:~$ metacity
|
And that's it.. queenz@queenz-ubuntu:~$ line doesn't appear anymore.. :( Maybe there are some tricks that i can do to be able to run the next command?

jdkaye 02-15-2009 11:52 PM

Quote:

Originally Posted by QueenZ (Post 3444943)
OK. I started ubuntu in Consule mode, then i did "xinit" to start X Window System, then i did "metacity" to start window manager and then it looks like this..



And that's it.. queenz@queenz-ubuntu:~$ line doesn't appear anymore.. :( Maybe there are some tricks that i can do to be able to run the next command?

Did you try typing "ctl-z"? Your metacity program is running in the foreground of the terminal and won't return to the terminal prompt until it finishes or is terminated by you. If you type ctl-z it should move to the background then you'll get your terminal prompt back.
cheers,
jdk

ciotog 02-15-2009 11:54 PM

You can place a '&' at the end of the metacity line, or type "[CTRL]-z" and then "bg" to pause the last command and then put it in the background.

Of course metacity doesn't do much by itself, you might just want to create a script to start xterm or something, then metacity - edit .xinitrc, for instance and then just use startx.

QueenZ 02-16-2009 03:46 AM

Quote:

Originally Posted by jdkaye (Post 3444976)
Did you try typing "ctl-z"? Your metacity program is running in the foreground of the terminal and won't return to the terminal prompt until it finishes or is terminated by you. If you type ctl-z it should move to the background then you'll get your terminal prompt back.
cheers,
jdk

thanks, i didn't know that :)

AlucardZero 02-16-2009 08:39 AM

If you press ctrl+Z, metacity will be backgrounded but also suspended. You must then type "bg" to allow it to resume in the background.

Or, type "metacity &" in the first place.


All times are GMT -5. The time now is 11:02 AM.