Datenschutz
Home/IT/Solaris/Interactive Installation/Software  

Solaris on VMware: Interactive Installation  

← Zurück|Weiter →  

This is a little instruction on how to turn a Solaris 2.6 x86 computer into a usefull workstation by compiling a set of Open Source software.

  • GNU tool chain
  • Midnight Commander
  • Postscript, LaTeX, Xpdf, NEdit
  • The Gimp, ImageMagick, Gnuplot
  • Mozilla
  • SSH
  • Apache
  • VNC

To follow this guide you must download a large collection of software from the Internet. Try to get exactly the same version of each package or you will fail at some point. It has been tested in the listed combination only. Don't even think about sending me an email about how to compile a different version of the Gimp or your favorite application which is not on the list. The following three files give you everything you need besides the software itself. It is 1) a list of software I recommend to save in the same arrangement onto a CD-Rom image, 2) a set of files and 3) a set of patches. The instruction below refers to these files stored on a CD-Rom which is to be mounted on /cdrom/cdrom0 within the Solaris 2.6 guest.

  • solaris26_softwareList of Sunsite packages, original Open Source software distributions, files and patches. Software is to be collected from internet and stored onto a CD Rom image. For files and patches see below.
  • solaris26_files.tarLittle collection of start/stop scripts and header files. Origin of the header files is unknown. I found it somewhere in the Internet but I can't remeber the location.
  • solaris26_patches.tarLittle collection of patches need for successfull compilation of some software packages. Origin mostly unknown. Some provided by myself, some stolen from newsgroups or found with Google's help.

The installation sequence is split into the following steps:

  • Installation of the base packages from Sunsite
  • Compilation of a temporary GCC chain into /usr/local/tmp
  • Uninstall of the Sunsite packages
  • Compilation of the final build environment into /usr/local
  • Removal of the tempoary GCC
  • Compilation of GNU base packages
  • Compilation of applications

Base Packages (Sunsite)

#!/bin/sh

PATH=/usr/local/tmp/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/ccs/bin:/usr/openwin/bin; export PATH
LD_LIBRARY_PATH=/usr/local/tmp/lib:/usr/local/lib:/usr/local/lib/X11:/usr/lib:/usr/dt/lib ; export LD_LIBRARY_PATH

mkdir -p /export/home/work

cp /cdrom/cdrom0/sunsite/gzip-1.2.4-sol26-intel-local /export/home/work/
cp /cdrom/cdrom0/sunsite/make-3.76.1-sol26-intel-local.gz /export/home/work/
cp /cdrom/cdrom0/sunsite/gcc-2.8.1-sol26-intel-local.gz /export/home/work/

cd /export/home/work

pkgadd -d gzip-1.2.4-sol26-intel-local FSFgzip
gunzip make-3.76.1-sol26-intel-local.gz
gunzip gcc-2.8.1-sol26-intel-local.gz
pkgadd -d gcc-2.8.1-sol26-intel-local FSFgcc
pkgadd -d make-3.76.1-sol26-intel-local GNUmake
rm *local

Temporary GCC

zcat /cdrom/cdrom0/source/tar-1.15.1.tar.gz | tar xf -
cd tar-1.15.1/
./configure --prefix=/usr/local/tmp && make && make install
cd ..
rm -rf tar-1.15.1/
hash -r

zcat /cdrom/cdrom0/source/make-3.81.tar.gz | tar xf -
cd  make-3.81/
./configure --prefix=/usr/local/tmp && make && make install
cd ..
rm -rf make-3.81/
pkgrm -n GNUmake
hash -r

zcat /cdrom/cdrom0/source/texinfo-4.8.tar.gz | tar xf -
cd texinfo-4.8/
./configure --prefix=/usr/local/tmp && make && make install
cd ..
rm -rf texinfo-4.8/

zcat /cdrom/cdrom0/source/perl-5.8.8.tar.gz | tar xf -
cd perl-5.8.8/
./Configure -Dcc=gcc -Dprefix=/usr/local/tmp -d -e && make && make test
make install
cd ..
rm -rf perl-5.8.8/

zcat /cdrom/cdrom0/source/binutils-2.16.1.tar.gz | tar xf -
cd binutils-2.16.1/
./configure --prefix=/usr/local/tmp && make && make install
cd ..
rm -rf binutils-2.16.1/

