i need to turn of optimization
discusses the following
http://wiki.inkscape.org/wiki/index.php/CompilingInkscape
Plain vanilla compilation is done as documented in INSTALL; ./autogen.sh (optionally); ./configure; make; su && make test; make install (optional). See INSTALL for more on that.
But if you're going to be doing a lot of development, there's some tricks and techniques you should know, to get best results.
1. Turn off optimization
2. Use ccache for faster compilation
3. Set up a separate build directory (nice for testing both gcc and g++, or cross compiling)
4. Use the -j N flag to optimize for the number of processors in your machine, with N = 1 + no. proc's
Example: Setting up both gcc and g++ build environments (in separate tree), and using ccache for faster compilations on a dual-processor machine, with no optimization, assuming /bin/bash:
mkdir build-gcc build-g++
cvs checkout inkscape
cd inkscape
libtoolize --copy --force
./autogen.sh
cd ../build-gcc
CFLAGS='-g -O0 -Wall' CC='ccache gcc' ../inkscape/configure
cd ../build-g++
CXXFLAGS='-g -O0 -Wall' CXX='ccache g++' ../inkscape/configure
cd ../build-gcc && make -j 3
cd ../build-g++ && make -j 3
Turning off just optimization (which can produce strange results in debuggers):
export CXXFLAGS='-g -O0 -Wall'
export CFLAGS='-g -O0 -Wall'
./configure
Retrieved from "http://wiki.inkscape.org/wiki/index.php/CompilingInkscape"
This page has been accessed 7,113 times. This page was last modified 21:45, 20 June 2006.
add to the file Makefile.am
bin_PROGRAMS = testxml
testxml_SOURCES = main.cpp
AM_CXXFLAGS = -g -O0 -Wall
CXXFLAGS=
SUBDIRS = tinyxml
LDADD = tinyxml/libtinyxml.a
Monday, October 30, 2006
getopts example
http://www.siit.tu.ac.th/mdailey/class/2003_s2/its225/assignments/testopts.c:
/*
* testopts.c: example usage for getopt command line parsing
* library.
*
* Matt Dailey, Feb 2004
*
* Compile with "gcc testopt.c" to get executable a.out.
*
* This example program takes arguments of the following form:
*
* a.out [-ac] [-b] arg1 arg2 ...
*
* That is, a.out has three optional options -a, -b, and -c.
* -a and -c are standalone options, and -b is an option that
* takes a string argument.
*
* Valid invocations include:
*
* a.out
* a.out -a
* a.out -c
* a.out -b arg1
* a.out -ac
* a.out -b arg1 -ca
* a.out f1 f2 f3
* a.out -a f1 f2 f3
* a.out -ca f1 f2 f3
* a.out -ca f1 f2 -b arg1 f3
*
* and so on. What's nice is that the options and arguments
* can occur in any order.
*
* Also refer to "man 3 getopt"
*
*/
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
char *g_pCharProgramName = NULL;
int main( int argc, char *argv[] ) {
extern char *optarg;
extern int optind;
int this_opt;
int bOptA = FALSE;
int bOptB = FALSE;
int bOptC = FALSE;
char *pCharOptB = NULL;
g_pCharProgramName = argv[0];
/* Loop until all arguments are processed. On each pass, we
* call getopt() for the next option */
while ( 1 ) {
/* Get the next option. It is placed in this_opt. We pass
* the user-entered argc/argv and our option string. The
* option string "ab:c" says our program has options -a, -b,
* and -c. The -b option requires an argument (this is
* specified by the colon in 'b:'. */
this_opt = getopt( argc, argv, "ab:c" );
/* If there are no options left, getopt() returns -1. */
if ( this_opt == -1 ) break;
/* Now we have either a valid option or an invalid option.
* Check all possible cases. */
switch ( this_opt ) {
case 'a':
/* The user selected the -a option. Set a bool for later use. */
bOptA = TRUE;
break;
case 'b':
/* This is the -b option. Since we put b: in the getopt
* options string, option b has an argument. Let's save it */
bOptB = TRUE;
pCharOptB = strdup( optarg );
break;
case 'c':
/* -c is another simple option like -a. Just set a flag to
* not that the user selected it. */
bOptC = TRUE;
break;
default:
/* Error case.
*
* getopt() prints an invalid option message for you.
* Usually we now print a usage message. */
printf( "Usage: %s [-ac] [-b] [arg1] [arg2] ...\n",
g_pCharProgramName );
exit( -1 );
break;
}
}
/* Print out the options selected and not selected */
if ( bOptA ) {
printf( "Option A selected\n" );
} else {
printf( "Option A not selected\n" );
}
if ( bOptB ) {
printf( "Option B selected with argument %s\n", pCharOptB );
} else {
printf( "Option B not selected\n" );
}
if ( bOptC ) {
printf( "Option C selected\n" );
} else {
printf( "Option C not selected\n" );
}
/* Print out the non-option arguments. optind now indexes
* the first non-option argument in argv[]. */
while( optind < argc ) {
printf( "Got non-option argument %s\n", argv[optind] );
optind++;
}
/* Clean up */
if ( pCharOptB != NULL ) free( pCharOptB );
}
/*
* testopts.c: example usage for getopt command line parsing
* library.
*
* Matt Dailey, Feb 2004
*
* Compile with "gcc testopt.c" to get executable a.out.
*
* This example program takes arguments of the following form:
*
* a.out [-ac] [-b
*
* That is, a.out has three optional options -a, -b, and -c.
* -a and -c are standalone options, and -b is an option that
* takes a string argument.
*
* Valid invocations include:
*
* a.out
* a.out -a
* a.out -c
* a.out -b arg1
* a.out -ac
* a.out -b arg1 -ca
* a.out f1 f2 f3
* a.out -a f1 f2 f3
* a.out -ca f1 f2 f3
* a.out -ca f1 f2 -b arg1 f3
*
* and so on. What's nice is that the options and arguments
* can occur in any order.
*
* Also refer to "man 3 getopt"
*
*/
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
char *g_pCharProgramName = NULL;
int main( int argc, char *argv[] ) {
extern char *optarg;
extern int optind;
int this_opt;
int bOptA = FALSE;
int bOptB = FALSE;
int bOptC = FALSE;
char *pCharOptB = NULL;
g_pCharProgramName = argv[0];
/* Loop until all arguments are processed. On each pass, we
* call getopt() for the next option */
while ( 1 ) {
/* Get the next option. It is placed in this_opt. We pass
* the user-entered argc/argv and our option string. The
* option string "ab:c" says our program has options -a, -b,
* and -c. The -b option requires an argument (this is
* specified by the colon in 'b:'. */
this_opt = getopt( argc, argv, "ab:c" );
/* If there are no options left, getopt() returns -1. */
if ( this_opt == -1 ) break;
/* Now we have either a valid option or an invalid option.
* Check all possible cases. */
switch ( this_opt ) {
case 'a':
/* The user selected the -a option. Set a bool for later use. */
bOptA = TRUE;
break;
case 'b':
/* This is the -b option. Since we put b: in the getopt
* options string, option b has an argument. Let's save it */
bOptB = TRUE;
pCharOptB = strdup( optarg );
break;
case 'c':
/* -c is another simple option like -a. Just set a flag to
* not that the user selected it. */
bOptC = TRUE;
break;
default:
/* Error case.
*
* getopt() prints an invalid option message for you.
* Usually we now print a usage message. */
printf( "Usage: %s [-ac] [-b
g_pCharProgramName );
exit( -1 );
break;
}
}
/* Print out the options selected and not selected */
if ( bOptA ) {
printf( "Option A selected\n" );
} else {
printf( "Option A not selected\n" );
}
if ( bOptB ) {
printf( "Option B selected with argument %s\n", pCharOptB );
} else {
printf( "Option B not selected\n" );
}
if ( bOptC ) {
printf( "Option C selected\n" );
} else {
printf( "Option C not selected\n" );
}
/* Print out the non-option arguments. optind now indexes
* the first non-option argument in argv[]. */
while( optind < argc ) {
printf( "Got non-option argument %s\n", argv[optind] );
optind++;
}
/* Clean up */
if ( pCharOptB != NULL ) free( pCharOptB );
}
Friday, October 27, 2006
Better XConfiguration script that uses the ouput of xvidtune
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
EndSection
Section "Monitor"
#DisplaySize 370 270 # mm
Identifier "Monitor0"
VendorName "VSC"
ModelName "A90-2"
Option "DPMS"
EndSection
#the following was derived from xvidtune
Section "Modes"
Identifier "Mode1"
Modeline "1280x1024" 157.50 1280 1344 1504 1728 1024 1025 1028 1072
Modeline "1280x960" 148.50 1280 1344 1504 1728 960 961 964 1011
Modeline "1024x768" 94.50 1024 1072 1168 1376 768 769 772 808
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer,: float, : "True"/"False",
###: "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "Dac6Bit" # []
#Option "Dac8Bit" # []
#Option "ForcePCIMode" # []
#Option "BusType" # []
#Option "CPPIOMode" # []
#Option "CPusecTimeout" #
#Option "AGPMode" #
#Option "AGPFastWrite" # []
#Option "AGPSize" #
#Option "GARTSize" #
#Option "RingSize" #
#Option "BufferSize" #
#Option "EnableDepthMoves" # []
#Option "EnablePageFlip" # []
#Option "NoBackBuffer" # []
#Option "PanelOff" # []
#Option "DDCMode" # []
#Option "MonitorLayout" # []
#Option "IgnoreEDID" # []
#Option "OverlayOnCRTC2" # []
#Option "CloneMode" # []
#Option "CloneHSync" # []
#Option "CloneVRefresh" # []
#Option "UseFBDev" # []
#Option "VideoKey" #
#Option "DisplayPriority" # []
#Option "PanelSize" # []
#Option "ForceMinDotClock" #
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon R250 Lf [Radeon Mobility 9000 M9]"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 16
# i added this section
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480" "640x400"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480" "640x400"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
SubSection "Display"
Depth 32
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
EndSection
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
EndSection
Section "Monitor"
#DisplaySize 370 270 # mm
Identifier "Monitor0"
VendorName "VSC"
ModelName "A90-2"
Option "DPMS"
EndSection
#the following was derived from xvidtune
Section "Modes"
Identifier "Mode1"
Modeline "1280x1024" 157.50 1280 1344 1504 1728 1024 1025 1028 1072
Modeline "1280x960" 148.50 1280 1344 1504 1728 960 961 964 1011
Modeline "1024x768" 94.50 1024 1072 1168 1376 768 769 772 808
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer,
###
### [arg]: arg optional
#Option "NoAccel" # [
#Option "SWcursor" # [
#Option "Dac6Bit" # [
#Option "Dac8Bit" # [
#Option "ForcePCIMode" # [
#Option "BusType" # [
#Option "CPPIOMode" # [
#Option "CPusecTimeout" #
#Option "AGPMode" #
#Option "AGPFastWrite" # [
#Option "AGPSize" #
#Option "GARTSize" #
#Option "RingSize" #
#Option "BufferSize" #
#Option "EnableDepthMoves" # [
#Option "EnablePageFlip" # [
#Option "NoBackBuffer" # [
#Option "PanelOff" # [
#Option "DDCMode" # [
#Option "MonitorLayout" # [
#Option "IgnoreEDID" # [
#Option "OverlayOnCRTC2" # [
#Option "CloneMode" # [
#Option "CloneHSync" # [
#Option "CloneVRefresh" # [
#Option "UseFBDev" # [
#Option "VideoKey" #
#Option "DisplayPriority" # [
#Option "PanelSize" # [
#Option "ForceMinDotClock" #
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon R250 Lf [Radeon Mobility 9000 M9]"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 16
# i added this section
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480" "640x400"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480" "640x400"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
SubSection "Display"
Depth 32
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200"
EndSubSection
EndSection
Thursday, October 26, 2006
setting up the kernel and the modules.
the kernel goes here
/boot/xxxkernel
you need to modify the /boot/grub/menu.lst
to have the following entry.
i just place this at the top of the previous
entries.
title sasKernel from xxxx
root (hd0,0)
kernel /boot/xxxkernel root=/dev/hdc1 ro single
savedefault
boot
notice that this is a 2.6 kernel and has kernel modules
the modules start-up is dependent on the file
/etc/modules:
------------------------------------------------------------------
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
ide-cd
ide-detect
ide-disk
psmouse
sd_mod
sr_mod
## i added these.
radeon
sis
8250
serial_core
-----------------------------------------------------------------
these files are in /lib/modules/2.6.10-xxx/kernel
./drivers
./drivers/char
./drivers/char/drm
./drivers/char/drm/radeon.ko
./drivers/char/drm/sis.ko
./drivers/serial
./drivers/serial/8250.ko
./drivers/serial/serial_core.ko
/boot/xxxkernel
you need to modify the /boot/grub/menu.lst
to have the following entry.
i just place this at the top of the previous
entries.
title sasKernel from xxxx
root (hd0,0)
kernel /boot/xxxkernel root=/dev/hdc1 ro single
savedefault
boot
notice that this is a 2.6 kernel and has kernel modules
the modules start-up is dependent on the file
/etc/modules:
------------------------------------------------------------------
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
ide-cd
ide-detect
ide-disk
psmouse
sd_mod
sr_mod
## i added these.
radeon
sis
8250
serial_core
-----------------------------------------------------------------
these files are in /lib/modules/2.6.10-xxx/kernel
./drivers
./drivers/char
./drivers/char/drm
./drivers/char/drm/radeon.ko
./drivers/char/drm/sis.ko
./drivers/serial
./drivers/serial/8250.ko
./drivers/serial/serial_core.ko
bootlogd
i have added bootlogd start to my rc0 start up script
debian:/etc/rc0.d# ls -l S*boot*
lrwxr-xr-x 1 root root 18 2006-10-26 10:41 S00bootlogd -> ../init.d/bootlogd
lets see if this can log everything.
here is so more information i found out about bootlogd
the init script i set up in /etc/rcS.d no in the above /etc/rc0.d
and this guy at http://www.timhardy.net/wordpress/2005/12/11/enabling-bootlogd-on-debian-31/
had the following to say:
Enabling Bootlogd on Debian 3.1
Bootlogd does not work out of the box on Debian 3.1 with a 2.6.8 kernel. If you enable it by setting the option to yes in /etc/default/bootlogd you’ll see the error message bootlogd: ioctl (/dev/ttyzf, TIOCCONS): Bad file descriptor scroll by on boot and the log is not created.
The problem lies with the version of udev used in Debian stable.
One solution is to upgrade the udev package to one from testing or unstable but that is not acceptable to someone who wants a pure system.
The alternative is to move the order the scripts are executed in /etc/rcS.d/. Remember, execution order is determined by the number in the filename so by renaming the bootlogd launching script you can get it to run before the udev script S04udev
mv /etc/rcS.d/S05bootlogd /etc/rcS.d/S03bootlogd-was-S05
The next time you boot, the log will be enabled for reading in /var/log/boot.
(Solution by Frans Pop on the debian-laptop mailing list)
then you need to change the /etc/default/bootlogd file look like
-----------------------------------------------------------------
# Run bootlogd at startup ?
BOOTLOGD_ENABLE=YES
debian:/etc/rc0.d# ls -l S*boot*
lrwxr-xr-x 1 root root 18 2006-10-26 10:41 S00bootlogd -> ../init.d/bootlogd
lets see if this can log everything.
here is so more information i found out about bootlogd
the init script i set up in /etc/rcS.d no in the above /etc/rc0.d
and this guy at http://www.timhardy.net/wordpress/2005/12/11/enabling-bootlogd-on-debian-31/
had the following to say:
Enabling Bootlogd on Debian 3.1
Bootlogd does not work out of the box on Debian 3.1 with a 2.6.8 kernel. If you enable it by setting the option to yes in /etc/default/bootlogd you’ll see the error message bootlogd: ioctl (/dev/ttyzf, TIOCCONS): Bad file descriptor scroll by on boot and the log is not created.
The problem lies with the version of udev used in Debian stable.
One solution is to upgrade the udev package to one from testing or unstable but that is not acceptable to someone who wants a pure system.
The alternative is to move the order the scripts are executed in /etc/rcS.d/. Remember, execution order is determined by the number in the filename so by renaming the bootlogd launching script you can get it to run before the udev script S04udev
mv /etc/rcS.d/S05bootlogd /etc/rcS.d/S03bootlogd-was-S05
The next time you boot, the log will be enabled for reading in /var/log/boot.
(Solution by Frans Pop on the debian-laptop mailing list)
then you need to change the /etc/default/bootlogd file look like
-----------------------------------------------------------------
# Run bootlogd at startup ?
BOOTLOGD_ENABLE=YES
Friday, October 20, 2006
Tuesday, October 17, 2006
autoconf
http://www.openismus.com/documents/linux/automake/automake.shtml
great little tutorial.
here is what tools i needed to install.
ii autoconf 2.59a-3 automatic configure script builder
ii autogen 5.6.6-2 an automated text file generator
ii automake1.4 1.4-p6-9 A tool for generating GNU Standards-complian
ii autoproject 0.17-1 create a skeleton source package for a new p
ii autotools-dev 20050422.1 Update infrastructure for config.{guess,sub}
ii libtool 1.5.6-6 Generic library support script
great little tutorial.
here is what tools i needed to install.
ii autoconf 2.59a-3 automatic configure script builder
ii autogen 5.6.6-2 an automated text file generator
ii automake1.4 1.4-p6-9 A tool for generating GNU Standards-complian
ii autoproject 0.17-1 create a skeleton source package for a new p
ii autotools-dev 20050422.1 Update infrastructure for config.{guess,sub}
ii libtool 1.5.6-6 Generic library support script
Friday, October 13, 2006
yo dude im back!
working on a debian system whoopte fucking do!
here is a working XF86Config-4:
------------------------------------------------------------------------------
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Files"
# local font server
# if the local font server has problems, we can fall back on these
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 31.5 - 64.3
VertRefresh 50.0 - 70.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "ati"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 15
SubSection "Display"
Depth 1
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x960"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x960"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x960"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 8
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
-----------------------------------------------------------------------------
i am going to provide a list of the basic packages
emacs21_21.4a-1_i386.deb
kde_5%3a44_all.deb
less_382-1_i386.deb
links2_2.1pre16-1_i386.deb
mc_1%3a4.6.0-4.6.1-pre3-3sarge1_i386.deb
mozilla_2%3a1.7.8-1sarge7.1_i386.deb
resolvconf_1.28_all.deb
xbase-clients_4.3.0.dfsg.1-14sarge1_i386.deb
xchat_2.4.1-0.1_i386.deb
x-window-system_4.3.0.dfsg.1-14sarge1_all.deb
x-window-system-core_4.3.0.dfsg.1-14sarge1_i386.deb
----------------------------------------------------------------------------
i had to change some things to get nameserver in the conf file
/etc/resolv.conf to work correctly.
----------------------------------------------------------------------------
to install the kernel:
apt-get install kernel-package build-essential libncurses5-dev
and follow the instructions in /usr/share/doc/kernel-package/README.gz;
You should also ask me about 'make-kpkg' and 'kp mantra'
dpkg The kernel compilation mantra is make-kpkg clean && make-kpkg --revision=$(date +'%Y%m%d') --append-to-version=-$(hostname) --rootcmd fakeroot clean && make-kpkg --revision=$(date +'%Y%m%d') --append-to-version=-$(hostname) --rootcmd fakeroot kernel_image modules_image . Add --initrd before kernel_image if you need an initrd.
i took the quixant kernel sources and unpacked them in /usr/src/
the unpacke to the directory linux-2.6.10, i then mv-ed this to linux-2.6.10-qxt
and symbolicly linked this to /usr/src/linux
then i began the above process.
here is a working XF86Config-4:
------------------------------------------------------------------------------
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Files"
# local font server
# if the local font server has problems, we can fall back on these
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 31.5 - 64.3
VertRefresh 50.0 - 70.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "ati"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 15
SubSection "Display"
Depth 1
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x960"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x960"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x960" "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x960"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 8
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
-----------------------------------------------------------------------------
i am going to provide a list of the basic packages
emacs21_21.4a-1_i386.deb
kde_5%3a44_all.deb
less_382-1_i386.deb
links2_2.1pre16-1_i386.deb
mc_1%3a4.6.0-4.6.1-pre3-3sarge1_i386.deb
mozilla_2%3a1.7.8-1sarge7.1_i386.deb
resolvconf_1.28_all.deb
xbase-clients_4.3.0.dfsg.1-14sarge1_i386.deb
xchat_2.4.1-0.1_i386.deb
x-window-system_4.3.0.dfsg.1-14sarge1_all.deb
x-window-system-core_4.3.0.dfsg.1-14sarge1_i386.deb
----------------------------------------------------------------------------
i had to change some things to get nameserver in the conf file
/etc/resolv.conf to work correctly.
----------------------------------------------------------------------------
to install the kernel:
apt-get install kernel-package build-essential libncurses5-dev
and follow the instructions in /usr/share/doc/kernel-package/README.gz;
You should also ask me about 'make-kpkg' and 'kp mantra'
dpkg The kernel compilation mantra is make-kpkg clean && make-kpkg --revision=$(date +'%Y%m%d') --append-to-version=-$(hostname) --rootcmd fakeroot clean && make-kpkg --revision=$(date +'%Y%m%d') --append-to-version=-$(hostname) --rootcmd fakeroot kernel_image modules_image . Add --initrd before kernel_image if you need an initrd.
i took the quixant kernel sources and unpacked them in /usr/src/
the unpacke to the directory linux-2.6.10, i then mv-ed this to linux-2.6.10-qxt
and symbolicly linked this to /usr/src/linux
then i began the above process.
Subscribe to:
Posts (Atom)