About Me

My photo
I know the last digit of PI

Tuesday, March 29, 2011

VNC server under F14

1) Install the vnc server by suing following command:
yum install tigervnc tigervnc-server


2) Under the user that will be used to login execute:
vncpasswd

This is the password that you will use to connect to the server

3) Configure the displays by editing /etc/sysconfig/vncservers
nano /etc/sysconfig/vncservers

Make sure that you have something like this
VNCSERVERS="1:the_user_that_is_used_for_vnc"
VNCSERVERARGS[1]="-geometry 1280x1024"


4) Then start the service for the first time:
service vncserver start


5) And make sure that the service is starting everytime you restart your machine:
chkconfig vncserver on


6) also don't forget to add firewall rules - use gnome tools from System / Administration / Firewall... Allow connections to port 5901

7) Now you can connect to the VNC server with ip and the display number e.g.: 192.160.0.254:1

Tuesday, March 01, 2011

How to list registered EJB beans in Glassfish

http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18850.html

1) Open the Glassfish Admin Console
2) Select the "Application Server" tree node
3) In the "General" tab under "General Information" choose JNDI browsing
4) Under the "ejb" tree you can find all registered EJB beans