zcat /cdrom/cdrom0/source/gcc-4.1.0.tar.gz | tar xf -
cd gcc-4.1.0/
CONFIG_SHELL=/bin/ksh; export CONFIG_SHELL
./configure --prefix=/usr/local/tmp --enable-languages=c --with-gnu-as --with-ld=/usr/ccs/bin/ld --with-as=/usr/local/tmp/bin/as
make
make install
cd ..
unset CONFIG_SHELL
pkgrm -n FSFgcc
hash -r

Final Build Environment

#!/bin/sh
zcat /cdrom/cdrom0/source/gmp-4.2.tar.gz | tar xf -
cd gmp-4.2/
./configure && make && make install
cd ..
rm -rf gmp-4.2/

zcat /cdrom/cdrom0/source/mpfr-2.2.0.tar.gz | tar xf -
cd mpfr-2.2.0/
./configure && make && make install
cd ..
rm -rf mpfr-2.2.0/

cd gcc-4.1.0/
CONFIG_SHELL=/bin/ksh; export CONFIG_SHELL
make distclean
./configure --enable-languages=c,c++,fortran --with-gnu-as --with-gnu-ld --with-as=/usr/local/tmp/bin/as --with-ld=/usr/local/tmp/bin/ld 
make
make install
cd ..
rm -rf gcc-4.1.0/
unset CONFIG_SHELL
hash -r
ln -s gcc /usr/local/bin/cc

PATH=/usr/local/bin:/usr/local/tmp/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/ccs/bin:/usr/openwin/bin; export PATH
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/tmp/lib:/usr/local/lib/X11:/usr/lib:/usr/dt/lib ; export LD_LIBRARY_PATH

cat /cdrom/cdrom0/source/gzip-1.2.4a.tar | tar xf -
cd gzip-1.2.4a/
./configure && make
pkgrm -n FSFgzip
make install
cd ..
rm -rf gzip-1.2.4a/

zcat /cdrom/cdrom0/source/tar-1.15.1.tar.gz | tar xf -
cd tar-1.15.1/
./configure && make && make install
cd ..
rm -rf tar-1.15.1/
hash -r

zcat /cdrom/cdrom0/source/make-3.81.tar.gz | tar xf -
cd  make-3.81/
./configure && make && make install
cd ..
rm -rf make-3.81/
hash -r

zcat /cdrom/cdrom0/source/texinfo-4.8.tar.gz | tar xf -
cd texinfo-4.8/
./configure && make && make install
cd ..
rm -rf texinfo-4.8/

zcat /cdrom/cdrom0/source/perl-5.8.8.tar.gz | tar xf -
cd perl-5.8.8/
./Configure -Dcc=gcc -Dprefix=/usr/local -d -e && make && make test
make install
cd ..
rm -rf perl-5.8.8/

zcat /cdrom/cdrom0/source/binutils-2.16.1.tar.gz | tar xf -
cd binutils-2.16.1/
./configure && make && make install
cd ..
rm -rf binutils-2.16.1/
hash -r

rm -rf /usr/local/tmp/

GNU Base Packages

PATH=/usr/local/bin:/usr/local/teTeX/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/ccs/bin:/usr/openwin/bin; export PATH
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/X11:/usr/lib:/usr/dt/lib ; export LD_LIBRARY_PATH

echo 'PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/ccs/bin:/usr/openwin/bin; export PATH'                       >> /etc/profile
echo 'LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/X11:/usr/lib:/usr/dt/lib ; export LD_LIBRARY_PATH'                     >> /etc/profile
echo 'MANPATH=/usr/local/man:/usr/local/teTeX/man/:/usr/openwin/share/man:/usr/share/man:/usr/dt/share/man; export MANPATH' >> /etc/profile

zcat /cdrom/cdrom0/source/bash-3.0.16.tar.gz | tar xf -
cd bash-3.0.16/
./configure && make && make install
cd ..
rm -rf bash-3.0.16/

zcat /cdrom/cdrom0/source/m4-1.4.4.tar.gz | tar xf -
cd m4-1.4.4/
./configure && make && make install
cd ..
rm -rf m4-1.4.4/

