From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 17:40:49 2012 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 99B24106566C for ; Tue, 2 Oct 2012 17:40:49 +0000 (UTC) (envelope-from suseuser04@lajt.hu) Received: from mailout1.bwave.pl (mailout1.bwave.pl [37.233.100.31]) by mx1.freebsd.org (Postfix) with ESMTP id 51D4B8FC15 for ; Tue, 2 Oct 2012 17:40:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=drone-mailout1) by mailout1.bwave.pl with esmtp (Exim 4.76) (envelope-from ) id 1TJ6SI-0001NY-VG for freebsd-questions@freebsd.org; Tue, 02 Oct 2012 19:40:26 +0200 Received: from [10.2.1.173] by drone-mailout1 with esmtp (Exim 4.76) (envelope-from ) id 1TJ59h-0003al-8D for freebsd-questions@freebsd.org; Tue, 02 Oct 2012 18:17:09 +0200 From: =?UTF-8?Q?Istvan_Gabor?= To: freebsd-questions@freebsd.org In-Reply-To: <201210021629.44943.jmc-freebsd2@milibyte.co.uk> References: <655c8927.6a890f36.506aed3e.ebec@lajt.hu> <20121002154954.75800f3e.freebsd@edvax.de> <201210021629.44943.jmc-freebsd2@milibyte.co.uk> Mime-Version: 1.0 Message-ID: <3017a44e.1f5f420b.506b1354.cee0c@lajt.hu> Date: Tue, 02 Oct 2012 18:16:20 +0200 X-Originator: 193.6.63.109 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: stop and start X server in FreeBSD 9.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 17:40:49 -0000 Polytropon,=20Mike, Thank=20for=20your=20answers. 2012.=20okt=C3=B3ber=202.=2017:29=20napon=20Mike=20Clarke=20=20=C3=ADrta: >=20On=20Tuesday=2002=20October=202012=2014:49:54=20Polytropon=20wrote: >=20 >=20>=20For=20the=20desired=20test=20scenario,=20I'd=20suggest=20to=20dis= able=20KDE >=20>=20(kdm)=20startup=20in=20/etc/rc.conf,=20and=20finally=20stop=20the= =20related >=20>=20service=20(from=20/usr/local/etc/rc.d=20probably).=20Then=20you=20= can >=20>=20easily=20use=20the=20"startx"=20command=20to=20start=20an=20X=20s= ession=20from >=20>=20a=20user's=20VT,=20test=20your=20settings,=20terminate=20the=20se= ssion, >=20>=20and=20you'll=20be=20back=20in=20text=20mode. >=20 >=20The=20OP=20is=20using=20kdm3=20which=20is=20normally=20=20managed=20t= hrough=20/etc/ttys=20instead=20of=20 >=20an=20rc=20script. >=20 >=20To=20stop=20kdm3: >=20 >=20*=20edit=20/etc/ttys,=20find=20the=20line=20'ttyv8=20=20=20"/usr/loca= l/bin/kdm"=20xterm=20on=20secure'=20 >=20and=20changie=20"on"=20to=20"off" I=20did=20this=20one=20before.=20I=20hoped=20I=20could=20make=20it=20with= out=20editing=20ttys=20every=20time. >=20*=20kill=20-1=201 >=20*=20killall=20kdm-bin Thanks=20for=20pointing=20out=20which=20program=20has=20to=20be=20killed.= >=20 >=20To=20restart >=20 >=20*=20edit=20/etc/ttys=20and=20change=20"off"=20back=20to=20"on"=20for=20= kdm >=20*=20kill=20-1=201 >=20 >=20But=20it=20isn't=20necessary=20to=20do=20all=20this=20just=20to=20pic= k=20up=20changes=20in=20xorg.conf.=20 >=20Just=20make=20your=20desired=20changes=20to=20xorg.conf,=20then=20log= =20out=20of=20kde=20and=20switch=20 >=20to=20a=20console=20as=20root=20and=20killall=20kdm-bin.=20This=20will= =20stop=20and=20start=20X=20as=20well=20 >=20as=20kdm. >=20 >=20You=20can=20do=20all=20this=20from=20a=20terminal=20window=20in=20you= r=20kde=20session=20but=20I=20prefer=20to=20 >=20logout=20cleanly=20instead=20of=20having=20the=20rug=20pulled=20from=20= under=20my=20feet=20which=20has=20 >=20sometimes=20corruptedf=20my=20kdmrc=20file. >=20 I=20guess=20this=20is=20the=20way=20to=20go.=20Thanks! Istvan