cat >> /etc/profile.d/X.sh << "EOF" # Begin Xorg Variables export XORG_PREFIX="/usr" export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --mandir=$XORG_PREFIX/share/man --localstatedir=/var" # End Xorg variables EOF source /etc/profile cd /sources/xorg/proto for package in $(grep -v '^#' ../proto-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xvf $package cd $packagedir ./configure $XORG_CONFIG make install cd .. rm -rvf $packagedir done 2>&1 | tee -a ../proto-7.5-2-compile.log cd /sources/xorg/util for package in $(grep -v '^#' ../util-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xvf $package cd $packagedir ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf $packagedir done 2>&1 | tee -a ../util-7.5-2-compile.log cd /sources/xorg tar -jxvf libXau-1.0.5.tar.bz2 cd libXau-1.0.5 ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf libXau-1.0.5 tar -jxvf libXdmcp-1.0.3.tar.bz2 cd libXdmcp-1.0.3 ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf libXdmcp-1.0.3 cd /sources/xorg tar -xvzf ed-1.4.tar.gz cd ed-1.4 ./configure --prefix=/usr --bindir=/bin make $CORES_TO_USE make install cd .. rm -rvf ed-1.4 cd /sources/xorg tar -jxvf freetype-2.3.12.tar.bz2 cd freetype-2.3.12 tar -xvf ../freetype-doc-2.3.12.tar.bz2 --strip-components=2 -C docs sed -i -r -e 's:.*(#.*BYTE.*) .*:\1:' -e 's:.*(#.*SUBPIX.*) .*:\1:' include/freetype/config/ftoption.h ./configure --prefix=/usr make $CORES_TO_USE make install install -v -m755 -d /usr/share/doc/freetype-2.3.12 cp -v -R docs/* /usr/share/doc/freetype-2.3.12 cd .. rm -rvf freetype-2.3.12 cd /sources/xorg tar -xzvf expat-2.0.1.tar.gz cd expat-2.0.1 ./configure --prefix=/usr make $CORES_TO_USE make install install -v -m755 -d /usr/share/doc/expat-2.0.1 install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-2.0.1 cd .. rm -rvf expat-2.0.1 cd /sources/xorg tar -xzvf fontconfig-2.8.0.tar.gz cd fontconfig-2.8.0 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts --with-docdir=/usr/share/doc/fontconfig-2.8.0 make $CORES_TO_USE make install cd .. rm -rvf fontconfig-2.8.0 cd /sources/xorg/lib for package in $(grep -v '^#' ../lib-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xvf $package cd $packagedir case "$packagedir" in libX11-1.3.2 ) CONFIGPARAMS="--without-xcb" esac ./configure $XORG_CONFIG $CONFIGPARAMS make $CORES_TO_USE make install unset CONFIGPARAMS ldconfig cd .. rm -rvf $packagedir done 2>&1 | tee -a ../lib-7.5-2-compile.log tar -xjvf xbitmaps-1.1.0.tar.bz2 cd xbitmaps-1.1.0 ./configure $XORG_CONFIG make install cd .. rm -rvf xbitmaps-1.1.0 cd /sources/xorg tar -xjvf libpng-1.2.42.tar.bz2 cd libpng-1.2.42 patch -Np1 -i ../libpng-1.2.42-apng-1.patch ./configure --prefix=/usr make $CORES_TO_USE make install install -v -m755 -d /usr/share/doc/libpng-1.2.42 install -v -m644 README libpng-1.2.42.txt /usr/share/doc/libpng-1.2.42 cd .. rm -rvf libpng-1.2.42 tar -jxvf libpthread-stubs-0.1.tar.bz2 cd libpthread-stubs-0.1 ./configure --prefix=/usr make $CORES_TO_USE make install cd .. rm -rvf libpthread-stubs-0.1 tar -jxvf libdrm-2.4.14.tar.bz2 cd libdrm-2.4.14 ./configure --prefix=$XORG_PREFIX make $CORES_TO_USE make install cd .. rm -rvf libdrm-2.4.14 cd /sources/xorg tar -xjvf MesaLib-7.6.tar.bz2 tar -xjvf MesaDemos-7.6.tar.bz2 cd Mesa-7.6 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure ./configure $XORG_CONFIG make $CORES_TO_USE make -C progs/xdemos glxinfo glxgears make install install -v -m755 progs/xdemos/glx{info,gears} ${XORG_PREFIX}/bin cd .. rm -rvf Mesa-7.6 cd /sources/xorg/app for package in $(grep -v '^#' ../app-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xvf $package cd $packagedir ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf $packagedir done 2>&1 | tee -a ../app-7.5-2-compile.log tar -xjvf xcursor-themes-1.0.2.tar.bz2 cd xcursor-themes-1.0.2 ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf xcursor-themes-1.0.2 cd /sources/xorg/font for package in $(grep -v '^#' ../font-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xvf $package cd $packagedir ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf $packagedir done 2>&1 | tee -a ../font-7.5-2-compile.log cd /sources/xorg tar -xzvf XML-Parser-2.36.tar.gz cd XML-Parser-2.36 perl Makefile.PL make $CORES_TO_USE make install cd .. rm -rvf XML-Parser-2.36 cd /sources/xorg tar -xjvf intltool-0.40.6.tar.bz2 cd intltool-0.40.6 ./configure --prefix=/usr make $CORES_TO_USE make install install -v -m644 -D doc/I18N-HOWTO /usr/share/doc/intltool-0.40.6/I18N-HOWTO cd .. rm -rvf intltool-0.40.6 cd /sources/xorg tar -xjvf xkeyboard-config-1.7.tar.bz2 cd xkeyboard-config-1.7 ./configure $XORG_CONFIG --with-xkb-rules-symlink=xorg make $CORES_TO_USE make install install -dv -m755 $XORG_PREFIX/share/doc/xkeyboard-config-1.7 install -v -m644 docs/{README,HOWTO}* $XORG_PREFIX/share/doc/xkeyboard-config-1.7 cd .. rm -rvf xkeyboard-config-1.7 tar -xjvf luit-1.0.4.tar.bz2 cd luit-1.0.4 ./configure $XORG_CONFIG make $CORES_TO_USE make install cd .. rm -rvf luit-1.0.4 tar -xzvf pixman-0.15.20.tar.gz cd pixman-0.15.20 ./configure --prefix=/usr make $CORES_TO_USE make install cd .. rm -rvf pixman-0.15.20 cd /sources/xorg tar -xjvf xorg-server-1.7.1.tar.bz2 cd xorg-server-1.7.1 ./configure $XORG_CONFIG --with-module-dir=$XORG_PREFIX/lib/X11/modules --with-xkb-output=/var/lib/xkb --enable-install-setuid --disable-config-hal --disable-config-dbus make $CORES_TO_USE make install cd .. rm -rvf xorg-server-1.7.1 cd /sources/xorg tar -xzvf xterm-253.tgz cd xterm-253 sed -i '/v0/,+1s/new:/new:kb=^?:/' termcap echo -e '\tkbs=\\177,' >>terminfo TERMINFO=/usr/lib/terminfo ./configure $XORG_CONFIG --enable-luit --enable-wide-chars --with-app-defaults=$XORG_PREFIX/share/X11/app-defaults make $CORES_TO_USE make install make install-ti cat >> $XORG_PREFIX/share/X11/app-defaults/XTerm << "EOF" *VT100*locale: true *VT100*faceName: Monospace *VT100*faceSize: 10 *backarrowKeyIsErase: true *ptyInitialErase: true EOF cd .. rm -rvf xterm-253 cd /sources/xorg/driver for package in $(grep -v '^#' ../driver-7.5-2.wget) do packagedir=${package%.tar.bz2} tar -xf $package cd $packagedir case $packagedir in xf86-input-evdev-[0-9]* | xf86-video-ati-[0-9]* | xf86-video-fbdev-[0-9]* | xf86-video-glint-[0-9]* | xf86-video-newport-[0-9]* ) sed -i -e "s/\xc3\xb8/\\\\[\/o]/" -e "s/\xc3\xa4/\\\\[:a]/" -e "s/\xc3\x9c/\\\\[:U]/" man/*.man ;; esac ./configure $XORG_CONFIG --with-xorg-module-dir=$XORG_PREFIX/lib/X11/modules make $CORES_TO_USE make install cd .. rm -rvf $packagedir done 2>&1 | tee -a ../driver-7.5-2-compile.log ln -vsf $XORG_PREFIX /usr/X11R6 mkdir -p /etc/X11 && for file in $XORG_PREFIX/{lib/X11/xinit,share/X11/{app-defaults,twm}} do mv -v $file /etc/X11/ 2> /dev/null && ln -v -s /etc/X11/$(basename $file) $file done cat > ~/.xinitrc << "EOF" # Begin .xinitrc file xterm -g 80x20+0+0 & xclock -g 100x100-0+0 & twm EOF cat > ~/.bashrc << "EOF" source /etc/profile EOF cat >> /etc/sysconfig/createfiles << "EOF" /tmp/.ICE-unix dir 1777 root root EOFAfter this has run, you will need to generate your xorg.conf file and edit away your your hearts content following these instructions.
Sunday, 5 September 2010
LAP - All in One - Xorg
This is the script to install Xorg in one go. As with other scripts make sure you have the source files downloaded. Then paste into gedit, and save as a script.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment