You are not logged in.

#1 2008-05-25 18:40:59

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

how do I boot directly onto my desktop without having to login?

I did a search but I am probebly not entering the proper search words what I am wanting to do is to be able to just log in to my Arch desktop with having to login and then pw the startxfce4 command I know that there must be a way to do this but not sure how

Offline

#2 2008-05-25 18:47:47

vomix
Member
From: Belgium
Registered: 2007-05-02
Posts: 84

Re: how do I boot directly onto my desktop without having to login?

You can use mingetty (in AUR) to auto-login on a tty (1), then add something like this

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
  startx
  logout
fi

in your ~/.bash_profile (2).

(1) Automatically login some user to a virtual console on startup
(2) Start X at boot

smile

Offline

#3 2008-05-25 18:49:57

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

vomix wrote:

You can use mingetty (in AUR) to auto-login on a tty (1), then add something like this

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
  startx
  logout
fi

in your ~/.bash_profile (2).

(1) Automatically login some user to a virtual console on startup
(2) Start X at boot

smile

thank you .. I knew there had to be a way or two

Offline

#4 2008-05-25 18:51:42

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: how do I boot directly onto my desktop without having to login?

Or you can use kdm or gdm (they both support auto login I think).

Offline

#5 2008-05-25 19:38:38

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

bender02 wrote:

Or you can use kdm or gdm (they both support auto login I think).

not sure what you mean I am a nooby and I might be misunderstanding you  I am using xcfe4 is that the similar to kdm or gdm?

Offline

#6 2008-05-25 20:01:00

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: how do I boot directly onto my desktop without having to login?

Shadowmeph wrote:
bender02 wrote:

Or you can use kdm or gdm (they both support auto login I think).

not sure what you mean I am a nooby and I might be misunderstanding you  I am using xcfe4 is that the similar to kdm or gdm?

KDM and GDM are both graphical login managers for KDE and GNOME respectively.

You can find GDM in the [extra] repo:

pacman -Sy gdm

Then you may allow autologin, just add:

AutomaticLoginEnable=true
AutomaticLogin=whatever_username

to /etc/gdm/custom.conf, and then make sure to add gdm to your DAEMONS /etc/rc.conf (put it as the last daemon in the list) array.

Last edited by LTSmash (2008-05-25 20:01:52)


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#7 2008-05-25 20:24:07

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

LTSmash wrote:
Shadowmeph wrote:
bender02 wrote:

Or you can use kdm or gdm (they both support auto login I think).

not sure what you mean I am a nooby and I might be misunderstanding you  I am using xcfe4 is that the similar to kdm or gdm?

KDM and GDM are both graphical login managers for KDE and GNOME respectively.

You can find GDM in the [extra] repo:

pacman -Sy gdm

Then you may allow autologin, just add:

AutomaticLoginEnable=true
AutomaticLogin=whatever_username

to /etc/gdm/custom.conf, and then make sure to add gdm to your DAEMONS /etc/rc.conf (put it as the last daemon in the list) array.

thank you

Offline

#8 2008-05-25 20:50:51

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: how do I boot directly onto my desktop without having to login?

or put this in /etc/inittab:

x:5:once:/bin/su username -l -c "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null"

Offline

#9 2008-05-25 23:00:57

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: how do I boot directly onto my desktop without having to login?

Shadowmeph wrote:
LTSmash wrote:
Shadowmeph wrote:

not sure what you mean I am a nooby and I might be misunderstanding you  I am using xcfe4 is that the similar to kdm or gdm?

KDM and GDM are both graphical login managers for KDE and GNOME respectively.

You can find GDM in the [extra] repo:

pacman -Sy gdm

Then you may allow autologin, just add:

AutomaticLoginEnable=true
AutomaticLogin=whatever_username

to /etc/gdm/custom.conf, and then make sure to add gdm to your DAEMONS /etc/rc.conf (put it as the last daemon in the list) array.

thank you

You're welcome.


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#10 2008-05-26 04:41:44

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: how do I boot directly onto my desktop without having to login?

scrawler wrote:

or put this in /etc/inittab:

x:5:once:/bin/su username -l -c "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null"

This way gets my vote.

Offline

#11 2008-05-26 11:37:32

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: how do I boot directly onto my desktop without having to login?

somairotevoli wrote:
scrawler wrote:

or put this in /etc/inittab:

x:5:once:/bin/su username -l -c "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null"

This way gets my vote.

Will it work without the ">/dev/null 2>/dev/null" bit?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#12 2008-05-26 13:42:43

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: how do I boot directly onto my desktop without having to login?

Offline

#13 2008-05-27 18:00:57

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

LTSmash wrote:
Shadowmeph wrote:
LTSmash wrote:

KDM and GDM are both graphical login managers for KDE and GNOME respectively.

You can find GDM in the [extra] repo:

pacman -Sy gdm

Then you may allow autologin, just add:

AutomaticLoginEnable=true
AutomaticLogin=whatever_username

