Rodrigo from IHMC fame told me how to start the CmapServer and stop it from the command line interface. First ssh into the server running the CmapServer. Get to the right location and run the command mentioned shortly. To get to the right place I need to 'sudo su' since I installed as root. Here are the commands:
- sudo su
- cd /root/IHMC_CmapServer
- nohup ./bin/CmapServer &
- (then it replies:)
- root@xyz:~/IHMC_CmapServer# nohup: ignoring input and appending output to `nohup.out'
- (and inserts a blank line and it is then that I press the enter key again and I'm back to the prompt!)
And to stop it you need to first find out the CmapServer process ID, as a regular user:
- ps -Af | grep -i CmapServer
- (it won't be obvious which number is the PID. The first word of output will be 'root'. right after that is the PID#. Also, there will be a line for the actual 'grep' process--ignore that line.)
- sudo kill -9 PID (where you type in the process id # in place of 'PID')
- (for example, 'sudo kill -9 1286)
To make configuration adjustments you need to first become root (because the directory containing all of these files in inside the 'root' directory), then open the file with an editor such as nano:
- sudo su
- nano /root/IHMC_CmapServer/bin/serverconfig.txt
1. Make sure that echo $DISPLAY returns localhost:10.0 If it doesn't try running...
2. set DISPLAY=:10.0; export DISPLAY (not sure if sudo or sudo su is needed)
3. Then stop CmapServer
4. Then run, sudo /root/IHMC_CmapServer/bin/update
5. Then it should nicely do the x-term thing and walk you through it!