The Free Speech – Fixing a corrupt RPM database

The Free Speech – Fixing a corrupt RPM database: “Fixing a corrupt RPM database
Thursday, October 09 2003 @ 01:33 PM EST
Contributed by: himanshu I often find that installing certain rpms corrupt the whole rpm database. Usually, a
rpm –rebuilddb
command fixes it, but sometimes, even this doesn’t work. The way to fix this is
rm -f /var/lib/rpm/__db*
rpm -vv –rebuilddb”

windoze-like nightmares with rpm upgrade of glibc on RH9 : LinuxQuestions.org time based Linux archive

windoze-like nightmares with rpm upgrade of glibc on RH9 : LinuxQuestions.org time based Linux archive: “VladStar[QUOTE][i]Originally posted by gill1109 [/i]
[B]I’d like to put on record what was the cause of this bug. It came about through inadvertently trying to upgrade an i686 rpm with an older version of glibc to an i386 rpm with a newer version. It turns out that this is ‘not done’.

[/B][/QUOTE]

Thank you for detailed explanations, they helped a lot ! Here is the solution, that I have applied yesterday and restored my system:

1) insert CD RedHat 9.0 disk 1 into CDROM
2) boot computer from CD
3) type ‘linux rescue’ in the installation prompt
4) answer few questions about language and network settings, then press ‘Continue’ when asked about old system mounting to /mnt/sysimage
5) when you get shell prompt, type ‘mount’ to check if CD is mounted to /mnt/source and old system is mounted to /mnt/sysimage
6) type ‘rpm -ivh –force –root /mnt/sysimage /mnt/source/RedHat/RPMS/glibc-2.3.2-11.9.i686.rpm /mnt/source/RedHat/RPMS/glibc-common-2.3.2-11.9.i386.rpm’ to reinstall original glibc
7) type ‘chroot /mnt/sysimage’ to che”

To change from a console to a graphical login, you should change the number in the line id:3:initdefault: from a 3 to a 5

Problems After Installation: “# Default runlevel. The runlevels used by RHS are:
# 0 – halt (Do NOT set initdefault to this)
# 1 – Single user mode
# 2 – Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 – Full multiuser mode
# 4 – unused
# 5 – X11
# 6 – reboot (Do NOT set initdefault to this)
#
id:3:initdefault:”

linux stuff

apache
default entry for virtual host is needed
namevirtualhost *:443 to solve the bind error

Edit:
/var/qmail/supervise/smtp/run

Add the following:

CODE
QMAILQUEUE=”/var/qmail/bin/qmail-scanner-queue.pl”
export QMAILQUEUE

** Increase the softlimit by modifying the exec line like this:

CODE
exec /usr/local/bin/softlimit -m 15000000 \

STEP 3. Setup Clam Virus Definition Auto-Updater:

CODE
touch /var/log/clam-update.log
chmod 600 /var/log/clam-update.log
chown clamav /var/log/clam-update.log
freshclam -d -c 2 -l /var/log/clam-update.log

CODE
crontab -e

Add this line:

CODE

0 8 * * * /usr/local/bin/freshclam –quiet -l /var/log/clam-update.log

Spamassassin and clamav

We recently switched our mail servers to the fantastic QMail Toaster package. It works on most common Linux distributions that make use of the RedHat package manager. Now I have some addons ready for it. If you use QMail Toaster and would like to reduce Spam and Viruses, try my addon-packages from the toaster addon dir. Do not ask for binary packages, I think there is something in Dan Bernsteins license disallowing that.

Installation is pretty easy. Install all current QMail Toaster packages (howto available here) and then do the following:

