Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

java_fonts.sh

By: a guest on Nov 26th, 2011  |  syntax: Bash  |  size: 0.45 KB  |  hits: 45  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. #!/bin/bash
  2.  
  3. # Copies the Oracle Java fonts to the system.
  4. #
  5. # Be sure the JAVA_INST_DIR is set correctly. Run as root.
  6. #
  7. # A better version of this would link all the files rather than copy
  8. # them, but I'm being lazy.
  9. #
  10. # Mithat Konar 2011-11-26
  11.  
  12. ### config ###
  13.  
  14. JAVA_INST_DIR="/opt/java/jre"
  15.  
  16. ### end config ###
  17.  
  18. mkdir -p /usr/local/share/fonts/truetype/java
  19. cp -f $JAVA_INST_DIR/lib/fonts/* /usr/local/share/fonts/truetype/java
  20. fc-cache -fv
  21.