zcat /cdrom/cdrom0/source/bison-2.1.tar.gz | tar xf -
cd bison-2.1/
./configure && make && make install
cd ..
rm -rf bison-2.1/

zcat /cdrom/cdrom0/source/libiconv-1.9.2.tar.gz | tar xf -
cd libiconv-1.9.2/
./configure && make && make install
cd ..
rm -rf libiconv-1.9.2/

zcat /cdrom/cdrom0/source/findutils-4.2.27.tar.gz | tar xf -
cd findutils-4.2.27/
./configure && make && make install
cd ..
rm -rf findutils-4.2.27/

zcat /cdrom/cdrom0/source/flex-2.5.4a.tar.gz | tar xf -
cd flex-2.5.4/
./configure && make && make install
cd ..
rm -rf flex-2.5.4/

zcat /cdrom/cdrom0/source/gawk-3.1.5.tar.gz | tar xf -
cd gawk-3.1.5/
./configure && make && make install
cd ..
rm -rf gawk-3.1.5/

zcat /cdrom/cdrom0/source/sed-4.1.4.tar.gz | tar xf -
cd sed-4.1.4/
bash configure && make && make install
cd ..
rm -rf sed-4.1.4/

zcat /cdrom/cdrom0/source/grep-2.5.1a.tar.gz | tar xf -
cd grep-2.5.1a/
./configure && make && make install
cd ..
rm -rf grep-2.5.1a/

zcat /cdrom/cdrom0/source/coreutils-5.94.tar.gz | tar xf -
cd coreutils-5.94/
./configure && make && make install
cd ..
rm -rf coreutils-5.94/

zcat /cdrom/cdrom0/source/less-382.tar.gz | tar xf -
cd less-382/
./configure && make && make install
cd ..
rm -rf less-382/

zcat /cdrom/cdrom0/source/wget-1.10.2.tar.gz | tar xf -
cd wget-1.10.2/
./configure && make && make install
cd ..
rm -rf wget-1.10.2/

zcat /cdrom/cdrom0/source/unzip552.tar.gz  | tar xf -
cd unzip-5.52/
cat unix/Makefile | sed 's/CC = cc/CC = gcc/' > Makefile 
make solaris
make install
cd ..
rm -rf unzip-5.52/

zcat /cdrom/cdrom0/source/zip231.tar.gz  | tar xf -
cd zip-2.31/
cat unix/Makefile | sed 's/CC = cc/CC = gcc/' | sed 's%CPP = /lib/cpp%CPP = gcc -E%' | sed 's%(INSTALL)%(INSTALL_PROGRAM)%' > Makefile 
cat unix/configure | sed 's%CPP="/usr/ccs/lib/cpp -P"%CPP="/usr/local/bin/gcc -E -P"%' > unix/configure_jexss
chmod 755 unix/configure_jexss
mv unix/configure_jexss unix/configure
make generic_gcc
make install
cd ..
rm -rf zip-2.31/

zcat /cdrom/cdrom0/source/zlib-1.2.3.tar.gz | tar xf -
cd zlib-1.2.3/
./configure && make && make install
cd ..
rm -rf zlib-1.2.3/

zcat /cdrom/cdrom0/source/bzip2-1.0.3.tar.gz | tar xf -
cd bzip2-1.0.3/
make
make install PREFIX=/usr/local
cd ..
rm -rf bzip2-1.0.3/

zcat /cdrom/cdrom0/source/patch-2.5.4.tar.gz | tar xf -
cd patch-2.5.4/
./configure && make && make install
cd ..
rm -rf patch-2.5.4/

zcat /cdrom/cdrom0/source/diffutils-2.8.1.tar.gz | tar xf -
cd diffutils-2.8.1/
./configure && make && make install
cd ..
rm -rf diffutils-2.8.1/

Applications: Base

zcat /cdrom/cdrom0/source/screen-4.0.2.tar.gz | tar xf -
cd screen-4.0.2/
./configure && make && make install
cp ./etc/etcscreenrc /usr/local/etc/screenrc
cd ..
rm -rf screen-4.0.2/