rpmbuild –rebuild /usr/src/redhat/SRPMS/clamav-0.60-4.src.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/clamav-db-0.60-4.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/clamav-0.60-4.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/clamd-0.60-4.i386.rpm
rpmbuild –rebuild /usr/src/redhat/SRPMS/spamassassin-2.55-1.src.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/perl-Mail-SpamAssassin-2.55-1.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/spamassassin-2.55-1.i386.rpm
rpmbuild –rebuild –with rht90 /usr/src/redhat/SRPMS/qmail-scanner-toaster-1.03-1.0.2.src.rpm
(where rht90 should be replaced with your system
rpm -ivh /usr/src/redhat/RPMS/i386/qmail-scanner-toaster-1.03-1.0.2.i386.rpm

Now what is left to do?
Go to /var/qmail/bin and edit qmail-scanner-queue.pl ! You will find some settings at the top like you domain name and a list of you mail domains. We have defined some sample values there, so you should easily find out, which things have to be changed.

Additionaly you might want to check /etc/mail/spamassassin/local.cf ! There you can define you default setting for SpamAssassin and configure stuff like database backend for user settings or the required hit points, etc.

If any questions come up, feel free to contact me or send mail to the Qmail-Toaster user list where I am also reading and writing.

redhat 9 basic virtual hosting experiment

I. Install Red Hat 9
Step 1: Download the ISO Images and burn them onto CD if you don’t already have them available to you. You will only need the first 3 CDs. (The Binary CDs, with i386 in their names) You can download the CDs from: http://www.redhat.com/download/products.html

Step 2: Install Redhat 9

a. Boot from the RedHat 9 Disk 1 CD
b. Click next through the first 3 screens, and choose that you want to perform a Custom Install
c. Choose Automatically Partition on your HD. Then make sure that it will partition to your liking. The defaults should be great!
d. Continue on and when you get to Network Configuration, make sure you set your Static IP in here as well as your Hostname.
e. On Firewall Configuration, choose ‘No firewall’ We will configure one later.

You don’t HAVE to follow the next step. What I like is to go through and ONLY install the things I know I will need. After I do this, I then usually use icewm for my GUI, as it is REALLY small and fast and clean. Again, this is your install and you can do what you would like, but below is what I install. The install below will take 1.1 GB of HD space. Regardless of what you install below the checkdeps.sh script should find and install all needed dependencies for qmailtoaster.

Just make sure you install the Development tools. This will have the GCC Compiler and other needed things to compile the toaster.

f. When you get to the Package Group Selection, Do the following:

1. Uncheck Gnome
2. Click Details next to X Window System
Uncheck the Following: authconfig-gtk, desktop-backgrounds-extra, firstboot, openssh-askpass, openssh-askpass-gnome, all redhat-configs, rhn-applet, up2date-gnome, usermode-gtk, and xisdnload.
3. Click Details on ‘Graphical Internet’
Uncheck the Following: evolution, gaim, pan, and xchat
4. Click Details on ‘Text-based Internet’
Uncheck the Following: fetchmail, mutt, and sim
Check the following: lynx, and pine
5. Uncheck Office / Productivity
6. Uncheck Sound and Video
7. Uncheck Graphics
8. Check Development Tools
Click Details on ‘Development Tools’
Uncheck the following: cvs, diffstat, doxygen, gcc-g77, gcc-gnat, indent, ltrace, memprof, patchutils, rcs, and splint
9. Uncheck Printing Support

Check Select individual packages at the bottom and click next
Click Flatview, and select the following Packages:

expect
fontconfig-devel
freetype-devel
gd
gd-devel
glib-devel
gnome-desktop
gtk+-devel
httpd
httpd-devel
httpd-manual
imlib
libjpeg-devel
libpng-devel
libungif
mod_perl
mod_python
mod_ssl
mrtg
mysql
mysql-devel
mysql-server
perl-DBD-MySQL
perl-DBI
perl-Digest-SHA1
perl-suidperl
perl-Time-HiRes
php
php-imap
php-ldap
php-mysql
startup-notification
tcl
XFree86-devel

Say yes if there are other dependencies it says you need to install. Then you should be all set!

Step 3: Reboot and log in!

Step 4: If you want icewm for your GUI, then visit: http://www.icewm.org and download the latest RPMs. If you followed above, all your dependencies should be installed for it.

II. Install Shorewall
III. Install Qmailtoaster through Yum Script
IV. Install Webmin with Virtualmin
V. Eat a lot co z you will be dead if you dont.

Can you beat this PC?

Processor INTEL PENTIUM 4 3.0GHZ / 800MHZ / 512KB / HT 23,698.00
Extra CPU Fan NONE
Mainboard DFI PRO875 LAN PARTY 800MHZ / DUAL DDR400 / 8X / RAID 1.5 / SATA / UV SENSITIVE 12,888.00
Sound Card CREATIVE SB AUDIGY 2 6.1 7,348.00
Video Card SAPPHIRE ATI RADEON 9800 ATLANTIS PRO 256MB DDR-2 8X TV DVI 29,998.00
Memory SAMSUNG PC2100 256MB DDR NEW ARRIVAL! 4,598.00
Casing THERMALTAKE / XASER III 7,988.00
PSU HEC 475W POWER SUPPLY 4,588.00
Keyboard LOGITECH CORDLESS MX DUO KEYBOARD – BEST BUY !! 4,648.00
Mouse LOGITECH MOUSE CORDLESS PRESENTER 9,498.00
Harddrive MAXTOR 250GB 7200 RPM ATA133 25,888.00
CD ROM SONY 52X CD-ROM DRIVE BLACK 1,098.00
DVD ROM PIONEER DVD 16X / 40X 2,448.00
CDRW HP DVD200i DVD WRITER 25,498.00
Floppy Drive SONY 1.44MB FLOPPY DRIVE BLACK 478.00
Monitor AOC 19 INCHES LM900 LCD MONITOR 39,998.00
Modem U.S. ROBOTICS 56KB USB FAX MODEM 4,688.00
Speakers ALTEC LANSING 5100 5.1 7,898.00
LAN Card 3COM PCI LAN CARD 10/100 1,648.00
AVR APC-USA BACK UPS 650VA 5,748.00
Printer HP COLOR LASERJET 1500 62,888.00
Scanner CANON 5000F COLOR IMAGE SCANNER 12,698.00

PC Quote #2337 Total Price 296,228.00

Well my YM. Priceless.

Untitled

please enveloped me

with a leaf of your significance

floating it my head

shining in my isolation

share with me the shadow of you understanding

so i can follow

so i can sleep

i want to hold you

and atlas will envy

No longer will I feel the cold whisper

No longer will I dream of the blue tears

please enveloped me

and i will follow

plese let me in

and i will elevate from this shallow