Page 1 of 1

[RESOLVED] Guest account and automatic login

PostPosted: Thu Sep 13, 2018 5:27 pm
by mrbryce2000
Greetings,

I am using Zorin OS Lite Education for some low power cloudbooks in a school laptop cart. I found documentation for Ubuntu Desktop on how to setup a new account, and then make that account a guest. From there you edit the lightdm.conf file to automatically login as that new guest account.

It is my understanding that Zorin Lite uses XFCE. I researched commands to perform the same with that desktop environment, but have been unsuccessful so far.

What I need:
Assign my "Student" account to run like a guest
Auto login Zorin as that Student account

Is this possible? Maybe I am simply editing the wrong config files.

Thank you for your time.

Re: Guest account and automatic login

PostPosted: Thu Sep 13, 2018 9:16 pm
by Swarfendor437
Remember you should have an administrator account for updates etc. Yes Zorin Lite does use xfce and is based on xubuntu so you need to look at the guide here:

https://appuals.com/how-to-enable-auto- ... n-xubuntu/

Re: Guest account and automatic login

PostPosted: Mon Sep 17, 2018 1:21 pm
by mrbryce2000
Thank you for your reply. This is the instructions that I followed, however the lightdm.conf file is different, none of the example code works, and I DO need my "student" account to be treated as a guest. The examples in this site are the exact opposite.

Re: Guest account and automatic login

PostPosted: Mon Sep 17, 2018 2:10 pm
by mrbryce2000
OK, I was finally able to figure it out. The config file that needed to be edited was: /usr/share/lightdm/lightdm.conf.d/60-zorin-os-lite.conf
I set the following variables after modifying my Student account and creating a link in /etc/guest-session/skel
[Seat:*]
user-session=zorin-os-lite
autologin-guest=true

Re: Guest account and automatic login

PostPosted: Mon Sep 17, 2018 9:13 pm
by Swarfendor437
Great work - 120 blue jewels to you sir! - 60 for solving the issue yourself and another 60 for sharing! ;) :D

Re: Guest account and automatic login

PostPosted: Thu Sep 27, 2018 5:49 pm
by pcfan5
:geek: :P ;)

Re: [RESOLVED] Guest account and automatic login

PostPosted: Fri Jan 10, 2020 2:30 am
by Justin R
Hi, is resurrecting an old thread ok?
I've been trying to resolve a problem with a new install of Zorin 15.1 where I've been getting stuck at the password prompt for the desktop. I'm using the correct password but it tells me "failed to start session". Various threads have brought me to this one, which is very useful, but now that I feel that I may be at the final furlong I've encountered another hurdle:
When I follow the steps described by mrbrice2000 above, I get "no such file or directory". If I check in Thunar on my other computer (which I've installed the same version of Zorin onto) it most definitely does exist.
I could reinstall the os but there was a file I had saved in a local folder which had not been backed up when I got stuck out in the cold, and I would prefer not to lose it if I replace the existing os.
Just in case it's relevant I was struggling with another bug before this one which involved the shut down button in xfce not working. Can't remember what the error message was but it wouldn't let me shut down, reboot, sleep or anything. I had failed to find a solution and wanted to try something in the bios or recovery menu so I forced a shutdown using the button on the actual stack. Rebooted and couldn't get back in either! The xfce gate is well and truly locked both ways, and the worst of it is, I can't force my way back in as there isn't a button for that on the stack!
Any help would be much appreciated.
Cheers
Justin

Re: [RESOLVED] Guest account and automatic login

PostPosted: Fri Jan 10, 2020 2:51 am
by Aravisian
Justin R wrote:Hi, is resurrecting an old thread ok?
I've been trying to resolve a problem with a new install of Zorin 15.1 where I've been getting stuck at the password prompt for the desktop. I'm using the correct password but it tells me "failed to start session". Various threads have brought me to this one, which is very useful, but now that I feel that I may be at the final furlong I've encountered another hurdle:
When I follow the steps described by mrbrice2000 above, I get "no such file or directory". If I check in Thunar on my other computer (which I've installed the same version of Zorin onto) it most definitely does exist.
I could reinstall the os but there was a file I had saved in a local folder which had not been backed up when I got stuck out in the cold, and I would prefer not to lose it if I replace the existing os.
Just in case it's relevant I was struggling with another bug before this one which involved the shut down button in xfce not working. Can't remember what the error message was but it wouldn't let me shut down, reboot, sleep or anything. I had failed to find a solution and wanted to try something in the bios or recovery menu so I forced a shutdown using the button on the actual stack. Rebooted and couldn't get back in either! The xfce gate is well and truly locked both ways, and the worst of it is, I can't force my way back in as there isn't a button for that on the stack!
Any help would be much appreciated.
Cheers
Justin

Justin, it sounds like something was either removed or got corrupted.
When you restart the computer, hold down the LeftShift Key.
You will then start at Grub
Down arrow key at the screen that comes up and on the next one, down arrow key to the option with your Kernel Generic (Recovery Mode)
Down arrow key to Enable Networking and on the next screen select Yes
At the next screen, scroll down to Root Drop to Root shell Prompt.
Hit enter then hit enter once more.
You got your terminal, back. ;)
In that screen enter
Code: Select all
sudo apt-get install zorin-desktop

Code: Select all
sudo apt-get install zorin-desktop-core

If it says it is already installed, try
Code: Select all
sudo apt-get install --reinstall zorin-desktop

Then enter
Code: Select all
reboot

and follow the prompts to reboot.
Hopefully, that will resolve but if it does not, repeat all the steps above EXCEPT instead of installing the desktop, try this:
Code: Select all
sudo dpkg-reconfigure -a

Re: [RESOLVED] Guest account and automatic login

PostPosted: Fri Jan 10, 2020 11:43 am
by Justin R
Hi Aravisian,
I got "unable to locate package ......." on all the desktop reinstall options.
And for the dpkg-reconfigure attempt I got:
"unknown option: a
Usage: dpkg-reconfigure [options] packages
-u, ___--unseen only______Show only not yet seen questions
______--default-priority____Use default priority instead of low
______--force____________Force reconfiguration of broken packages
______--no-reload________Do not reload templates. (use with caution)
-f,____--frontend__________specify debconf frontend to use
-p,____--priority__________specify minimum priority question to show
______--terse___________ enable terse mode"
Haven't tried any of those as nervous to do anything in root without guidance!

Re: [RESOLVED] Guest account and automatic login

PostPosted: Fri Jan 10, 2020 2:08 pm
by Swarfendor437
Did you enter correctly?:

Code: Select all
dpkg configure -a


Plus take a look here:

https://www.maketecheasier.com/fix-brok ... es-ubuntu/