From owner-freebsd-questions@freebsd.org Wed Jul 22 19:40:39 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 471B035E39D for ; Wed, 22 Jul 2020 19:40:39 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073086.outbound.protection.outlook.com [40.92.73.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBm5y02ssz4fPj for ; Wed, 22 Jul 2020 19:40:37 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gwTEyHsz2Qkqfa9VO5ceaHAW/kFnh1L6Qtw0i9kCl4cYEPe0cC3huOBegvCSmBtX8j3dmsoAE1t1PEgEW7V/PPArFEvNP5WkNBkGf8AZyZ+qsZNbqhlc1MxqDhy4ff4Uwr31rIsTKEJZARAO1TVz+uARePn8g1JRkmMsBVnPdct63MbMI5wxJasjiEqynlIZytzx5fyKIuxxC/tVh7xLXxNrl/eqVc3SwyZG8hP/YOjidgAxJbKYwHjT5vr7KfcCK6MygSAiN/Fl+aPC/EWcpR8f7B5JsVc6VNFeM7xRTgLidA/1wJdAr4Jsn5EwPOfL2KE1I4eEj1tKAM4sCfTF7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=45bRYqo8cHALM7yz+ikzqQ8O8P78YjfZz6fj6RGTlyw=; b=Rk71yJD4p3IQTLLfXEID7g+2oQjy9cGub64Km0w1ILkfykWq/I7G7gsnuBbjSE2o9JqHLeh2wxL2fy7oXj9w1oFLqMrbSfmyC0cwxSB5Vr8+NBCcrWVjgYoaryZGG1kq0FFh42I2omVtuXU+DzPyYrX3D5v0tgU8iR/KKD/GKxwH+JBAX+J9REzl6K24RjpnYt60Ox2NfY7IFVKcD9DHFhROMdmVCbpWm7fZl9AGHGdz8ATigniokFowtzMWZaWQpPBVnaK7Xy8bF6mDyxCDvY/dVwk3aU5sNA3C5vKOHw32UVV6foCQ+bPW/4WfT+N3MpXQbgAo6mzDs1O44sT2ZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=45bRYqo8cHALM7yz+ikzqQ8O8P78YjfZz6fj6RGTlyw=; b=DqWpQMsQ3UyLUG+CYH/tB4ZhnV/fMem30zad3OO+hR+W+sMFBB9tUKSp5ioymQbAtnD80OL/7TLpMMemYSkPA6rs+dEJ6645c4dMvX6pf6h4Ed6pgnLHT/VE470ZeQSlXX0bHkJHZjo42qChMIXmVyKCPi1jKaESt3GkyjZR9gdHgKB3brz036GHlliu4akCArTnEb0ab93dmbNP5CXq24rgz2/4/u+LtW9xcTqqOS1kwQ/KkALPYafRAMAYqzXr3IV5KoXlQZL/hb8dwYXnk4bSbPdf+/kJ5CrVK4iHgXg7PkiaY4iWoq9bt9EgLlPMMWWDKCN8f/mNslIXVcP3eg== Received: from HE1EUR04FT046.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::46) by HE1EUR04HT062.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::330) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10; Wed, 22 Jul 2020 19:40:36 +0000 Received: from DB8PR06MB6442.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::43) by HE1EUR04FT046.mail.protection.outlook.com (2a01:111:e400:7e0d::157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10 via Frontend Transport; Wed, 22 Jul 2020 19:40:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DC65749BA50D9876FAEA63F8FB5C1A1E50A8DCFFEF5330CCB6E85B033C957214; UpperCasedChecksum:60F2E8884C34760242B064403C09421D32F6EE1893BDC1E69C67621E40EE3814; SizeAsReceived:8983; Count:48 Received: from DB8PR06MB6442.eurprd06.prod.outlook.com ([fe80::c5d6:5a39:b92c:2266]) by DB8PR06MB6442.eurprd06.prod.outlook.com ([fe80::c5d6:5a39:b92c:2266%4]) with mapi id 15.20.3195.026; Wed, 22 Jul 2020 19:40:35 +0000 Subject: Why mkdesktop works the way it does (Continued from "Re: FreeBSD (GhostBSD) Question?") To: Pete Wright , freebsd-questions@freebsd.org References: <1720589882.5509006.1595431360144@mail.yahoo.com> From: Manish Jain Message-ID: Date: Thu, 23 Jul 2020 01:10:32 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BM1PR0101CA0020.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::30) To DB8PR06MB6442.eurprd06.prod.outlook.com (2603:10a6:10:126::7) X-Microsoft-Original-Message-ID: <9558de01-52a9-4436-befd-f132f7f2aaaa@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.2] (103.195.202.197) by BM1PR0101CA0020.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23 via Frontend Transport; Wed, 22 Jul 2020 19:40:34 +0000 X-Microsoft-Original-Message-ID: <9558de01-52a9-4436-befd-f132f7f2aaaa@hotmail.com> X-TMN: [sGpbKdILx7yEsN7q0WYz3j8S8NBi0rhkA267Yvlg/mA=] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b71908f7-d30c-4ba2-30fb-08d82e771aa0 X-MS-TrafficTypeDiagnostic: HE1EUR04HT062: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j07xxW6U9qHrFJLg8iAketU+qpatklu3lfEuDqtH+oieWUl94yTcNYEBj/JzdTdwwvI73BUgo3TpVmwW566bQJ0Gvx93PEZgzYW2LwWXneBLMzi2hAWmEbFzWvSY0sEK/+cp8S5huP7s4t8Uqbj7QEiOuLlmCw681jxK57HD3k4fHvq+LnAyK0CaRmGZ6KGRQvHW8j99XWoCv8goHNjXhg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR06MB6442.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: V6NofiQzOt/mUQq5tv6hDEiLYKrqYIC3czhaB4ZuRNqBv0MjetEWZKTp/5A3Rry5eE7lxAy3qOvnKIpqPBSI9+xzICqQmN+UFTHQGrn2FwoohhChsOEgShUD3YLk+O1TyaLuD9lsGmojBzPaUXDr7w== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: b71908f7-d30c-4ba2-30fb-08d82e771aa0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2020 19:40:35.8225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT046.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT062 X-Rspamd-Queue-Id: 4BBm5y02ssz4fPj X-Spamd-Bar: +++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=DqWpQMsQ; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of bourne.identity@hotmail.com designates 40.92.73.86 as permitted sender) smtp.mailfrom=bourne.identity@hotmail.com X-Spamd-Result: default: False [9.74 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; R_SPF_ALLOW(0.00)[+ip4:40.92.0.0/15]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(0.00)[hotmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[103.195.202.197:received]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; SUBJECT_HAS_QUESTION(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RECEIVED_SPAMHAUS_XBL(5.00)[103.195.202.197:received]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_ALLOW(0.00)[hotmail.com:s=selector1]; ARC_ALLOW(0.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_SPAM_SHORT(0.40)[0.402]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.86)[0.860]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.98)[0.975]; RCVD_IN_DNSWL_NONE(0.00)[40.92.73.86:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.73.86:from]; GREYLIST(0.00)[pass,meta] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 19:40:39 -0000 On 2020-07-22 22:35, Pete Wright wrote: > Okay, so I bit. Manish, I started using your 'mkdesktop', but I stopped. > No matter what I do, it wants to give me all kinds of what the Doze > world calls 'accessories'. Hi Pete, I am sorry that you felt disappointed with your first blush with mkdesktop. As the writer, I think I can offer reasonable defence for the implementation. First of all, as noted in `man mkdesktop`, mkdesktop is best suited for running right after you have installed FreeBSD. In other words, it picks up where the FreeBSD installation signs off, and continues further to get a whole desktop on the user's computer - with pretty much the same interface as the FreeBSD installer itself. It would be useless to write a program to simply install a desktop meta-package. If installing the meta-package was all that was needed, the user could simply type in `pkg install gnome3` (or some such command). Does it make sense for the user to run `mkdesktop gnome3` when he/she could equally well run `pkg install gnome3` ? The idea behind mkdesktop is to do everything possible for the user such that he gets not just the desktop, but also the entire, correct system configuration in one shot. This has to be done for two distinct kinds of people : 1) The seasoned FreeBSD campaigner 2) The FreeBSD first-timer For such an application, the very first thing to be ascertained is the GPU type (so that kld's are set to be loaded as required). That is what my program does. (If the user does not want graphics configured, he/she can use 'Other' - I will now change that label to 'Other/Ignore'). The second step mkdesktop takes is a deliberate sidestep: forcing the toor account to be set up properly. First timers definitely never know about the toor user account and why it is better to su not to root but to toor. Seasoned campaigners often forget this facility and merrily switch root's login shell to bash/zsh instead. The third step is the actual desktop installation, which I do not think you would have a problem with. Fourth, I give the user a chance to add a normal user account, which again should be agreeable considering that only a normal user can login with the X display manager. The final (and perhaps most debatable) stage is the fifth, where the user is prompted for Wine and Linuxulator. Wine is prompted for as a nicety that targets first-timers who might like to have their Windows programs running under FreeBSD readily. Linuxulator is prompted for because, at the finish, system files are going to be configured anyway - and the configuration will go one way if Linux emulation is needed, and another way if not. You might yet have reasons to disagree with my implementation, but I just tried to write the program to make things least painful in the context of FreeBSD desktop installation for both kinds of folks. Maybe - and I do hope so - you will find mkdesktop of more use the next time around. As of now, I humbly solicit your feedback on what 'accessories' you found of greatest bother. Thank you, Manish Jain