Man my /etc/gdm3/daemon.conf file already (default) having this code
[daemon]
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = root
now what to change in it its already the same that you described. I have to login twice one time in terminal and one time graphical do you have any other solution for it???