Tuesday, July 27, 2010

Running VNC Server as non-root user - solaris 10



I could not find the info associated with running VNCServer as a non-root user on the internet hence I thought sharing this with you guys.

The Operating system is solaris 10 X86.

-bash-3.00$ uname -a
SunOS unknown 5.10 Generic_141445-09 i86pc i386 i86pc

bash-3.00# pkginfo | grep -i vnc
system SUNWvncviewer VNC viewer client
system SUNWxvnc X11/VNC server

1. Login as normal application user.

2. Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00$ id
uid=1234(rajapp) gid=1000(users)
-bash-3.00$ pwd
/apps/users/rajapp
-bash-3.00$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth: creating new authority file /apps/users/rajapp/.Xauthority

New 'unknown:2 (rajapp)' desktop is unknown:2

Creating default startup script /apps/users/rajapp/.vnc/xstartup
Starting applications specified in /apps/users/rajapp/.vnc/xstartup
Log file is /apps/users/rajapp/.vnc/unknown:2.log

3. Make sure that the process is running -

-bash-3.00$ ps -ef | grep -i vnc
root 2204 1 0 17:20:16 ? 0:00 vncconfig -iconic
root 2200 1 0 17:20:12 ? 0:07 Xvnc :1 -desktop unknown:1 () -auth //.Xauthority -geometry 1024x768 -depth 16
rajapp 2375 1 0 17:46:40 pts/2 0:06 Xvnc :2 -desktop unknown:2 (rajapp) -auth /apps/users/rajapp/.Xauthority -geome
rajapp 2379 1 0 17:46:45 pts/2 0:00 vncconfig -iconic

4. open vncviewer on your windows desktop and enter the hostname OR Ip address as follows hostname:2, ipaddress:2 you can try both ways if the hostname is not set.









It would be great if this post helps you any ways.

Thanks. thats it for today.