Handy tip for starting the Debug Console in Linux

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Handy tip for starting the Debug Console in Linux

Post by Tricky »

$ man screen

$ screen -dmS oolite ./oolite

NB: '$' is the prompt.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Handy tip for starting the Debug Console in Linux

Post 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
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Handy tip for starting the Debug Console in Linux

Post 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>
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Handy tip for starting the Debug Console in Linux

Post 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.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Handy tip for starting the Debug Console in Linux

Post 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 .
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Handy tip for starting the Debug Console in Linux

Post 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 !
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Handy tip for starting the Debug Console in Linux

Post 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
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
Post Reply