Installing and Maintaining Slackware 11.0 ========================================= TODO: Installed from packages: ls -l /var/log/packages less /var/log/packges/package-name - will give you information of all the installed file in that package. Installed from third party slackware packages: openoffice.org-2.1.0-i586-1kjz.tgz 2007-03-02 ffmpeg-20061215-i486-1kjz.tgz - required by zoneminder 2007-03-02 These packages will also be in the /var/log/packages directory. Uninstalled packages: ls -l /var/log/removed_packages/ - will contain packages that were uninstalled by the user or when upgrading a package. Installed from source: I now put files in /var/log/install_from_scratch that indicate successfully installed software that was, for the most part, compiled from scratch. Below is a snapshot of that directory. autotoolset-0.11.4 graphviz-2.12 opera-9.10 umap-040428 bladeenc-0.94.2 help2man-1.36.4 pgadmin3-1.6.3 valgrind-3.2.3 cdrtools-2.01.01 icewm-1.2.30 postgresql-2.3.3 valkyrie-1.2.0 cgic205 jpilot-0.99.7 potrace-1.8 wxGTK-2.8.3 flash_player_9 lame-3.97 smake-1.2a41 xkeycaps-2.46 fontforge-20070312 lilypond-2.10.20 sox-13.0.0 yudit-2.8.1 freetype-2.3.3 mlterm-2.9.3 sylpheed-2.3.1 gcc-4.1.2 mma-1.2 timidity++-2.13.0 gettext-1.05 mp3c-0.31 ucm-0.3 Upgraded from patches: All available patches--for installed packages--are used to upgrade software packages. So far, no need to revert to older packages. Problems (Opportunities?): o "hdb=ide-scsi" doesn't seem to work with 2.6.x kernel FIX: use "hdb=scsi" for 2.6.x kernel How to load module ide-scsi on boot: initrd? Note: Mapping ide drives to scsi may not be necessary with 2.6 kernel. [2007-12-26] After installing a new DVD/CD burner I had no trouble accessing it. New version of cdrtool were downloaded, compiled, and installed. Cdrecord worked for burning on new drive. (See install notes on cdrtools, below.) o udev seems to not find cdrom. FIX: Don't use udev. o MySQL commits suicide. Is this really a problem? FIX: Ignore MySQL until I need some dumbass software that requires it. Postgresql is a much better db, anyway. Software setup: IceWM Install personal icons to /usr/local/share/icewm/icons/ : Install personal theme to /usr/local/share/icewm/themes updatedb /etc/updatedb.conf PRUNEFS="[existing list] ntfs vfat" PRUNEPATHS="[existing list] /usr/local/slack10 /usr/local/src" Sylpheed - go to source directory and check out README for locale. Add the following to ~/.bashrc: export G_FILENAME_ENCODING=@locale To use old sylpheed setup copy the following directories ~/.sylpheed-x.x ~/Mail directory Run sylpheed and go to Configuration | Common Preferences | Receive and change the Spool path to /home/username/Mail. OpenOffice - used third party slackware package. Apache - get server to work with public_html pages, shtml, etc. Edit /etc/apache/httpd.conf as follows: # Options Indexes has to be first for some reason. Options Indexes Options +Includes Options +ExecCGI DirectoryIndex index.html index.shtml AddHandler cgi-script .cgi AddType text/html .shtml AddHandler server-parsed .shtml Include /etc/apache/mod_php.conf Include /etc/apache/mod_ssl.conf cvs root: cvs -d /usr/local/data2/slack11cvs init chown root.users /usr/local/data2/slack11cvs/ user: cvs import -m "Imported sources" marc2sql marc2sql start cvs checkout marc2sql # will create the marc2sql directory and populate it Font setup: X11 fonts 1. install fonts 2. add to paths to fonts to /etc/X11/xorg.conf like example below: FontPath "/usr/X11R6/lib/fonts/mscorettf/" 3. mkfontscale fontdirectory 4. mkfontscale fontdirectory 5. restart X server Xft - for TrueType fonts 1. fix FreeType (see below) 2. create /etc/fonts/local.conf /usr/X11R6/lib/X11/fonts/mscorettf /usr/X11R6/lib/X11/fonts/TTF/sfd /usr/share/ghostscript/fonts /usr/X11R6/lib/X11/fonts/Braille /home/some_user/.fonts.conf 3. Install fonts in correspoding directories. 4. Execute fc-cache to finish setup. FreeType See information in /usr/doc/freetype-2.1.9/docs/TRUETYPE. (Check other places for this file). This will allow the use of TrueType fonts. Also see build from source, below. autofs AUTOFS IS SCREWED ON MY MACHINE. IT TOOK OVERNIGHT TO TRANFER DATA TO AN MP3 PLAYER THAT TRANSFERS IN MINUTES WITHOUT AUTOFS. AUTOFS IS HISTORY ON MY MACHINE. Old note: Slackware had no rc.autofs. There is, however, a package just for the configuration and rc.autofs file at http://www.linuxpackages.net/ called autofs-config-0.2-noarch-1wsa.tgz slackware 10.2. It seem to work fine on 11.0. rsync - command line for backups to a remote machine rsync -avuz --exclude '*~' --delete-after /directory/ /backup_dir This will require setting up ssh to connect without prompting for a password, which is necessary to automate the backup with a script run by crontab. ssh - set up to use rsync with crontab without a password 1. Client side: /usr/bin/ssh-keygen -t rsa1 /usr/bin/ssh-keygen -t dsa /usr/bin/ssh-keygen -t rsa will produce: ~/.ssh/identity.pub ~/.ssh/id_dsa.pub ~/.ssh/id_rsa.pub 2. Copy these to the ~/.ssh/ on the server machine. 3. Server side: cat identity.pub id_dsa.pub id_rsa.pub > authorized_keys rm *.pub Set permissions so that only the owner can read/write these files. 4. Restart the sshd on both machines. Now ssh should connect from the client to the host without prompting for a password. ---------------------------------------------------------------------- Software from Source ---------------------------------------------------------------------- smake-1.2a41 [2007-12-26] Desired by cdrtools. No configure. Just "make" or "make all" and "make install". smake installed in /opt/schily/bin/ and linked from /usr/local/bin/ cdrtools-2.01.01 [2007-12-26] NOTE: Need to uninstall slackware pkg cdrtools before installing from source. smake COPTX=-DTRY_EXT2_FS - to compile the source smake install Everything installed in /opt/schily/... Modified PATH in /etc/profile to include /opt/schily/bin DVD/CD RW found without changing boot to ID it as a SCSI. Worked as is as a burner. mma-1.2 [2007-06-13] Musical MIDI Accompaniment Asunder-0.1.0 [2007-06-01] *** REMOVED *** *** REMOVED [2007-06-01] *** Asunder is a graphical CD ripper and encoder. Requires libcddb Project may not be actively worked on anymore. Last dates were in 2005. REMOVED. DID NOT WORK PROPERLY. libcddb-1.3.0 [2007-06-01] *** REMOVED [2007-06-01] *** Libcddb is a C library to access data on a CDDB server. REMOVED BECAUSE IT WAS UNNECESSARY AFTER REMOVING ASUNDER. mp3c-0.31 [2007-05-29] Command line ripper front end with cddb. bladeenc-0.94.2 [2007-05-29] mp3 encoder source from: http://bladeenc.mp3.no/skeleton/sourcearchive.html lame-3.97 [2007-05-26] Create mp3 audio files. Needed to convert wav to mp3 it is used by sox, also. Recompile sox to use it. #!/bin/bash /usr/local/bin/lame track$1\.cdda\.wav -o $1_$2\.mp3 /bin/rm track$1\.cdda\.wav ./wav2mp3 01 Melanie=The_Nickel_Song to convert 'track01.cdda.wav' into '01_Melanie=The_Nickel_Song.mp3' sox-13.0.0 [2007-05-26] Sound eXchange : universal sound sample translator. First, uninstall Slackware sox package. compiled to include mp3 support--and added lame. grip [2007-05-26] Front-end for ripping CDs to mp3, ogg, etc. Required libgnomeui which required a bunch of dependencies from hell. Slackware doesn't support gnome anymore and it isn't worth trying to compile it. So, grip was not compiled; use kaudiocreator instead until I can find a substiture for it--any command line ripper would be OK not to have to use KDE stuff. I really hate the overhead. autotoolset-0.11.4 [2007-05-02] Documentation and development tool for using gnu build system. This is not all that good and doesn't seem to be updated but it has some information useful for getting started. timidity++-2.13.0 [2007-04-26] configure --enable-audio=alsa,vorbis,default --enable-gtk --enable-xaw \ --enable-ncurses --enable-alsaseq --with-x --with-elf Configuration without a midi instrument attached to the computer requires setup of midi on computer. This requires: o instrument patches, which can be found in various place on the web, o finding and configuring timidity cfg file/s. The timidity.cfg file, and others, can be put in /usr/local/share/timidity/. Patches can be put in subdirectory inst/. lspatch.pl - found in source directory scripts/ will list instrument configuration given a cfg file. lilypond-2.10.20 [2007-04-25] Installed using: lilypond-2.10.20-1.linux-x86.sh gcc-4.1.2 [2007-04-25] ../gcc-4.1.2/configure --with-arch=k6-2 \ --enable-languages=c,c++,objc, obj-c++ make CFLAGS='-O' LIBCFLAGS='-g -O2' \ LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap Changed /usr/local/bin/gcc to /usr/local/bin/gcc-4.1.2 to keep it from conflicting with another version in /usr/bin/, then changed gcc link in /usr/bin/ to point to new version. For kernel compiles and if there are any problem I'll have to change it back. xkeycaps-2.46 [2007-04-21] xmkmf ; make ; make install ; make install.man Problem: make quit at man page. I manually installed the pieces thus: sudo cp xkeycaps /usr/local/bin/ sudo cp xkeycaps.man /usr/local/share/man/man1/xkeycaps.1 sudo cp xkeycaps.1x-html /usr/local/share/doc/xkeycaps/xkeycaps.1.html Fix MANPATH. The xkeycaps.1x.html was flawed but I left it installed. pgadmin3-1.6.3 [2007-04-21] .configure make all make install wxGTK-2.8.3 [2007-04-21] - needed for pgAdmin III ./configure --with-gtk --enable-unicode \ --enable-mimetype=no # www.pgadmin.org/ recommended make make install cd contrib/ make make install ucm-0.3 [2007-04-21] xmkmf make make install make install.man fontforge-20070312 [2007-04-21] ./configure --with-freetype-src=/usr/local/src/freetype-2.3.3/ make cd umap # if you're doing umap, go to umap dir make # make umap make install # install umap cd ../ # go back to fontforge build dir make install # install fontforge make install_docs umap-040428 [2007-04-21] umap depends on fontforge libs being built first and it has to be in the fontforge build directory. tar xzvf umap # will extract into fontforge/ mv fontforge/umap fontforge-xxxxxxxx/ # move umap stuff to proper dir cd fontforge-xxxxxxxx # go to fontforge-xxxxxxxx build to see complete build potrace-1.8 [2007-04-21] ./configure make make check make install cgic-2.05 [2007-04-09] installed libcgic in /usr/local/lib/ installed cgic.h in /usr/local/include/ help2man-1.36.4 [2007-04-18] Dependency: Locale::gettext (perl) ./configure make make install gettext-1.05 [2007-04-18] Required by help2man Perl module Locale::gettext can be obtained from: http://search.cpan.org/~pvandry/gettext-1.05/gettext.pm perl Makefile.pl make make test make install graphviz-2.12 [2007-04-19] Used by doxygen. ./configure make make check make install yudit-2.8.1 [2007-04-14] ./configure make make install mlterm-2.9.3 [2007-04-14] ./configure --with-x --enable-fribidi --enable-ind \ --with-type-engines=xcore,xft Libind was not found. Will fix this later if it becomes necessary. postgresql-8.2.3 [2007-04-10] ./configure \ --enable-nls \ --with-perl \ --with-python \ --with-tcl \ --with-openssl \ --enable-thread-safety \ CFLAGS='-O2 -pipe' make make check make install 2. Post install: groupadd -g xx postgres # this is optional but can be useful adduser postgres /etc/ld.so.conf - add "/usr/local/pgsql/lib" ldconfig - to update shared libraries mkdir /usr/local/pgsql/data chown postgres[.postgres] /usr/local/pgsql/data chmod 0700 /usr/local/pgsql/data # this is very important su - postgres # Initialize the db using utf-8 encoding /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data \ --encoding=UTF8 --locale=en_US.utf8 3. Server side setup: Note: -i param to postmaster is deprecated. Change postgresql.conf listen_addresses and port, instead: /usr/local/pgsql/data/postgresql.conf listen_addresses = '*' port = 5432 /usr/local/pgsql/data/pg_hba.conf host all all 192.168.100.0/24 trust /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 & /usr/local/pgsql/bin/createdb test /usr/local/pgsql/bin/psql test 4. Post install, specific to Slackware: Create appropriate boot start up file (/etc/rc.d/rc.postgres) to start/stop the server. Modify rc.6 and rc.M to shutdown and start rc.postgres. Set paths additional paths for postgresql: ~/.bashrc export PATH=$PATH:/usr/local/pgsql/bin export MANPATH=$MANPATH:/usr/local/pgsql/man or add new script to /etc/profile.d for new MANPATH and PATH. This may be specific to Slackware. jpilot-0.99.7 [2007-04-10] ~/.jpilot/ contains old data from my palm pilot Using jpilot is temporary so I didn't spring for the newer, shareware version. My Palm Pilot died years ago. It only lasted two years. What a piece of %$^&$#! I no longer use any PDA's. Notepad and pencil or a voice recorder are cheaper and more reliable. freetype-2.3.3 [2007-04-09] updated libs edit include/freetype/config/ftoption.h and make the following happen: "#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER" ./configure --prefix=/usr make make install ZoneMinder-1.22.3 UNSUCCESSFUL DUE TO PERL DEPENDENCIES-FROM-HELL PROBLEMS. IT ALSO USES THE LAME-ASS MYSQL DB. Dependencies: libarch - I though this was a perl revision control thing but possibly not. It's "where to find architecture specific libraries". This may not be necessary. mysql - from slackware package ffmpeg - slackware package on www.linuxpackages.net Requires: faac - faad2 - lame-3.97 - *+ libogg - OK, distro slack package *+ libvorbis - OK, distro slack package sdl - Simple DirectMedia Layer http://www.libsdl.org/ xvidcore - video codec http://www.xvid.org/Downloads.43.0.html Perl stuff: *+ Date::Manip [2000-03-02] LWP::UserAgent - libwww-perl *+ URI [2000-03-02] *+ HTML::Parser [2000-03-02] *+ HTML::Tagset [2000-03-02] ** Compress::Zlib *+ Compress::Raw::Zlib [2000-03-02] *+ IO::Compress::Base IO::Uncompress::Gunzip - not found on cpan server IO::Compress::Gzip - huge failures --with-extralibs="-lmp3lame" - optional. Only if ffmpeg . . . see configure.out for more info. Configuration: ./configure --with-webdir=/opt/www/zm/html \ --with-cgidir=/opt/www/zm/cgi-bin ------------------------- End of ZoneMinder -------------------------- ----------------------------------------------------------------------