[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#173357: marked as done (Dexconf hacked with detect)



Your message dated Wed, 1 Jan 2003 19:12:35 -0500
with message-id <20030102001235.GA26703@redwald.deadbeast.net>
and subject line Bug#173357: Dexconf hacked with detect
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Dec 2002 21:15:08 +0000
>From robb@alphalink.com.au Mon Dec 16 15:15:07 2002
Return-path: <robb@alphalink.com.au>
Received: from mail2.alphalink.com.au [202.161.124.194] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18O2Zp-0002bM-00; Mon, 16 Dec 2002 15:15:06 -0600
Received: from debian.me.null (d421-ps4-mel.alphalink.com.au [202.161.98.105])
	by mail2.alphalink.com.au (8.12.5/8.9.3) with ESMTP id gBGLEqIT026578
	for <submit@bugs.debian.org>; Tue, 17 Dec 2002 08:14:53 +1100
Received: by debian.me.null (Postfix, from userid 1000)
	id 054472D8F6; Tue, 17 Dec 2002 08:13:01 +1100 (EST)
Date: Tue, 17 Dec 2002 08:13:01 +1100
From: rob <rob21@linuxfreemail.com>
To: submit@bugs.debian.org
Subject: Dexconf hacked with detect
Message-ID: <20021216211301.GA749@mail.alphalink.com.au>
Reply-To: rob21@linuxfreemail.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
X-Archive: encrypt
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-1.2 required=5.0
	tests=FROM_ENDS_IN_NUMS,SPAM_PHRASE_00_01,UPPERCASE_25_50,
	      USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 

Package: xserver-common
Version: 4.2.1-4

Hi,

This version only needs one debconf question for monitor size.

Rob.

#!/bin/sh

# /usr/local/sbin/easygui
# Adapted from Dexconf: Debian X Configurator
# Licensed under the GNU GPL, version 2 or (at your option) any later version.
#

DEXCONFTMPDIR="/tmp/gui-tmp-$$"
rm -rf $DEXCONFTMPDIR
mkdir -p $DEXCONFTMPDIR


cat > $DEXCONFTMPDIR/Header << SECTION
# XF86Config-4 (XFree86 server configuration file)
# Edit this file with caution, and see the XF86Config manual page.
# (Type "man XF86Config" at the shell prompt.)
SECTION

### SERVERFLAGS

cat > $DEXCONFTMPDIR/ServerFlags << SECTION
Section "ServerFlags"
EndSection
SECTION

### SERVERLAYOUT

cat > $DEXCONFTMPDIR/ServerLayout << SECTION
Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
SECTION
printf "EndSection\n" >> $DEXCONFTMPDIR/ServerLayout

### FILES

cat > $DEXCONFTMPDIR/Files << SECTION
Section "Files"
	FontPath	"unix/:7100"		# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection
SECTION

### MODULE

cat > $DEXCONFTMPDIR/Module << SECTION
Section "Module"
	Load	"ddc"
	Load	"GLcore"
	Load	"dbe"
	Load	"dri"
	Load	"extmod"
	Load	"glx"
	Load	"record"
	Load	"xie"
	Load	"bitmap"
	Load	"freetype"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
	Load	"int10"
EndSection
SECTION

### KEYBOARD / INPUTDEVICE
# pc101 keyboard is rare, think it will work with pc104

cat > $DEXCONFTMPDIR/InputDeviceKeyboard << SECTION
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection
SECTION

### MOUSE / INPUTDEVICE
# This assumes that these statements are in modules.conf
# alias char-major-13 input
# above input mousedev hid usb-uhci
# Would need to test for arch first, as usb-uhci is only Intel

rm /dev/mouse;
/sbin/modprobe input;
if ((`dmesg | grep input | grep -c 'Mouse'` > 0));
then ln -s /dev/input/mice /dev/mouse;
     MOUSE_PORT="/dev/input/mice";
     MOUSE_PROTOCOL="ImPS/2";
else ln -s /dev/psaux /dev/mouse;
     MOUSE_PORT="/dev/psaux";
     MOUSE_PROTOCOL="PS/2";
fi

printf "Section \"InputDevice\"\n" > $DEXCONFTMPDIR/InputDeviceMouse
printf "\tIdentifier\t\"Configured Mouse\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
printf "\tDriver\t\t\"mouse\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
printf "\tOption\t\t\"CorePointer\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
printf "\tOption\t\t\"Device\"\t\t\"$MOUSE_PORT\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
printf "\tOption\t\t\"Protocol\"\t\t\"$MOUSE_PROTOCOL\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
printf "\tOption\t\t\"Emulate3Buttons\"\t\"true\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
case $MOUSE_PROTOCOL in
ImPS*)  printf "\tOption\t\t\"ZAxisMapping\"\t\t\"4 5\"\n" >> $DEXCONFTMPDIR/InputDeviceMouse
esac
printf "EndSection\n" >> $DEXCONFTMPDIR/InputDeviceMouse

### DEVICE
# For the other drivers, need to know what video card appears
# in the cat /proc/pci output. Only nvidia has been tested.

case `cat /proc/pci | grep VGA` in
nvidia) DEVICE_DRIVER=nv;;
radeon|ati) DEVICE_DRIVER=ati;;
matrox) DEVICE_DRIVER=mga;;
voodoo) DEVICE_DRIVER=tdfx;;
*) echo
   echo "Found this video card "
   cat /proc/pci | grep 'VGA'
   echo
   echo "Some examples - video card=video driver, nvidia=nv"
   echo "alliance=apm, matrox=mga, number nine=i128, voodoo=tdfx"
   echo
   echo "Available video drivers:"
   echo "apm, ark, ati, chips, cirrus, cyrix, glint, i128, i740, i810"
   echo "imstt, mga, neomagic, nv, rendition, s3virge, savage"
   echo "siliconmotion, sis, tdfx, tga, trident, tseng, vga"
   echo
   read -p 'Enter video driver to use: ' DEVICE_DRIVER
   echo;;
