TIP
This article assumes that you have read the getting started article.
Launch Arguments
The Theta Terminal can be configured to launch in different ways. This article will address all options you have at your disposal for customizing the launch.
Credentials File
Instead of specifying your login credentials as a launch argument, you can specify a file where the credentials are stored. Specifying credentials as launch arguments could be a security risk since the launch arguments are shown on some task managers. This is the solution to that security flaw. The creds file must contain 2 lines. The first line is the username or ThetaData email and the second line is the password.
Credentials File Contents
test@thetadata.net
mypassword123
Example
Where creds.txt
is the name of the file. Providing the full path to the file might be required.
java -jar ThetaTerminal.jar creds=creds.txt
Memory Allocation
You can specify the amount of memory that your system will allocate towards the Theta Terminal by including:
-Xms
: The starting amount of memory the Theta Terminal consumes.
-Xmx
: The maximum amount of memory the Theta Terminal can consume.
Example
To initially allocate 4GB of RAM and set an upper limit of 8GB, where username
and password
are you ThetaData credentials.
java -Xms4G -Xmx8G -jar ThetaTerminal.jar username password
Enter password manually
Specifying no arguments will require you to enter your password manually.
java -jar ThetaTerminal.jar
Set the Line ID
You can add line=number
as an argument to any of the above methods. This will use a different configuration file than config_0.properties
. See our launching multiple terminals article for more information.
Examples
Credential Files
java -jar ThetaTerminal.jar creds=creds.txt line=1
Memory-Allocation
java -Xms4G -Xmx8G -jar ThetaTerminal.jar username password line=1
Manual Password
java -jar ThetaTerminal.jar line=1