You are not logged in.
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
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
Offline
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
thank you .. I knew there had to be a way or two
Offline
Or you can use kdm or gdm (they both support auto login I think).
Offline
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
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
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
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
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
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
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
have a look here:
http://wiki.archlinux.org/index.php/Start_X_at_boot
Offline
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
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
have a look here:
http://wiki.archlinux.org/index.php/Start_X_at_boot
Yep, that's where I got it. I forgot the runlevel bit though.
Offline
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
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
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
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
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
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...
Last edited by mutlu_inek (2009-02-23 03:55:25)
Offline