Difference between revisions of "SUNScholar/Prepare Ubuntu/S08"

From Libopedia
Jump to navigation Jump to search
m
m
Line 47: Line 47:
  
 
<center>
 
<center>
   '''[[SUNScholar/Prepare Ubuntu/S08|PREVIOUS - STEP 8]]'''
+
   '''[[SUNScholar/Prepare Ubuntu/S07|PREVIOUS - STEP 7]]'''
 
</center>
 
</center>

Revision as of 17:18, 6 March 2015

 NEXT - STEP 9

Step 8. Setup the environment variables

Step 8.1 Java environment settings for other java web applications

To setup the environment variables for other java applications (such as the Handle and SOLR servers), type the following:

sudo nano /etc/environment

Copy and paste the following to the bottom of the file.

JAVA_HOME="/usr/lib/jvm/default-java"
JAVA_OPTS="-Djava.awt.headless=true -Xmx2048m -Xms1024m -Dfile.encoding=UTF-8"

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


Step 8.2 Increase number of open files available

Open the following file as follows:

sudo nano /etc/security/limits.conf

Add the following to the bottom of the file:

*            hard       nofile          65536
*            soft       nofile          65536

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


Make sure to check the files open parameter with the next computer reboot by typing the following as the root user:

ulimit -n

Step 8.3: Setup file creation permissions

nano $HOME/.bashrc

Add the following to the bottom of the file

umask 002

NANO Editor Help
CTL+O = Save the file and then press Enter
CTL+X = Exit "nano"
CTL+K = Delete line
CTL+U = Undelete line
CTL+W = Search for %%string%%
CTL+\ = Search for %%string%% and replace with $$string$$
CTL+C = Show line numbers

More info = http://en.wikipedia.org/wiki/Nano_(text_editor)


References

 PREVIOUS - STEP 7