esac
printf "Section \"Device\"\n" > $DEXCONFTMPDIR/Device
printf "\tIdentifier\t\"Default Device\"\n" >> $DEXCONFTMPDIR/Device
printf "\tDriver\t\t\"$DEVICE_DRIVER\"\n" >> $DEXCONFTMPDIR/Device
printf "EndSection\n" >> $DEXCONFTMPDIR/Device

### MONITOR
# On i386 use read-edid, else ask debconf question
# Only 14" has been tested, got other ranges from debconf database

echo
read -p 'Enter your monitor size in inches [14/15/17/19]: ' MON_SIZE
echo
case $MON_SIZE in
14)  HSYNC="32.0 - 64.0";  VSYNC="50.0 - 100.0";;
15)  HSYNC="30.0 - 65.0";  VSYNC="50.0 - 100.0";;
17)  HSYNC="31.0 - 70.0";  VSYNC="50.0 - 100.0";;
19)  HSYNC="30.0 - 96.0";  VSYNC="50.0 - 140.0";;
*)   HSYNC="32.0 - 64.0";  VSYNC="50.0 - 100.0";;
esac
printf "Section \"Monitor\"\n" > $DEXCONFTMPDIR/Monitor
printf "\tIdentifier\t\"Default Monitor\"\n">> $DEXCONFTMPDIR/Monitor
printf "\tHorizSync\t$HSYNC\n" >> $DEXCONFTMPDIR/Monitor
printf "\tVertRefresh\t$VSYNC\n" >> $DEXCONFTMPDIR/Monitor
printf "\tOption\t\t\"DPMS\"\n" >> $DEXCONFTMPDIR/Monitor
printf "EndSection\n" >> $DEXCONFTMPDIR/Monitor

### SCREEN

printf "Section \"Screen\"\n" > $DEXCONFTMPDIR/Screen
printf "\tIdentifier\t\"Default Screen\"\n" >> $DEXCONFTMPDIR/Screen
printf "\tDevice\t\t\"Default Device\"\n" >> $DEXCONFTMPDIR/Screen
printf "\tMonitor\t\t\"Default Monitor\"\n" >> $DEXCONFTMPDIR/Screen
printf "\tDefaultDepth\t16\n" >> $DEXCONFTMPDIR/Screen
for DEPTH in 8 15 16 24; do
  printf "\tSubSection \"Display\"\n" >> $DEXCONFTMPDIR/Screen
  printf "\t\tDepth\t\t$DEPTH\n" >> $DEXCONFTMPDIR/Screen
  printf "\t\tModes\t\t\"800x600\" \"640x480\" \"1024x768\"\n" >> $DEXCONFTMPDIR/Screen
  printf "\tEndSubSection\n" >> $DEXCONFTMPDIR/Screen
done
printf "EndSection\n" >> $DEXCONFTMPDIR/Screen

### DRI

cat > $DEXCONFTMPDIR/DRI << SECTION
Section "DRI"
	Mode	0666
EndSection
SECTION

# all done, spit it out

rm -f /etc/X11/XF86Config-4

for SECTION in Header Files ServerFlags ServerLayout Module InputDeviceKeyboard InputDeviceMouse Device Monitor Screen DRI; do
    cat $DEXCONFTMPDIR/$SECTION >> /etc/X11/XF86Config-4
    printf "\n" >> /etc/X11/XF86Config-4
done

printf "# end of XF86Config\n" >> /etc/X11/XF86Config-4

rm -r $DEXCONFTMPDIR

exit 0

---------------------------------------
Received: (at 173357-done) by bugs.debian.org; 2 Jan 2003 00:12:42 +0000
>From branden@deadbeast.net Wed Jan 01 18:12:41 2003
Return-path: <branden@deadbeast.net>
Received: from dhcp16621067.indy.rr.com (redwald.deadbeast.net) [24.166.21.67] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18TsyX-0002vR-00; Wed, 01 Jan 2003 18:12:41 -0600
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id A5F0D640B5; Wed,  1 Jan 2003 19:12:35 -0500 (EST)
Date: Wed, 1 Jan 2003 19:12:35 -0500
From: Branden Robinson <branden@debian.org>
To: 173357-done@bugs.debian.org
Subject: Re: Bug#173357: Dexconf hacked with detect
Message-ID: <20030102001235.GA26703@redwald.deadbeast.net>
References: <20021216211301.GA749@mail.alphalink.com.au>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc"
Content-Disposition: inline
In-Reply-To: <20021216211301.GA749@mail.alphalink.com.au>
User-Agent: Mutt/1.4i
Delivered-To: 173357-done@bugs.debian.org
X-Spam-Status: No, hits=-15.2 required=5.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,
	      SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 


--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 17, 2002 at 08:13:01AM +1100, rob wrote:
> This version only needs one debconf question for monitor size.

I need a bug report that actually communicates something, not just a
file pasted into a report.

Closing.  Please re-file with specific, enumerated requests and/or
suggestions.

--=20
G. Branden Robinson                |      When dogma enters the brain, all
Debian GNU/Linux                   |      intellectual activity ceases.
branden@debian.org                 |      -- Robert Anton Wilson
http://people.debian.org/~branden/ |

--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAj4Tg/MACgkQ6kxmHytGonwMeACfe3rQAbti4lDnGZvSa0avEJZB
83cAoIsYmF3hJjbVVbyKMlmwrOpfFk3M
=FfmG
-----END PGP SIGNATURE-----

--C7zPtVaVf+AK4Oqc--



Reply to: