auto login with xfce?
Brian J. Tarricone
bjt23 at cornell.edu
Fri Feb 8 21:06:17 CET 2008
Brian J. Tarricone wrote:
> Daniele wrote:
>>> To make your whole system work properly you should start your xfce4 as
>>> follows:
>>>
>>> su -l user_name -c 'source /etc/profile;startx &' &> /dev/null
>> Hi every1,
>> I tried that command out in Ubuntu Gusty at sturtup but it doesn't seem to work.
>> su - user_name -c startxfce4 doesn't work either.
>> Is that because in ubuntu I should use 'sudo <something> ' instead ?
>
> Might want to ask in an Ubuntu-related forum. That should work
> everywhere, assuming you're adding it to your startup scripts, and not
> trying to run that as a regular user (there's really no reason to run it
> as a regular user anyway).
... though, if you do want to use sudo instead, I believe the equivalent
command would be
sudo -i -u $your_username startxfce4
The -i option should ensure that startxfce4 is run with the correct
environment. Be sure you have /etc/sudoers set up so you're allowed to
run startxfce4 without entering a password, though this shouldn't be an
issue if you run that command as root.
-brian
More information about the Xfce
mailing list