From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 18:44:13 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AEBEE7FC for ; Wed, 9 Jul 2014 18:44:13 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 85E3B2CB3 for ; Wed, 9 Jul 2014 18:44:13 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 09C2E33C46; Wed, 9 Jul 2014 14:44:01 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id EF36B3984C; Wed, 9 Jul 2014 14:44:00 -0400 (EDT) From: Lowell Gilbert To: rvclayton@acm.org (R. Clayton) To: freebsd-questions@freebsd.org Subject: Re: Reconfiguring a package and other questions. References: <8738eaochn.fsf@UlanBator.myhome.westell.com> Reply-To: freebsd-questions@freebsd.org Date: Wed, 09 Jul 2014 14:44:00 -0400 In-Reply-To: <8738eaochn.fsf@UlanBator.myhome.westell.com> (R. Clayton's message of "Wed, 09 Jul 2014 10:03:48 -0400") Message-ID: <441ttujrtb.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 18:44:13 -0000 rvclayton@acm.org (R. Clayton) writes: > I'm running this > > $ uname -a > FreeBSD BanjaLuka 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 > 01:46:25 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 > > $ > > and I did this (via www.freebsd.org/handbook/x-install.html) > > # pkg install xorg > > to install X. It didn't work: xstart runs the default window manager, but the > keyboard and mouse are frozen. [I assume you meant "startx" instead of "xstart".] See the Handbook's chapter on "The X Window System". Particularly the parts on configuration and troubleshooting. At a guess, configuring the mouse at the console before starting X may be all you need. I do that by enabling moused in my rc.conf, but there are easier ways. The installer might be able to handle this for you (you can run bsdinstall(8) from the command line). > 1: I usually install xorg from ports, and what I do in this case (which usually > happens) is reconfigure xorg-server to disable hal. However, I don't see how > packages can be reconfigured. the pkg-config man page seems to show how to > reconfigure pkg itself, not individual packages. How it possible to > reconfigure packages? It isn't. A future feature called "subpackages" will do some of this, but there are several intermediate steps that have to happen before that occurs. For now, a package cannot have the (port's) options changed after the package is built. > 2: How do I undo the effects of installing a metapackage like xorg? Doing the > obvious > > # whereis X > X: /usr/local/bin/X > > # pkg remove xorg > Deinstallation has been requested for the following 1 packages: > > xorg-7.7 > > Proceed with deinstalling packages [y/N]: y > [1/1] Deleting xorg-7.7... done > > # whereis X > X: /usr/local/bin/X > > # > > doesn't do what I wanted ("pkg delete -R xorg" behaves as above). What you want is "pkg autoremove". See "man pkg-autoremove". [In fact, you will probably understand things better if you go back and re-read "man 8 pkg" and "man 7 ports".] > 3: I resorted to deleting xorg-server as a package and re-installing it as a > port with appropriate configuration. This works, but raises the question of > consistency between ports and packages. What is the relation between the > software in ports and the software in packages? Have I just introduced an > error (or potential for error) that will come back and bite me hard six months > after I've forgotten what I've done? You should be fine. To avoid losing the dependency data in the process, you might want to try ports-mgmt/portmaster or ports-mgmt/portupgrade for rebuilding any port.