VMware errors – FC6 and/or 2.6.19 Kernel

Posted on February 21st, 2007 by rob.
Categories: Fedora, Linux.

If you are using 2.6.19 kernel, then you will notice some errors with the vmware-config.pl script. If… actually, you better be using the 2.6.19 kernel now, or whatever the latest release is as of now

Error runninging vmware-config.pl :
/tmp/vmware-config2/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config2/vmnet-only/userif.c:629: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/tmp/vmware-config2/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config2/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config2/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6′
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmnet-only’
Unable to build the vmnet module.

It seems CHECKSUM_HW has been remove from 2.6.19 and replaced with CHECKSUM_PARTIAL. You can either replace any CHECKSUM_HW lines with CHECKSUM_PARTION, or you can use the patch that Robin Kearney (usefulthings.org.uk) has writtenHow to use the Patch:

FIX – As root:

  • cd /tmp
  • wget http://usefulthings.org.uk/wp-content/uploads/vmnet-only-2.6.19.patch
  • cd /usr/lib/vmware/modules/source/
  • cp vmnet.tar vmnet.tar.orig
  • tar xf vmnet.tar
  • patch -p0 < /tmp/vmnet-only-2.6.19.patch
  • tar cf vmnet.tar vmnet-only
  • vmware-config.pl (if OS is FC6, this will probably fail again)

Fedora Core 6 will most likely have another error we need to fix:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only’
make -C /lib/modules/2.6.19-1.2911.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686′
CC [M] /tmp/vmware-config1/vmnet-only/driver.o
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
CC [M] /tmp/vmware-config1/vmnet-only/netif.o
CC [M] /tmp/vmware-config1/vmnet-only/bridge.o
CC [M] /tmp/vmware-config1/vmnet-only/procfs.o
/tmp/vmware-config1/vmnet-only/procfs.c:33:26: error: linux/config.h: No such file or directory
make[2]: *** [/tmp/vmware-config1/vmnet-only/procfs.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686′
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only’
Unable to build the vmnet module.

FIX – as root:

  • cd /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/linux (or whatever kernel version you are using)
  • touch config.h
  • vmware-config.pl (should actually complete this time)

1 comment.

Secure FTP (ProFTPD with TLS)

Posted on September 1st, 2006 by rob.
Categories: Fedora, Linux.

I always wondered how hard it might be to get ftp running with encryption (preferably proFTPd since that has always been my choice ftp server).

I did realize how easy it was. Of course again this documentation really only refers to Fedora Core 5. I am sure you can take this info and put it towards any other linux os.

proFTPd+TLS extremely mini howto

  1. edit /etc/proftpd.conf
    ## Add the Following lines.. or uncomment them# TLS
    # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
    TLSEngine on
    TLSRequired on
    TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
    TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd-key.pem
    TLSCipherSuite \ ALL:!ADH:!DES
    TLSOptions NoCertRequest
    TLSVerifyClient off
    TLSLog /var/log/proftpd/tls.log
  2. Create the proftp.pem and proftpd-key.pem files
    ## Run this command as root
    openssl req -new -x509 -days 365 -nodes -out /etc/pki/tls/certs/proftpd.pem -keyout /etc/pki/tls/certs/proftpd-key.pem
  3. Start the proFTPd service
    ## Run the command as root
    service restart proftpd

Continue below if your FTP server is behind a firewall or is part of a NAT

  1. Allow passive ftp to work… need to specify what passive ports to use
    edit /etc/proftpd.conf
    ## Add the line below
    PassivePorts 60000 60500
  2. Add the Passive ports through your firewall
    edit /etc/sysconfig/iptables
    ## Add the line below (may need some changing to fit the format)
    -A RH-Firewall-1-INPUT -p tcp -m tcp –dport 60000:60050 -j ACCEPT

0 comments.

Remove unnecessary Services

Posted on August 29th, 2006 by rob.
Categories: Linux.

This page will describe most of the default services found in a default installation of FC5. If you have some services that are not listed, then most likely they were installed by you for a reason or just because you like to check boxes! Anyways, you may want to go through your list of services and uncheck any that you don’t use to deflate fedora a little bit.

Fedora Core 5 Services

0 comments.