How to install cview on a separate linux computer
...that is, on a linux box which is not the ebpg console.
Back to the list of ebpg administration tips
Cview, the Raith GPF pattern viewing utility, can be installed on a RHEL or Ubuntu box which is not the e-beam console. This allows e-beam users to view GPF files created by Beamer or Freebeam. We will copy cview from an EBPG console computer, then we will alco copy any library files that are missing.
-
On your linux box, log in as root, or type "su" to become root. On a Ubuntu system use "sudo su". Use the server's own monitor, so that XWindows graphics will appear. If you can't use the server's monitor, you can log in with
ssh -Y root@myserver.edu
where the "-Y" redirects graphics to the local machine. In this case you will need a local copy of Xwindows. One of the easiest ways to get Xwindows is to use Windows-11 to install "Windows subsystem for linux". Simply pop up a Windows command window and type "wsl --install". (Wow, that was easy!) After installing Windows subsystem for linux, pop up a command window and type "wsl" to start linux. Then proceed to using "ssh -Y root@server.edu" to log into your server. After you log in, test the graphics with a command like "emacs" or "xclock".
-
Make a new directory - I suggest /usr/local/bin/cviewdir
cd /usr/local/bin
mkdir civewdir
cd cviewdir -
Over on your EBPG console, find the location of cview:
which cview
-
Copy cview to your linux system. From the linux server, use a command like
cd /usr/local/bin/cviewdir
scp pg@ebpg.school.edu:/home/beams/v09_14h/install/cview/cview .Notice the dot '.' and the end of this command. That means "put it here".
-
Try running cview!
./cview
Of course it doesn't work, but the error message tells you which library (.so) file is missing.
-
We are going to grab this file (and others) from the EBPG. But first, on your server, we should start by telling the system where to find these library files.
cd /usr/local/bin/cviewdir
export LD_LIBRARY_PATH=/usr/local/bin/cviewdir:$LD_LIBRARY_PATHIf you are using RHEL or Centos, then put this line in /etc/bashrc. If you are using Ubuntu, put the "export" line in /etc/bash.bashrc
gedit /etc/bashrc
-
Try running cview again.
./cview
It still does not work, because there is a missing library file. Go to the EBPG to find it. We will use the "locate" command to do this. You do not need to type in the full file name. Suppose that the missing library is called blablabla.so.4.8.whatever
locate blablabla
It's probably in /usr/lib64. Copy it over with something like
scp pg@ebpg.school.edu:/usr/lib64/blablabla.so.* /usr/local/bin/cviewdir/
-
Try running cview again.
cd /usr/local/bin/cviewdir
./cviewOnce again there is a missing library file. Loop back to the previous step! Keep copying library files until cview works.
You might have to copy about a dozen library files. These may include...
libGL.so.* libGL.so.* libfreetype.so.* libXrender.so.* libfontconfig.so.* libQtXml.so.* libQtOpenGL.so.* libQtGui.so.* libQtCore.so.* libQtDBus.so.* libQtNetwork.so.* libpng12.so.* libSM.so.* libICE.so.* libGLX.so.* libGLdispatch.so.* libpng15.so.*
-
Make sure cview is in the command path:
export PATH=$PATH:/usr/local/bin/cviewdir
Put this line in /etc/bashrc, or in Ubuntu's /etc/bash.bashrc file, so that it will happen when you reboot.
When you log in as a normal user, the command "cview" should work.