Last modified 4 years ago Last modified on 2013-08-09 06:13:45

Installation of Kobra

This is based on Ubuntu 12.04 32-bit. We hoped to run 64-bit, but there are issues with calibration of the Phantom Desktop haptic device with the manufactureres 64 bit drivers.

Notes:

  • If you boot the Ubuntu live cd and you just get a blinking cursor in the corner: boot the cd and hit F6 and select "nomodeset" (then ESC and install)
  • If when you have installed Ubuntu you get modern art all over the screen, it is probably because Ubuntu thought the open source nvidia drivers called Nouveau was a good idea for you. If you prefer a working os to modern art do: In grub, chose the so called "fail-safe" boot option. Then chose "start normal". This is weird, but normal here means normal fail-safe, so you will get into a sort of normal boot but with actual graphics. Now run all the software updates, reboot into the same normal failsafe mode, and now you can activate the proprietary Nvidia drivers in Systems Settings->Additional Drivers.

News: if you do not see proprietary drivers in additional drivers, this works:

sudo apt-get install nvidia-current
sudo -i

and paste following

echo 'Section "Screen"
        Identifier      "Default Screen"
        DefaultDepth    24
EndSection

Section "Module"
        Load    "glx"
EndSection

Section "Device"
        Identifier      "Default Device"
        Driver  "nvidia"
        Option  "NoLogo"        "True"
EndSection
' > /etc/X11/xorg.conf

Magic script to install Kobra. To be completed

#!/bin/bash
echo ""
echo "Welcome to Forsslund Systems magic install script"
echo "for Ubuntu 12.04 32 bit"
echo ""
echo "Make sure you have:"
echo "1. Installed Ubuntu 12.04 32 bit"
echo "2. Activated nvidia graphics drivers (System settings->Additional Drivers)"
echo "3. Have OpenHapticsAE_Linux_v3_0.zip in this folder"
echo ""
echo "THEN, press any key to continue or ctrl-c to abort"
read asdf
echo "Here we go..."

sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install subversion
svn co http://dev.forsslundsystems.se/svn/fs_forssim/forssim-0.3.0
svn co http://idealist.nu/svn/forssim/trunk/data/freshcase/wisdomlauncher
cd forssim-0.3.0/dep/
./ubuntudep-12.04.sh
mv ../../OpenHapticsAE_Linux_v3_0.zip .
./openhaptics32bit.sh
chmod +x h3d-trunk-checkout-works.sh
./install-from-trunk-works.sh -j5
cd ..
cd util/desktop
./setup_phantom_desktop_to_launch_at_startup.sh
cd ..
sudo cp xorg.conf /etc/X11/xorg.conf
cd pedal
./install-pedal.sh
cd ..
cd ..
cd build
cmake .
make -j5
sudo make install
sudo ldconfig
cd ..
cd ..
cd wisdomlauncher
qmake
make -j5
sudo ln -s /home/kobra/wisdomlauncher/wisdomlauncher.desktop /usr/share/applications/
ln -s /home/kobra/wisdomlauncher/wisdomlauncher.desktop /home/kobra/Desktop/
echo ""
echo "DONE! Reboot and double click on wisdomlauncher on your desktop."

For fluxbox:

sudo apt-get install fluxbox

In ubuntu, chose logout, then click on the icon by your login name and chose Fluxbox. It will remember your choice next time. Start a terminal (right-click!) and do

cp ~/wisdomlauncher/startup ~/.fluxbox/

Click one time on the power to initate reboot.

If you want to have fancy H3DViewer (for development). Add this to /etc/apt/sources.list

deb http://www.codelite.co.uk/wx2.9/ubuntu/ precise universe
apt-key adv --fetch-keys http://www.codelite.co.uk/CodeLite.asc
apt-get update
apt-get install libwxbase2.9-0-unofficial libwxbase2.9-dev libwxgtk2.9-0-unofficial libwxgtk2.9-dev wx2.9-headers wx-common libwxbase2.9-dbg libwxgtk2.9-dbg wx2.9-i18n wx2.9-examples wx2.9-doc