Solved unable to run xfce

After a gap of almost 5 years, I came back to my favourite OS. Yesterday, I downloaded, and installed 13.2 stable version on my desktop.
I installed it alongside Windows, on a 50g partition with traditional split file system partitions (per this chapter in handbook)
-freebsd-ufs 2GB /
-freebsd-swap 8GB
-freebsd-ufs 2GB /var
-freebsd-ufs 2GB /tmp
-freebsd-ufs 36GB /usr

for installing the xfce, I tried the method given in handbook here, then this tutorial at freebsdfoundation, and then this youtube video.

But all of these methods are giving me error somewhere along the lines of this photo:
IMG_20230612_0344485.jpg

I do not want the slim. Would someone kindly tell me/help me to successfully install the xfce so that after booting up (and after logging in), I can launch the xfce by typing "startx"?

Thanks a lot in advance.
-usernamekiran.
 
What graphics card do you have? You might have to load a kernel module prior to launching xorg.
currently, intel UHD Graphics 770. But I will get GTX 1650 (DDR6 variant) in couple of days. Do you think the issue is because of the GPU?
 
It seems xinit cannot connect to xorg.
Copy default .xinitrc file to your home directory:
cp /usr/local/etc/X11/xinit/xinitrc ~/.xinitrc

Since you want to run xorg with startx, open .xinitrc with your favorite editor:
vim ~/.xinitrc

and remove all lines in this file and add this one:
exec startxfce4
 
DRM driver is not loaded or no device found (Not supported).

Doing a bit resarch UHD Graphics 770 support comes with 5.16.

So you have to install (at this time of writing) atleast an 14-CURRENT kernel and then build and install locally https://github.com/freebsd/drm-kmod/releases/tag/drm_v5.16_2 and https://github.com/freebsd/drm-kmod-firmware.

Code:
fetch https://github.com/freebsd/drm-kmod/archive/refs/tags/drm_v5.16_2.zip
tar -xf drm_v5.16_2.zip
cd drm-kmod-drm_v5.16_2
make
make install
make clean
git clone https://github.com/freebsd/drm-kmod-firmware.git
cd drm-kmod-firmware
make OSVERSION=1400000
make install OSVERSION=1400000
make clean OSVERSION=1400000
 
installed 13.2 stable version
"stable" as in 13.2-STABLE? If that's the case, that branch is a development branch. As normal user you should use a production quality branch as 13.2-RELEASE.

traditional split file system partitions
If there are no special reasons, nowadays one single partition would suffice.

I will get GTX 1650 (DDR6 variant) in couple of days
Then don't complicate things installing the 14-CURRENT development branch to make the Intel GPU work.

After the nVIDIA has arrived install x11/nvidia-driver, configure to load the driver /etc/rc.conf:
Code:
kld_list="nvidia-modeset"

create a Xorg configuration file:

/usr/local/etc/X11/xorg.conf.d/nvidia-driver.conf
Code:
Section "Device"
    Identifier "nVIDIA GTX 1650"
    Driver     "nvidia"
EndSection

create a ~/.xinitrc as hbsd explained.

In the meantime, until the nvidia card arrives, you can try the vesa driver. It might be sufficient. I have a AMD 5700U with Radeon Graphics "Lucienne". When using vesa, I did not notice any difference in usability between this driver and a dedicated amdgpu driver with x11-wm/openbox.

/usr/local/etc/X11/xorg.conf.d/vesa.conf
Code:
Section "Device"
    Identifier "Card0"
    Driver     "vesa"
EndSection
 
Thank you everybody. After going through all the replies, would it be wiser to:
- install the GPU in desktop
- make a fresh install of 13.2-RELEASE
- make the install with only one single ufs partition, and swap partition (like Alain De Vos and T-Daemon suggested.)
- see what issues occur, and handle them accordingly.


You were at the good page: https://docs.freebsd.org/en/books/handbook/x11/
See section 5.3.1 to get a working Xorg.
Yup, tried that before posting here :)
 
Back
Top