Gentoo Archives: gentoo-user

From: Thufir <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] startx no longer gives gnome
Date: Fri, 13 Jul 2007 06:34:41
Message-Id: bf6b6d5c0707122328n1094e74eqd0df995f3c059c84@mail.gmail.com
In Reply to: Re: [gentoo-user] startx no longer gives gnome by Sabyasachi Ghosh
1 On 7/13/07, Sabyasachi Ghosh <ssgosh@×××××.com> wrote:
2 > you might try running :
3 >
4 > XSESSION="gnome" startx
5 [...]
6
7 That did the trick :)
8
9
10 thufir@localhost ~ $
11 thufir@localhost ~ $ cat /etc/conf.d/xdm
12 # Tell X to always start on VT7. Otherwise it autodetects the first available
13 # VT, which means it has to wait until all gettys are started so it doesn't suck
14 # up a VT that should have had a login prompt (very slow).
15 # If XSTATICVT is on, the login manager will start as soon as possible during
16 # the boot process. If you want X to dynamically start on the first unoccupied
17 # VT after all gettys have started and you are using xdm, also remove the "vt7"
18 # from /etc/X11/xdm/Xservers.
19 XSTATICVT="yes"
20
21 # What display manager do you use ? [ xdm | gdm | kdm | entrance ]
22 # NOTE: If this is set in /etc/rc.conf, that setting will override this one.
23 DISPLAYMANAGER="gdm"
24 thufir@localhost ~ $
25 thufir@localhost ~ $ cat /etc/rc.conf
26 # /etc/rc.conf: Global startup script configuration settings
27
28 # UNICODE specifies whether you want to have UNICODE support in the console.
29 # If you set to yes, please make sure to set a UNICODE aware CONSOLEFONT and
30 # KEYMAP in the /etc/conf.d/consolefont and /etc/conf.d/keymaps config files.
31
32 UNICODE="yes"
33
34 # Set EDITOR to your preferred editor.
35 # You may use something other than what is listed here.
36
37 EDITOR="/bin/nano"
38 #EDITOR="/usr/bin/vim"
39 #EDITOR="/usr/bin/emacs"
40
41 # DISPLAYMANAGER has moved to /etc/conf.d/xdm
42
43 # XSESSION is a new variable to control what window manager to start
44 # default with X if run with xdm, startx or xinit. The default behavior
45 # is to look in /etc/X11/Sessions/ and run the script in matching the
46 # value that XSESSION is set to. The support scripts are smart enough to
47 # look in all bin directories if it cant find a match in /etc/X11/Sessions/,
48 # so setting it to "enlightenment" can also work. This is basically used
49 # as a way for the system admin to configure a default system wide WM,
50 # allthough it will work if the user export XSESSION in his .bash_profile, etc.
51 #
52 # NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
53 # is called.
54 # 2) even if ~/.xsession exists, if XSESSION can be resolved, it will
55 # be executed rather than ~/.xsession, else KDM breaks ...
56 #
57 # Defaults depending on what you install currently include:
58 #
59 # Gnome - will start gnome-session
60 # kde-<version> - will start startkde (look in /etc/X11/Sessions/)
61 # Xsession - will start a terminal and a few other nice apps
62
63 #XSESSION="Gnome"
64 thufir@localhost ~ $
65 thufir@localhost ~ $ cat /etc/X11/xinit/xinitrc
66 #!/bin/sh
67 # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
68
69 userresources=$HOME/.Xresources
70 usermodmap=$HOME/.Xmodmap
71 xinitdir=/etc/X11
72 sysresources=$xinitdir/Xresources
73 sysmodmap=$xinitdir/Xmodmap
74
75 # merge in defaults and keymaps
76
77 if [ -f $sysresources ]; then
78 xrdb -merge $sysresources
79 fi
80
81 if [ -f $sysmodmap ]; then
82 xmodmap $sysmodmap
83 fi
84
85 if [ -f $userresources ]; then
86 xrdb -merge $userresources
87 fi
88
89 if [ -f $usermodmap ]; then
90 xmodmap $usermodmap
91 fi
92
93 # First try ~/.xinitrc
94 if [ -f "$HOME/.xinitrc" ]; then
95 XINITRC="$HOME/.xinitrc"
96 if [ -x $XINITRC ]; then
97 # if the x bit is set on .xinitrc
98 # it means the xinitrc is not a
99 # shell script but something else
100 exec $XINITRC
101 else
102 exec /bin/sh "$HOME/.xinitrc"
103 fi
104 # If not present, try the system default
105 elif [ -n "`/etc/X11/chooser.sh`" ]; then
106 exec "`/etc/X11/chooser.sh`"
107 # Failsafe
108 else
109 # start some nice programs
110 twm &
111 xclock -geometry 50x50-1+1 &
112 xterm -geometry 80x50+494+51 &
113 xterm -geometry 80x20+494-0 &
114 exec xterm -geometry 80x66+0+0 -name login
115 fi
116 thufir@localhost ~ $
117 thufir@localhost ~ $ date
118 Fri Jul 13 06:26:34 UTC 2007
119 thufir@localhost ~ $
120
121
122
123 Going to uncomment some stuff, looks like not a big deal. Yes, appears
124 to be cause by emerging some packages. Not everything emerged.
125
126
127 -Thufir
128 --
129 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] startx no longer gives gnome maxim wexler <blissfix@×××××.com>