to /etc/gdm/custom.conf, and then make sure to add gdm to your DAEMONS /etc/rc.conf (put it as the last daemon in the list) array.

thank you

You're welcome.

I had to reinstall Arch . I but when I installed and entered the above and reboot the GUI pops up asking for my loginname and pw and after I enter everything it boots to my desktop but it has a what looks like a white terminal box and if I close that it goes back to the GUI again. is there something I am missing I am very sure I followed the instructions exactly the way the are written.


I also don't want to do the

scrawler wrote:

    or put this in /etc/inittab:

    x:5:once:/bin/su username -l -c "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null"

because it boots me in as a su which I think isn't a good thing.. is it?

Offline

#14 2008-05-27 19:02:19

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: how do I boot directly onto my desktop without having to login?

No, it does not log you in as root. It runs the command "startxfce4" as the user "username".
The su command can be used to run commands as a specific user.


First, it runs the command "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null" as the user "username".
Bash then in turn runs "startxfce4 >/dev/null 2>/dev/null". And Bash runs as the user "username".

Last edited by gnud (2008-05-27 19:03:17)

Offline

#15 2008-05-27 20:06:17

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: how do I boot directly onto my desktop without having to login?

somairotevoli wrote:

Yep, that's where I got it.  I forgot the runlevel bit though.

Offline

#16 2008-05-29 21:33:30

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

gnud wrote:

No, it does not log you in as root. It runs the command "startxfce4" as the user "username".
The su command can be used to run commands as a specific user.


First, it runs the command "/bin/bash --login -c startxfce4 >/dev/null 2>/dev/null" as the user "username".
Bash then in turn runs "startxfce4 >/dev/null 2>/dev/null". And Bash runs as the user "username".

hmm then why does it say

where PREFERED_USER is the user of your choice.

Instead of startx, you can of course have any program or self-written script you wish to execute. Myself, I have startx -- -nolisten tcp -br -deferglyphs 16 instead of just startx
you can then choose window manager by editing ~/.xinitrc.

Putting startxfce4 (or xinit, and putting to /.xinitrc for example icewm, and copying ~/.icewm to /.icewm) in /etc/rc.local is also an option, but note that both X and xfce (or the WM/DE of your choice) will start as super-user, which is generally not recommended. Of course you could use the same trick as above and execute your desktop with a /bin/su.

Offline

#17 2008-05-29 22:24:47

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: how do I boot directly onto my desktop without having to login?

Shadowmeph wrote:

hmm then why does it say

where PREFERED_USER is the user of your choice.

Instead of startx, you can of course have any program or self-written script you wish to execute. Myself, I have startx -- -nolisten tcp -br -deferglyphs 16 instead of just startx
you can then choose window manager by editing ~/.xinitrc.

Putting startxfce4 (or xinit, and putting to /.xinitrc for example icewm, and copying ~/.icewm to /.icewm) in /etc/rc.local is also an option, but note that both X and xfce (or the WM/DE of your choice) will start as super-user, which is generally not recommended. Of course you could use the same trick as above and execute your desktop with a /bin/su.

That's what they have above.

Offline

#18 2008-05-29 22:31:06

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: how do I boot directly onto my desktop without having to login?

oh either way this doesn't seem to work for me I still have to login/pw then startxfce4 to get to my desk top I try it the gdm way be after I sign in using the gui my desktop doesn't load but I get a little terminal ( white colored) in the upper left side of my screen so I had to go back into the rc.config and remove GDM then  I can get to my desktop via login/pw startxfce4

Offline

#19 2008-09-20 02:31:56

joan
Member
Registered: 2008-09-20
Posts: 20

Re: how do I boot directly onto my desktop without having to login?

I have the same problem here trying to automatically login into kde.  Neither these suggestions nor http://wiki.archlinux.org/index.php/Aut … on_startup or http://wiki.archlinux.org/index.php/Start_X_at_boot have worked for me. Any new suggestion of what might be going wrong?

Offline

#20 2009-02-23 01:30:32

joan
Member
Registered: 2008-09-20
Posts: 20

Re: how do I boot directly onto my desktop without having to login?

I got it working by opening the system settings as a root user with
kdesu systemsettings
then going to the advanced tab, system settings, convenience tab and checking "Enable Auto-Login" and selecting me as a user.

Offline

#21 2009-02-23 03:54:35

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 683

Re: how do I boot directly onto my desktop without having to login?

joan wrote:

I have the same problem here trying to automatically login into kde.  Neither these suggestions nor http://wiki.archlinux.org/index.php/Aut … on_startup or http://wiki.archlinux.org/index.php/Start_X_at_boot have worked for me. Any new suggestion of what might be going wrong?

In KDE, open Konsole and type

sudo kcmshell4 kdm

In the Systemsettings module that then opens, select the "Convenience" tab and choose "auto-login" and the user you want to log in.

Edit: Silly me, I did not see your last post. Too tired... tongue

Last edited by mutlu_inek (2009-02-23 03:55:25)

Offline

Board footer

Powered by FluxBB