Hi,
I had problems with armbian and unofficial jessie images for my Odroid-C2, so I want to try out dietpc.
Everything good so far and easy to setup except that I need to get the odroid to logon to desktop automatically at startup AS USER NOT ROOT.
How do I do that?
thx
Autologon to desktop as user Topic is solved
Re: Autologon to desktop as user
Which desktop are you using, and whats the user name?Brezel wrote:Hi,
I had problems with armbian and unofficial jessie images for my Odroid-C2, so I want to try out dietpc.
Everything good so far and easy to setup except that I need to get the odroid to logon to desktop automatically at startup AS USER NOT ROOT.
How do I do that?
thx
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Autologon to desktop as user
the user is "odroid" and the desktop environment is lxde
thx
thx
-
- Posts: 13
- Joined: Tue Mar 21, 2017 10:13 am
Re: Autologon to desktop as user
desperately need this
diet-config autologin option should ask for the non-root user login
and its not great to run Desktop as root
sorry for resurrecting this old thread
diet-config autologin option should ask for the non-root user login
and its not great to run Desktop as root
sorry for resurrecting this old thread
Re: Autologon to desktop as user
Do you have this file?
If so, you should find the following iine:
Remove the # and change it to have your username at the end. As an example:
If you don't have that file... sorry, I have no idea.
Code: Select all
/etc/lightdm/lightdm.conf
Code: Select all
#autologin-user=
Code: Select all
autologin-user=myusername
Re: Autologon to desktop as user
Hi,kamilmirza wrote:desperately need this
diet-config autologin option should ask for the non-root user login
and its not great to run Desktop as root
sorry for resurrecting this old thread
We are looking to replace root user with non-root user throughout DietPi. This would resolve this thread, please see here for status:
https://github.com/Fourdee/DietPi/issues/796
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Autologon to desktop as user
Hi folks. So I am following development of this upcoming change however Im wondering if there's a fix in the short-term that will work for me.
I have several apps (VLC/Chromium) I use that complain about being run as root. 
What mechanism is "DietPi-AutoStart/2 Desktops: Automatic login (recommended)" using to login root and start X? (file/s to edit?)
Thanx!


What mechanism is "DietPi-AutoStart/2 Desktops: Automatic login (recommended)" using to login root and start X? (file/s to edit?)
Thanx!

Re: Autologon to desktop as user
Hi,MetalMusicAddict wrote:Hi folks. So I am following development of this upcoming change however Im wondering if there's a fix in the short-term that will work for me.I have several apps (VLC/Chromium) I use that complain about being run as root.
What mechanism is "DietPi-AutoStart/2 Desktops: Automatic login (recommended)" using to login root and start X? (file/s to edit?)
Thanx!
Try, editing:
Code: Select all
/DietPi/dietpi/login
Code: Select all
#Desktop (LXDE/MATE etc)
elif (( $AUTO_START_INDEX == 2 )); then
sudo -u dietpi startx
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Autologon to desktop as user
I've tested this method on my odroid c2 with LXDE
Not working for me, I'm getting Xorg error, permission denied and connection refused, maybe I have to add my user to the sudoers list. Will report on this when I have tested.
I did manage to autologin into my normal unprivileged user by selecting login into lightdm in dietpi-config and addingto /etc/lightdm/lightdm.conf
However this results in some weird behaviour:
LXDE starts perfectly, showing the desktop for a second and then turning all black.
To regain visuals I have to select the whole desktop space with the mouse, lxde will reapear after I have selected that screen area.
Workable but not ideal, any suggestion more than welcome.
EDIT: added
to /etc/sudoers
Desktop appears perfect now, but with error:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
added LXDE to
to /etc/xdg/autostart/lxpolkit.desktop
without result :/
Not working for me, I'm getting Xorg error, permission denied and connection refused, maybe I have to add my user to the sudoers list. Will report on this when I have tested.
I did manage to autologin into my normal unprivileged user by selecting login into lightdm in dietpi-config and adding
Code: Select all
autologin-user=myuser
However this results in some weird behaviour:
LXDE starts perfectly, showing the desktop for a second and then turning all black.
To regain visuals I have to select the whole desktop space with the mouse, lxde will reapear after I have selected that screen area.
Workable but not ideal, any suggestion more than welcome.
EDIT: added
Code: Select all
myuser=ALL=(ALL:ALL) ALL
Desktop appears perfect now, but with error:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
added LXDE to
Code: Select all
NotShowIn=GNOME;KDE;LXDE;
without result :/