r1118 - trunk

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Wed Apr 14 08:10:58 PDT 2010


Author: bdubbs
Date: 2010-04-14 09:10:57 -0600 (Wed, 14 Apr 2010)
New Revision: 1118

Modified:
   trunk/mgetty.txt
Log:
Update mgetty hint

Modified: trunk/mgetty.txt
===================================================================
--- trunk/mgetty.txt	2010-03-18 21:04:14 UTC (rev 1117)
+++ trunk/mgetty.txt	2010-04-14 15:10:57 UTC (rev 1118)
@@ -1,6 +1,6 @@
 AUTHOR:			Dr. Edgar Alwers  <edgaralwers at gmx.de>
 
-DATE:			2005-04-17
+DATE:			2010-04-12
 
 LICENSE:		GNU Free Documentation License  Version 1.2
 
@@ -15,100 +15,81 @@
 
 PREREQUISITES:
 
-Basic knowledge in compiling programs. Should run on all LFS versions. This update was tested with LFS 6.0 and BLFS 6.0-pre1. Needs libjpeg, libpng , libtiff and  libz installed. Sendmail is needed  for status messages ( i.g. fax sent successfully ), but  not for sending faxes.
+Basic knowledge in compiling programs. Should run on all LFS versions. This update was tested with LFS 6.5 and BLFS Version svn-20100411.
 
 HINT:
 
 Download:
 
-	mgetty1.1.33-Apr10.tar.gz
+	mgetty1.1.36-Jun15.tar.gz
 	ftp://alpha.greenie.net/pub/mgetty/source/1.1
 	
-	Netpbm (image manipulation/conversion graphics utilities ) netpbm-10.26.7.tgz
-	March 27, 2005, stable. 
+	Netpbm (image manipulation/conversion graphics utilities ) netpbm-10.35.74.tgz
+	March 24, 2010, super stable. 
 	http://sourceforge.net/projects/netpbm
 
-	ESPG Ghostscript  espgs-7.07.1-source.tar.bz2
-	http://prdownloads.sourceforge.net/espgs-7.07.1-source.tar.gz
+	GPL ghostscript-8.71.tar.gz
+	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs871/ghostscript-8.71.tar.gz
 
 
-Installing espgs:
+Installing GPL Ghostscript:
 
-( see also BLFS Book version 6.0-pre1 chapter 41, printing )
+( see also BLFS Book version svn-20100411 chapter 39, printing )
 
 Untar
-	tar xvjf espgs-7.07.1-source.tar.bz2
-and change to the espgs-7.07.1 directory
-	cd espgs-7.07.1
-Read the INSTALL file and run configure:
-	./configure --prefix=/usr --withouth-gimp-print --withouth-omni
+	tar xvjf ghostscript-8.71.tar.gz
+and change to the ghostscript-8.71 directory
+	cd ghostscript-8.71
+Run configure:
+	./configure --prefix=/usr --enable-dynamic
 Then run
 	make
-	make install.
-
+	make install docdir=/usr/share/doc/ghostscript-8.71
 You  may also need to download the ghostscript fonts. Get them from
-	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/
-and download "ghostscript-fonts-std-8.11.tar.gz" to the directory
-/usr/X11R6/lib/X11/fonts/ghostscript. espgs looks in /usr/share/ghostscript for the fonts. So you will need in /usr/share/ghostscript a link:
+	http://downloads.sourceforge.net/gs-fonts/
+Download "ghostscript-fonts-std-8.11.tar.gz" to the directory
+	/usr/X11R6/lib/X11/fonts/ghostscript. GPL looks in /usr/share/ghostscript for the fonts. So you will need in /usr/share/ghostscript a link:
 	ln -s /usr/X11R6/lib/X11/fonts/ghostscript/fonts fonts
 Untar
 	tar xvzf ghostscript-fonts-std-8.11tar.gz
 
-Installing netpbm:
+Installing netpbm's utility 
pbmtext
:
 
