Thursday, March 13, 2014

Webcenter Portlet Custom Skin/css retaining


You might have developed an ADF app with your own cutome Skins/css.

Then you want to access this ADF app as a WSRP portlet in Webcenter portal. By, default, you will loose all your custom skins/css.

If you like to retain your custom Skin/css, please add following information to portlet.xmlfile

  <init-param>
            <name>org.apache.myfaces.trinidad.skin.id</name>
            <value><ID of skin mentioned in trinidad-skin.xml file ></value>
        </init-param>


Note: portlet.xml file is generated by JDeveloper when you right click a JSPX and created Portlet.


Reference
http://aboo-oracle.blogspot.in/2012/11/webcenter-portal-skincss-retaining.html

PuTTy and Xming is making an SSH connection with X11 forwarding

There are several ways to run a GUI application under Linux. What you are trying to accomplish using PuTTy and Xming is making an SSH connection with X11 forwarding. 

Xming, running under Microsoft Windows, is a X Window server, which like any X Window server must connect directly to your local mouse and display. When you establish a SSH session with X11 forwarding, you are intercepting the local X11 protocol on the remote client (Linux server) and send it to your local X Window server running on your PC Desktop. 

For X11 forwarding to work, you do NOT need to install the X Window server on the Linux system, but you need the appropriate authentication package and setup SSH access on the Linux server with X11 forwarding. Both should be installed by default. If not:

# yum install openssh-server xorg-x11-xauth xorg-x11-apps
You start the Xming X server on your Windows PC, then open PuTTy to establish a SSH session with X11 forwarding. PuTTy will pass the X11 protocol to Xming for processing and user interaction. You need to configure PuTTy for X11 forwarding as mentioned in the previous response. When starting a X client application on the remote server it will display on your local screen. 

Alternatively, you can install MobaXterm, which is based on CYGWin and combines a X Window server and SSH client in one single application, which might be a more convenient solution. You can download a free version of MobaXterm from the Internet. 

Keep the following about SSH with X11 forwarding in mind:
- SSH automatically configures the necessary X11 environment variables such as DISPLAY.
- It requires TCP port 22 enabled on the firewall (Linux default). X11 is tunneled through the SSH session.
- It does not use xhost authentication. 
- You cannot use su to connect as another user after the initial connection. It will break xauth authentication.