zcat /cdrom/cdrom0/source/gettext-0.14.5.tar.gz | tar xf -
cd gettext-0.14.5/
./configure && make && make install
cd ..
rm -rf gettext-0.14.5/

zcat /cdrom/cdrom0/source/pkg-config-0.20.tar.gz | tar xf -
cd pkg-config-0.20/
./configure && make && make install
cd ..
rm -rf pkg-config-0.20/

bzcat /cdrom/cdrom0/source/glib-2.4.8.tar.bz2 | tar xf -
cd glib-2.4.8/
./configure --with-libiconv=gnu && make && make install
cd ..
rm -rf glib-2.4.8/

zcat /cdrom/cdrom0/source/mc-4.6.1.tar.gz | tar xf -
cd mc-4.6.1/
./configure && make && make install
cd ..
rm -rf mc-4.6.1/

Applications: SSH

zcat /cdrom/cdrom0/source/openssl-0.9.7i.tar.gz | tar xf -
cd openssl-0.9.7i/
./config && make && make install
cd ..
rm -rf openssl-0.9.7i/

mkdir -p /var/spool/prngd
zcat /cdrom/cdrom0/source/prngd-0.9.29.tar.gz | tar xf -
cd prngd-0.9.29/
make CC=gcc CFLAGS="-O -DSOLARIS26 -D__EXTENSIONS__" SYSLIBS="-lsocket -lnsl"
cp prngd /usr/local/sbin/prngd
chown root:bin /usr/local/sbin/prngd
chmod 755 /usr/local/sbin/prngd
cp contrib/Solaris-7/prngd.conf.solaris-7 /etc/prngd.conf
cat /var/sadm/system/logs/install_log > /etc/prngd-seed
cp /cdrom/cdrom0/files/etc_init.d_prngd /etc/init.d/prngd
chmod 744 /etc/init.d/prngd
chown root /etc/init.d/prngd
chgrp sys /etc/init.d/prngd
ln -s ../init.d/prngd /etc/rc3.d/S92prngd 
/etc/init.d/prngd start
cd ..
rm -rf  prngd-0.9.29/

mkdir -p /var/empty
chown root:sys /var/empty
chmod 755 /var/empty
groupadd -g 122 sshd
useradd -g sshd -s /usr/bin/false -u 122 -c "SSH Privilege Separation" -d /var/empty sshd
zcat /cdrom/cdrom0/source/openssh-4.3p2.tar.gz | tar xf -
cd openssh-4.3p2/
./configure --sysconfdir=/etc/ssh --with-pam --without-rsh --disable-suid-ssh --with-prngd-socket=/var/spool/prngd/pool
make && make install
cp /cdrom/cdrom0/files/etc_init.d_sshd /etc/init.d/sshd
chmod 744 /etc/init.d/sshd
chown root /etc/init.d/sshd
chgrp sys /etc/init.d/sshd
ln -s ../init.d/sshd /etc/rc3.d/S93sshd
cd ..
rm -rf  openssh-4.3p2/

perl -pi -e 's/#Protocol 2,1/Protocol 2/' /etc/ssh/sshd_config
perl -pi -e 's/#X11Forwarding no/X11Forwarding yes/' /etc/ssh/sshd_config

/etc/init.d/sshd start

Applications: Text Processing

zcat /cdrom/cdrom0/source/nedit-5.5-src.tar.gz | tar xf -
cd nedit-5.5/
make solarisx86
cp source/nedit /usr/local/bin/nedit
cp doc/nedit.man /usr/local/man/man1/nedit.1
cd ..
rm -rf nedit-5.5/

cd /usr/openwin/lib/X11/fonts
tar xfz /cdrom/cdrom0/source/freefonts-0.10.tar.gz
tar xfz /cdrom/cdrom0/source/sharefonts-0.10.tar.gz
chown -R root:bin freefont
chown -R root:bin sharefont
cd /export/home/work

zcat /cdrom/cdrom0/source/ghostscript-8.50-gpl.tar.gz | tar xf -
cd ghostscript-8.50-gpl/
./configure && make && make install
cd ..
rm -rf ghostscript-8.50-gpl/

cd /usr/local/share/ghostscript
tar xfz /cdrom/cdrom0/source/gnu-gs-fonts-std-6.0.tar.gz
tar xfz /cdrom/cdrom0/source/gnu-gs-fonts-other-6.0.tar.gz 
chown -R root:bin fonts/
cd /export/home/work

