From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 19 Feb 2003 03:12:03 +0200 From: Michael Shigorin To: community@altlinux.ru Message-ID: <20030219011202.GX75596@osdn.org.ua> Mail-Followup-To: community@altlinux.ru References: <3E5227CB.7060000@rambler.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6e7ZaeXHKrTJCxdu" Content-Disposition: inline In-Reply-To: <3E5227CB.7060000@rambler.ru> User-Agent: Mutt/1.5.1i Subject: [Comm] Re: Starting X from .bash_profile failed Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --6e7ZaeXHKrTJCxdu Content-Type: multipart/mixed; boundary="LTeJQqWS0MN7I/qa" Content-Disposition: inline --LTeJQqWS0MN7I/qa Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 18, 2003 at 03:32:11PM +0300, Yury Aliaev wrote: > =F3=C9=D4=D5=C1=C3=C9=D1 =D3=CC=C5=C4=D5=C0=DD=C1=D1: =C4=CC=D1 =CE=C5=CB= =CF=D4=CF=D2=D9=C8 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=C5=CA =D1 =C8=CF=DE=D5= =D5=D3=D4=D2=CF=C9=D4=D8 =DA=C1=D0=D5=D3=CB=20 > =C9=CB=D3=CF=D7 =C1=D7=D4=CF=CD=C1=D4=CF=CD =D0=CF=D3=CC=C5 =D7=C8=CF=C4= =C1 =D7 =D3=C9=D3=D4=C5=CD=D5, =C4=CC=D1 =DE=C5=C7=CF =D0=D2=CF=D0=C9=D3=C1= =CC =C9=CD startx =D7=20 > .bash_profile. =D0=D2=C9 =DC=D4=CF=CD =CE=C1 :0 =D5=D6=C5 =C2=CF=CC=D8=C1=C5=D4=D3=D1 kdm?= :) =D7=D0=C9=D3=D9=D7=C1=CA=D4=C5 =CE=C5=DE=D4=CF =D7=C9=C4=C1 startx -- :1 ( = :2, ... ) =C9=CC=C9 =D3=CD. =C1=D4=D4=C1=DE. --=20 ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --LTeJQqWS0MN7I/qa Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=startx #!/bin/sh # # (c) 1999 Red Hat Software, Inc. # patched by Michael Shigorin # to open new displays automagically bindir=/usr/X11R6/bin userclientrc=$HOME/.xinitrc userserverrc=$HOME/.xserverrc sysclientrc=/etc/X11/xinit/xinitrc sysserverrc=/etc/X11/xinit/xserverrc clientargs="" #serverargs=" -quiet " serverargs="" TMPDIR=${TMPDIR:-/tmp} if [ -f $userclientrc ]; then clientargs=$userclientrc else if [ -f $sysclientrc ]; then clientargs=$sysclientrc fi fi if [ -f $userserverrc ]; then serverargs=$userserverrc else if [ -f $sysserverrc ]; then serverargs=$sysserverrc fi fi # select next free display... if [ -n "`ls /tmp/.X*-lock 2>/dev/null`" ]; then display=:$[1+0$(ls /tmp/.X*-lock | tail -1 | sed -n 's/.*X\([[:digit:]]\+\)-lock$/\1/p')] else display=:0 fi whoseargs="client" while [ "x$1" != "x" ]; do case "$1" in /''*|\.*) if [ "$whoseargs" = "client" ]; then if [ "x$clientargs" = x ]; then clientargs="$1" else clientargs="$clientargs $1" fi else if [ "x$serverargs" = x ]; then serverargs="$1" else serverargs="$serverargs $1" fi fi ;; --) whoseargs="server" ;; *) if [ "$whoseargs" = "client" ]; then clientargs="$clientargs $1" else case "$1" in :[0-9]) display="$1" ;; *) serverargs="$serverargs $1" ;; esac fi ;; esac shift done # set up default Xauth info for this machine mcookie=`mcookie` serverargs="$serverargs -auth $HOME/.Xauthority" xauth add $display . $mcookie xauth add `hostname -f`$display . $mcookie # remember which VC will be occupied by X to deallocvt it later XINITLOG="$TMPDIR"/.startx-$HOSTNAME$display while [ -e "$XINITLOG" ]; do XINITLOG="$TMPDIR"/.startx-$HOSTNAME$display-$RANDOM done # protect logfile >"$XINITLOG" chmod 600 "$XINITLOG" xinit $clientargs -- $display $serverargs 2>&1 | tee -a "$XINITLOG" # clean up deallocvt $(sed -n -e 's/^(using VT number \([[:digit:]]\+\))/\1/p' "$XINITLOG") 2>/dev/null rm -f "$XINITLOG" --LTeJQqWS0MN7I/qa-- --6e7ZaeXHKrTJCxdu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+UtnibsPDprYMm3IRAnt/AJ92dUOaU0rt8xLQt6UdI6iK6KHGyACfTCdZ f2PCTJ3vGERQqvBYQ5y/i1g= =lkRb -----END PGP SIGNATURE----- --6e7ZaeXHKrTJCxdu--