Re: setting up gdm on freebsd

Thomas Stein <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
On 02.05.2006, 12:37 Uhr, Peter wrote:
> I'm running fluxbox 0.1.14 on FreeBSD 5.4 and I cannot get the GDM
> display manager to work.  The fluxbox docs say to edit one of two
> files:
> 
> /etc/gdm/Sessions/fluxbox
> /etc/X11/gdm/Sessions/fluxbox
> 
> But I do not have either /etc/gdm or /etc/X11/gdm directories on my box
> (I installed gdm by port).

Is there something in the /usr/share/gdm directory? I'm using Debian
Linux here and

$  ls -l /usr/share/gdm

shows the following:

total 144
drwxr-xr-x   2 root root   4096 Apr 11 14:25 BuiltInSessions
-rw-r--r--   1 root root  11143 Mar 31  2005 gdmchooser.glade
-rw-r--r--   1 root root 121486 Mar 31  2005 gdmsetup.glade
drwxr-xr-x  14 root root   4096 Apr 11 14:25 themes

If you have the BuiltInSessions directory under /usr/share/gdm and a
file default.desktop in it, GDM is already using this directory. Maybe you
can create a "Sessions" directory here and place the fluxbox
file in it (or just put the fluxbox file into BuiltInSessions, perhaps
this works too).

On the other hand, you could choose "Default System Session"
from the GDM menu and start fluxbox via ~/.xsession.

> Also, I tried to run gdmsetup as root but I get errors:
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> (gdmsetup:827): Gtk-WARNING **: cannot open display:

The easiest way would be via xhost:

user@host$ xhost +localhost
localhost being added to access control list
user@host$ su -
Password:
root@host$ gdmsetup
root@host$ exit
user@host$ xhost -localhost
localhost being removed from access control list

But xhost is a nightmare in terms of system security, so if possible
avoid it and try one of the following:

user@host$ gksu gdmsetup

or

user@host$ sux gdmsetup

You will be prompted for the root password and gdmsetup will be run
with root privileges.

Regards

Thomas Stein
-- 
-4. Umm, did anyone have anything important in /usr?

	--Top 100 things you don't want the sysadmin to say
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEV6si1FztJcrh134RAo4oAKCQ0kx7LV2Bx+ItBVw9NFQdkcBsmwCgpvWY
Raf5DKEAOkhZu6pvnXHyaeY=
=lh9G
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.