[Guide] Installing and Using Screen

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
Hello, 

Screen is a useful utility to help you see map-server logs even after relogging into putty.

How to Install:

  • CentOS: yum install screen 
  • Debian/Ubuntu: 
    Code:
    apt-get install screen
     

How to Use:

  • After Installing, Typescreen -S AnyName
  • It will make a screen session named "AnyName"
  • after that, go to your hercules directory.
  • type "./athena-start start" (without quotes) to start the server.
  • type CTRL+A+D to get out of the screen.
  • to get back into that screen, type 
    Code:
    screen -R AnyName
     

If you are getting bind_address error, that means server is already running, you can either do

killall -9 map-serverkillall -9 char-serverkillall -9 login-server
Above Commands will close all servers.

or type

./athena-start stop
Thats it.

 
Just what I need thanks for sharing Mr. Dastgir
default_biggrin.png


Question: how do you stop the screen? I think when you leave the terminal it's still open so if you want to close it permanently will a Restart do that?

 
Last edited by a moderator:
Attach to screen then press

CTRL+A+K

that should detach and destroy the screen you are attached to.

 
Hello, 

Screen is a useful utility to help you see map-server logs even after relogging into putty.

How to Install:

  • CentOS: yum install screen 
  • Debian/Ubuntu: 
    Code:
    apt-get install screen
     

How to Use:

  • After Installing, Typescreen -S AnyName

  • It will make a screen session named "AnyName"
  • after that, go to your hercules directory.
  • type "./athena-start start" (without quotes) to start the server.
  • type CTRL+A+D to get out of the screen.
  • to get back into that screen, type 
    Code:
    screen -R AnyName
     

If you are getting bind_address error, that means server is already running, you can either do

killall -9 map-serverkillall -9 char-serverkillall -9 login-server
Above Commands will close all servers.

or type

./athena-start stop
Thats it.
hi i am just confused how do i used kill not killall -9 since i want to run a multi server and i already test it how do i kill 1 process only by not using killall -9 since it will kill all process like all map-server process has been killed

my point is killing 1 process on a specific folder?

 
Get the process Id of the server by

ps ax | grep xxxx-server

(xxxx = map/login or char)

Then do

kill -9 pid

(Where pid is the process Id you got by PS command)

 
@@mrlongshen

Yes, by typing command

Screen -R ScreenName

ScreenName = The One that you used while making screen.

 
Back
Top