From owner-freebsd-questions@freebsd.org Tue Dec 4 18:35:55 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E8D01316759 for ; Tue, 4 Dec 2018 18:35:55 +0000 (UTC) (envelope-from va6bmj@gmail.com) Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B461B6AB91 for ; Tue, 4 Dec 2018 18:35:54 +0000 (UTC) (envelope-from va6bmj@gmail.com) Received: by mail-vs1-xe2e.google.com with SMTP id e7so10461991vsc.2 for ; Tue, 04 Dec 2018 10:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SnTyn8vgt4sOscofHIvjPe2DSClAUUxDyZTOZYsZc7Y=; b=FuH4U8MjLcmExL0kVb9hBfqrCDeA72VfKXOe7km8IdCAIsWkLqu8IE9Ba3701djBKR 6yyNw5uVlHab/YpqhQ2JB8boEy/W7bVdymTaQGRBY+WbWHki4f84A7fxalHSvTZ2ceop j2CxcZefS5WnHQmiLRDkS5MN4OM3HeKHeUJZoFnSwtvNTokw6Cd4K6Rjl9skVC3i94ii x1pPyoLPHe0fJEosFpvyxaFHSvuIzU6FC7N9p6ZXhvtfT/E6pQnPYsQFgppos4iBPNU8 oR/7uAQy+UOLVvPHEDKg+ETqfinB0vzQu/gFjpnrmjlALoA2DomPscOu3/ZRNxsgOEjm k9hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SnTyn8vgt4sOscofHIvjPe2DSClAUUxDyZTOZYsZc7Y=; b=TDU076GATpY1A7J8Ycb+VOTXl/jmG7ba2dx4F/5t8EObVBh9zxcByvVmZdjsTAbqO6 WZCvdTt0Ij94VVe2l8PcFG8+09pHwalTt9Rfdbov1vuMwjnPsJpIOPV+GmLAR1jKi/uM GIBoP34EDHYgOzJPWW7GM3F2132SFRaNYTv0I9EBgtXe+SL+ddPBdf/HCibJRySTjtB3 /DSNGI8+g1zw/d3bLWYpZapjBk8iTHXI+Wl5KgDNzBM4ATXIg8Od3TgZJct7yPQTDP1V H0r3gA/dSAk1eEAbJTRqHY4GbaIBsRB3ROpEhJlhmopKAHrcLvxFEwry+kxmpCqV2gKr O92Q== X-Gm-Message-State: AA+aEWacohhA9Fh4S4MzUcF2/q9vEPEHBFZ7rdza9oy0S6XESH9EjNWn ZDR5aj/1AkbR6mEnSC7s9DwX7bjRoaXzxq4sjhY= X-Google-Smtp-Source: AFSGD/WeeYiuZzhC+dHw3u4crtXGiLDPMt/aB/tLggGsniE/hbAOB9rg1VX3BHK8gLUIVtSAlHdoXDEGlcYyMyjOZPA= X-Received: by 2002:a67:868c:: with SMTP id i134mr8967652vsd.97.1543948553295; Tue, 04 Dec 2018 10:35:53 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab0:57da:0:0:0:0:0 with HTTP; Tue, 4 Dec 2018 10:35:52 -0800 (PST) In-Reply-To: <20181204183621.9358c17e.freebsd@edvax.de> References: <20181202231414.bc873ae8.freebsd@edvax.de> <3b1f0a32-175e-2535-ce70-ac8935cf85eb@yandex.com> <20181203184153.b37810d9.freebsd@edvax.de> <20181204183621.9358c17e.freebsd@edvax.de> From: B J Date: Tue, 4 Dec 2018 18:35:52 +0000 Message-ID: Subject: Re: Fresh Installation Of FreeBSD 11.2--Mate Not Working Properly To: Polytropon Cc: freebsd-questions Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: B461B6AB91 X-Spamd-Result: default: False [-4.34 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[e.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.75)[-0.750,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; IP_SCORE(-0.58)[ipnet: 2607:f8b0::/32(-1.54), asn: 15169(-1.28), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2018 18:35:55 -0000 > Isn't that scary? All those messages are usually hidden. > You can even get more shocked when you build from source, > then you'll see tons of warnings... terrible attitude... > Part of the error messages aren't even helpful, like the > inability to "find provider ' '" - that's really great! > It seems the times of usable and bloat-reduced software > is long gone... :-/ It reminds me of when, during my sophomore undergrad year, I first learned programming with WATFOR/WATFIV. It often produced a lot of cryptic error messages which I, a rookie at this, often couldn't figure out. Worse was that we did it in those days with punch cards because interactive terminal weren't, for the most part, available on campus. > > > >> Then there were some messages regarding the location of >> GNOME_KEYRING_CONTROL and SSH_AUTH_SOCK, followed by: >> >> Connection failure: Connection refused >> pa_context_connect() failed: Connection refused > > Check in /etc/rc.conf for the presence of the following settings, > which I found from a reference MATE system (which uses slim instead > of gdm, as Gnome was removed due to the Gnome 2 -> Gnome 3 > trouble): > > hald_enable="YES" > dbus_enable="YES" > polkitd_enable="YES" > volmand_enable="YES" > slim_enable="YES" > > That last line refers to slim, a display manager (GUI login). > Anyway, make sure HAL (deprecated), DBus (obsoleted), PolKit > (nonsense) are actually installed on your system. I used hald_enable='YES' dbus_enable='YES' in /etc/rc.conf. It appears they're both installed and working. Running: dbus-launch gave me some DBUS_SESSION messages I also tried: dbus-launch lshal which produced a long listing of various devices on the machine. > > Then check your ~/.xinitrc for those entries: > > dbus-launch > exec ck-launch-session mate-session > > I have left out additional programs (xset, xbindkeys, xmodmap, > > > >> The Mate desktop starts with its default configuration except that the >> size was for a larger monitor display. I was able to start Mate >> Terminal, but it was sluggish moving the window. > > You can use xrandr interactively from a terminal to set the > correct screen size. You can make the setting permanent by > adding it to your ~/.xinitrc, for example: > > xrandr --fb 1400x1050 > xrandr --size 1400x1050 I'll keep that in mind, though with the installation on the other HD on my computer, that was never required. However, as I mentioned in earlier postings, I began with an earlier version of FreeBSD, so that might have been set back then but not when I installed 11.2 this past weekend. I started X on the machine and brought up xterm. Running xrandr gave me the message: Failed to get size of gamma for output default as well as a listing of available screen sizes. I reset it using xrandr --size 1024x768 but running xrandr --fb 1024x768 still gave me the gamma size error message. > > There is also a Mate setting for this. > > If it doesn't work, use xorg.conf hard-coded values, for > example /usr/local/etc/X11/xorg.conf.d/screen-resolution.conf: > > Section "Screen" > Identifier "Screen0" > Device "Card0" > SubSection "Display" > Modes "1280x800" > EndSubSection > EndSection > > That isn't nice, but it works. ;-) > > > >> I was able to restart my machine twice from Mate, so that function >> appears to work. > > There is some documentation regarding Gnome on how to deal > with HAL, which scatters its stupid XML configuration across > the /usr/local subtree. This documentation also seems to work > with MATE. > > https://www.freebsd.org/gnome/ > > https://www.freebsd.org/gnome/docs/faq2.html > > https://www.freebsd.org/gnome/docs/halfaq.html > > Relevant files can be found in /usr/local/share/polkit-1/actions, > they should already be installed by MATE. > I checked that directory and there were a number of org.*.*.policy files, including one for Gnome and several for Mate. I assume these might the ones I should look at. > > >> So, what does this all mean and would it be possible to salvage the >> installation? > > Yes. ;-) > > You are more or less fighting the narrow view of programmers > who primarily develop for Linux. In order to get MATE working > on FreeBSD, there is some work you need to do, messing with > stupid XML files, running outdated system services that were > abolished in Linux years ago... but yes, sure, it is of course > possible to get MATE running on FreeBSD, as I refered to from > an older reference system running MATE; I'm not sure I would > be able to get a similar system installed and configured on a > more recent FreeBSD version from scratch... :-) That's sort of what I thought. Installing everything using earlier versions of FreeBSD and software packages likely also installed all the necessary files to get the system running. But that was several years ago. In between time, for some reason, those files were no longer being installed by the updated versions of those packages. In other words, I did nearly everything right this past weekend based on what worked before. But there might have been some extra things that needed to be done and that's what I missed. At least I have the other system to refer to when I check those files. B. M. Jatzeck