2

I have an Ubuntu 12.04 LTS CloneZilla image in which I have to install TeamViewer 9. My first approach was to install TeamViewer on the OS and then save a copy of the image. After cloning this image on other machines TeamViewer has got duplicated ID. This is expected because it is a whole copy of the hard disk. To avoid this duplication of TeamViewer ID I am trying to install it on first system boot-up. For this I have written a bash script that does the job but I am unable to find a place to put the invocation of this bash script. Since my desktop manager is lightDM I tried to place that call in /etc/init/lightdm.conf but then Ubuntu never starts X server for some reason. What options below should I use to get this working?

  1. If I'm to continue with the above approach where should I put my TeamViewer installation script? IMO it should be on a Upstart script that runs before window manager (In my case it is OpenBox)
  2. Is this a good approach to install application on Ubuntu startup?
  3. If I can remove TeamViewer configuration just before creating the image, what specific files should I remove to allow TeamViewer to pick up new ID. I am very specific to TeamViewer 9 (NOT 8 or 7)? This can be the easiest way to do this so that I don't have to run installation script on Ubuntu startup level. I have already done this for TeamViewer 7 where I delete "wine" folder of current user's home just before cloning. That way when I restore the image on a new machine it picks up a new ID. TeamViewer 9 may have changed this behaviour and it does not work now.
Bunti
  • 243

1 Answers1

0

Ok, Answering my own question, I got it working by invoking the TeamViewer installation script as a post script script. Embedding the TeamViewer installation script call in rc.local did not install it correctly.

Bunti
  • 243