From owner-freebsd-questions@FreeBSD.ORG Tue Oct 13 09:50:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15F401065672 for ; Tue, 13 Oct 2009 09:50:14 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id C5AB18FC16 for ; Tue, 13 Oct 2009 09:50:13 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mxe16-0001kO-7U for freebsd-questions@freebsd.org; Tue, 13 Oct 2009 11:50:04 +0200 Received: from mud.stack.nl ([131.155.141.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2009 11:50:04 +0200 Received: from pino+gmane_os_freebsd_questions by mud.stack.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2009 11:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Martijn van Buul Date: Tue, 13 Oct 2009 08:02:19 +0000 (UTC) Organization: Eindhoven University of Technology Lines: 29 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mud.stack.nl X-Favourite-Drink: Alcoholic, yet fluid User-Agent: slrn/0.9.9p1 (FreeBSD) Sender: news Subject: Relocating ~/.xsession-errors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martijn van Buul List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 09:50:14 -0000 Hi, I've recently installed FreeBSD 8.0RC1 on my Acer Aspire One netbook, and so far things are working out OK. I'm using the SSD model, and since these netbooks have a notoriously slow SSD write speed, I'm trying to get rid of as much writes as possible. Furthermore, reducing writes might make it live longer. One of the remaining issues is ~/.xsession-errors. I'm using GNOME, and many GNOME applications have the nasty habit of spamming .xsession-errors with a lot of debug assertions (which apparently aren't lethal, since noone ever bothered to fix them..), and I know from experience that this file can see a lot of activity. I'd like to relocate this file to a tmpfs ramdisk, if possible. It would be perfect if I could make it log through syslog, since that would allow me to use newsyslog for logrotation (and thus keep the size of the log at bay), but I suspect this is asking too much. In the past, on Fedora Core and older versions of Ubuntu, I used a dirty trick I picked up on a webforum: Have ~/.xsession-errors be owned by root:wheel, and mark it as system immutable. That caused the .xsession-errors to be moved to /tmp, which is exactly where I want it to be, but that doesn't seem to work anymore. Instead, it's writing the error log to ~/.xsession-errors.XXXX, with XXXX a random string. Does anyone know an alternate way to move this logfile, or if everything else fails how to silence it? -- Martijn van Buul - pino@dohd.org