From owner-freebsd-questions@FreeBSD.ORG Sat Apr 17 08:55:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E382E16A4CE for ; Sat, 17 Apr 2004 08:55:14 -0700 (PDT) Received: from Mail1.KONTENT.De (mail1.kontent.de [81.88.34.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3701B43D1D for ; Sat, 17 Apr 2004 08:55:14 -0700 (PDT) (envelope-from listuser@mb-itconsulting.com) Received: from mb-itconsulting.com (pD9510124.dip.t-dialin.net [217.81.1.36]) by Mail1.KONTENT.De (Postfix) with ESMTP id 6D6402C94F0; Sat, 17 Apr 2004 17:55:20 +0200 (CEST) Message-ID: <4081535D.5020509@mb-itconsulting.com> Date: Sat, 17 Apr 2004 17:55:09 +0200 From: Martin Brecher User-Agent: Mozilla Thunderbird 0.5 (X11/20040324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: roy2098@yahoo.com References: <20040416151857.65008.qmail@web13910.mail.yahoo.com> In-Reply-To: <20040416151857.65008.qmail@web13910.mail.yahoo.com> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: FBSD 5.2-1 NIS/YP KDE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2004 15:55:15 -0000 RA Cohen wrote: [...] > I have been successful in all aspects but one: client logins > default to the most basic window mgr (tvwm I think). There are > approx. 400 potentiaol users total over 65 workstations (a > school environment). How can I make all of them default to KDE > without manually going into each and every central home > directory to set this? Do I need a Perl sctript to do this? How > can I get a new user addition to default to KDE? [...] There are many ways to achieve this. As you have all the home folders in a central location, it would be easiest to replace every user's .xsession/.xinitrc files with one calling startkde. For new users to already have this custom file, place it in /usr/share/skel/ with a name of dot.xinitrc resp. dot.xsession. But there are other solutions: One thing to consider is using a graphical login managager like {k,g,x}dm, in case you don't already do so. {k,g}dm allow the user to chooser their session. Adding new sessions to the list is pretty straightforward - just take a look at gdm.conf resp. kdm.conf files and the respective documentation. If xdm is used you could modify its Xsession file: remove the part where ~/.xsession is started and simply have it launch kde. Yet another way would be to simply replace twm with a symlink pointing at the startkde script. Finally, I suggest you check out cfengine (also in the ports), which makes central administration of a network quite easy. Cfengine also has macros to easily modify every user's ~/.{xsession,whatever} file. Additionally, you might want to consider using CVS to keep track of your configuration files (or/and the configuration files of cfengine). HTH, - Martin