cp /usr/openwin/lib/config/svr4.cf /usr/openwin/lib/config/svr4.cf.ORIG

perl -pi -e 's%/usr/ccs/bin/ar%/usr/local/bin/ar%'     /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/bin/as%/usr/local/bin/as%'     /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/lib/cpp%/usr/local/bin/cpp%'   /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/bin/ld%/usr/local/bin/ld%'     /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/bin/lex%/usr/local/bin/flex%'  /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/bin/make%/usr/local/bin/make%' /usr/openwin/lib/config/svr4.cf
perl -pi -e 's%/usr/ccs/bin/yacc%/usr/local/bin/yacc%' /usr/openwin/lib/config/svr4.cf

cd /usr/openwin/
zcat /cdrom/cdrom0/source/Xaw3d-1.5E.tar.gz | tar xf -
cd xc/lib/Xaw3d/
perl -pi -e 's/XCOMM EXTRA_INCLUDES = -I./EXTRA_INCLUDES = -I./' Imakefile

cp /cdrom/cdrom0/files/ExtAgent.h /usr/openwin/include/X11/Xmu/
mkdir X11; cd X11; ln -fs .. Xaw3d; cd ..
xmkmf
make includes
make depend
make
make install
ln -s ../../../xc/lib/Xaw3d/X11/X11/ /usr/openwin/share/include/X11/Xaw3d
cd /export/home/work

zcat /cdrom/cdrom0/source/gv-3.5.8.tar.gz | tar xf -
cd gv-3.5.8/
patch -p0 < /cdrom/cdrom0/patches/gv-3.5.8pJE.patch
xmkmf && make Makefiles && make && make install && make install.man
cd ..
rm -rf gv-3.5.8/

zcat /cdrom/cdrom0/source/freetype-2.1.10.tar.gz | tar xf -
cd freetype-2.1.10/
./configure && make && make install
cd ..
rm -rf freetype-2.1.10/
ln -s freetype2/freetype/ /usr/local/include/freetype

zcat /cdrom/cdrom0/source/t1lib-5.1.0.tar.gz | tar xf -
cd t1lib-5.1.0/
./configure && make without_doc && make install
cd ..
rm -rf t1lib-5.1.0/

zcat /cdrom/cdrom0/source/xpdf-3.01.tar.gz | tar xf -
cd xpdf-3.01/
patch -p1 < /cdrom/cdrom0/patches/xpdf-3.01pl2.patch
./configure && make && make install
cd ..
rm -rf xpdf-3.01/

mkdir -p /usr/local/share/texmf
zcat /cdrom/cdrom0/source/tetex-texmf-3.0.tar.gz | (cd /usr/local/share/texmf/ ; tar xfp -)
zcat /cdrom/cdrom0/source/tetex-src-3.0.tar.gz | tar xf -
cd tetex-src-3.0/
./configure --prefix=/usr/local --disable-multiplatform && make && make install
texconfig xdvi paper a4
texconfig dvips paper a4
cd ..
rm -rf tetex-src-3.0/

zcat /cdrom/cdrom0/source/gnuplot-4.0.0.tar.gz | tar xf -
cd gnuplot-4.0.0/
./configure && make && make install
cd ..
rm -rf gnuplot-4.0.0/

Applications: Gimp/ImageMagick

bzcat /cdrom/cdrom0/source/atk-1.8.0.tar.bz2 | tar xf -
cd atk-1.8.0/
./configure && make && make install
cd ..
rm -rf atk-1.8.0/

zcat /cdrom/cdrom0/source/libpng-1.2.8.tar.gz | tar xf -
cd libpng-1.2.8/
cp scripts/makefile.solaris Makefile
make && make install
cd ..
rm -rf libpng-1.2.8/

zcat /cdrom/cdrom0/source/tiff-3.8.2.tar.gz | tar xf -
cd tiff-3.8.2/
./configure && make && make install
cd ..
rm -rf tiff-3.8.2/

zcat /cdrom/cdrom0/source/jpegsrc.v6b.tar.gz | tar xf -
cd jpeg-6b/
./configure && make && make install && make install-lib
cd ..
rm -rf jpeg-6b/

