What to do first? Install video card driver or install X.Org?

Kalero

Member

Thanks: 8
Messages: 93

#1
Hi,

I would like to know what is the recommended way to properly set up the desktop. Should someone first install the video card driver (for instance, NVIDIA) and then install X.Org or first install X.Org and then install the video card driver? Or it doesn't matter? Thanks.
 

ShelLuser

Son of Beastie

Thanks: 1,413
Messages: 3,068

#2
Doesn't matter too much. In most cases you need to explicitly configure the driver manually anyway. Don't forget that FreeBSD doesn't automatically configure or activate stuff.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,329
Messages: 27,494

#3
Normally it shouldn't matter but the NVidia driver might be a notable exception because it uses its own version of a few Xorg libraries. So I would install Xorg first, then the NVidia driver. For every other driver it shouldn't matter.
 

shepper

Aspiring Daemon

Thanks: 238
Messages: 709

#5
A pitfall for some new users is the installation and enabling of display manager, prior to verifying a working xorg. The NVidia ports also has some xorg dependencies:
From the NVidia Makefile:
Code:
30     ARCH_SUFX=      x86${ARCH:S/i386//:S/amd/_/}
31     USES=           kmod uidfix
32     USE_XORG=       x11 xorg-server xext
33     USE_GL=         gl
IMHO:
1) Build/Install xorg. You will also need a simple window manager like twm
2) Build NVidia driver - I do not run NVidia, but my understanding is that you also need to generate an xorg.conf/xorg.conf.d
3) Test your build and configuration with the local command "startx".
4) If startx works then install your display manager and preferred DE/WM
 

shepper

Aspiring Daemon

Thanks: 238
Messages: 709

#7
'startx' is not necessarily the right command,
for example for xfce the command is called ' startxfce4 '
startx would be the correct command if the installation sequence I recommended is followed. Xfce4 is a Desktop Environment (DE) and installation of a DE was the 4th step - after confirming xorg works. The "full" xorg installation includes twm and a system wide default xinitrc that will start twm.
 

ucomp

Member

Thanks: 1
Messages: 25

#8
yes, by default ' startx' starts TWM( nothing else) . Assuming that TWM is not what you want after xfce-Installation just type `startxfce4`instead of it.
Or you can mix TWM and xfce with ' startx' and 'startxfce4' (typing in TWM) .
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,329
Messages: 27,494

#9
Or create a ~/.xinitrc:
Code:
exec startxfce4
And start XFCE using startx. Using startx is common and you can decide which WM or DE to start through ~/.xinitrc. If ~/.xinitrc doesn't exist, a startx simply falls back to a system-wide xinitrc, which starts TWM by default.
 

Nikaea

New Member

Thanks: 3
Messages: 11

#10
I'm a step behind. Is there a thread where I can pick up from how to install a DE? I've got 12.0 running in VM under Linux Arch but I'm not sure what the next step is. Thanks for pointing me in the right direction.
 
Top