This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

"sudo service lightdm restart" not working

kenn

Wed Oct 09, 2013 6:01:37 pm

Hello dear ZorinOS community;

I have 13.04 ZorinOS 7, I want to restart session when screen freezes by issuing "sudo service lightdm restart" command on terminal, when I run that command session logging out but not logging in, it freezes with black screen. I wonder if it's particular to my case. Would anybody try it and inform me about the result?
Thanks.

kenn

Wed Oct 09, 2013 6:17:53 pm

Interestingly, this works ok "gksu service lightdm restart" :S It must be a bug.

madvinegar

Thu Oct 10, 2013 6:23:09 am

It is not a bug. You use gksu instead of sudo usually when a graphical environment is involved.
For example, you use gksudo nautilus (instead of sudo nautilus) because nautilus has a gui.

In order for "sudo service lightdm restart" to work you must first log-off your graphical environment by pressing ctrl+alt+f1 (or f2).
You will get into terminal mode, you will give your name and password and then you can issue the command: sudo service lightdm restart

I think that this is the proper way.