MP101 Latest Server running with 2 network cards on Windows 2003

Recently try to upgrade the server and firmware on my MP101 and came across the following..

Now I run the server software on a windows 2003 server on a VIA 1.2ghz machine, now its the only windows machine that is on all the time but for some reason I couldnt get the firmware to upgrade to the latest version on the client MP101 machine, when I have done before. 

Yes yes I know the server software isnt supported on 2003 server but it did work last time, with 4 calls to support in India somewhere and various answers to why I couldnt upgrade I did realise that it was the 2003 server element of it so installed the latest server on my windows 2000 box and upgraded to the latest firmware 1.3.7 without any hassles.

Plus just for the record you dont have to upgrade to all the intermediate upgrades, I upgraded from 2.11 to 1.3.7 contrary to what Netgear’s support say !!!

My next problem was that on upgrading to the latest server software they have removed the control on the system tab to bind the NIC to the server software and I run two network cards and hence two networks on my server.  The MP101 couldnt find the server with the software it connected to the network ok and was pingable but just couldnt find the software server with the music on, rang Netgear support again and was told that it now finds the application server automatically itself, even if it has two network cards – well I would like to say it doesnt !!.

After much playing if you have the network that the MP101 is on showing in the network connections first ie on the left in the row of NIC’s you have on your machine it will work, although when the MP101 tries to connect on mine it shows two of the same server, but if I have the MP101’s network as the second NIC ie on the right in the network connections it wont find it at all unless I disable the other network card.

After slagging the Netgear support previously I do actually think the software has now been improved as it was pretty poor before although they are still lacking the server software to be installed as a service so you dont have to have the pc logged in if you are running a home network like I do.

Unable to connect to newer mysql database – Client Does Not Support Authentication Protocol Requested By Server, Consider Upgrading MySQL Client

Kept getting the message ‘Client Does Not Support Authentication Protocol Requested By Server, Consider Upgrading MySQL Client’ after upgrading the mysql server to a newer version than the client odbc driver and after much trawling found that you have to update the mysql user table to hold the password in the old format like so..

UPDATE mysql.user
SET password=OLD_PASSWORD(‘somepassword’)
WHERE user=’someuser’
AND host=’somehost’;

dont forget to update each host and then reload your privaleges, should then work.

🙂

GD Lib with Bugzilla

Trying to get libpng and libjpeg support ??  You will need to install the developer versions of the libraries, on Fedora the easiest way is to use up2date ie. up2date libjpeg-devel and up2date libpng-devel this will install it then the configure for the makefile of libgd will pick the libraries up and install support for them.

Also dont use the ./configure.pl do make and then make install dont use the make install straight away this then works for me on Fedora Core 3.

Apache2 and PHP5 and missing apxs file on Fedora Core 3

Ok next problem that I bumped into today while trying to install PHP5 on Apache2.  In the php instructions it tells you to use the –with-apxs2 and point that to the apxs file.  Now the standard install of Fedora 3 doesnt install this file for you, so you need to install the httpd-devel package.  This can be done easily using up2date with this command.

up2date httpd-devel

and this will install the apxs file which for should now sit in /usr/sbin

then to configure the php5 issue the command

./configure –with-apxs2=/usr/sbin/apxs –with-mysql

hope that helps

Checkpassword-0.90 Compilation Error on Fedora Core 3

Ok now next problem that I ran into in trying to get qmail running on the distrubution is that checkpassword-0.90 doesnt want to compile and looking on the web there is 1 arabic website explaining how to get around this which I cant understand but with again more pain I have finally cracked it.

In the source directory of checkpassword you will need to change the error.h file to include errno.h just after the line extern int errno like so…

extern int errno;

#include

then recompile and everything should work. 

IPTABLES doesn't work on initial boot

Now for a long long time I have been perplexed by why my firewall never works on my linux boxes on initial boot. 

When you run iptables –list is shows all the rules but never works until you run it again under the root account.  Now I finally got around to finding out why and its because the ipv4 forwarding is being reset somewhere down the boot chain.  Yep I found it, what you need to do is edit /etc/sysctl.conf and change the net.ipv4.ip_forward = 1 as this is set to 0 by default and switches off all forwarding used in any firewall script.

Now I did have the forwarding set in the script but the sysctl appears to run after all the startup processes.

Hope this helps as it certainly has been puzzling me for sometime.

FTP on Linux Freezes on command – ls

Something that I was suffering from when I tried to use ftp on linux, everytime I tried to do ‘ls’ to list the files FTP would freeze and not seem to do anything.

After quite a lot of pain, I noticed that a few of the important modules had not been loaded for the firewall – IPTABLES.  You must have the following modules loaded or built into your kernel for FTP to work through the firewall …

  • ip_conntrack
  • ip_conntrack_ftp
  • ip_nat_ftp

if you want to load them as modules then use modprobe.

Getting the Source Code for the Kernel of Linux Fedora 3 Distribution

Fedora no longer installs the source for its installations so if you need to rebuild the kernel you will need to get the source the easiest way is as follows:

  1. up2date –get-source kernel
  2. Install kernel-.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/) [NOTE: if this fails you should find the kernel src rpm from your up2date and download it manually and then use rpm -i ]
  3. Change directory to /usr/src/redhat/SPECS/, and issue the following command: rpmbuild -bp –target= kernel.spec (Where target is the desired target architecture.)
  4. On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
    In resulting tree, the configurations for the specific kernels shipped in Fedora Core 3 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel--i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building:
  5. cp ./.config
  6. Issue the following command:  make oldconfig if you want to use the oldconfig or make menuconfig if you want to put in new stuff

then read the readme.txt file which comes with Fedora for building but normally do the following

  1. make
  2. make modules_install install

this now updates grub (if your using it) automatically

Building the Linux-ATM software on Fedora Core 3 on a VIA C3 Processor

Recently I built the linux-atm software, which is an atm utility which allows me to use my pci ADSL card on linux.

The latest release is version 2.4.1 which I pulled down off of sourceforge, and I then tried to compile it.  This is what I fell fowl of..

1. The source has four compilation errors which are at lines with default: in the case statements these need ; after them, you can either edit the four bits of source code yourself or get a patched version of the code from here.

2. Then I kept getting the error ‘storage size of req is not know’ and ‘invalid application of sizeof to incomplete type atmif_soic’ which I realised that I had the paths to my kernel source incorrect.  Now I put in a symbolic link to the source so /usr/src/linux pointed to /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include [ which is where the source really was ].  So to correct this error I typed this before running the configure of linux-atm.

CFLAGS=-I/usr/src/linux ./configure

and that got me over that problem.

3.  Then I got the error ‘config.h:6:2 error including kernel header in userspace use the glibc headers instead’ in atmdev.h to get around this I changed the line config.h to autoconf.h

Then it all worked and everything was installed into /usr/local/bin and /usr/local/sbin.

Hope that has helped someone.  The linux-atm package has been around for sometime but I didnt think the documentation or notes about how to change the path to pick up your distributions source code was that clear.