-Although faxspool will only need the text to pixel converter pbmtext, we need to
-compile and install netpbm. We do it in a shorter form, using static linked
-libraries
+Faxspool will only need the text of the pixel converter 
pbmtext
:
 
 Untar the file with
-	tar xvzf netpbm-10.26.7.tgz
-and change to the netpbm-10.26.7 directory
-	cd netpbm-10.26.7
+	tar xvzf netpbm-10.35.74.tgz
+and change to the netpbm-10.35.74 directory
+	cd netpbm-10.35.74
 
 run the configure file:
 	./configure
 and answer the questions as follows:
 	platform:					gnu
-	regular or merge build				merge
+	regular or merge build			regular
 	libnetpbm					static
-	headerfile that defines wint32_t  etc		/usr/include/inttypes.h
-	JPEG library					libjpeg.so
-	JPEG header directory				/usr/include
-	TIFF library					libtiff.so
-	TIFF header directory				/usr/include
-	PNG library					libpng.so
-	PNG header directory				/usr/include
-	Z library					libz.so
-	Z header directory				/usr/include
-	Svgalib header location				none
+	headerfile that defines wint32_t etc		</inttypes.h>  
+	JPEG library					none
+	TIFF library					none
+	Z library					none
+	X11 library					/lib/X11R6/lib/libX11.so
+	X11 interface headers				default
+	Svgalib library					libvga.so
+	Svgalib header directory			default
 	Documentation URL				http://netpbm.sourceforge.net/doc
 
-You may change the resulting Makefile.config, if necessary. Now run
-	make
-	make package pgkdir=/tmp/netpbm
-Run
-	./installnetpbm
-and answer the questions as follows:
-	package directory				/tmp/netpbm
-	install prefix					/usr/netpbm
-	program directory				/usr/netpbm/bin
-	static library directory			/usr/netpbm/lib
-	Data files					/usr/netpbm/lib
-	header directory				/usr/netpbm/include
-	man pages					/usr/netpbm/man
-	create /etc/manweb.conf	yes
-Accept the creation of the Symlink /usr/man/web -> /usr/netpbm/man/web
-	ln -s /usr/netpbm/man/web/netpbm.url /usr/man/web/netpbm.url
-You will need to include the new directory /usr/netpbm/bin in your path:
-(e.g. etc/profile )
-	export PATH=$PATH:/usr/netpbm/bin
+You may change the resulting Makefile.config, if necessary. Change to the directory 
generator
:
+	cd generator
+	make pbmtext
+and finally copy the executable to the bin directory:
+	cp pbmtext /usr/local/bin
 
 Installing mgetty:
 
 Untar
-	tar xvzf mgetty1.1.33-Apr10.tar.gz
-and change to the directory  mgetty-1.1.33:
-	cd mgetty-1.1.33
+	tar xvzf mgetty1.1.36-Jun15.tar.gz
+and change to the directory  mgetty-1.1.36:
+	cd mgetty-1.1.36
 Copy the file "policy.h-dist" to "policy.h":
 	cp policy.h.dist policy.h
 Edit the Makefile and change line 167 from
@@ -117,68 +98,73 @@
 	INSTALL=install -c -o root -g root
 Change line 176 to "prefix=/usr"
 edit the next lines according to your needs or accept the suggestions in the Makefile.
+
 mgetty needs a user "fax". So, if "fax" does not exist, create it with
 	useradd -D 
 Run make and make install.
 
 Change to the directory  /usr/etc/mgetty+sendfax:
 	cd /usr/etc/mgetty+sendfax
-and edit the file sendfax.config. Change the line 'which devices to use for
-outgoing faxes' from
-'fax-devices tty4c:tty4d' to
-'fax-devices ttyS0:ttyS2'
-and the line 'which fax number to transmit to the receiving station' from
-'fax-id 49 115 xxxxxxxx' into your own fax line number. Edit the dial-prefix
+and edit the file sendfax.config. Change the line 
which devices to use for
+outgoing faxes
 from
