The combination of find and wc is perfect for doing a quick verification of the integrity of the transfer. It doesn’t verify the content of the files; however, it is quick. Run this command in the root of the source and destination directories: find . | wc 9052 9052 256270 The first column of the […]
Quick And Dirty Directory Replication Verification
Rsync Over a Flakey Connection
By default, rsync will start the sync of a particular file over again if the connection is lost. Use the –inplace option if the sync is getting hung up on a large file: rsync -e ‘ssh -p sshport’ -av –inplace /source/ root@example.com:/dest/ Since the problem file is compressed, it does no good to use -avz, […]
Backing Up Windows XP With FreeNAS
We wrote about FreeNAS in this series of articles. A lot has happened with FreeNAS since then. The most important addition is user security for CIFS. We brought up an old PII 333 box to test performance, and it passed with flying colors doing a rather large backup over the network. Here is a screenshot […]
Finding Files Over a Certain Size
Try this: find . -type f -size +90M -exec ls -l -h {} \;
Backoffice 4.5 Patches/Upgrades
We put together a list of files needed to update Backoffice 4.5. This includes NT 4.0, Exchange 5.5, SQL Server 7.0, SMS 2.0, Site Server 3.0, SNA server 4.0, and Proxy Server 2.0. This is what is available from Microsoft as of July 5th, 2001. Get the files while you can. Note that these files […]
Recovery From Msgina.dll Errors With Windows 2000 Service Pack 3
There is a problem with Windows 2000 Service Pack 3 that affects some systems (including ours). Microsoft has documented this problem here. It turns out there is a dependency between two services that start at the same time. If you are unlucky enough to finish one before the other, you can’t log on and see […]
NT 4.0 MCSE Certification will not expire
For those of you out there who have an MCSE in NT 4.0, but haven’t been motivated to upgrade your certification, Microsoft has decided not to expire the certification. Instead, they will offer separate certifications for Win2k and XP. Check it out here.
MySQL installation and initial configuration
Uncompress the source: [src]# tar -xzf mysql-3.23.40.tar.gz Change to mysql source root, and add mysql group and user: [src]# cd my* [mysql-3.23.40]# groupadd mysql [mysql-3.23.40]# useradd -g mysql mysql Run configure, specifying installation directory as /usr/local/mysql: [mysql-3.23.40]# ./configure –prefix=/usr/local/mysql creating cache ./config.cache checking host system type… i586-pc-linux-gnu . . . Remember to check the platform […]
Backing up and restoring MySQL databases
To back up MySQL, log on as the root user and run: mysqldump –opt -u user -p dbname > {path}/backup.sql To restore the database run: mysql -u user -p dbname < {path}/backup.sql
Changing the root password on MySQL
Many distributions of Linux have an option to install MySQL. In this case, or even if you compile MySQL, the default password is blank. MySQL can also run on Windows boxes. When you install MySQL, make sure that you set the root password. You can do this: root@u-1:/home/u-1# mysql -u root mysql Reading table information […]
Using phpMyAdmin to Administer MySQL on Red Hat 8.0
One excellent MySQL administration tool is phpMyAdmin. The installation is straightforward, just extract and follow Documentation.txt. One gotcha is that it requires an Apache server with php support, and MySQL, of course. It is fairly easy to install Apache and MySQL, but getting everything installed in the right order to run a PHP web site […]
Using Perl With MySQL
To communicate with MySQL via Perl, use the DBI and DBD-MySQL modules. With Red Hat 8.0, just install perl-DBD-MySQL-2.1017-3 and perl-DBI-1.30-1 off of the CDs. Why would you want to do such a thing? Well, say you had a tab delimited text file: sam 33 red sarah 32 blue ed 23 black russell 13 yellow […]
Checking the Root Filesystem without Rebooting
I’m not making any guarantees about this or even recommending it, but this is a procedure you can use to fsck a Linux root filesystem in a situation where a reboot is impossible but you suspect filesystem corruption. Example: Remote web server suspected of having filesystem corruption. Can be taken out of service for maintenance […]
Power Management Console
We are creating a lab of 16 servers here at NetAdminTools.com to test various configurations in a simulated enterprise environment. One of the first problems we needed to solve was remote power management. If you are running a data center, you should seriously consider a commercial product like the APC MasterSwitch. We don’t have that […]
Serial Port Multiplexer
As we mentioned in the Remote Power Console article, we have a lab of 16 servers that we are using to test various configurations we will use in articles for NetAdminTools.com. We needed a way to access the consoles of the servers via a serial port, but we didn’t want to plunk down $500 or […]
Aliases & Functions in Bash
You might save some time and have a little fun by putting some aliases and functions in your .bashrc file. You can put functions or aliases in .bash_profile or .bashrc in your home directory. But by using .bashrc instead of .bash_profile, they’ll be read in not only when you log in, but whenever you start […]
Adding Swap Space on the Fly in Linux
Sometimes in the course of a system’s existence you find that the swap partition you set up at install-time just isn’t enough anymore. Maybe you’re upgrading your system to RedHat 7.1 from a version of RedHat that used less swap in relation to physical RAM. Perhaps you’re running Oracle. Or maybe you’re adding more memory […]
Linux Kernel 2.4.9 Released + some tips
You can get it from the mirrors here: kernel.org/mirrors or here: kernel.org. Check our our article on compiling the Linux kernel. One trick we’d like to remind you of from the article is to use “make oldconfig” to migrate your old .config file (usually in /usr/src/linux). You will be asked about just the options that […]
Aliases & Functions in Bash
You might save some time and have a little fun by putting some aliases and functions in your .bashrc file. You can put functions or aliases in .bash_profile or .bashrc in your home directory. But by using .bashrc instead of .bash_profile, they’ll be read in not only when you log in, but whenever you start […]
Kernel recompile
Before you do anything else, make sure you have a way to boot the OS. Make a bootdisk and test it. Get the source for the kernel and put it in /usr/src. cd /usr/src tar -xzf <kernel source file name> The kernel source lives in /usr/src/linux. Linux is usually a symbolic link to the source […]