zcat /cdrom/cdrom0/source/render-0.8.tar.gz | tar xf -
cd render-0.8/
./configure && make && make install
cd ..
rm -rf render-0.8/

zcat /cdrom/cdrom0/source/libXrender-0.8.4.tar.gz | tar xf -
cd libXrender-0.8.4/
./configure && make && make install
cd ..
rm -rf libXrender-0.8.4/

zcat /cdrom/cdrom0/source/expat-2.0.0.tar.gz | tar xf -
cd expat-2.0.0/
./configure && make && make install
cd ..
rm -rf expat-2.0.0/

zcat /cdrom/cdrom0/source/XML-Parser-2.31.tar.gz | tar xf -
cd XML-Parser-2.31/
perl Makefile.PL
make && make install
cd ..
rm -rf XML-Parser-2.31/

zcat /cdrom/cdrom0/source/fontconfig-2.2.96.tar.gz | tar xf -
cd fontconfig-2.2.96/
./configure --with-default-fonts=/usr/openwin/lib/X11/fonts && make && make install
cd ..
rm -rf fontconfig-2.2.96/

zcat /cdrom/cdrom0/source/libXft-2.1.7.tar.gz | tar xf -
cd libXft-2.1.7/
./configure && make && make install
cd ..
rm -rf libXft-2.1.7/

bzcat /cdrom/cdrom0/source/pango-1.4.1.tar.bz2 | tar xf -
cd pango-1.4.1/
./configure && make && make install
cd ..
rm -rf pango-1.4.1/

bzcat /cdrom/cdrom0/source/gtk+-2.4.8.tar.bz2 | tar xf -
cd gtk+-2.4.8/
./configure && make && make install
cd ..
rm -rf gtk+-2.4.8/

zcat /cdrom/cdrom0/source/libart_lgpl-2.3.17.tar.gz | tar xf -
cd libart_lgpl-2.3.17/
./configure && make && make install
cd ..
rm -rf libart_lgpl-2.3.17/

zcat /cdrom/cdrom0/source/libwmf-0.2.8.4.tar.gz | tar xf -
cd libwmf-0.2.8.4/
./configure && make && make install
cd ..
rm -rf libwmf-0.2.8.4/

zcat /cdrom/cdrom0/source/libxml2-2.6.23.tar.gz | tar xf -
cd libxml2-2.6.23/
./configure && make && make install
cd ..
rm -rf libxml2-2.6.23/

zcat /cdrom/cdrom0/source/popt-1.6.4.tar.gz | tar xf -
cd popt-1.6.4/
./configure && make && make install
cd ..
rm -rf popt-1.6.4/

zcat /cdrom/cdrom0/source/librsvg-2.8.1.tar.gz | tar xf -
cd librsvg-2.8.1/
./configure && make && make install
cd ..
rm -rf librsvg-2.8.1/

zcat /cdrom/cdrom0/source/libgtkhtml-2.11.0.tar.gz | tar xf -
cd libgtkhtml-2.11.0/
./configure --disable-accessibility && make && make install
cd ..
rm -rf libgtkhtml-2.11.0/

zcat /cdrom/cdrom0/source/gimp-print-4.2.7.tar.gz  | tar xf -
cd gimp-print-4.2.7/
./configure && make && make install
cd ..
rm -rf gimp-print-4.2.7/

bzcat /cdrom/cdrom0/source/gimp-2.2.8.tar.bz2 | tar xf -
cd gimp-2.2.8/
patch -p0 < /cdrom/cdrom0/patches/gimp-2.2.8_JE.patch
./configure --disable-mmx && make && make install
cd ..
rm -rf gimp-2.2.8/

zcat /cdrom/cdrom0/source/gimp-help-2-0.8.tar.gz | tar xf -
cd gimp-help-2-0.8/
./configure && make && make install
cd ..
rm -rf gimp-help-2-0.8/

zcat /cdrom/cdrom0/source/ImageMagick-6.2.7-1.tar.gz | tar xf -
cd ImageMagick-6.2.7/
./configure && make && make install
cd ..
rm -rf ImageMagick-6.2.7/

