Skip to main content

Posts

Showing posts with the label Linux

X11 doesn't work after sudo to another user

This is kind of old trick but after years of not using X11 at all, I will need to refresh. Most of the times at my client, linux access is given with my own user name with ability to sudo to a regular service user. On a need of X11 GUI, it's mandatory to add the authorization info of my own user name into the sudo user name so X11 window can be started on top of the sudo user. But first of all, make sure the X11 forwarding is enabled by adding the following to /etc/ssh/sshd_config X11Forwarding yes Before the authorization info is added, the following error may show up in the terminal when trying to bring up X11 window. X11 proxy: Authorisation not recognised Here is how to add the authorization. 1. go back to the user who has access to the linux box and get the following info - >> echo $DISPLAY this will print out the display variable of the current user >>xauth list this will print out the authorization info to connect to the X server of the curre...

Setup your own WebCenter Suite on a VM from scratch

I’d like to share my own “Install Notes” on step-to-step how to build your own WebCenter Suite on a VM from scratch. If you follow my notes here, you should have your own WebCenter work station in a few hours. The install notes here are based on the Linux 64 OS which is the industry standard. Let’s begin. Software needed (can be obtained from e-delivery) a.        Oracle Linux64 bit (ver6.2 or whatever latest) b.       Oracle VirtualBox c.        Oracle DB XE11g Linux 64 d.       Oracle RCU e.       Oracle Weblogic Server 11g Linux f.         Oracle WebCenter 11g g.        Oracle UCM 11g h.       Oracle Web Tier 11g Create a new Virtual Disk a.        Install VirtualBox on your host. Start the virtualbox and crea...

How to acquire large pages for Java heap

Although there is a similar blog entry on this topic, I’d rather to blog it anyway for my own reference. If the WebLogic Server was installed on Linux and when starting, you might see the following message: What happened is the default JRockit JVM prefers to uses large pages for Java heap but the Linux OS is not setup yet for this option. HugePages is a feature integrated into the Linux kernel 2.6. It’s a method to have larger page size that is useful for working with large memory. HugePages is userful for both 32-bit and 64-bit configurations. Its size varies from 2MB to 256MB, depending on the kernel version and the hardware architecture. Using HugePages reduces the OS maintenance of page states, and increases Translation Lookaside Buffer (TLB) hit ratio. Run the following will show a filesystem of type hugetlbfs configured in the kernel: cat /proc/filesystems First, we need to create the hugepages director...