Page 4 of 4

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 5:40 am
by Tricky
$ man screen

$ screen -dmS oolite ./oolite

NB: '$' is the prompt.

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 5:43 am
by CommRLock78
Tricky wrote:
$ man screen

$ screen -dmS oolite ./oolite

NB: '$' is the prompt.
Hmm... Mint doesn't have screen by default. I'm guessing this has the same affect as my alias?
Edit: Since you didn't get a chance to reply Tricky, I went ahead and installed - curiosity killed the cat, so to speak.... <reading man page now> :D

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 10:57 am
by Diziet Sma
CommRLock78 wrote:
I added another alias, it's actually a couple more letters than oolite, but, it will launch the game and exit the terminal, much like your debug alias :mrgreen:

Code: Select all

alias ooniverse='nohup oolite & exit'
I was wondering to myself, why go to the bother of launching Oolite via a terminal in the first place, but then I realised you maybe just do it after 'oodebug' in order to save a click or two.. (but if that's the case, why not just have a single alias that launches the Debug Console, and then starts Oolite, all in one?)

(by george, I'm a genius! :shock: <wanders off to modify the oodebug alias>

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 1:13 pm
by Tricky
CommRLock78 wrote:
Tricky wrote:
$ man screen

$ screen -dmS oolite ./oolite

NB: '$' is the prompt.
Hmm... Mint doesn't have screen by default. I'm guessing this has the same affect as my alias?
Edit: Since you didn't get a chance to reply Tricky, I went ahead and installed - curiosity killed the cat, so to speak.... <reading man page now> :D
Was posted just before I went to bed.

Quick primer.
screen creates a virtual terminal that you can run processes in.

The above line creates a detached terminal, that is not attached to, named oolite. Useful in startup scripts. You can use screen -r oolite to reattach to it and <CTRL> A then keypress d to detach from it. Whilst attached to it you can treat it like any regular terminal.

screen -ls lists any screen sessions.
screen -wipe removes all dead sessions.

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 8:23 pm
by CommRLock78
Tricky wrote:
Was posted just before I went to bed.

Quick primer.
screen creates a virtual terminal that you can run processes in.

The above line creates a detached terminal, that is not attached to, named oolite. Useful in startup scripts. You can use screen -r oolite to reattach to it and <CTRL> A then keypress d to detach from it. Whilst attached to it you can treat it like any regular terminal.

screen -ls lists any screen sessions.
screen -wipe removes all dead sessions.
Interesting - I just tried it out - and, as you say, there doesn't seem to be any attachment to the terminal, although pressing Ctrl+A returned me to the prompt without closing oolite. Man, there sure is a lot to learn about Linux :P .

Re: Handy tip for starting the Debug Console in Linux

Posted: Fri Nov 16, 2012 8:27 pm
by CommRLock78
Diziet Sma wrote:
I was wondering to myself, why go to the bother of launching Oolite via a terminal in the first place....
No real reason other than I can :D - it lends me the opportunity of seeing what part of the line does what ;) .
Diziet Sma wrote:
(by george, I'm a genius! :shock: <wanders off to modify the oodebug alias>
:mrgreen: Nice !

Re: Handy tip for starting the Debug Console in Linux

Posted: Mon Nov 19, 2012 6:14 pm
by CommRLock78
An admin on the Mint forums linked me to this guy's blog, and I found this on his site:
my_bashrc_aliases_profile_and_other_stuff