GDM Login Help

I've installed Xfce4 and GDM. My rc.conf file is properly configured with:

Code:
gdm_enable="YES"

Upon boot, the GDM login screen appears, I log in, but it boots into GNOME 2. This is a brand new install. I have only installed Xorg, Xfce4 and GDM. I don't want to load up GNOME, I don't even want GNOME on my system. How do I change this so GDM loads into Xfce4? Thanks
 
You need to create a ~/.xinitrc containing:
Code:
exec /usr/local/bin/startxfce4
 
trh411 said:
By any chance do you have
Code:
gnome_enable="YES"
in /etc/rc.conf?

No -- just gdm.

I've ~/.xinitrc and /usr/local/etc/gdm/Sessions/Xfce.desktop configured as per the Handbook and Xfce Wiki. Xfce4 starts with startx. But, system boot loads GDM which then loads up Gnome upon login! I never even installed Gnome, I have no idea how it's even on my system.

Any idea what the problem might be?
 
That's very weird :\

Note that
Code:
Exec=/usr/local/bin/startxfce4
tells x11/gdm to use your regular .xinitrc file to set up the session, just like it would if you used startx

Show your Xfce.desktop file.
 
Code:
% [cmd]cat /usr/local/etc/gdm/Sessions/Xfce.desktop[/cmd]
[Desktop Entry]
  Encoding=UTF-8
  Name=Xfce4
  Comment=Use this session to run Xfce 4.4 as your desktop environment
  Exec=/usr/local/bin/startxfce4
  Icon=/usr/local/share/pixmaps/xfce4_xicon1.png
  Type=Application

Code:
% [cmd]cat .xinitrc[/cmd]
exec /usr/local/bin/startxfce4

startx works fine. It is very weird that Gnome loads from GDM when I haven't even installed Gnome! Lol

Any suggestions would be greatly appreciated :)
 
markbsd said:
Maybe I should mv /usr/local/etc/gdm/Sessions/Xfce.desktop to /usr/local/etc/X11/Xfce.desktop?

Don't do that. Try to create Xfce.desktop at the /usr/local/share/xsessions directory. Remember that you have to restart gdm after you created the file.
 
I've already got an xfce.desktop file in there (I didn't know). It has lots of (weird) lines in it:

Code:
[Desktop Entry]
Version=1.0
Name=Xfce Session
Name[ar]=���^����� ���^����^���
Name[bg]=Xfce �^����^����^�
Name[ca]=Sessi�� Xfce
Name[cs]=Relace prost�^�ed�� Xfce
Name[da]=Session til Xfce
Name[de]=Xfce-Sitzung
Name[el]=���^��������^����� Xfce
Name[en_GB]=Xfce Session
Name[es]=Sesi��n de Xfce
Name[eu]=Xfce saioa
Name[fi]=Xfce-istunto
Name[fr]=Session Xfce
Name[gl]=Sesi��n de Xfce
Name[hr]=Xfce sesija
Name[hu]=Xfce munkamenet
Name[id]=Sesi Xfce

<snip>

Comment=Use this session to run Xfce as your desktop environment
Comment[ar]=���������^��^� �^����^� ���^����^����� �^��������^��^� ���^����^��� �^������� �^��^�����
Comment[bg]=�^������������������^��� �^������� �^����^����^� ���� �^��^����^��^����^������� ���� Xfce �����^��� �����^����^��� ���^����^����^����� �^��^�����$
Comment[ca]=Empra aquesta sessi�� per executar l'Xfce com el vostre entorn d'escriptori
Comment[cs]=Pou����t tuto relaci ke spu��t�^�n�� Xfce jako va��eho pracovn��ho prost�^�ed��
Comment[da]=Brug denne session til at k��re Xfce som dit skrivebord
Comment[de]=W��hlen Sie diese Sitzung, um Xfce als Ihre Arbeitsumgebung auszuf��hren

<snip>

Exec=startxfce4
Icon=
Type=Application

Looks like you might be onto something! I'll just add the lines from my other xfce.desktop to this weird looking file and see what happens :)
 
cpm said:
Don't do that. Try to create Xfce.desktop at the /usr/local/share/xsessions directory. Remember that you have to restart gdm after you created the file.

Thanks!

Code:
/usr/local/share/xsessions % ls
.                     ..                    gnome.desktop         xfce.desktop          xfce.desktop.original

Do I need to gdm restart before rebooting?
 
@cpm, you're a legend! It worked :)

Now, I just need to change that ugly GDM login screen! How is it that I have GNOME on my system though? Can I pkg remove gnome without suffering any problems?
 
Last edited by a moderator:
Yes, you can remove it by running pkg delete gnome2. Anyway, GDM is an option included on x11-wm/xfce4.

Code:
[CMD]% cd /usr/ports/x11-wm/xfce4 && make pretty-print-config[/CMD]
+APPFINDER -GDM +ICONS -MIXER +MOUSEPAD +NOTIFY +ORAGE -PRINT -SQUEEZE +TERMINAL -XPM

According to pkg/FAQ:

If you forcibly delete a package it's assumed you understand that you know you're doing something that can break your system. pkg check will detect missing dependency packages and reinstall as required.

Read more details about PKGNG:

http://www.freebsd.org/doc/handbook/pkgng-intro.html.
https://wiki.freebsd.org/pkgng.

Regarding to change your gdm theme, see here.
 
Back
Top