Hello everyone.
I am having a trouble setting up auto login on my debian 8 with cinnamon environment.
Googleling the web, I found out that /etc/lightdm/lightdm.conf needs to be adjusted. Here is the problem:
After I try gedit /etc/lightdm/lightdm.conf I receive this:
No protocol specified
** (gedit:19022): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused
(gedit:19022): Gtk-WARNING **: cannot open display: :0
Any suggestions?
Thanks in advance!
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Auto Login in Debian 8.10
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Auto Login in Debian 8.10
nikudim wrote:Any suggestions?
Code: Select all
sudoedit /etc/lightdm/lightdm.conf
Code: Select all
# editor /etc/lightdm/lightdm.conf
deadbang
Re: Auto Login in Debian 8.10
Head_on_a_Stick wrote:nikudim wrote:Any suggestions?OrCode: Select all
sudoedit /etc/lightdm/lightdm.conf
EDIT: thread moved to Beginner's QuestionsCode: Select all
# editor /etc/lightdm/lightdm.conf
Thank you for the reply and moving the topic.
This command opened the files but it is black, there is nothing in it...
I do not think it is normal. What am I doing wrong?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Auto Login in Debian 8.10
What is black?nikudim wrote:This command opened the files but it is black
Which editor did you select for sudoedit (or which editor is set as /etc/alternatives/editor)?
Editing system files with a GUI is not best practice, you should learn how to use a terminal-based editor for such tasks, nano is probably best for you.
Please post the full output ofthere is nothing in it...
Code: Select all
cat /etc/lightdm/lightdm.conf
http://forums.debian.net/viewtopic.php?f=16&t=123694
deadbang
Re: Auto Login in Debian 8.10
which command? HoaS gave 2.nikudim wrote:This command opened the files but it is black, there is nothing in it...
I do not think it is normal. What am I doing wrong?
show us the exact & full command.
from what i see, 3 possibilities:
1. permission denied because you did not use privilege escalation (sudo or su)
2. the file does not exist
3. misconfigured $EDITOR variable. very unlikely imo.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Auto Login in Debian 8.10
I suggested that the OP try the `editor` command, which is supplied by /etc/alternatives/editor — this will probably be linked to either a vi clone (I forget which one) or nano.debiman wrote:misconfigured $EDITOR variable
I suppose there is a chance that the editor alternative (and the sudoeditor) is set to /bin/ed, that would probably be quite confusing
@OP: what is the output of
Code: Select all
ls -l /etc/alternatives/editor
deadbang
Re: Auto Login in Debian 8.10
My notes on Autologin:
# LightDM - Autologin
------------------------------------------------------------------------------------------------------------------------------------------------------------
http://forums.debian.net/viewtopic.php?t=119348
http://www.linuxserve.com/2015/06/how-t ... ebian.html
# Automatic Login for LightDM - MATE
------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.back
sudo nano /etc/lightdm/lightdm.conf
########################################################################
[SeatDefaults] # !!!!!!!!
autologin-user=donald
autologin-user-timeout=0
########################################################################
sudo dpkg-reconfigure lightdm
# Automatic Login for GDM3 - GNOME3
------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo cp /etc/gdm3/daemon.conf /etc/gdm3/daemon.conf.back
sudo nano /etc/gdm3/daemon.conf
########################################################################
Under [daemon] entry uncomment these two lines:
AutomaticLoginEnable = true
AutomaticLogin = donald
########################################################################
sudo dpkg-reconfigure gdm3
# LightDM - Autologin
------------------------------------------------------------------------------------------------------------------------------------------------------------
http://forums.debian.net/viewtopic.php?t=119348
http://www.linuxserve.com/2015/06/how-t ... ebian.html
# Automatic Login for LightDM - MATE
------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.back
sudo nano /etc/lightdm/lightdm.conf
########################################################################
[SeatDefaults] # !!!!!!!!
autologin-user=donald
autologin-user-timeout=0
########################################################################
sudo dpkg-reconfigure lightdm
# Automatic Login for GDM3 - GNOME3
------------------------------------------------------------------------------------------------------------------------------------------------------------
sudo cp /etc/gdm3/daemon.conf /etc/gdm3/daemon.conf.back
sudo nano /etc/gdm3/daemon.conf
########################################################################
Under [daemon] entry uncomment these two lines:
AutomaticLoginEnable = true
AutomaticLogin = donald
########################################################################
sudo dpkg-reconfigure gdm3