From owner-freebsd-questions@freebsd.org Sun Mar 29 09:24:10 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 1A60C27871A for ; Sun, 29 Mar 2020 09:24:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48qqsb1880z4Xpw for ; Sun, 29 Mar 2020 09:24:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.3.178]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MTRIg-1jm5Eo3DHo-00Tk3r; Sun, 29 Mar 2020 11:17:42 +0200 Date: Sun, 29 Mar 2020 10:17:41 +0200 From: Polytropon To: "Vlad D. Markov" Cc: "Vlad D. Markov via freebsd-questions" Subject: Re: sane crashes Message-Id: <20200329101741.8d20b5aa.freebsd@edvax.de> In-Reply-To: <20200328205755.d55855545c0f9a4656a0ce64@aim.com> References: <20200321183703.9566f2b45dd4193a51381291.ref@aim.com> <20200321183703.9566f2b45dd4193a51381291@aim.com> <20200321184307.8fb232b54dd802ae8c0a11bb@aim.com> <20200322093038.1f6933c3e68d6622c7d39427@aim.com> <20200322152424.6fd38112.freebsd@edvax.de> <1270065762.180915.1584894974045@mail.yahoo.com> <20200322175247.fc82ac9b590f745d35ab47da@aim.com> <20200323034250.be7371f1.freebsd@edvax.de> <20200328205755.d55855545c0f9a4656a0ce64@aim.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:97y4c6QdDHpIZmidsl/gulLVPFI8Kq06buwss8dpYg4irrzeWyd 9luXyLYX3V2zdADv3ns5si/muM9uvNUKDN8P394YngPqs/MWoEbGsruEe+fRdVGKILsXRb8 cRDnnAAnEYyJy57tQf8bdK0WGcON4n44m5ILSJOwb/8nVuY18hG5PoEJYDxnUHJkJeLpDc6 sV+mpUQH1u8/be7wJ3EXA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q7MerfALBwM=:mkIuvRKI9UcGarVd4xUNiM X0IoKOM6t+H+14JLo0zp7XFMLg6N4VXZhhODld9+PFXCPrs0HEhcdiGXn6/ZdJetJ/Rl07Zvt Fp3/Le8SiLahPpLMHJcMr9/4i+9PdJu4Phs27bSKcIuJ7bwu/Q4CYYJ8l5nCe3Ez9IXc2sLhL gmO2GrLT2wDgzTcI4WAFqvNtHqpJK0aY9Ss1Nkgx9kRxIfO3+RntJHgbbPWraowqw+xlvGlib IkuM2NNtUbgpfKRcUU2u0GT0gR0lE/qd9e8/z5KQK4DukM1aFzCF8vSOrAiYbvQzpRYrEL+le 822CxD6R1FI74IKrDT8aHxYbbSMEz3qecSss5P46L/i4gAo4PyavFdOx1SMvlQZFKOY5/hm8M HcFAQeM4iiIJL59gkaKzD1vfchtTMhJiY/HyTw84OdmCvYPdbF0f4HH+NXL3O+/D+WCESeJ2J Agik2VkzaNmPuBI+YBxsom/Sf5x4r08pspWdPR2/JRHch2P6XEha8FJZWCiQzT5Iw8cnOy8XP sZ/omerdW0co4wJv0ByUmkLv2B7CWp3ArOWXaoBJ/Se1EHYGfyGKg+1VyBxHeyJMiR81+9fy3 lPNo8VS/gxJlYQw9LzF1wUnCBU9aPQFnSuE1PigurxXmMxkikdPOIhoS8Ezh3cZJVis37uz4Y xJSRDaMjtUiZZNpTrZlGL/gs/8NeL9hCrCU0PdkLY5cxv0oKOjup4bOVQm3vdXmhCQg7hPQWr HO97CExdYU5iPBEXPpW3KghZIb8LU5lqnbBX6L1VfrHhBf/XoqbvANceIHe7IrqAhyBEjh4va eoq0ClLlSzkJKehpCJbrkdSdoMt1/czH4HXYRDKady0qt6coA075gLLCydxGm/P10xxWyfu X-Rspamd-Queue-Id: 48qqsb1880z4Xpw X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[aim.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[178.3.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.96)[0.965,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.996,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.16)[ip: (-0.23), ipnet: 212.227.0.0/16(-1.11), asn: 8560(2.16), country: DE(-0.02)] 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: Sun, 29 Mar 2020 09:24:10 -0000 On Sat, 28 Mar 2020 20:57:55 -0400, Vlad D. Markov wrote: > In /etc/rc.local I had this line: > > cd /home/vlad;/usr/bin/su - vlad /usr/local/bin/startx vt6 > > Removing it fixed my problem. I did the same thing under Debian > and skipped logging on going directly into my X session. Oh, your auto-login to X is the problem? In this case, FreeBSD offers a convenient solution: 1. Create an entry in /etc/gettytab for your username that should be automatically logged in, "vlad": autologin:\ :al=vlad:tc=Pc: You can add this infront of the other entries. 2. Use that profile for the 1st console in /etc/ttys: ttyv0 "/usr/libexec/getty autologin" xterm on secure This will now automatically login "vlad" after system startup (as the profile "autologin" will be used). In order to run X for that user, use his local configuration files. I assume you're using FreeBSD's default shell configuration; changes might be needed if you're using Bash, Zsh, or something else. 3. In you ~/.login file, #!/bin/sh mesg y [ ! -f /tmp/.X0-lock ] && startx This makes sure there will be no attempt to start further X sessions in case there's an additional console login. Add the command logout as last line in case you wish the uer to be logged off (instead of dropped back to the console) if the X session is terminated. For proper shell configuration in X, and compatibility with use of xdm (or any other display manager that honors user setting, explicitely excludes GDM which doesn't care about what users want) the following additions are quite convenient: 4. Make your ~/.xsession file a "pointer to" your regular X startup file: #!/bin/csh source ~/.cshrc exec ~/.xinitrc Now you don't need two configuration files, one for if you use xdm, and one for "startx". This file is ignored in case you only use "startx", but if you later on introduce a display manager such as xdm, no surprise about "empty desktop" will occur. 5. Keep your settings in ~/.xinitrc as you probably already have, for example: #!/bin/sh [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc numlockx xbindkeys xsetroot -solid rgb:3b/4c/7a xset b 100 1000 15 & xset r rate 250 30 & xset s off & xset -dpms & exec wmaker This approach should provide maximum flexibility, while needing to have configuration elements only in _one_ file for each distinct aspect. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...