How to install and run Paraview on Linux
How to build Paraview on Linux
- Download the latest release from the Paraview website. The file is paraview-2.2.1-x86-linux.tar.gz
- Untar the file into some directory:
- Create a build directory:
- Run ccmake to configure the Makefiles:
- Here are the ccmake options that need to be set:
- Make the distribution:
% make
% make install
% tar zxvf paraview-2.2.1-x86-linux.tar.gz
% mkdir build
% cd build
% ccmake ../paraview-2.2.1
CMAKE_INSTALL_PREFIX | /projects/vis/tools/paraview-2.2.1 |
CMAKE_VERBOSE_MAKEFILE | ON |
MPI_INCLUDE_PATH | /usr/local/apps/mpich-1.2.5.2/include |
MPI_LIBRARY | /usr/local/apps/mpich-1.2.5.2/lib/libpmpich.a |
OPENGL_INCLUDE_DIR | /projects/vis/tools/mesa-6.4.1/include |
OPENGL_gl_LIBRARY | /projects/vis/tools/mesa-6.4.1/lib/libmGL.a |
OPENGL_glu_LIBRARY | /projects/vis/tools/mesa-6.4.1/lib/libmGLU.a |
OSMESA_INCLUDE_DIR | /projects/vis/tools/mesa-6.4.1/include |
OSMESA_LIBRARY | /projects/vis/tools/mesa-6.4.1/lib/libmOSMesa.a |
VTK_MPIRUN_EXE | /usr/local/apps/mpich-1.2.5.2/bin/mpirun |
VTK_OPENGL_HAS_OSMESA | ON |
VTK_USE_MPI | ON |
How to run Paraview on Linux
Stand-alone Client% ./paraviewClient to Server
% ./pvserver
% ./pvclient --server-host=machine.sdsc.eduClient to parallel Server
% mpirun -v -machinefile machines.txt -np 4 pvserver --use-offscreen-rendering(machines.txt contains a list of server machines)
% ./pvclient --server-host=machine.sdsc.edu
How to run the Paraview server on DataStar
Start pvserver on DataStar:% ssh dsdirect.sdsc.edu
% cd /usr/local/apps32/paraview-2.2.1/bin
% ./pvserver.sh
Start pvclient on another machine:
% ./pvclient --server-host=dsdirect.sdsc.edu --server-port=12345
How to load raw binary volume data into Paraview
- Select the File -> Open Data menu item.
- Select "Files of type: All Files (*.*)" and the raw volume.
- You will get a message: "Could not find an appropriate reader for file". Click OK.
- Select the "Raw (binary) Files Reader".
- In the "Parameters" tab, specify the following fields:
- Data type: byte, short, int, float, etc.
- Extent: [ 0 ][X-1][ 0 ][Y-1][ 0 ][Z-1]
- Press the [Accept] button
For example, if the volume resolution is 750 x 375 x 100, then set:
Extent: [ 0 ][749][ 0 ][374][ 0 ][ 99]
Client server model
It seems that Paraview can be run on the server and your computer can be a client if both has Paraview installed, regardless of the os.
http://visservices.sdsc.edu/threads/paraview/paraview.html
The best way to forward X applications to your local machine is by using your ssh server. This requires a small amount of setup with the ssh server. You must make sure the line: X11Forwarding yes is present in your sshd_config file. (/etc/ssh/sshd_config)
Once your ssh server has been configured, forwarding X applications is as simple as sshing in to the machine. The ssh server and client take care of all the forwarding details such as your environment varible and display number. There is a small catch: you must use the -X parameter to notify the client and server that you want X applications forwarded:
How to enable x-forwarding on server
Approach 1(Since I don't have admin rights I couldnt create the file) http://cosi.clarkson.edu/knowledge/faq/xforwarding.htmlThe best way to forward X applications to your local machine is by using your ssh server. This requires a small amount of setup with the ssh server. You must make sure the line: X11Forwarding yes is present in your sshd_config file. (/etc/ssh/sshd_config)
Once your ssh server has been configured, forwarding X applications is as simple as sshing in to the machine. The ssh server and client take care of all the forwarding details such as your environment varible and display number. There is a small catch: you must use the -X parameter to notify the client and server that you want X applications forwarded:
[evanchsa@somehost]$ ssh -X evanchsa@remotehost.clarkson.edu
Approach 2(worked): Using Xming and Putty (install Xming and putty)
Configure Putty as given below
Run Xming then start putty and log on to the server.
set path for paraview in server (centos)
Running Paraview after setting path is all there to do after the configuration. (http://visservices.sdsc.edu/threads/paraview/paraview.html)
export PATH=/home/umunipala/research/sem4/ParaView-4.0.1-Linux-64bit/bin:$PATH
Run Paraview
How to configure Putty (http://www.math.umn.edu/systems_guide/putty_xwin32.html)
Prerequisites
Configuring Putty
- Add Unix hostname
- Switch Protocol to SSH
- Type name of session in saved sessions
- Click 'Save'
- Expand the 'SSH' tab from the 'Category' list
- Choose 'X11' from 'SSH' list
- Check 'Enable X11 Forwarding'
- Choose 'Session' from 'Category' list
- Click 'Save'
Starting the X Server on Windows
Configuring Xming
Just run "All Programs > Xming Xming" and it should work if you've got PuTTY configured.Connecting
- Start Xming
- Start Putty
- Double click on the saved session you want
- Enter username and password as requested
- You should now be able to run X applications from the host
on your local desktop
William S. Bear
v1.1
Feb 27, 2006
Edited:
Aaron E. Fesperman
v1.2
July 30, 2012