Difference between revisions of "ApCoCoA-1:HowTo:Run ApCoCoA on a Computing Server"

From ApCoCoAWiki
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
This HowTo shows you how to run ApCoCoA on a Linux server.
+
This HowTo shows you how to run ApCoCoA on a Linux server with terminal.
  
  
Line 11: Line 11:
  
 
==Run ApCoCoA==
 
==Run ApCoCoA==
Go to the folder ApCoCoA-1.9.0. The contents in the folder are as follows.
+
Go to the folder ApCoCoA-1.9.0. The contents in the folder are as follows.  
 
  -rwxr-xr-x 1 xiu users  4283296 17. Mai 13:11 ApCoCoABBFServer
 
  -rwxr-xr-x 1 xiu users  4283296 17. Mai 13:11 ApCoCoABBFServer
 
  -rwxr-xr-x 1 xiu users  6461552 17. Mai 13:05 ApCoCoAQt
 
  -rwxr-xr-x 1 xiu users  6461552 17. Mai 13:05 ApCoCoAQt
Line 32: Line 32:
 
  -rw-r--r-- 1 xiu users    8477 17. Mai 13:11 wordlist.txt
 
  -rw-r--r-- 1 xiu users    8477 17. Mai 13:11 wordlist.txt
 
  -rwxr-xr-x 1 xiu users    3429 17. Mai 13:05 xapcocoa
 
  -rwxr-xr-x 1 xiu users    3429 17. Mai 13:05 xapcocoa
 +
In the following, we shall always assume that we are working at the directory ApCoCoA-1.9.0/.
  
===Execute ApCoCoA with TEXT Interface===
+
===ApCoCoA with text Interface===
Run the following command
+
Run the following command at terminal to start the ApCoCoA text interface.
 
  ./apcocoa_text
 
  ./apcocoa_text
Then we can can see the follwoing ApCoCoA text interface
+
 
 +
[[Image:ApCoCoA_text.jpg]]
 +
 
 +
You can run any (Ap)CoCoA command in this interface.
 +
 
 +
[[Image:ApCoCoA_text1.jpg]]
 +
 
 +
===ApCoCoAServer===
 +
In many cases you also need to run the ApCoCoAServer. Here, we assume that you have some terminal tools, like "screen", "tmux", etc., to create new terminal sessions, and that you are able to switch between terminal sessions without having to stop the running program.
 +
 
 +
Create a new terminal session for the ApCoCoAServer and run the following command to start the ApCoCoAServer.
 +
./ApCoCoAServer
 +
 
 +
[[Image:ApCoCoA_Server0.jpg]]
 +
 
 +
We can see that the ApCoCoAServer is running on port 49344 (0xc0c0) by default. One can run the ApCoCoAServer on anther port by using option -p as follows.
 +
./ApCoCoAServer -p n
 +
where n is the port number.
 +
 
 +
 
  
  

Revision as of 16:59, 18 June 2013

Introduction

This HowTo shows you how to run ApCoCoA on a Linux server with terminal.


Prerequisites

  • Download ApCoCoA QT and unzip the file. (This HowTo takes ApCoCoA 1.9.0 as an example.)
wget http://www.apcocoa.org/download/apcocoa/linux-x86_64/apcocoa-1.9.0-QT-linux-x86_64.tgz
tar xzvf apcocoa-1.9.0-QT-linux-x86_64.tgz


Run ApCoCoA

Go to the folder ApCoCoA-1.9.0. The contents in the folder are as follows.

-rwxr-xr-x 1 xiu users  4283296 17. Mai 13:11 ApCoCoABBFServer
-rwxr-xr-x 1 xiu users  6461552 17. Mai 13:05 ApCoCoAQt
-rwxr-xr-x 1 xiu users 11324912 17. Mai 13:11 ApCoCoAServer
drwxr-xr-x 3 xiu users     4096 17. Mai 13:11 Bertini
drwxr-xr-x 3 xiu users     4096 17. Mai 13:11 Glpk
drwxr-xr-x 5 xiu users     4096 17. Mai 13:11 Hom4ps
-rw-r--r-- 1 xiu users    32422 17. Mai 13:11 LICENSE
drwxr-xr-x 3 xiu users     4096 17. Mai 13:11 Latte
-rw-r--r-- 1 xiu users    14300 17. Mai 13:11 README
-rwxr-xr-x 1 xiu users     2394 17. Mai 13:05 apcocoa
-rwxr-xr-x 1 xiu users   637708 17. Mai 13:05 apcocoa_text
drwxr-xr-x 7 xiu users     4096 17. Mai 13:11 doc
drwxr-xr-x 2 xiu users     4096 17. Mai 13:05 emacs
drwxr-xr-x 3 xiu users     4096 17. Mai 13:11 gnuplot
drwxr-xr-x 6 xiu users     4096 17. Mai 13:11 packages
drwxr-xr-x 3 xiu users     4096 17. Mai 13:11 sat
drwxr-xr-x 2 xiu users     4096 17. Mai 13:11 temp
-rw-r--r-- 1 xiu users      250 17. Mai 13:05 userinit.coc
-rw-r--r-- 1 xiu users     8477 17. Mai 13:11 wordlist.txt
-rwxr-xr-x 1 xiu users     3429 17. Mai 13:05 xapcocoa

In the following, we shall always assume that we are working at the directory ApCoCoA-1.9.0/.

ApCoCoA with text Interface

Run the following command at terminal to start the ApCoCoA text interface.

./apcocoa_text

ApCoCoA text.jpg

You can run any (Ap)CoCoA command in this interface.

ApCoCoA text1.jpg

ApCoCoAServer

In many cases you also need to run the ApCoCoAServer. Here, we assume that you have some terminal tools, like "screen", "tmux", etc., to create new terminal sessions, and that you are able to switch between terminal sessions without having to stop the running program.

Create a new terminal session for the ApCoCoAServer and run the following command to start the ApCoCoAServer.

./ApCoCoAServer

ApCoCoA Server0.jpg

We can see that the ApCoCoAServer is running on port 49344 (0xc0c0) by default. One can run the ApCoCoAServer on anther port by using option -p as follows.

./ApCoCoAServer -p n

where n is the port number.