Jump to content

VNC SERVER IMPLEMENTATION WITH LDAP at BITS Pilani

From TetraWiki
Revision as of 13:53, 29 December 2012 by Biswajit (talk | contribs) (Created page with "<center>'''VNC SERVER IMPLEMENTATION WITH LDAP'''</center> <center>'''NAVDEEP MATHUR'''</center> # '''INSTALLATION OF VNC''' # First remove vnc package from server becaus...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
VNC SERVER IMPLEMENTATION WITH LDAP


NAVDEEP MATHUR


  1. INSTALLATION OF VNC
  1. First remove vnc package from server because we are using here realvnc latest version.
  1. Download realvnc 5.03 package from http://www.realvnc.com/download/binary/1193
  1. Extract the package
  1. Then you got some realvnc rpm’s then install that rpm’s by

rpm –ivh <package_name>


  1. If you have genuine license then enter licence key by command

vnclicense –add FRFJD-6SXCL-92L2Y-RSCCA-GWVEA


  1. Then create display session for joining remote , login from any user then run command “vncserver” and it got the session number like 1,2,3…..
  1. Then from vncviewer Enter ip:dispalynumber (Eg 172.20.4.39:1)
  1. Enter username and password of user then join.
  1. ISSUES IN VNC AND TROUBLESHOOTING
  1. LDAP user not able to login vnc but system user will take.

Resolution :


  • At installation time vnc will create file inside /etc/pam.d/vncserver
  • No need to change this file
  • Create one file in /etc/pam.d/vncserver.custom

Then write

auth required pam_ldap.so

account required pam_ldap.so


:save and exit

  • Create one more file /etc/vnc/config.d/common.custom

Then write

PamApplicationName=vncserver.custom

save and exit


This file refer to vncserver.custom in pam.d

  • Now restart vnc service “/etc/init.d/vncserver-x11-serviced restart”
  • Now login from ldap user then run command “vncserver”
  • Now you can check from vncviewer to login as a ldap user and password.
  1. VNC Server not able to take fonts from system “Application fails without proper fonts”

Resolution:

  • By default vncserver have wrong path of fonts , check

Vim /etc/vnc/config

-fp "/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins"

  • /usr/share/fonts/X11 are the wrong path correct path is /usr/share/X11/fonts , So need to be change but don’t change on this file.
  • Create new file /etc/vnc/config.custom

-fp "/usr/share/X11/fonts/misc,/usr/share/X11/fonts/100dpi/:unscaled,/usr/share/X11/fonts/75dpi/:unscaled,/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/100dpi,/usr/share/X11/fonts/75dpi"


save and exit
  • Then restart vnc service as well as from user then run “vncserver” then it take correct path of fonts.
  1. Problem with Resolution on VNC Viewer
  • BITS Pilani have 1600x1200 pixels monitors, So need to change pixels from user.
  • So run command with “vncserver –geometry 1600x1200” from user
  • Then check with vncviewer.