How can I change guest session defaults with a script?

Posted by Mauricio Andrés on Ask Ubuntu See other posts from Ask Ubuntu or by Mauricio Andrés
Published on 2012-06-19T20:03:29Z Indexed on 2012/06/19 21:24 UTC
Read the original article Hit count: 493

I need to create a script to change the guest session defaults because the computers I installed Ubuntu on have only 448mb RAM, which is not enough to have two sessions running simultaneously.

I want to write a script that will...

  • create the guest-session folder in /etc;

  • create the skel folder in /etc/guest-session/;

  • copy all the content (including subfolders and files) in /tmp/guest-xxxx/;

  • paste all that content into /etc/guest-session/skel/; and

  • change the default desktop to GNOME Classic instead of Unity 2D (this can be separate from the script if it's easier to do as a general setting),

...all within the guest-session.

This is for a project installing Ubuntu in cyber-cafes so it's critical to the project. I appreciate any help you can offer.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about gnome-classic