Skip to main content

Working with icewm and vnc on a headless Centos

Installation


As Root, install the following
yum install icewm
yum install vnc-server
yum install firefox
yum install libXtst.i386

Configuration


As root, modify /etc/sysconfig/vncservers and uncomment the following lines
VNCSERVERS="2:<username>"
VNCSERVERARGS[2]="-geometry 1024x768 -nohttpd"

replace <username> with the user who is going to use the vnc server

login as the user <username>
vncpasswd
provide the password and confirm the password

Starting and stopping the server

to start
vncserver :1

to stop
vncserver -kill :1

Comments

Popular posts from this blog

Thoughts on GWT & Spring

I recently got involved in a project that used GWT and Spring. One of the first things that struck me was the lack of support for Dependency injection frameworks in GWT. So we had to come up with a Spring controller that looked similar to this public class SpringAwareGWTService extends RemoteServiceServlet implements Controller { private ThreadLocal servletContext = new ThreadLocal (); public final ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) { servletContext.set(request.getSession().getServletContext()); doPost(request, response); servletContext.set(null); return null; } public ServletContext getServletContext() { return servletContext.get(); } } Here, what we have done is create a spring controller that is also a GWT remote servlet. Only thing to note is that the GWT remote servlet was never intented to serve as a controller. Also we will force spring to accept the response provided b...