+
fax-devices tty4c:tty4d
 to
+
fax-devices ttyS0:ttyS2

+and the line 
which fax number to transmit to the receiving station
 from
+
fax-id 49 115 xxxxxxxx
 into your own fax line number. Edit the dial-prefix
 line  e.g. in
 	dial-prefix ATDT.
 
-Uncomment the line 'port ttyS0', if this is the port of your modem.
+Uncomment the line 
port ttyS0
, if this is the port of your modem.
 You might need also a modem initialisation string. I inserted
 	modem-init ATS7=255
 You might edit the file "faxheader" in the same directory.
 Finally, you should create and edit a file "fax.allow" or "fax.deny" in the same
 directory, to define access control for users other than root.
+
 Testing faxspool:
 
 You are now ready to run a first test with faxspool. With your prefered
-editor    ( vi ? ), create  a file 'test.txt' and then run ( as user )
+editor    ( vi ? ), create  a file 
test.txt
 and then run ( as user )
 
 	faxspool    123456 /your/directory/test.txt
-
 where "123456" stands for the telefon number of a fax receiver.
-You can have a look at the fax file in the converted g3 format with the fax
-viewer Kfax of the kde system. The fax image is stored in /var/spool/fax/outgoing
+You can have a look at the fax file in the converted g3 format with Okular
+ The fax image is stored in /var/spool/fax/outgoing
 
-Fax spooling from StarOffice:
+Fax spooling from StarOffice7:
 
-Open 'printer setup' in StarOffice's main frame, choose 'generic printer' from
-the printer drivers list and add it as a new printer. Rename it to 'fax printer'
-and connect it to the fax_queue=FAX, which is one of StarOffice's existing
-queues
+Open 
spadmin
 in StarOffice7's directory, choose 
new printer
 -> 
connect a fax device
 -> 
default driver
 and enter the command 
faxspool (PHONE) (TMP)
 in the corresponding window.
 
-You don't need to configure, as the fax command format is exactly the one needed
-by faxspool. Print a job to the fax printer, and a window will pop up,
-asking for the fax number. That's all.
+If you are using a recent version of gcc, e.g. 4.4.2, you may get an error 
...staroffice/program/libgcc_s.so.1: version 'GCC_4.2.0' not found ( required by /usr/lib/libstdc++.so.6 ) 
 when testing to send a fax. In this case, you should exchange the old libgcc_s.so.1 library in /home/user/staroffice7/program/ by the new one in  /usr/lib.
 
+Print a job to the fax printer, and a window will pop up, asking for the fax number. That's all.
+
 Sending Faxes:
 
 run -as root - "faxrunq"
 
-Literature:
+LITERATURE	:
 
 Gert Doering: mgetty+sendfax manual
 
+ACKNOWLEDGEMENTS:
+
+This hint is now much simpler thanks to advises given by Akira F. Urushibata,  "Prophet of the Way", long time contributor of 
Netpbm
. Also the executable of Netpbm is now much smaller.
+
 CHANGELOG:
 
 [2003-10-13]
 
 Changed hint to new format. Some minor adjustments. Changed versions of mgetty, netpbm and ESPG Ghostscript
-
 [2004-08-24]
 
 Changed versions of mgetty and ESPG Ghostscript. Programs placed under /usr and not under /usr/local. Changed download-URL's.Changed configuration commands.
-
 [2005-04-16]
 
 Changed versions of mgetty and netpbm. New LFS and BLFS books for kernel 2.6.8 architecture
-		
\ No newline at end of file
+[2007-01-20]
+
+Changed versions of mgetty and netpbm. New LFS and BLFS books for kernel 2.6.18 architecture. Changed procedures for the build of Netpbm.
+[2010-04-12]
+
+Changed versions of mgetty and netpbm. New LFS and BLFS books. Kernel 2.6.33.1. New ghostscript package. Runs under KDE-4.4.1
\ No newline at end of file




More information about the hints mailing list