Difference between revisions of "Java, Flash, and Fonts/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(Flash)
(Java)
Line 3: Line 3:
 
==Java==
 
==Java==
  
AppCafe™ also allows you to install the Open Java Development Kit (JDK, used by Java developers) and the Java Runtime Environment (JRE, used by java applications). Simply search for "java" within AppCafe™ if you wish to install these applications.
+
AppCafe™ also allows you to install the Open Java Development Kit (OpenJDK, used by Java developers) and the Java Runtime Environment (JRE, used by java applications). Simply search for "java" within AppCafe™ if you wish to install these applications. The OpenJDK PBI includes the IcedTea browser plugin, which will work on FireFox, Chrome and Opera without any additional setup.
 
+
'''Enabling Java in Opera on 64-bit PC-BSD'''
+
 
+
Even after installing the java JRE PBI, you may have to configure Opera to use it on a 64-bit system. As the superuser, create the following symlinks:
+
 
+
'''ln -s /usr/Programs/JavaJDK/diablo-jdk1.6.0 /usr/local/diablo-jdk1.6.0'''
+
'''ln -s /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server /usr/local/diablo-jdk1.6.0/jre/lib/amd64/client'''
+
 
+
For security reasons, Opera's default policy is very strict on what Java apps are allowed to do. If you find that you can't access some java games or apps from within the browser, you can bypass some of these restrictions by adding grant statements to the /root/.opera.policy file using this syntax:
+
 
+
    grant {
+
    permission java.awt.AWTPermission "accessClipboard";
+
    permission java.net.SocketPermission "localhost:5577", "accept, connect, listen";
+
    permission java.lang.RuntimePermission "loadLibrary.<library name>";
+
    permission javax.sound.sampled.AudioPermission "play";
+
    }
+
 
+
However, think carefully before adding any of these permissions as they decrease the security of your browser. Here is an overview of each permission so you can decide which ones you need:
+
 
+
* '''java.awt.AWTPermission:''' grants permission to post information to and retrieve information from the clipboard. Granting this permission could allow malicious code to share potentially sensitive or confidential information.
+
 
+
* '''java.net.SocketPermission:''' allows applets to accept connections on, connect to, and listen on the specified port.
+
 
+
* '''java.lang.RuntimePermission:''' grants access to file system.
+
 
+
* '''javax.sound.sampled.AudioPermission:''' grants app access to play sounds.
+
  
 
==Flash==
 
==Flash==

Revision as of 08:35, 5 December 2011

(Sorry for the inconvenience)

Contents

Java

AppCafe™ also allows you to install the Open Java Development Kit (OpenJDK, used by Java developers) and the Java Runtime Environment (JRE, used by java applications). Simply search for "java" within AppCafe™ if you wish to install these applications. The OpenJDK PBI includes the IcedTea browser plugin, which will work on FireFox, Chrome and Opera without any additional setup.

Flash

PC-BSD installs and configures the Adobe Flash player (version 10) plugin for you. This means that flash should "just work" when browsing the web. You'll find several web browsers in the Web Browsers category of AppCafe™, including Firefox, Opera, and Chromium.

If flash does not seem to be working, running the following command as your regular user account should fix the problem:

flashpluginctl on

Fonts

Installing Microsoft True Type Fonts

If you would like to install Microsoft True Type fonts, click on the AppCafe™ icon on your Desktop. Search for "fonts" in the search bar and you should see a result similar to Figure 8.1a:

Figure 8.1a: Using AppCafe™ to Install MS TrueType Fonts

Fonts1a.png

Click the download button to install the fonts PBI. It will automatically setup your system to use these fonts.

Installing Fonts in KDE

If you already have a collection of fonts that you have downloaded or purchased, you can configure your PC-BSD system to use these as well using the Font Installer utility.

Click the KDE menu → System Settings → Font Installer to start this utility. In Figure 8.1b, "All Fonts" is currently selected under the Group column, showing all of the fonts installed on this system.

Figure i.1b: Using Font Installer to Install Fonts

Fonts1.png

To install your fonts, highlight "Personal Fonts" under the Group column, then click the +Add button. This will allow you to browse to the font you wish to add. You can add multiple fonts in the same directory by holding down the Ctrl key while making your selection. Click the Open button, which will install the font for you. When it is finished, you will see the message in Figure 8.1c:

Figure 8.1c: Fonts Have Been Successfully Installed

Fonts3.png

Your newly installed font(s) should now show up in the "Personal Fonts" section in the Groups column and be available to the applications you use.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox