You are not logged in.

#1 2010-10-03 09:57:06

Hybris
Member
Registered: 2010-10-03
Posts: 11

Still can't boot into wm.

Hello Arch forum!

This is my first post. I just installed Arch yesterday from a core-cd. After a lot of configuring and troubleshooting (mirrors were seemingly out-of-sync), I got almost everything to work.
Arch is living up to my expectations so far wink

The problem is that I still boot into tty1, and then I have to execute "xinit /usr/bin/xmonad" to open my wm, xmonad, despite having edited /etc/inittab, like the beginners guide and the wiki says.

Without further ado, I'll copy the relevant files here:

inittab:

http://pastebin.com/2arCTGKX


.xinitrc:

http://pastebin.com/VedyJ4BJ

The weird thing is that while booting, I saw "entering runlevel 5".
So it should then run the display manager (xdm), ask me for login, and the open xmonad.

I already read the beginners guide, and different wiki-articles, but I can't figure this one out. I would try the IRC channel, but I thought it was more convenient to make a post here, what with the files.
In any case, sooner or later I would make a post on this forum. I hope I don't break any forum etiquette (I looked at the forum etiquette thread, but briefly).

- Hybris

edit: now with pastebin.

Last edited by Hybris (2010-10-03 10:10:17)

Offline

#2 2010-10-03 10:06:38

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Still can't boot into wm.

Welcome to the forums Hybris, please use code-tags when pasting code or config files, it helps to keep things readable.


ᶘ ᵒᴥᵒᶅ

Offline

#3 2010-10-03 10:12:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Still can't boot into wm.

Your wm should be the last line in xinitrc

According to the xmonad wiki article:

To start xmonad automatically, simply add the command exec xmonad to your startup script (e.g. ~/.xinitrc). GDM and KDM users can create a new session file and then select xmonad from the appropriate Session menu.
Recently, users in #xmonad have stated that the exec is not required; simply adding xmonad as the last line in your startup script is the proper way to start this WM. Please use whichever method works for you. If using ck-launch-session, the exec is probably still required.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2010-10-03 10:20:03

Hybris
Member
Registered: 2010-10-03
Posts: 11

Re: Still can't boot into wm.

Ok, fixed. But I had that line at the end before as well, and it behaved the same way.

Offline

#5 2010-10-03 10:31:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Still can't boot into wm.

Maybe http://wiki.archlinux.org/index.php/Start_X_at_Boot will help.

Last edited by karol (2010-10-03 10:35:28)

Offline

#6 2010-10-03 10:33:51

Hybris
Member
Registered: 2010-10-03
Posts: 11

Re: Still can't boot into wm.

Well, that wiki says:
"The majority of users wishing to start an X server during the boot process will want to install a display manager, and see Display Manager for details."

So I went to the Display Manager article, and did what it said. With said results. I don't want to boot into the wm without logging in, like the option in "Start_X_at_Boot" suggests.

Offline

#7 2010-10-03 10:35:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Still can't boot into wm.

IIRC 'xsetroot -cursor_name leftr_ptr' should have '&' at the end:

xsetroot -cursor_name leftr_ptr &

Offline

#8 2010-10-03 10:38:33

Hybris
Member
Registered: 2010-10-03
Posts: 11

Re: Still can't boot into wm.

They omit the "&" in the example in http://wiki.archlinux.org/index.php/Xmonad

(BTW, I have problems with my sound too, should I make a seperate thread, or just write another post here?)

edit: Sound issues fixed.

update:

I tried running "sh .xinitrc" when I boot into tty1 instead of "xinit /usr/bin/xmonad"

Output:

Cannot open display "default display"
xsetroot: unable to open display ' '
/home/my_username/.xmonad/xmonad-x86_64-linux executeFile: does not exist 
xmonad: user error (open Display)

I haven't seen this before, so this must mean that .xinitrc is never even run at boot. I don't know what these error mean, but it's true that I don't have an .xmonad dir in my user dir.

edit: I think the main problem is something with the dm. I try using the xdm (see link to inittab in OP). I don't want to use

 x:5:once:/bin/su PREFERED_USER -l -c '/usr/bin/startx >/dev/null 2>&1'  

because I want a login screen.

Last edited by Hybris (2010-10-03 12:07:36)

Offline

#9 2010-10-03 13:14:13

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Still can't boot into wm.

As said on irc:

15:02:20  MrElendig ╡ mkdir -p ~/.xmonad
15:02:55  MrElendig ╡ echo -e "import XMonad\nmain = xmonad defaultConfig" > ~/.xmonad/xmonad.hs
15:03:01  MrElendig ╡ xmonad --recompile

Last edited by Mr.Elendig (2010-10-03 13:14:40)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2010-10-03 13:18:39

Hybris
Member
Registered: 2010-10-03
Posts: 11

Re: Still can't boot into wm.

Ok, I did that. Then I created xmonad.desktop as in here: http://wiki.archlinux.org/index.php/Xmo … ind_xmonad, like you said.

Rebooted. Doesn't work. After going into runlevel 5, there are some error messages that dissappear too quickly to read them, and it goes to tty1.

Offline

#11 2010-10-03 13:25:35

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Still can't boot into wm.

Are you using GDM? You said you were using XDM, and they are two different things. I would use slim, or even better, startx.

Offline

#12 2010-10-03 13:51:04

Hybris
Member
Registered: 2010-10-03
Posts: 11

Re: Still can't boot into wm.

I started with using xdm, but then MrElendig suggested to switch to gdm, so that's what I did.

I decided not to waste more time on this, so I changed inittab to boot me straight up to xmonad, without asking for loginname or password. But it's not exactly what I wanted hmm

Offline

#13 2010-10-03 14:49:31

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Still can't boot into wm.

Show us your new inittab. Have you changed the init runlevel to 5, and have you uncommented the gdm line?

Offline

#14 2010-10-03 14:59:54

el_nadi
Member
Registered: 2010-08-18
Posts: 2

Re: Still can't boot into wm.

Are you sure you installed and configured your window manager properly? Installing and running Slim was pretty easy for me, so maybe it would be a good choice for you.

Offline

#15 2010-10-03 15:10:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: Still can't boot into wm.

I think we trying to run when we have not yet established that we can walk.  I would start at run level 3 and not but the login manager in the daemons array.

Then I'd log into a console and, using root privileges, start the login manager by hand

/etc/rc.d/xdm start

At the least, this should enable you to read error messages.

Once you can start it by hand, move on to starting it at run level 5.  IMHO, don't start it from the daemons array (personal bias I guess... To much Slackware and Gentoo in my background)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB