Saturday, February 28, 2004

NetMRG Error msg ->

/usr/bin/netmrg_cron.sh: line 31: 10809 Segmentation fault $netmrg >$output 2>$error

Found resolution at the NetMRG BB.
Old line: Code: sprintf(temp, "%s", input);

Replace with this:
Code: snprintf(temp, 1023, "%s", input);
Cannot find the file since it was installed from RPM package. Found the file in src directory of untarred netmrg-0.13, but that file already had the correct line.
Posted a note to this effect on the NetMRG BB.

Mailman Manager in /usr/libexec/webmin/mailman (56 kB) under category Servers

vsftpd in /usr/libexec/webmin/vsftpd (112 kB) under category Servers installed on "mhkhan" for pre-install Aparajita testing.



** Installing OpenWebMail **

Checking to see if dependencies are installed.

CGI.pm-2.74 -> Version 3 already installed by default on FC1
MIME-Base64-2.20 -> Version 2.29 already installed
libnet-1.0901 -> Already installed by default
Text-Iconv-1.2 -> Installed successfully


Moved Directory structure to /var/www/cgi-bin/openwebmail and /var/www/html/openwebmail
Modifying

1) /var/www/cgi-bin/openwebmail/openwebail.conf.default
2) /var/www/cgi-bin/openwebmail/openwebail.conf

and new version seems to have a new file called /var/www/cgi-bin/openwebmail/dbm.conf.default
to edit the Database settings, unlike the previous version and unlike what is written in the HOWTO



**** Transfer the following to host "mhkhan" Blog

Installing Qmail - Toaster on host "mhkhan" for testing and final upgrading of production server aparajita.

1) Ran wget http://www.askdavis.com/qmailtoaster/toasterscripts-current.tgz
to get current scripts.

2) Type: sh checkdeps.sh

** Installed but has problems, will work on it later on ****
Preparing the dependencies to install and configure "Net-MRG" monitoring software on Aparajita after succussful testing on host "mhkhan".

a) "mysql-devel-3.23.58-4.i386.rpm" package -> Reports "Already Installed"
b) "net-snmp-devel-5.0.9-2.i386.rpm" package -> Reports "Already Installed"

Manually configured and compiled rrd-tool, but installs in /usr/local/rrdtool folder. De-Installed rrd-tool and re-installed again from RPM.

Installed "rrdtool-devel-1.0.46-1.fr.i386.rpm"
Installed "php-rrdtool-1.0.46-1.fr.i386.rpm"

Going back to manual compile of NetMRG. "./configured and "make" did fine" but installed from RPM file -> Package netmrg was installed successfully

Following installation procedure from NetMRG Website

1) mysqladmin create netmrg

Had to go to the root "/monitoring/mrtg/netmrg-0.13" directory and execute the following command since the location of the file from the rpminstall needs to be searched. Searched and found that file -> "/usr/share/netmrg/db/netmrg.mysql". Using the file supplied by the RPM installation.

2) mysql -u root -p netmrg < netmrg.mysql

from /usr/share/netmrg/db directory

3) mysql -u root -p

4) grant all on netmrg.* to netmrguser@localhost identified by 'netmrgpass';
Result: Query OK, 0 rows affected (0.00 sec)

changed the default pass to "abhi79"

The first is to alias /netmrg to the installed web directory ( /var/www/netmrg/webfiles).
in /etc/httpd/conf/httpd.conf file -> Alias /netmrg "/var/www/netmrg/webfiles"

Edited "/etc/netmrg.xml" file and changed password from default.

Executed the following commands as per the installation instructions.

useradd netmrg <- was not required as the RPM package automatically added the user
chown netmrg:netmrg /var/log/netmrg <- was not required as the RPM package automatically did this
chown netmrg:netmrg /var/lib/netmrg/rrd <- was not required as the RPM package automatically did this

Edit the master crontab -> edit /etc/crontab and add a line similar to this:

*/5 * * * * netmrg /usr/bin/netmrg_cron.sh

Successful install, going to restart SMNPD and see what the results are! Current time 9:15 PM


Check out "wordtrans" translater program on aparajita and enable the dictionaries

Saturday, February 21, 2004

Started Testing out WebMIN Modules again on system "mhkhan" so that the useful ones can be installed on Aparajita.


Backup in /usr/libexec/webmin/backup (108 kB) under category System

Failed to install module from /home/soft/public_html/webmin/add-on_modules/system/require_deps/du.wbm.gz : Module du requires Perl module GD.
Installed.
Failed to install module from /home/soft/public_html/webmin/add-on_modules/system/require_deps/du.wbm.gz : Module du requires Perl module Filesys::Df.

Disk Usage in /usr/libexec/webmin/du (44 kB) under category Information

