Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

11/23/2010

[linux] Split it out

Ever wondered how to transfer a huge file across network without having to worry about disconnection in the middle of the transfer?

How about splitting it into pieces and transfer it piece by piece, that way you won't worry about your connection getting cut off all of a sudden. Then after you have transferred all the pieces, just put it back all together again.

Here's an example

You have a large file about 100mb that needs to be transferred to the other side of the globe

let's split it into 15m each until the size is consumed, by default the prefix of the file is x followed by some letters

to make the file pieces more descriptive let's specify a prefix

we can have numeric suffixes too

to restore the file, we use cat for this job
simple and easy :)

11/12/2010

Running VMWare Workstation 7.1 on Ubuntu 10.10

Installing VMWare Workstation 7.1 on Ubuntu 10.10 works fine but when running it for the first time it will fail, tracing the logs you will see these lines

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.35-22-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/iommu.o
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:156: error: implicit declaration of function ‘iommu_map_range’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_VMCleanup’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:403: error: implicit declaration of function ‘iommu_unmap_range’
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/iommu.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'

I found a fix to this problem, thanks to chantra of Debuntu

First, download the patch
wget http://www.debuntu.org/sites/www.debuntu.org/files/vmware-7.1-ubuntu10.10-patch-v2.tar_.gz

Extract and run it as root
tar -xzvf vmware-7.1-ubuntu10.10-patch.tar.gz
cd vmware-7.1-ubuntu10.10-patch
sudo ./apply_patch.sh

Then run VMWare again, the modules should compile this time.