Gentoo Archives: gentoo-user

From: Craig Michael Wayman <craigwayman@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I get KDE to start on boot?
Date: Wed, 15 Nov 2006 01:10:01
Message-Id: 200611150102.36211.craigwayman@hotmail.com
In Reply to: [gentoo-user] How do I get KDE to start on boot? by Daevid Vincent
1 Hi,
2
3 This is what I use to start kde on boot.
4
5 I let the xdm startup script launch kdm for me.
6
7 localhost ~ # cat /etc/conf.d/xdm
8 # Tell X to always start on VT7. Otherwise it autodetects the first available
9 # VT, which means it has to wait until all gettys are started so it doesn't
10 suck
11 # up a VT that should have had a login prompt (very slow).
12 # If XSTATICVT is on, the login manager will start as soon as possible during
13 # the boot process. If you want X to dynamically start on the first unoccupied
14 # VT after all gettys have started and you are using xdm, also remove
15 the "vt7"
16 # from /etc/X11/xdm/Xservers.
17 XSTATICVT="yes"
18
19 # What display manager do you use ? [ xdm | gdm | kdm | entrance ]
20 # NOTE: If this is set in /etc/rc.conf, that setting will override this one.
21 DISPLAYMANAGER="kdm"
22
23 The XSESSION variable in /etc/rc.conf is commented.
24
25 I then have xdm start in the default runlevel.
26
27 localhost ~ # rc-update show default
28 ...
29 xdm | default
30
31 to add use 'rc-update add xdm default' as root
32
33 localhost ~ # rc-update add xdm default
34
35 I also have this session script in /etc/X11/Sessions:
36
37 localhost ~ # cat /etc/X11/Sessions/kde-3.5
38 #!/bin/sh
39 exec /usr/kde/3.5/bin/startkde
40
41 Hope this helps,
42 Craig
43
44 PS. My First Post To This List! Hello Everyone!
45
46 On Wednesday 15 November 2006 00:32, Daevid Vincent wrote:
47 > This seems like a newb question. I've been using my Gentoo for a few years
48 > now, and since X/KDE/Gnome/etc. never seemed to be quite stable, I always
49 > booted into command lines and then manually 'startx' JICSH.
50 >
51 > But I find myself almost always doing that these days, so I suppose it's
52 > time to make the plunge so that X starts when I boot up. I'm still a bit
53 > worried about hibernation (which I don't have working anyways - yet), I
54 > recall there were issues with nvidia and suspending to HD/RAM if you were
55 > in X. That could be old news?
56 >
57 > Anyways, I can't get this to work. When I boot up, the screen is BLACK. Not
58 > just back-lit black, but like there's no power black. If I CTRL+ALT+1, I
59 > get to a shell prompt.
60 >
61 > Here are some interesting areas:
62 >
63 > * kde-base/kde
64 > Latest version available: 3.5.5
65 > Latest version installed: 3.5.5
66 >
67 > locutus ~ # ll /etc/X11/Sessions/
68 > total 28
69 > drwxr-xr-x 2 root root 4096 Nov 14 16:01 .
70 > drwxr-xr-x 21 root root 4096 Oct 23 18:02 ..
71 > -rwxr-xr-x 1 root root 2464 Nov 8 17:31 Gnome
72 > -rwxr-xr-x 1 root root 2187 Oct 23 16:56 Xsession
73 > -rwxr-xr-x 1 root root 33 Apr 26 2006 icewm
74 > -rwxr-xr-x 1 root root 41 Nov 8 16:19 kde-3.5
75 > -rwxr-xr-x 1 root root 29 Aug 20 2004 xfce
76 >
77 > locutus ~ # cat /etc/inittab
78 > ...
79 > # Default runlevel.
80 > id:5:initdefault:
81 > # That was '3' before and I thought I remembered it was supposed to be '5'
82 > ?!
83 >
84 > locutus daevid # cat /home/daevid/.xinitrc
85 > exec startkde
86 >
87 > locutus daevid # cat /etc/rc.conf
88 > XSESSION="kde-3.5"
89 > DISPLAYMANAGER="kdm"
90 >
91 > locutus daevid # rc-update show
92 > ...
93 > xdm | default
94 > ...
95 >
96 >
97 > ÐÆ5ÏÐ
98
99 --
100 gentoo-user@g.o mailing list