Menu

Howto-Sardana-on-Debian8

Introduction

This is a recipe on how to install sardana with Tango8 on a Debian8-64b from scratch. It is an update of the instructions from [Howto-Sardana-on-Debian7]. Note that instructions are now greatly simplified since both taurus and sardana are part of the official Debian repositories:

The following instructions executed on a stock Debian8 (Jessie) machine will give you the following:

  • A Tango8 Database server
  • A full Taurus and Sardana installation

Instructions

Note that some lines are executed as root and some others as a regular user (here "sardana").

Install Debian

We start from a Debian 8.0. In our case we make a default installation with gnome desktop and with one user account (we call the user "sardana" and the machine "sardanademo") and a root account. We chose the 64bit architecture.

Install MySQL

root@sardanademo:~# apt-get update
root@sardanademo:~# apt-get install mysql-server

(Use passwd 'tango')

Install Sardana, Taurus, PyTango, TangoTest and Tango-DB

(Note: python-taurus, python-pytango, python-qt4, etc will be automatically installed as dependencies from python-sardana)

root@sardanademo:~# apt-get install python-sardana tango-test tango-db

(accept the proposed tangohost)
(use 'tango' as passwd for the db each time prompted)

(optional) Install the non-free java tools

(this package is not in Debian. We download it from ppa:tango-controls)

root@sardanademo:~# apt-get install liblog4j1.2-java
root@sardanademo:~# wget http://ppa.launchpad.net/tango-controls/core/ubuntu/pool/main/t/tango-nonfree/libtango-java_8.1.2-1ubuntu1ppa1~precise1_amd64.deb
root@sardanademo:~# dpkg -i libtango-java_8.1.2-1ubuntu1ppa1~precise1_amd64.deb

(test by running jive)

sardana@sardanademo:~$ jive

Test Tango & Taurus

sardana@sardanademo:~$ /etc/init.d/tango-db status
sardana@sardanademo:~$ /usr/lib/tango/TangoTest test
sardana@sardanademo:~$ tauruspanel

Test Sardana:

(Open 3 new terminals and run each of these commands in each)

sardana@sardanademo:~$ Pool demo1 --log-level=debug

(answer "Y" to question about create new instance)

sardana@sardanademo:~$ MacroServer demo1 --log-level=debug

(answer "Y" to question about create new instance)
(copy the pool name printed above and finish with an empty line)

sardana@sardanademo:~$ spock

(accept the suggested new profile)
(copy the door name from the list -e.g., Door_demo_1 - and enter)

(In spock console execute the sar_demo macro to populate your system with demo elements)

Door_demo1_1 [1]: sar_demo

(now you can play with macros... try ascan, lsm, wa, lsmeas, expconf,...)


Related

Wiki: Home
Wiki: Howto-Sardana-on-Debian7