Linux Setup Old

From National Gallery Research Wiki
Jump to navigation Jump to search

Ubuntu 11.10

This page is currently set up for Ubuntu 11.10, Oneiric Ocelot Jpadfield 20:23, 6 November 2011 (UTC)

Need the following to install gnome:

  • sudo apt-get install gnome-session-fallback

With the upgrade to Ubuntu 11.10:

General:

sudo apt-get install bison flex automake1.10 make libfftw3-dev libxml2-dev libpango1.0-dev libfreetype6-dev g++ libatk1.0-dev intltool imagemagick libmagick++-dev indent gpp openexr libopenexr-dev libgtk-3-dev libgsl0-dev openssh-server python-dev liboil0.3-dev swig libimage-exiftool-perl libtiff-tools libtool samba smbfs libdatetime-perl subversion libmatio-dev openjdk-6-jdk libgoffice-0.8-dev pngtools gimp liborc-0.4-dev libcfitsio3-dev synaptic gobject-introspection

Plus the following on a 64-bit machine. sudo apt-get install ia32-libs

Gnome over remote SSH

It seems that the "owner" of the ".dbus" folder in a users home area can be set to "root" during the update process. This will mean that you will get a lot of errors when trying to use any graphical programs remotely over ssh. This problem can be fixed by running the following command in your home area:

sudo chown -R UserName:UserName .dbus/

Flash

The required flash plugin can be installed through firefox. When the user goes to a site that requires a flash plugin an install option is offered.

Adobe Flash Plugin: has been tried and seemed to work well.

Vmware Tools

If you have installed Ubuntu within a vmware virtual machine you will also need to run the following two lines to get the vmware tools to build properly.

sudo ln -s /lib/modules/YourInstalledKernel/build/include/generated/utsrelease.h
  /lib/modules/YourInstalledKernel/build/include/linux/utsrelease.h
sudo ln -s /lib/modules/YourInstalledKernel/build/include/generated/autoconf.h 
  /lib/modules/YourInstalledKernel/build/include/linux/autoconf.h

Vips

Download and build the latest source code from the Vips website.

Preparations

Ensure something simliar to the following is in your .basrc file:

export VIPSHOME=/usr/local/vips
export MANPATH=$MANPATH:$VIPSHOME/man
export PATH=$VIPSHOME/bin:"${PATH}"
export LD_LIBRARY_PATH=/usr/local/lib:$VIPSHOME/lib
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib32/pkgconfig:/usr/share/pkgconfig:$VIPSHOME/lib/pkgconfig:

  • sudo mkdir /usr/local/vips-X.XX
  • sudo ln -s /usr/local/vips-X.XX /usr/local/vips

cd into vips source code dir

  • ./configure --prefix=/usr/local/vips-X.XX
  • make
  • sudo make install

cd into nip2 source code dir

  • ./configure --prefix=/usr/local/vips-X.XX
  • make
  • sudo make install

Nvidia

To install the latest Nvidia drivers:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

LAMP:

Additional steps need to be defines for setting up the security issues.

sudo apt-get install apache2 php5 mysql-server libapache2-mod-auth-mysql php5-mysql php5-gd phpmyadmin libapache2-mod-fastcgi mysql-admin php5-cli php5-sybase php5-curl

phpMyAdmin

To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf.

Include /etc/phpmyadmin/apache.conf

And then restart apache:

sudo /etc/init.d/apache2 restart