KOHA works fine with name based virtual hosting on mhkhan.
Going to find a mySQL GUI and work on setting up MRTG.

Friday, February 20, 2004

Started working on Aparajita at 4:PM on a Friday

Going to install "Koha Library Software" on MHKhan and document the modules and dependancies, test it on the system and do a clean install afterwards on Aparajita.


The following modules have been successfully deleted from your Webmin installation :

Fetchmail Mail Retrieval in /usr/libexec/webmin/fetchmail (260 kB)

LDAP Users and Groups in /usr/libexec/webmin/ldap-useradmin (196 kB)

NFS Exports in /usr/libexec/webmin/exports (752 kB)

NIS Client and Server in /usr/libexec/webmin/nis (648 kB)

OpenSLP Server in /usr/libexec/webmin/openslp (196 kB)

Postfix Configuration in /usr/libexec/webmin/postfix (3560 kB)

Thursday, February 19, 2004

February 19th, 2003:10:55AM

Updated "mhkhan.net and farjana.net " to presidency.edu.bd to see if the name servers become registered.


Wednesday, February 18, 2004

* Installed WebMIN 1.130 on Aparajita.presidency.edu.bd
* Deleted following modules:

- ADSL Client Control
- Linux Firewall from "Networking" Linux Firewall in /usr/libexec/webmin/firewall (256 kB)

* Installed the following modules:

1) system/backup_1.01.wbm - Backup System in /usr/libexec/webmin/backup (72 kB) under category System
2)

dir-etc-backup.tar.gz
Restore /export/sysback/2004/feb/dir-etc-backup.tar.gz --> /tmp done!

Restored:

/etc/dhcpd.conf
renamed aliases to aliases.orig
/etc/aliases -> ran newaliases


dir-root-backup.tar.gz
Restore /export/sysback/2004/feb/dir-root-backup.tar.gz --> /tmp done!

Copied /etc/squid.conf and edited files to change hostnames and directory paths.
had to change permissions of /squid from root/root to squid/squid
Initialized cache directory


9:24AM
Backup /etc --> /export/sysback/2004/feb/fresh-system-backup/dir-etc.tar.gz done!

Restoring BIND/named config files and restoring root direrctory

replacing /etc/group and /etc/group- and /etc/passwd /etc/passwd- /etc/shadow /etc/shadow- /etc/gshadow and /etc/gshadow-

copying pico binary / changed permission from 777 to 755

replaced /etc/hosts


Restore /export/sysback/2004/feb/dir-var-named-backup.tar.gz --> /tmp done!



Updating /var/named/presidency.edu.bd zone file

updating /var/named/chroot/var/named.presidencyuniversity.org.zone file which was last updated on 23/01/2004:10:05 AM . Reducing TTL to match ns1.mydomain.com TTL value


Restore /export/sysback/2004/feb/dir-squirrelmail-production.tar.gz --> /tmp done!

Was having problems with ./conf.pl with squirrelmail, finally found out that it was a color problem in the terminal so that I could not see the actual configuration!!!


The following modules have been successfully deleted from your Webmin installation :

Jabber IM Server in /usr/libexec/webmin/jabber (368 kB)

MON Service Monitor in /usr/libexec/webmin/mon (440 kB)

Majordomo List Manager in /usr/libexec/webmin/majordomo (496 kB)

Security Sentries in /usr/libexec/webmin/sentry (260 kB)

The following modules have been successfully deleted from your Webmin installation :

CVS Server in /usr/libexec/webmin/pserver (292 kB)

IPsec VPN Configuration in /usr/libexec/webmin/ipsec (220 kB)

PPP Dialin Server in /usr/libexec/webmin/pap (336 kB)

PPP Dialup Client in /usr/libexec/webmin/ppp-client (104 kB)

PPTP VPN Client in /usr/libexec/webmin/pptp-client (124 kB)

PPTP VPN Server in /usr/libexec/webmin/pptp-server (216 kB)

ProFTPD Server in /usr/libexec/webmin/proftpd (664 kB)

WU-FTP Server in /usr/libexec/webmin/wuftpd (860 kB)
The following modules have been successfully deleted from your Webmin installation :

Linux Bootup Configuration in /usr/libexec/webmin/lilo (220 kB)

Printer Administration in /usr/libexec/webmin/lpadmin (780 kB)



Restore /export/sysback/2004/feb/dir-var-www-html-backup.tar.gz --> /tmp done!


Restore /export/sysback/2004/feb/dir-var-www-cgi-bin-openwebmail-backup.tar.gz --> /tmp done!


Monday, February 16, 2004

** Deleting Operating System on Aparajita.presidencyuniversity.org **

Saved backups of /etc /root /usr/share/squirrelmail
/var and /export are mounted seperately, therefore no backups are required!!