You are not logged in.
Pages: 1
Hey guys I wanted to keep the forums as my LAST resort but I have no other options, and I am currently confused and dont know what to do. OK, So I reinstalled Arch completly, updated my system, added a user [main], installed dbus and added it to my daeomons, installed Xorg just as it told me to in the beginners guide [Worked fine when tested], installed Xfce [ plus goodies, and Gamin and got it workings upon startxfce4 command] and installed SLiM as my loggin manager [Did all this as root]. I had continous problems with SLiM, but read the wiki's to help me to get it working; But now slim ONLY logs in with my Root account, and no other accounts [For example I loggin in main (which is the account I made), and it says "failed to execute loggin command", and goes back to SLiM username promt, but when I log into root it logs in xfce4 fine]. Why is it doing this, and how can I fix it? I know its EXTREMLY bad practice to work from your linux machine as root, so I do not wish to; but SLiM only logs into my root account as I said early...Below is my ~/.xinitrc config file and /etc/innittab file.
~/.xinitrc -
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
/etc/inittab -
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
id:5:initdefault:
# Boot to X11
#id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >/dev/null 2>&1
# End of file
Also keep in mind main is in all the groups, it is a suoder, I load up SlIm through the inittab method, I preformed the whole post-install as root [know theres nothing bad in that but just felt stating it], and this post is my last resort, I tried everything on the wiki... Ive been up for nearly 5 hours trying to figure this out...Please help... Thank you.
Last edited by ace_w1zard (2011-06-29 09:26:28)
Offline
Which ~ is .xinitrc in? Can you give ls -l /home/main/.xinitrc regarding permissions? You said you tested startxfce4 from a terminal as root already, retry this as a normal user, e. g. log in as root on a tty, kill slim, log in as main and perform startx / startxfce4.
Offline
Which ~ is .xinitrc in? Can you give ls -l /home/main/.xinitrc regarding permissions? You said you tested startxfce4 from a terminal as root already, retry this as a normal user, e. g. log in as root on a tty, kill slim, log in as main and perform startx / startxfce4.
This is my ouput when i preform ls -l
[root@benford ~]# ls -l /home/main/.xinitrc
ls: cannot access /home/main/.xinitrc: No such file or directory
And yes as the main user i can run both startx and startxfce4. I am guessing that i must create a .xinitrc folder in /home/main and config it properly? [I suspected this early, but thought that making one in the root account would be enough].
Offline
So you don't have a .xinitrc file. Create one.
I am guessing that i must create a .xinitrc folder
No. its a file not a folder. Read up on .xinitrc in the wiki.
[I suspected this early, but thought that making one in the root account would be enough]
No because you are trying to start xfce with your user not as root
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
As inxsible pointed out, creating ~/.xinitrc as root would result in a file /root/.xinitrc, as
# echo ~
/root
But your normal users usually shouldn't even have read permissions to the roots home. So you need to create one in main's home, /home/main/, as
$ echo ~
/home/main
So, as the main user
$ touch ~/.xinitrc
would result in a file /home/main/.xinitrc
Offline
THANK YOU SO MUCH, finally got it working, and my arch install complete :DD
Offline
Pages: 1