Depending on the speed of your network connection (determining how long it takes to download Vrui and its required packages) and the speed of your computer, this entire process should only take a few minutes.
$ sudo apt-get update $ sudo apt-get install build-essentialEnter additional information, such as your password, when prompted by the terminal.
Afterwards, install the following required packages from a terminal:
$ sudo apt-get install zlib1g-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-devThe equivalent commands on Fedora Linux are:
$ suto temporarily become the administrator user (enter the root password when prompted), followed by:
$ yum install zlib-devel mesa-libGL-devel mesa-libGLU-develMesa is a free implementation of the OpenGL 3D graphics library, but it does not offer very high performance on Nvidia or ATI/AMD graphics cards. For that purpose, you need to install the vendor-supplied OpenGL drivers, either from the repositories of your Linux distribution, or directly from the vendor. That part is beyond the scope of this guide; search the support forums of your Linux distribution for detailed guides.
$ sudo apt-get install libusb-1.0-0-dev libpng12-dev libjpeg62-dev libtiff4-dev libasound2-dev $ sudo apt-get install libdc1394-22-dev libspeex-dev libogg-dev libtheora-dev libbluetooth-dev libopenal-devThe equivalent commands on Fedora Linux are, again as administrator:
$ yum install libusb1-devel libpng-devel libjpeg-devel libtiff-devel alsa-lib-devel libv4l-devel $ yum install libdc1394-devel speex-devel libogg-devel libtheora-devel bluez-libs-devel openal-soft-develThese libraries add the ability to, in order, talk to USB devices such as Microsoft Kinect cameras, load and save images in a variety of formats, record and play back stereo sound, capture video from webcams or high-end Firewire cameras, send compressed audio or video over the Internet, connect to Bluetooth devices such as Nintendo Wii controllers, and create spatial 3D sound effects.
That said, there is an even easier way to download and unpack Vrui, if you're not afraid of the command line. Simply open a terminal, and enter the following commands:
$ cd ~ $ mkdir src $ cd src $ wget http://idav.ucdavis.edu/~okreylos/ResDev/Vrui/Vrui-Current.tar.gz $ tar xfz Vrui-Current.tar.gz
$ cd ~/src $ ls Vrui-<release>-<build> $ cd Vrui-<release>-<build>Replace Vrui-<release>-<build> with the actual name of the Vrui base directory as printed by ls, e.g., Vrui-2.6-001.
Then build Vrui by running
$ makein the already-open terminal window. This will take a few minutes, depending on the speed of your computer. The build system will display its progress in the terminal; if everything worked well, the last line will say "Creating pkg-config meta data file..."
To install Vrui in your home directory, simply run
$ make installin the same terminal window as before. This will create a new directory "Vrui-<release>" (e.g., "Vrui-2.6") in your home directory, and install inside it all files required to build and run Vrui applications. To check the installation, run
$ ls -1 ~/Vrui-<release>/bin AlignTrackingMarkers DeviceTest MeasureEnvironment PrintInputDeviceDataFile ScreenCalibrator VRDeviceDaemon XBackground
$ cd ExamplePrograms $ makein the same terminal window as before. This will be a relatively quick process, and create several executable programs in a new "bin" directory inside the "ExamplePrograms" directory. To start the least boring one, run
$ ./bin/ShowEarthModelin the same terminal window. If Vrui was built successfully, this will open a window, and show a spinning globe on a black background. Press the left mouse button to rotate the globe, the "z" key to move the globe inside the window, roll the scroll wheel to zoom in or out, or press the right mouse button to open the program's main menu. When you're done, select "Vrui System" -> "Quit Program" from the main menu, or simply close the window.
Congratulations, Vrui is now installed and working!