Friday, October 22, 2010

Firefox pdf viewer plugin (Solved)

The error:

LoadPlugin: failed to initialize shared library ../.mozilla/plugins/ [../.mozilla/plugins/ wrong ELF class: ELFCLASS32]


Make sure you have nspluginwrapper installed:

sudo apt-get install nspluginwrapper

Now find the file that came with Reader9 (I don't know the exact path off the top of my head, so do a search for it if you can't find it)

sudo nspluginwrapper -i path_to/

java alternative how to

Original source from here: Finally, Sun release 64 Bit Browser Plugin Support for JRE (almost)

To install JRE6 u12 as the default Java for the system, simply run the following two commands:

 sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_12/bin/java" 1
sudo update-alternatives --set java /opt/java/jre1.6.0_12/bin/java

Following the execution of both commands, there should be output along the lines of:
Using '/opt/java/jre1.6.0_12/bin/java' to provide 'java'

cdsdoc cannot open shared object file (Solved)

When running "cdsdoc &" i get this error:

$INST_DIR/tools/jre/bin/java: error while loading shared libraries: cannot open shared object file: No such file or directory


I changed the cdsdoc script from $CDS_ROOT/share/bin/cdsdoc the LD_ASSUME_KERNEL from 2.4.19 to 2.6.19

The test:
lnx#> cdsdoc -test

               CDSDoc 2.1 Installation verification

Check system - Linux ws4 #1 SMP 2010-10-07 19:06:53 +0200 x86_64 x86_64 x86_64 GNU/Linux
Checking installation directory... Done.
Checking user environment variables... Done.
Checking Netscape, make sure Netscape 4.51 (or higher) is in your PATH ...
Mozilla Firefox 3.5.4, Copyright (c) 1998 - 2009
Java version 1.6.0_21 used, It should be java 1.1 or newer version
Checking Directory Structure...
Directory Structure Check passed

Friday, October 1, 2010

How to test internal network speed? (solution?)

Hi, if you don't know about iperf - profi network speed testing then you can use this alternative.
I need to know what is the network speed between two computers and solved such way:

1. started sending data from /dev/zero with "pv /dev/zero | netcat -v -l -p 3333"

2. Then on the client started to receive the data:

lnx_client #> netcat -v ws2 3333 > /dev/null
where ws2 is the server that listen on 3333

3. Tested on server the connection between them:
lnx_srv #> watch "netstat -tn | grep -i 3333"

4. The speed can be read here: