From nobody Sat Feb 3 16:30:00 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TRynR1sKQz59gfP for ; Sat, 3 Feb 2024 16:31:07 +0000 (UTC) (envelope-from alex@alexburke.ca) Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRynQ5X78z4VQP for ; Sat, 3 Feb 2024 16:31:06 +0000 (UTC) (envelope-from alex@alexburke.ca) Authentication-Results: mx1.freebsd.org; none Content-Type: multipart/alternative; boundary="------------mqyWBmsmiRxYrUdH1YNXXsH5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexburke.ca; s=key1; t=1706977858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U4VtPYBaL4ONp1f5GtKVqW1m0UI0wGuqhE80KI4xp5g=; b=nN/2tqwuN0ZTUl+LMgmG9RPHAP/YBnDWYRicTvKb96h4kdy+PVQL9ZBOcZQ1445o+ylSfR Ft64otJSilJOLPSEukzJ7QRpZD8ZYjvnSdMt1GoqHqK+n/DisaVc7wchSnVP48RlhUssyB 42JCT6drZ2EyaKt5VGetO1VY+s1CRS8= Message-ID: <3ccf51e0-2ee5-4ecb-a89c-9cab86fceba7@alexburke.ca> Date: Sat, 3 Feb 2024 16:30:00 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Subject: Re: Installing/running X11 To: TIM KELLERS References: <20240203144851.d47zguvjtisjdsz4@yosemite.mars.lan> Cc: questions@freebsd.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alexander Burke In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 4TRynQ5X78z4VQP X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:202172, ipnet:91.218.175.0/24, country:CH] This is a multi-part message in MIME format. --------------mqyWBmsmiRxYrUdH1YNXXsH5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Tim, That's an excellent idea! I agree that the documentation can be overwhelming at first, but if you focus on one area of need at a time, there's a lot of wisdom to be had. Paul, to go this route, just "sudo pkg install desktop-installer". That said, the man page is probably worth reading before you pull the trigger: https://man.freebsd.org/cgi/man.cgi?query=desktop-installer&sektion=1&manpath=freebsd-ports Cheers, Alex On 2024-02-03 17:15, TIM KELLERS wrote: > > If you just want to get an X system up and running without initially > getting buried in all of the extensive FreeBSD documentation, try > using the port at: /usr/ports/sysutils/desktop-installer. > > From the description: > > "Desktop-installer is a post-install script to assist in setting up a > FreeBSD > desktop system using any of the mainstream desktop systems.  It > automatically > installs essential software and configures subsystems such as dbus, > CUPS, etc. > for typical use." > > You don't have to use it to install the sometimes weighty full desktop > environments.  You can use it to install/configure a very basic X > environment (think TWM).  It is script and menu driven and it works > well enough to install a working desktop environment even on > FreeBSD-CURRENT. > > I'm a ports user mainly and while desktop-installer uses packages to > do its installation, I found that looking at the edits that are made > to rc.conf, and packages that are installed are very instructive to > how the X system is configured on FreeBSD. > > I learned a great deal about how X works in FreeBSD by using this > installer, then deleting the packages, seeing what broke and what > worked and reinstalling what I wanted to have from ports.  It will > work without diving that deep (or crazy) into desktop magic on FreeBSD. > > Tim > > > On 2/3/24 11:01 AM, Alexander Burke wrote: >> Hi Paul, >> >> Forgive me if I'm mistaken, but I'm starting to get the feeling that >> you might not have paid as much attention to the wealth of >> documentation on FreeBSD as perhaps you could have. There's nothing >> wrong with just diving in, but a bit of guidance in unfamiliar waters >> is never a bad thing! >> >> The most general/basic advice is here; in this case, jump to step 9: >> https://freebsdfoundation.org/setting-up-a-desktop-environment-from-scratch/ >> >> >> Going up a notch in detail is the excellent FreeBSD Handbook. The >> Desktop section has separate subsections for the KDE, GNOME, XFCE, >> MATE, Cinnamon, and LXQT desktop environments. Look around for >> reviews and screenshots and pick one; they are listed here in >> approximate descending order of popularity: >> https://docs.freebsd.org/en/books/handbook/desktop/ >> >> I also cannot speak highly enough of vermaden's fabulous blog, which >> has generally been my first or second port of call when I had >> questions before I turned to the mailing lists. Here's his page >> collating all of his entries regarding setting up a FreeBSD desktop: >> https://vermaden.wordpress.com/freebsd-desktop/ (scroll down past the >> screenshots) >> >> There's also the FreeBSD Forums, which are very searchable: >> https://forums.freebsd.org/ >> >> Given your level of experience, I recommend sticking to packages, and >> not touching the port system. You can explore the various packages >> which exist at Freshports: >> https://www.freshports.org/ >> >> Important to remember is that packages are simply precompiled ports. >> They're a lot easier to deal with than ports. >> >> Cheers, >> Alex >> >> On 2024-02-03 15:48, Paul M Foster wrote: >>> Folks: >>> >>> For context, I have a fresh install of version 14. I've made myself >>> part of >>> the wheel and video groups. I've installed drm-kmod, xdm, >>> xf86-video-intel, >>> xfce, xorg and xterm. I've added hald_enable="YES", >>> dbus_enable="YES" and >>> kld_list="i915kms" to /etc/rc.conf. >>> >>> At this point, advice diverges significantly. Some sites say I >>> should be >>> able to just run startx and all will be fine. Some want you to run xorg >>> -configure. Some want you to hack X11 config files. >>> >>> What I can tell you is that X won't start with startx. For one >>> thing, it >>> outputs these errors: >>> >>> (EE) >>> Fatal server error: >>> (EE) no screens found(EE) >>> (EE) >>> >>> Also, for what it's worth, service dbus start works. But service >>> hald start >>> doesn't. The error is: >>> >>> hald does not exist in /etc/rc.d or the local startup directories >>> (/usr/local/etc/rc.d), or is not executable. >>> >>> I have no idea how to proceed. >>> >>> Paul >>> >> --------------mqyWBmsmiRxYrUdH1YNXXsH5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Tim,

