You are not logged in.
Hi, I just got to the part of the Beginners guide, dealing with gnome and for some reason
$ startx
didn't give me a gnome desktop, X same with
$ xinit
but
$ xinit /usr/bin/gnome-session
worked and gave me a desktop. From the gnome guide
$ gnome-session
generated the following error
** (gnome-session:4591): WARNING **: Cannot open display:
Anyone know why I am getting these errors?
VNC
my xstartup used to look like
#!/bin/sh
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
with exec gnome-session added in, it still gave me a x desktop. Now it looks like
#!/bin/sh
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
exec gnome-session
and works. Am I missing out on anything by omitting the old stuff? Any suggestions? Also if my inittab looks like this
#
# /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:3: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 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 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
Do I need to worry about the login security hole?
Offline
Have you tried putting 'exec gnome-session' in your .xinitrc?
Offline
That file does not exist.
Offline
If you don't use a display manager, create one.
http://wiki.archlinux.org/index.php/Xinitrc
Offline
If you don't use a display manager, create one.
Ok, but if I make any display manager do I become susceptible to this attack? Further, am I ok with my current xstartup?
Offline