-
2 Attachment(s)
Customize guest session: guest-session-prefs and guest-session-prefs-lightdm
Note: This tutorial is deprecated and replaced by CustomizeGuestSession.
Important note
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Up to Ubuntu 11.04 the guest session feature was provided by gdm-guest-session, an extension to the GNOME Display Manager (GDM) which was the default display manager in Ubuntu. This changed in Ubuntu 11.10, where LightDM is the default display manager, and you can now launch a guest session through a built-in LightDM feature. Unlike before you don't need to first log in as a regular user; a guest session in Ubuntu 11.10 can optionally be launched directly from the login screen.
This tutorial was written with gdm-guest-session in mind. However, I have put together a new tarball file, so now there are two tarballs attached to this tutorial:
- guest-session-prefs-0.13.tar.gz - for Ubuntu < 11.10 with GDM
- guest-session-prefs-lightdm-0.12.tar.gz - for Ubuntu >= 11.10 with LightDM
Even if the comments below refer to the first tarball, most of them apply to the new tarball as well. The names of some files and directories have been altered, but hopefully the README file in guest-session-prefs-lightdm-0.12.tar.gz contains sufficient guidance in that respect.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Overview
Many Ubuntu users, me included, have posted ideas on minor changes to the gdm-guest-session behavior, and I'm happy to share the guest session related changes I have made. They include:
- Firefox preference setting
- disabling login-sound
- language selection [not in LightDM]
- gettexted strings
- folder for storing files permanently
- info dialog at startup
- icon on the desktop
Whether you want to make a couple or all of those changes, or there are other changes that you would like to see, I hope that the methods used for altering the guest session behavior may serve as useful examples.
The figure below shows the most important files, and gives you a schematic picture of the program flow. In the left column you find the core files in the gdm-guest-session package (green borders) together with a tiny file that I created, merely to have all the executables located in the same folder. The files in the right column are in effect configuration files, even if they contain shell commands. Computer owners and system admins may edit the files in /etc/guest-session to their liking, without worrying about the changes being overwritten when gdm-guest-session or other packages are updated.
http://gunnar.cc/img/guest-session-model.jpg
Some of the commands in my code snippets need to be executed before the start of the launch process, while others are better executed in the middle or at the end of the process. I grouped my snippets accordingly, so that's why there are three files in the right column.
Tarball: guest-session-prefs
There is a tarball file attached to this tutorial with both a README file and an install script, almost like a package. But since admins are expected to change and add things, guest-session-prefs is very different compared to an Ubuntu package. In the README file I call it a "convenience kit", a framework for configuring guest sessions.
I recommend that you download the tarball and run the install script. Rather than describing every detail, the comments below serve as a user guide focusing on a few edit possibilities.
Install / uninstall
Okay, here we go. Download
guest-session-prefs-0.13.tar.gz
Open a terminal window and go to the directory with the downloaded file
tar -xf guest-session-prefs-0.13.tar.gz
cd guest-session-prefs-0.13
sudo ./install.sh Now you have exactly the same setup as I have (or at least had when I wrote this...). These are the installed files:
/etc/guest-session/auto.sh
/etc/guest-session/prefs.sh
/etc/guest-session/prepare.sh
/etc/guest-session/sv/LC_MESSAGES/guest-session-prefs.mo
/usr/share/doc/gdm-guest-session/guest-session-prefs/README
/usr/share/doc/gdm-guest-session/guest-session-prefs/sample-translation.po
/usr/share/doc/gdm-guest-session/guest-session-prefs/uninstall.sh
/usr/share/gdm/guest-session/guest-session-auto.sh
You launch a guest session by calling/usr/share/gdm/guest-session/guest-session-launch
or, as from Ubuntu 11.04, justguest-session
If you, like me, display a list dialog with choices when a guest session is launched, you'll notice an odd behavior if you use the guest session menu item provided by the indicator-session package. The reason is that indicator-session locks the screen before calling guest-session-launch. Creating your own launcher, e.g. via System -> Preferences -> Main Menu, solves that possible problem.
To uninstall guest-session-prefs you do:cd /usr/share/doc/gdm-guest-session/guest-session-prefs
sudo ./uninstall.sh
Comments
Firefox
Maybe Firefox is the most used application by guests, and many admins want to be able to set some preferences. /etc/guest-session/prefs.sh contains a code snippet that creates a Firefox profile, and given the commands in that snippet, one line of code in prefs.sh is enough to change some aspect of Firefox.
Code:
echo 'user_pref("signon.rememberSignons", false);' >> $profiledir/user.js
That code tells Firefox to not prompt about remembering passwords. At the page Customizing Mozilla you find some other customizing hints.
Disabling certain applications
guest-session-setup.sh disables a few services that are unnecessary for guest sessions. Applying the same approach, prefs.sh defines the function disable_app(). This is how I disable the login sound:
Code:
disable_app libcanberra-login-sound.desktop /usr/share/gnome/autostart
libcanberra-login-sound.desktop is the file that autostarts the login sound by default, and /usr/share/gnome/autostart is the folder where that file resides.
Language selection [not applicable to LightDM]
If you launch a guest session right after having installed guest-session-prefs, you are prompted to choose between English and Swedish.
http://gunnar.cc/img/lang-select-screenshot.png
If you try the Swedish option, but still only see English on the screen, it's hopefully not a bug. A more likely explanation is that Swedish has not been installed on your system. You can set available languages via System -> Administration -> Language Support.
For those of you who want to be able to select language, the language related code ought to be useful. If one language (e.g. French) is enough, but the launching regular session might be run in some other language, the code in /etc/guest-session/prepare.sh can be exchanged for:
Code:
echo "fr_FR" > /tmp/guest-session-lang
Finally, if you have no interest in using more than one language, you can simply delete prepare.sh. OTOH, commenting out the code or renaming the file are probably better options. For instance, there may be other preferences that you want to set on-the-fly when launching a session.
Gettexted strings
To the extent you make use of text strings that are displayed to the guest user, which for instance is the case with the info dialog box shown below, you may want the strings to be translated to the current language. guest-session-prefs shows how that can be done using GNU gettext. If you have not used the gettext tools before, I believe that my example may help you get started. Of course, reading parts of the gettext manual is advisable in any case.
If you are only dealing with one non-English language, and don't care about English, it's probably easiest to drop gettext and just hard code the strings in the language of choice.
Folder for storing files permanently
I allow my guest users to store files permanently, and the install script creates the folder /var/guest-data for the purpose and assigns the permissions 0777. If you are of another view, just remove that folder.
Info dialog at startup
/etc/guest-session/auto.sh contains code for displaying an info dialog box. While calling the guest users' attention to the temporary nature of a guest session, it informs about the dedicated folder /var/guest-data for persistent file storage.
http://gunnar.cc/img/guest-session-warning.png
Icon on the desktop
auto.sh also creates a shortcut icon to /var/guest-data. You may want to add a few similar code snippets to auto.sh that for instance place application shortcuts on the desktop.
Alternative approach
In some respects, launching a guest session comes about similarly to creating a new regular user, so by default the files in the folder /etc/skel are copied to the guest's home folder. As from Ubuntu 11.04, gdm-guest-session uses the files in /etc/guest-session/skel if present. That way some of the above customization measures can be accomplished by editing in /etc/guest-session/skel instead of using shell commands.
You enable this feature by copying /etc/skel/* to /etc/guest-session/skel/*:sudo mkdir -p /etc/guest-session
sudo cp -ri /etc/skel /etc/guest-session
In comment #23, Paul has elaborated this approach by providing a step-by-step guide. Thanks, Paul!
Related bug
I have submitted the bug Premature lock when launching guest session, whose implementation would support this approach to customizing guest sessions.
-
Re: Customize guest session
That was very interesting and useful, thank you.
-
Re: Customize guest session
Quote:
Originally Posted by
tinche
That was very interesting and useful, thank you.
Thanks, glad to hear you say that. :) You're welcome.
Please feel free to post your comments, other customization ideas, etc.
-
Re: Customize guest session: guest-session-prefs
Thanks for sharing this. It's a nice idea to customise the session a little.
I stumbled upon this thread by searching for a soundless guest session. When I create a guest session any music or other sound that was playing on the system stops (or pauses) and continues once I log out of the guest session. I'd like to be able to play music while a guest session is logged in. Any idea if that's possible by customising your script slightly? I'm not sure why or how sound is related to the guest session, I'm really just guessing.
I have a guest computer connected to speakers and I'd like to play music remotely via cmus on that machine, but also let guests use it for internets. I found that cmus would freeze until the guest session was finished.
-
Re: Customize guest session: guest-session-prefs
Hello,
Quote:
Originally Posted by
chmac
When I create a guest session any music or other sound that was playing on the system stops (or pauses) and continues once I log out of the guest session.
I'm not able to reproduce that behavior. To me, music that was playing in a regular session keeps playing if I launch a guest session.
Quote:
Originally Posted by
chmac
I'd like to be able to play music while a guest session is logged in. Any idea if that's possible by customising your script slightly?
No. That is I have no idea.
I noticed that there was an audio related change not very long ago. If you are using 10.04 or older, you may want to try applying that change to your copy of /etc/apparmor.d/gdm-guest-session and reboot.
You can also ask a question at https://answers.launchpad.net/ubuntu
Quote:
Originally Posted by
chmac
I'm not sure why or how sound is related to the guest session, I'm really just guessing.
Me too, I'm afraid. ;) Good luck!
-
Re: Customize guest session: guest-session-prefs
Turns out adding myself to the audio group seemed to resolve the problems. I can now play music from a terminal whether or not the guest session is running or not. Happy days. :-)
-
Re: Customize guest session
Hi I have a couple of issues, and I'm wondering if this tarball will solve them?
1. Can I select a default layout? I use US Dvorak and would like guest's default to be US (QWERTY).
2. Is there a way to stop guest from inheriting my startup apps (like Gnome-Do and Docky?).
EDIT: I see these are both doable with the tarball. THANKS!
-
Re: Customize guest session
Yep, the examples in /etc/guest-session/prefs.sh ought to cover what you were looking for. I'm glad that you found the examples useful, carret.
-
Re: Customize guest session
Very thoughtful post, thank you.
-
Re: Customize guest session
Nice! This will be very helpful. I'm trying to figure out how to allow logging into a Guest session without logging in as anyone else first. ie. GDM would present you with the choice of Guest or Admin, or maybe just automatically log Guest in. Any ideas?
-
Re: Customize guest session
Quote:
Originally Posted by
thefinn93
I'm trying to figure out how to allow logging into a Guest session without logging in as anyone else first. ie. GDM would present you with the choice of Guest or Admin, or maybe just automatically log Guest in. Any ideas?
That's beyond the scope of gdm-guest-session and this tutorial. I have seen attempts to modify gdm-guest-session to do what you ask for, but unfortunately I don't remember where...
In any case you can of course create a passwordless user "guest".
-
Re: Customize guest session
The solution might be to create a user that auto-logs in and then add something to the startup scripts that launches a guest session. Not sure if you could set up a user to auto-login while also setting a password on that user. If you could, the guest user would be unable to exit to the parent session. I have a "guest" computer and I like the idea of someone being able to launch a guest session from boot time, without a user password, but as Gunnar said, I think that might be beyond the scope of gdm-guest-session.
-
Re: Customize guest session
Quote:
Originally Posted by
Gunnar Hjalmarsson
Quote:
Originally Posted by
thefinn93
I'm trying to figure out how to allow logging into a Guest session without logging in as anyone else first. ie. GDM would present you with the choice of Guest or Admin, or maybe just automatically log Guest in. Any ideas?
That's beyond the scope of
gdm-guest-session and this tutorial.
Ubuntu 11.10 brought good news in this respect. It's shipped with a new default display manager, LightDM, which allows you to launch a guest session directly from the login screen.
-
Re: Customize guest session
That it did. Maybe I'll look into this again
-
Re: Customize guest session
Quote:
Originally Posted by
Gunnar Hjalmarsson
Ubuntu 11.10 brought good news in this respect. It's shipped with a new default display manager, LightDM, which allows you to launch a guest session directly from the login screen.
Awesome, that's the single best reason I've heard to upgrade. Thanks for posting back here, I greatly appreciate it.
-
Re: Customize guest session
Having problems installing.
When I run in a terminal it says
Quote:
./install.sh: 37: msgfmt: not found
I don't know what that means? Am I doing something wrong?
-
Re: Customize guest session
Hi zorkerz!
Quote:
Originally Posted by
zorkerz
Having problems installing.
When I run
in a terminal it says
Quote:
./install.sh: 37: msgfmt: not found
I don't know what that means? Am I doing something wrong?
No, not at all. It means that the msgfmt program, which is currently needed to run the install.sh script, is not installed on your computer.
Please run
Code:
sudo apt-get install gettext
Then you'll hopefully be able to run install.sh without further interruptions.
Sorry about that. Think I'd better modify the tarball a bit.
-
Re: Customize guest session
Hi, how can I customize wine in guest session? Is there a way to copy .wine folder into guest home directory permanently?
-
Re: Customize guest session
Quote:
Originally Posted by
toni93
Is there a way to copy .wine folder into guest home directory permanently?
Yes, I think there is. I would suggest that you use /etc/guest-session/skel as described in the section Alternative approach in the first post of this thread. If you try it, please let us know if you were successful.
-
Re: Customize guest session
thanks for a great tutorial!
however i have some issues with some apps.
hope you can help me.
amsn shows an enoying info popup at first run
chrome prompts user to choose search engine at first run
skype shows a license agreement at first run that the user needs accept.
Any idea on how to solv this?
-
Re: Customize guest session
i manage to solve this.
i logged in with a guest session and launched for example Skype - then switched user to my regular account. In the terminal i used sudo nautilus and then i went into /tmp/guest-xxxxx/ folder. There i found a .Skype folder - i copied it and pasted it in the folder /etc/skel . Worked great!
However i also want to set the guest-session to automatic log out if system is idle for X minutes. How can i do that?
-
Re: Customize guest session
Quote:
Originally Posted by
Feppa
... There i found a .Skype folder - i copied it and pasted it in the folder /etc/skel . Worked great!
Well, unless you want that setting by default also for newly created regular users, you'd better use /etc/guest-session/skel instead. See the Alternative approach section in the tutorial.
Quote:
Originally Posted by
Feppa
However i also want to set the guest-session to automatic log out if system is idle for X minutes. How can i do that?
I for one have no idea; I doubt that it can be done using the techniques mentioned in this tutorial.
-
Re: Customize guest session
I appreciate all of the discussion about customizing the guest session. I have been looking for a way to have a easily cusomizable guest session for a kiosk-type setting under oneiric. After looking through everything, I have found that using a variant of the Alternate Method (above) has made it easy to customize the guest user using all of the regular gui controls (Ubuntu-Tweak, MyUnity, Startup App Prefs, etc.). Before logging out of the session, it is necessary to copy the files from the home directory of the temporary guest account to /etc/guest-session/skel. One advantage of this is that a guest session can be restarted, edited and saved as often as you would like. I realize that I haven't created anything new here; just put together the pieces differently from the posts in this thread.
Anyhow, the steps are as follows:
Quote:
- Create the directory /etc/guest-session/skel
- While logged on under an admin account, start a guest session
- Make any changes to the guest session that you want using whatever tools/utilities you wish
- Change back to admin account and open a terminal
- cd to /tmp and find the temporary guest home directory (guest-XXXXX).
- Copy the files in the temporary guest home directory to /etc/guest-session/skel using the command: ‘sudo cp -rT /tmp/guest-XXXXX /etc/guest-session/skel’.
- Log out of the guest session and login again to check.
- To update the settings, repeat steps 2-7 as necessary.
I previously wrote: I also have a question that you all might be able to help me figure out. I created a login user (luser) and attempted to edit the /usr/share/gdm/guest-session/guest-session-setup.sh file to copy /home/luser in step 6. However, it keeps defaulting to /etc/guest-session/skel/ Is there another file that I should be editing? It sure would be change things in an existing user rather than having to run (and rerun) a guest session.
Thanks to Gunnar, I have included directions for using a regular user account on the system as the basis for the guest-session account. Although this is not as flexible as the system outlined by Gunnar, it has the advantage of ease. I have tried this with 11.10; it seems that there may be differences with previous versions. I have not addressed those.
Quote:
- Create a standard (non-administrator) account.
Note: I will use the account name luser for this account in the rest of the instructions (luser means Login User. Really. ;) ). - Log into the luser account and make any changes that you want using whatever tools/utilities you wish.
- Once you have made the desired changes, log out of the account and return to an administrative account.
- Edit the file /etc/guest-session/prefs.sh (if it doesn't exist, enter the command "sudo touch /etc/guest-session/prefs.sh") and add the following lines to the top of the file:
cp -rT /home/luser "$HOME"
chown -R $USER:$USER "$HOME" - Save the file.
- Log into the guest account (either from LightDM or from the user-session indicator) and check that all changes have been made.
- To update any settings, simply repeat steps 2&3.
Note: As a security measure, you may want to disable the luser account when not editing it.
Please feel free to let me know if there are any further changes/instructions for these directions.
Peace,
Paul :cool:
BTW, I found out that Chrome won't run in a guest session due to needing suid for sandboxing. I have stuck with Firefox for the guest session.
-
Re: Customize guest session
Great example, Paul. Thanks! I added a link to your post from the "Alternate approach" section in the tutorial.
Quote:
Originally Posted by
p-dh
I created a login user (luser) and attempted to edit the /usr/share/gdm/guest-session/guest-session-setup.sh file to copy /home/luser in step 6. However, it keeps defaulting to /etc/guest-session/skel/ Is there another file that I should be editing?
Please note that as from Ubuntu 11.10, the guest session code is included in the LightDM package; you may well remove the gdm-guest-session package. So it's probably /usr/sbin/guest-account you want to edit.
Quote:
Originally Posted by
p-dh
I found out that Chrome won't run in a guest session due to needing suid for sandboxing. I have stuck with Firefox for the guest session.
It would be great if you could file a bug report about that. It's the LightDM package such a bug should be filed against.
-
Re: Customize guest session
Quote:
Originally Posted by
p-dh
Edit the file /usr/sbin/guest-account and change the line gs_skel=/etc/guest-session/skel to gs_skel=/home/luser. (sudo gedit /usr/sbin/guest-account)
A disadvantage with editing a package file is that it needs to be redone after each upgrade. Probably better to create a symlink.
Code:
sudo ln -s /home/luser /etc/guest-session/skel
-
Re: Customize guest session
Hey Gunnar,
I added the link as per your directions, but the files were not copied over. What am I missing?
Thanks for helping me get this to work.
Peace,
Paul :cool:
-
Re: Customize guest session
Quote:
Originally Posted by
p-dh
I added the link as per your directions, but the files were not copied over. What am I missing?
Seems like I'm the one who missed things. :(
A working way to do what you want, without a need to redo it after each lightdm update, seems to be to create /etc/guest-session/prefs.sh and add these commands to it:
Code:
cp -rT /home/luser "$HOME"
chown -R $USER:$USER "$HOME"
If /etc/guest-session/prefs.sh exists already, since you installed the tarball of this tutorial, those commands should be added to the top of the file.
-
Re: Customize guest session
Gunnar, Thanks for the last post. I created the file and it works great! I found that the reason a simple link doesn't work is that /usr/sbin/guest-account has the line:
gs_skel=/etc/guest-session/skel and needs gs_skel=/etc/guest-session/skel/ for cp to work with a soft link. Weird. But, this meant that I had to edit the file after updating LightDM today. Aaargh..
Anyhow, I will include your additions to my post above. I have tried it out and it really works well.
Thanks for all of your work on this.
Paul :cool:
P.S. Where can I find the documentation for LightDM and the files it uses for logging in?
-
Re: Customize guest session
Quote:
Originally Posted by
p-dh
I will include your additions to my post above. I have tried it out and it really works well.
Thanks for all of your work on this.
You're welcome, and thank you.
Quote:
Originally Posted by
p-dh
Where can I find the documentation for LightDM and the files it uses for logging in?
I'm not aware of any documentation besides the source code. And that's not easy to grasp. :neutral:
-
Re: Customize guest session
Quote:
Originally Posted by
p-dh
I found that the reason a simple link doesn't work is that /usr/sbin/guest-account has the line:
gs_skel=/etc/guest-session/skel and needs gs_skel=/etc/guest-session/skel/ for cp to work with a soft link. Weird. But, this meant that I had to edit the file after updating LightDM today. Aaargh..
Nice catch, Paul. I proposed that change of the source for lightdm in Ubuntu, and it was just approved. It means that next release will include such a trailing slash, so you may want to change comment #23 once again. ;)
-
Re: Customize guest session
Hi,
I've been browsing around the net trying to find a way to disable "everything" for a specific user account. That is, I only want the user to be able to start a single program as a shortcut on the desktop.
I have installed (fully installed) Ubuntu on a USB dongle and also installed gnome-session-fallback and made it boot directly into the gnome-classic interface as it's quite a bit easier to customize (as far as I know) the panels etc. compared to Unity.
Now, by using your "disable_app()" would it be possible to disable every program that I don't want the user to be able to access? (i.e terminal, system monitor, system settings ++)
Obviously I would also have to remove right clicking, file system access, keyboard shortcuts, log out/switch user etc. I do think I have this covered, but Im at a loss as to how I can prevent the user from accessing system settings.
Basically, if only the desktop was shown (without menus) that would be perfect, but Im pretty sure that's not possible :)
Any pointers would be greatly appreciated!
regards,
Cato
-
Re: Customize guest session
Quote:
Originally Posted by
psycato
... by using your "disable_app()" would it be possible to disable every program that I don't want the user to be able to access? (i.e terminal, system monitor, system settings ++)
No. "disable_app()" prevents automatic startup of applications that otherwise would have been automatically launched at startup. It does not prevent the user from launching those applications 'by hand'.
-
Re: Customize guest session
does anyone know if i can access a nfs mounted directory from a guest session?
i can access to usb drives if i plug one with guest, but can't to a mounted nfs. loggin with an ordinary user works well.
my fstab entry is: ip://folder /media/folder ro,users 0 0
i tried putting uid and gid, but the guest uid seems to change dinamicaly.
[edit] running Ubuntu 12.04
-
Re: Customize guest session
I have used the alternative method in #23 with some success but I am having issues with the Background. When in the guest session I select a picture that I have copied into the Pictures folder of the Guest account and it appears fine. After switching back to the Administrator account and copying the tmp guest user folder to the etc/guest-session/skel the picture is there. However when I log back into the guest account I get the blue background and not the picture, however the picture is there to select. I am using 12.04,
Does anyone have any ideas what is going on? Also does the tar at the beginning of this thread work in 12.04?
-
Re: Customize guest session
I managed to fix the Background issue with this guide:
http://askubuntu.com/questions/64001.../121594#121594
And I could not get the tar for lightDM to work in 12.04, it installs but then I couldn't get into the guest account ;), although the #23 post method works to change some simple stuff.
-
Re: Customize guest session
Hello guys,
I have a problem with desktop launcher (for wine program) on guest session. My Ubuntu version is 12.04 LTS and Wine 1.4.1. So, when i want to run e.g Counter Strike game via desktop launcher, nothing is happening but when i run it via terminal, game works. Game is installed in /opt/games via standard user account named pc01-master and works on that and administrator account but on guest session I can run only via terminal when execute:
Code:
env WINEPREFIX="$HOME/.wine" wine z:\\opt\\games\\CS1.6\\Counter-Strike.exe
That is command from desktop launcher but launcher won't execute it. :S When I put in launcher command without wine prefix:
Code:
wine z:\\opt\\games\\CS1.6\\Counter-Strike.exe
I get wine error:
Code:
Internal errors - Invalid parameters received
I have tried in many ways, but without success:
Remove .wine folder from guest-xxxxxx home folder, modify permissions, same user groups, auto chown and chmod 777 /opt and .wine folder (pc01-master) to guest-xxxxxx via /etc/guest-session/prefs.sh but without success unfortunately. :(
I noticed that when I remove .wine folder from pc01-master home folder and run desktop launcher from guest session, i get this error:
Code:
Failed to change to directory '/home/pc01-master/.wine/dosdevices/z:/opt/games/CS1.6/' (No such file or directory)
Also I noticed that is /home restricted for guest, I can't access via Nautilus and probably because it desktop launcher does not work.
Maybe I don't setup some permision correctly but i don't known what. :S Thanks in advance for your help.
-
Re: Customize guest session
Quote:
Originally Posted by
gussug
does anyone know if i can access a nfs mounted directory from a guest session?
i can access to usb drives if i plug one with guest, but can't to a mounted nfs. loggin with an ordinary user works well.
my fstab entry is: ip://folder /media/folder ro,users 0 0
I think it's intentionally prevented via AppArmor.
Code:
$ grep /media /etc/apparmor.d/lightdm-guest-session
owner /media/ r,
owner /media/** rmwlixk, # we want access to USB sticks and the like
$
-
Re: Customize guest session
Quote:
Originally Posted by
doce
Also I noticed that is /home restricted for guest, I can't access via Nautilus ...
Guests are denied access to /home by design (via AppArmor).
-
Re: Customize guest session
Quote:
Originally Posted by
elysithea
And I could not get the tar for lightDM to work in 12.04, it installs but then I couldn't get into the guest account ;), although the #23 post method works to change some simple stuff.
The tar guest-session-prefs-lightdm-0.12.tar.gz works fine on my 12.04. You may want to provide some more details about the nature of your problems.
-
Guest session VPN authentication
Hi guys, is there a way to disable authentication required for VPN so people using guest session can use internet?
-
Re: Customize guest session
This is just what I needed! Thanks to Gunnar Hjalmarsson and p-dh, you both have saved me a lot of time and effort.
-
Re: Customize guest session
When I try the install script I get "Couldn't find /usr/share/gdm/guest-session/guest-session-launch".
I am using 12.04 Gnome with GDM.
Ops sorry I didn't realise I needed to install the gdm-guest=session package first from here https://launchpad.net/ubuntu/precise...t-session/0.27
but doing so gives me
Quote:
dpkg: dependency problems prevent configuration of gdm-guest-session:
gdm (3.0.4-0ubuntu15) breaks gdm-guest-session and is installed.
dpkg: error processing gdm-guest-session (--install):
dependency problems - leaving unconfigured
so it refuses to install.
-
Re: Customize guest session
Does anyone know if there is anything different I have to do to customize the guest account in ubuntu 12.04 and 12.10? I run a all ubuntu computer lab and only allow the guest account to the general public.
-
Re: Customize guest session: guest-session-prefs and guest-session-prefs-lightdm
Thanks! I've been using Ubuntu since 11.10 and just recently turned on the guest account because my wife's Windows machine died. My poor daughter spent several hours yesterday typing up study notes and they are all gone now because we didn't realize the guest account didn't save files permanently. Fortunately she's one of the smartest people I've ever met and will probably retain most of it just from typing the notes, but I still felt like I let her down not knowing about it. So thank you for your work on this.
-
Re: Customize guest session
Greetings all! It seems you all have been busy since the last time I checked this out. You've needed some new features. My question is this:
My current project with OSS in Education. I currently have 1 Open Source Public Access computer in our University Library. It is running Ubuntu 13.04 with a great deal of educational and productivity software on it. I was just having people login with the Guest account so no mater what they did it would go back to normal when they logged out.
I now want to set one up in our Music/Art/Education building along with a donated Yamaha MIDI keyboard with Piano Booster on it. With downloading MIDI files and playing them in Piano Booster, I didn't want them to use guest because I didn't want someone to have to download them all over again.
Should I just make a public access user and let anyone just download anything, along with MIDIs files to use on that system? Please advise on a setup. Thank you!
-
Re: Customize guest session
You can use this tarball setup given in the first post of this thread and advise the users to save the midi files in the /var/guest-data folder. You can even rename the folder to your liking, for instance /var/midi-files
You could also configure the pop-up dialog shown at the startup to inform users about that.
-
Re: Customize guest session
Quote:
Originally Posted by
gussug
does anyone know if i can access a nfs mounted directory from a guest session?
Possibly that requires editing of the AppArmor profile. In Ubuntu 13.10 it's located at /etc/apparmor.d/abstractions/lightdm, but if I recall it correctly, in Ubuntu 12.04 it was stored in some other file with "guest-session" in the file name.
Edit: I see now that I replied to this in September 2012. Sorry for the noise.
-
Re: Customize guest session
Quote:
Originally Posted by
elysithea
I could not get the tar for lightDM to work in 12.04
Please note that the tar that fits 12.04 is guest-session-prefs-lightdm-0.12.tar.gz.
Edit: I see now that I replied to this in September 2012. Sorry for the noise.
-
Re: Customize guest session
As noted in the edited first post, this tutorial is now deprecated and has been replaced by the CustomizeGuestSession page on the Community Help Wiki. If you need help with this, please post in a support section of the forum.
Thread closed.