That's an excellent idea! I agree that the documentation can be overwhelming at first, but if you focus on one area of need at a time, there's a lot of wisdom to be had.

Paul, to go this route, just "sudo pkg install desktop-installer". That said, the man page is probably worth reading before you pull the trigger:
https://man.freebsd.org/cgi/man.cgi?query=desktop-installer&sektion=1&manpath=freebsd-ports

Cheers,
Alex


On 2024-02-03 17:15, TIM KELLERS wrote:

If you just want to get an X system up and running without initially getting buried in all of the extensive FreeBSD documentation, try using the port at: /usr/ports/sysutils/desktop-installer.

From the description:

"Desktop-installer is a post-install script to assist in setting up a FreeBSD
desktop system using any of the mainstream desktop systems.  It automatically
installs essential software and configures subsystems such as dbus, CUPS, etc.
for typical use."

You don't have to use it to install the sometimes weighty full desktop environments.  You can use it to install/configure a very basic X environment (think TWM).  It is script and menu driven and it works well enough to install a working desktop environment even on FreeBSD-CURRENT.

I'm a ports user mainly and while desktop-installer uses packages to do its installation, I found that looking at the edits that are made to rc.conf, and packages that are installed are very instructive to how the X system is configured on FreeBSD.

I learned a great deal about how X works in FreeBSD by using this installer, then deleting the packages, seeing what broke and what worked and reinstalling what I wanted to have from ports.  It will work without diving that deep (or crazy) into desktop magic on FreeBSD.

Tim


On 2/3/24 11:01 AM, Alexander Burke wrote:
Hi Paul,

Forgive me if I'm mistaken, but I'm starting to get the feeling that you might not have paid as much attention to the wealth of documentation on FreeBSD as perhaps you could have. There's nothing wrong with just diving in, but a bit of guidance in unfamiliar waters is never a bad thing!

The most general/basic advice is here; in this case, jump to step 9:
https://freebsdfoundation.org/setting-up-a-desktop-environment-from-scratch/

Going up a notch in detail is the excellent FreeBSD Handbook. The Desktop section has separate subsections for the KDE, GNOME, XFCE, MATE, Cinnamon, and LXQT desktop environments. Look around for reviews and screenshots and pick one; they are listed here in approximate descending order of popularity:
https://docs.freebsd.org/en/books/handbook/desktop/

I also cannot speak highly enough of vermaden's fabulous blog, which has generally been my first or second port of call when I had questions before I turned to the mailing lists. Here's his page collating all of his entries regarding setting up a FreeBSD desktop:
https://vermaden.wordpress.com/freebsd-desktop/  (scroll down past the screenshots)

There's also the FreeBSD Forums, which are very searchable:
https://forums.freebsd.org/

Given your level of experience, I recommend sticking to packages, and not touching the port system. You can explore the various packages which exist at Freshports:
https://www.freshports.org/

Important to remember is that packages are simply precompiled ports. They're a lot easier to deal with than ports.

Cheers,
Alex

On 2024-02-03 15:48, Paul M Foster wrote:
Folks:

For context, I have a fresh install of version 14. I've made myself part of
the wheel and video groups. I've installed drm-kmod, xdm, xf86-video-intel,
xfce, xorg and xterm. I've added hald_enable="YES", dbus_enable="YES" and
kld_list="i915kms" to /etc/rc.conf.

At this point, advice diverges significantly. Some sites say I should be
able to just run startx and all will be fine. Some want you to run xorg
-configure. Some want you to hack X11 config files.

What I can tell you is that X won't start with startx. For one thing, it
outputs these errors:

(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)

Also, for what it's worth, service dbus start works. But service hald start
doesn't. The error is:

hald does not exist in /etc/rc.d or the local startup directories
(/usr/local/etc/rc.d), or is not executable.

I have no idea how to proceed.

Paul


--------------mqyWBmsmiRxYrUdH1YNXXsH5--