OpenSolaris installer automation using Dogtail

We tried to think how to automate OpenSolaris installer and reduce manual work. After finding some tools what can help us with this task, we found project called Dogtail. Home page is located at page:

http://people.redhat.com/zcerza/dogtail/


Dogtail is framework written in Python and is intented for gtk applications automation. It uses Accessibility (a11y) technologies.

If you want to automate installer, you must login in livecd of OpenSolaris. You can download iso image from location:

http://opensolaris.org/os/downloads/

and after burn it on cd medium.

Because Dogtail uses Accessibility for communication with desktop is neccessary to enable it, in other case screnario for automation will not work. For enabling accessibility run command:

gconftool-2 --set --type bool /desktop/gnome/interface/accessibility true


after you must restart x-server. For restarting exist several ways how to do it, like:

  a) ctrl+alt+backspace,

  b) logout button,

  c) gdm-restart


After using points a) and b) is neccessary to login as ordinary user. But after use point c) the x-servers is restarted with no need to login as user. Of course you must execute gdm-restart command as root, on newest images is possible to do it by run command:

pfexec gdm-restart


My other recommendation is to enable autofs, because if you want automate the whole installation process including rebooting you can lost all data/screenshots creating by Dogtail. So you can enbale autofs by simple command:

svcadm enable autofs

and check if it run by command:
svcs -a | grep autofs


Now only run created scenario and all installation process is automated. The syntax of scenario and more technical details will be posted on this blog at the end of next week.

Here is  flash animations how it can work (swf format):


Recording of an automated installation

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today