Thursday, February 21, 2008

can't start vncserver

root@svr5:/usr/ports/net/tightvnc# vncserver
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

Couldn't open RGB_DB '/usr/local/lib/X11/rgb'
21/02/08 18:32:09 Xvnc version TightVNC-1.3.8
21/02/08 18:32:09 Copyright (C) 2000-2006 Constantin Kaplinsky
21/02/08 18:32:09 Copyright (C) 1999 AT&T Laboratories Cambridge
21/02/08 18:32:09 All Rights Reserved.
21/02/08 18:32:09 See http://www.tightvnc.com/ for information on TightVNC
21/02/08 18:32:09 Desktop name 'X' (svr5.at.mikorn.com:1)
21/02/08 18:32:09 Protocol versions supported: 3.7t, 3.7, 3.3
21/02/08 18:32:09 Listening for VNC connections on TCP port 5901
21/02/08 18:32:09 Listening for HTTP connections on TCP port 5801
21/02/08 18:32:09 URL http://svr5.at.mikorn.com:5801
_FontTransSocketUNIXConnect: Can't connect: errno = 2
failed to set default font path 'unix/:7100'
Fatal server error:
could not open default font 'fixed'
Couldn't open RGB_DB '/usr/local/lib/X11/rgb'
21/02/08 18:32:10 Xvnc version TightVNC-1.3.8
21/02/08 18:32:10 Copyright (C) 2000-2006 Constantin Kaplinsky
21/02/08 18:32:10 Copyright (C) 1999 AT&T Laboratories Cambridge
21/02/08 18:32:10 All Rights Reserved.
21/02/08 18:32:10 See http://www.tightvnc.com/ for information on TightVNC
21/02/08 18:32:10 Desktop name 'X' (svr5.at.mikorn.com:1)
21/02/08 18:32:10 Protocol versions supported: 3.7t, 3.7, 3.3
21/02/08 18:32:10 Listening for VNC connections on TCP port 5901
21/02/08 18:32:10 Listening for HTTP connections on TCP port 5801
21/02/08 18:32:10 URL http://svr5.at.mikorn.com:5801

Fatal server error:
could not open default font 'fixed'

Solution: Modify
root@svr5:/usr/ports/net/tightvnc# vi /usr/local/bin/vncserver
...
# Here is another example of setting the font path:
$fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/";
...
to
# Here is another example of setting the font path:
$fontPath = "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/";

xorg-libraries error

root@svr5:/usr/ports/x11/xorg-libraries# make install
===> xorg-libraries-6.9.0 depends on executable: imake - found
===> xorg-libraries-6.9.0 depends on shared library: drm - found
===> xorg-libraries-6.9.0 depends on shared library: freetype.9 - found
===> xorg-libraries-6.9.0 depends on shared library: fontconfig.1 - found
===> Configuring for xorg-libraries-6.9.0
cp: /usr/local/lib/X11/config/version.def: No such file or directory
*** Error code 1


Solution:
use cvsup -g -L 2 ports-supfile instead of cvsup ports-supfile for update ports

Wednesday, February 6, 2008

Disable and Remove Windows Genuine Advantage Notifications Nag Screen

Reference:
http://www.mydigitallife.info/2006/04/26/disable-and-remove-windows-genuine-advantage-notifications-nag-screen/



1. Lauch Windows Task Manager.
2. End wgatray.exe process in Task Manager.
3. Restart Windows XP in Safe Mode.
4. Delete WgaTray.exe from c:\Windows\System32.
5. Delete WgaTray.exe from c:\Windows\System32\dllcache.
6. Lauch RegEdit.
7. Browse to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\Winlogon\Notify
8. Delete the folder ‘WgaLogon’ and all its contents
9. Reboot Windows XP.


Kết luận: nói chung là đây là 1 trong nhiều cách giải quyết khi windows đòi bản quyền, có thể tìm những cách khác trên đường link ở trên