From owner-freebsd-questions@FreeBSD.ORG Mon Jun 15 19:17:49 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FEF8F64 for ; Mon, 15 Jun 2015 19:17:49 +0000 (UTC) (envelope-from elhosots@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF8B9B98 for ; Mon, 15 Jun 2015 19:17:48 +0000 (UTC) (envelope-from elhosots@gmail.com) Received: by iecrd14 with SMTP id rd14so37844865iec.3 for ; Mon, 15 Jun 2015 12:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5YEPnfT3pTO4qRg+h8pu8K5FMStxJ/Pz7D7NCWptVxw=; b=IPg7g3ltnugx5EIf41BAPd3GYVgl4Aiv7YFHB2pRD776fJ2I17X8jZs2hpoQrKpiXd g+6mGB2K3aikBgPVIsAYtnIYwPcQj/Svqxq1/GPBR4l9ZRzO7k6lGiIXtf/OMz1YkHa/ PUKYzXWFiT+z2pJ0dFsKe60gSaTGj5HBP2oYQ3JVzaGZhOH5aGaUmAxez6WG02LpZLoa Vboh+RndrumwOdMdxlLj069GeUF4Ui7lr0GwCQD4BntXa2ppZaPZSepanNSs9vyOFbBT JRGyNX5ZmYp9i5q4rp/W9JWBaa7UoWuCkPH2gJlyQU1lm5TObEVxPcim9dul3ryWTkU0 ZfYA== MIME-Version: 1.0 X-Received: by 10.42.144.131 with SMTP id b3mr32007883icv.35.1434395868191; Mon, 15 Jun 2015 12:17:48 -0700 (PDT) Received: by 10.79.15.3 with HTTP; Mon, 15 Jun 2015 12:17:48 -0700 (PDT) Date: Mon, 15 Jun 2015 12:17:48 -0700 Message-ID: Subject: help with vnc (what was the right fix) after pkg upgrade FreeBSD 10.1-RELEASE-p10 From: Ed Hudson To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2015 19:17:49 -0000 i had a problem with vnc after updating. the things are tried are 'below' the questions here and basic version info. FreeBSD version: FreeBSD bsd1.hoe 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 % pkg info | grep vnc vnc-4.1.3_10 Display X and Win32 desktops on remote X/Win32/Java displays my question is, what would have been the right fix ? a second question is, why did this get broken ? a third question is, was there an easier way to solve the problem ? (i realize my panic response was excessive and trying to track down the log file message could have shortcircuited some of my efforts; my guess from this error message was that somehow a package dependency was missed and that a complete reinstallation had a good chance of fixing it. however, i've been so traumatized in the past around logitechmediaserver / perl CPAN hell that i was left with the massive reinstall paradigm as a way of sometimes fixing package version issues). THE PROBLEM, and MY EFFORTS TO RECOVER FROM IT: this weekend i did a freebsd-update, pkg update, pkg upgrade, portsnap fetch, etc. after updatding, i rebooted the machine, and then tried to relaunch my vnc servers, only to find errors RE fontpath / fixed: ***(from .vnc/*.log): error opening security policy file /usr/local/lib/X11/xserver/SecurityPolicy Could not init font path element /usr/local/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/local/lib/X11/fonts/CID/, removing from list! Fatal server error: could not open default font 'fixed' xhost: unable to open display... to try to fix the problem i tried, in the following order, and to no avail: pkg remove vnc pkg install vnc (no success) pkg info | awk '{print $1}' > t.t pkg remove `cat t.t` (remove all packages) pkg install xorg pkg install vnc (still no success). cd /usr/ports/*/vnc make install (and again after setting FORCE_PKG_REGISTER) finally, i hand edited the 'vncserver' script in /usr/local/bin (after seeing what the make install had touched in /usr/ports/*/vnc/work, and noticing a 'vncserver.bak'), and uncommented the 'cmd=' lines that mentioned -fp (mostly because it in 'vncserver' script but commented): $cmd .= " -fp /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"; this of course didn't work, and a quick 'find' in /usr/local for '*eedo*' showed that there were now Speedo fonts in /usr/local/share. i then added the following line: $cmd .= " -fp /usr/local/share/fonts/misc/,/usr/local/share/fonts/75dpi/,/usr/local/share/fonts/Speedo/"; and now everything works (AT LAST, SUCCESS!) but what is the 'right' fix ?