Applications: VNC/Mozilla

zcat /cdrom/cdrom0/source/tightvnc-1.2.9_unixsrc.tar.gz | tar xf -
cd vnc_unixsrc/
perl -pi -e 's%/usr/bin/perl%/usr/local/bin/perl%' vncserver
perl -pi -e 's%#define HasGcc2 YES%*/ \n#ifndef HasGcc2\n#define HasGcc2 YES\n#endif\n/*%' Xvnc/config/cf/site.def

xmkmf
make World
cd Xvnc
./configure
make
cd ..
./vncinstall /usr/local/bin /usr/local/man
cd ../
rm -rf vnc_unixsrc/

zcat /cdrom/cdrom0/source/glib-1.2.8.tar.gz | tar xf -
cd glib-1.2.8/
./configure && make && make install
cd ..
rm -rf glib-1.2.8/

zcat /cdrom/cdrom0/source/gtk+-1.2.10.tar.gz | tar xf -
cd gtk+-1.2.10/
./configure && make && make install
cd ..
rm -rf gtk+-1.2.10/

zcat /cdrom/cdrom0/source/libIDL-0.6.8.tar.gz | tar xf -
cd libIDL-0.6.8/
./configure && make && make install
cd ..
rm -rf libIDL-0.6.8/

bzcat /cdrom/cdrom0/source/mozilla-1.7.13-source.tar.bz2 | tar xf -
cd mozilla/
patch -p0 < /cdrom/cdrom0/patches/mozilla-1.7.13-JE.patch
./configure --enable-crypto --enable-extensions=all --enable-xft --disable-freetype2 --disable-tests --disable-debug --enable-optimize
make && make install
cd ..
rm -rf mozilla/

Applications: Apache

zcat /cdrom/cdrom0/source/httpd-2.0.55.tar.gz | tar xf -
cd httpd-2.0.55/
./configure --enable-so --enable-ssl --mandir=/usr/local/share/man --infodir=/usr/local/share/info
make && make install
cd ..
rm -rf httpd-2.0.55/

groupadd -g 300 www
useradd -g 300 -u 300 -s /usr/bin/false -d /export/home/www -m -k /var/empty/ www

perl -pi -e 's/^User nobody/User www/' /usr/local/apache2/conf/httpd.conf
perl -pi -e 's/^Group #-1/Group www/' /usr/local/apache2/conf/httpd.conf
perl -pi -e 's%^<Directory "/usr/local/apache2/htdocs">%<Directory "/export/home/www/htdocs">%' /usr/local/apache2/conf/httpd.conf
perl -pi -e 's%^DocumentRoot "/usr/local/apache2/htdocs"%DocumentRoot "/export/home/www/htdocs"%' /usr/local/apache2/conf/httpd.conf

perl -pi -e 's%^DocumentRoot "/usr/local/apache2/htdocs"%DocumentRoot "/export/home/www/htdocs"%' /usr/local/apache2/conf/ssl.conf

mv /usr/local/apache2/htdocs/ /export/home/www/


cat > /tmp/SSL << MARK

RANDFILE                = /etc/prngd-seed

[ req ]
default_bits            = 1024
default_keyfile         = privkey.pem
distinguished_name      = req_distinguished_name
prompt                  = no

[ req_distinguished_name ]
countryName                     = DE
stateOrProvinceName             = Germany
localityName                    = Karlsruhe
organizationName                = private
organizationalUnitName          = private
commonName                      = bob
emailAddress                    = root@bob.localdomain


MARK

mkdir -p /usr/local/apache2/conf/ssl.crt/
mkdir -p /usr/local/apache2/conf/ssl.key/
cd /usr/local/apache2/conf/
/usr/local/ssl/bin/openssl req -new -x509 -nodes -out ssl.crt/server.crt -keyout ssl.key/server.key -days 356 -config /tmp/SSL
rm /tmp/SSL
cd /export/home/work

cp /cdrom/cdrom0/files/etc_init.d_apache /etc/init.d/apache
chmod 744 /etc/init.d/apache
chown root /etc/init.d/apache
chgrp sys /etc/init.d/apache
ln -s ../init.d/apache /etc/rc3.d/S94apache

/etc/init.d/apache start
  Weiter →