From nobody Sat Feb 3 16:15:41 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 4TRyRk531jz59fY1 for ; Sat, 3 Feb 2024 16:15:46 +0000 (UTC) (envelope-from trkellers@gmail.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRyRj2TkYz4RtC for ; Sat, 3 Feb 2024 16:15:45 +0000 (UTC) (envelope-from trkellers@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=BiGEvI7W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of trkellers@gmail.com designates 2607:f8b0:4864:20::733 as permitted sender) smtp.mailfrom=trkellers@gmail.com Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7853e4d3cddso49240285a.1 for ; Sat, 03 Feb 2024 08:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706976943; x=1707581743; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3sFB5dQkTlgPYU2VbP2HfgNtXgUq9ktoRIBkz8eYQXQ=; b=BiGEvI7WmGwjDw83bhIL6IJ3SeFix92uXS954a8ydB2vcbbM4qbH1iL7Siok6Tho1I jNaoYdaaIZkHDgIUBrdeykt8pXurulXS8tqPKk8K8ssS1h0oqDDfErVaUmf1z4vz+UaI RSBXvUZyA+rFnrYgcWLbI1BxNq+KguoLA3JpzW3Tq/yaXb67jdvDlIPnIISrU2tLUB6O y+EdJB8ag0wNoNMxE3jz79EfYqzydwCHMe2rZMrbKnpTOeDlWd0v3I8b/CQHicrVomxd 12aJ0DIfs+idgyVg0Qu1Q83ZxyX1Wyh1vCUvTTb9zesxzanXlCKPSqSyI9RwB1ZnexDx hzvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706976943; x=1707581743; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3sFB5dQkTlgPYU2VbP2HfgNtXgUq9ktoRIBkz8eYQXQ=; b=KrAx2sqA2CylLn57vJjz4tDxcUpL0i6mWh1jNZbvoe/xPzPFhJqzUsccpN/YAhy3Y1 QOXLkZ7SSFhAwe9uFYCc8iZ9LFkJnwzvArgvcj1RPBrP61sb0mJlz1UN9R3/3dchtWBK Y4/uhF62+HOzqMQvM44lxxKpgwUY9sJuEgHZkcor2jf7AZ/3JAyhJiZvS4tewYHsl6Hd hgyq6nYrElqiJVaWc7ebcGA7EzZl87jJ8s1oTe/NONYXY+OrMkNscZdq8wUMmLjNXvSZ buRWlc+vNghnJtMj2QvFaM3Wz7WaWfTK6u15quQUGL/zugGQyaBESWa/+Dxy8JzY+yPd kzDQ== X-Gm-Message-State: AOJu0Yxlfry6cjDF8N9oW1kGOesvgrR5reuCfIMVBO5WqZ8tqL5ybSKt BpOXPE0CnY70OhQAw83arDpOAH0i6pS7y/Yt4rVYC4rlf0w1FA5BS/HMDSaV X-Google-Smtp-Source: AGHT+IGomMMR2saKcW1CXnJf6FU9zSqx6J00ALPkX84wpQknN3vOGkQ/IwS2SzAq6/+wPyODYlIn9w== X-Received: by 2002:ad4:4351:0:b0:68c:66f4:2368 with SMTP id q17-20020ad44351000000b0068c66f42368mr9052325qvs.1.1706976942842; Sat, 03 Feb 2024 08:15:42 -0800 (PST) Received: from [192.168.254.154] ([50.123.163.179]) by smtp.gmail.com with ESMTPSA id lv7-20020a056214578700b0068691ce0e74sm1931753qvb.0.2024.02.03.08.15.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Feb 2024 08:15:42 -0800 (PST) Message-ID: Date: Sat, 3 Feb 2024 11:15:41 -0500 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 User-Agent: Mozilla Thunderbird Subject: Re: Installing/running X11 Content-Language: en-US To: questions@freebsd.org References: <20240203144851.d47zguvjtisjdsz4@yosemite.mars.lan> From: TIM KELLERS In-Reply-To: Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: - X-Spamd-Result: default: False [-1.79 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_SPAM_MEDIUM(0.90)[0.896]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_HTML_ONLY(0.20)[]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::733:from]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4TRyRj2TkYz4RtC

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