From owner-freebsd-questions@FreeBSD.ORG Fri May 8 15:39:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FF7D82C for ; Fri, 8 May 2015 15:39:34 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B62191883 for ; Fri, 8 May 2015 15:39:33 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2so55851412lbb.3 for ; Fri, 08 May 2015 08:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=b43PbzQeoi3W58xhvEROMyDQvaDpv+3l8ypRdKsg4Yg=; b=qOONKWPmtTrD9iSxzGJtflL1LP9cPjzdCefK40c+g1jjF54JynxCGzvCQz/pFidmaE /J79nRPh+S84jIkFOeIWodhpssh4GCiVZviTGTUZnhT453bCzly7Aqa6F+xTXcSlg7Wk BzhO4cLulnMNL3MM+J1MXvcYRjk//2/M7h/4E58SjnRF27uDL5aB82OT8SYeB44HiQem DGRA5fAJ6JuhhX1yuZyRHHsc9DNxF4bJEBFjkAg139x7XAQuCCMZOMkRDNUMsx8CN5+x FosoQ1lkvebxGm6QLkzf8DnvYy5l0dmyO4pT6b380CvW8UQuEwTZyb/fOaA1sEBM+HOx LCyQ== X-Received: by 10.112.167.166 with SMTP id zp6mr3397019lbb.80.1431099571858; Fri, 08 May 2015 08:39:31 -0700 (PDT) Received: from lazlar.no-ip.biz (79.138.130.110.mobile.tre.se. [79.138.130.110]) by mx.google.com with ESMTPSA id u10sm1243682laj.33.2015.05.08.08.39.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2015 08:39:31 -0700 (PDT) Message-ID: <554CD8B0.4060308@gmail.com> Date: Fri, 08 May 2015 17:39:28 +0200 From: Rolf Nielsen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Avinash Sonawane CC: freebsd-questions@freebsd.org Subject: Re: Unable to login to FreeBSD + xorg + xdm system References: <554CC116.802@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2015 15:39:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-05-08 16:56, Avinash Sonawane wrote: > On Fri, May 8, 2015 at 7:28 PM, Rolf Nielsen > wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> >> On 2015-05-08 15:10, Avinash Sonawane wrote: >>> Hello! >>> >>> I am using FreeBSD 10.1-RELEASE. Today I installed x11/xorg >>> and also x11/xdm and them made changes to /etc/ttys as >>> instructed in the Handbook >>> (https://www.freebsd.org/doc/handbook/x-xdm.html#idp63498576) >>> >>> But now I am unable to login in the system. When I boot the >>> system a big rectangle (xdm) pops up as a login screen and when >>> I enter my credentials (username and password) it simply >>> returns back (like the box got refreshed) and again asks for >>> the credentials. >>> >>> No matter how many time I provide the credentials it simply >>> pops up again and again. >>> >>> I tried with normal user account as well as root account. >>> >>> And now I am not able to login in the system at all. Please >>> help. >>> >> >> Hit Ctrl + Alt + F1 to get to a console. > > I can't access any of the virtual terminals as well. > >> Log in as root, and check /var/log/Xorg.0.log, /var/log/xdm.log >> and .xsession-errors in the home directory of the user you are >> trying to log in to X as. Somewhere in one of those files >> (probably .xsession-errors) there should be something that tells >> you what is wrong. > > ~/.xsession-errors of both the users contains a single line saying > "exec: /usr/local/bin/xsm: not found" xsm is a session manager. It is not installed by default, as most users will typically install a window manager or a desktop environment. If you haven't already installed a window manager, you should. Have a look in /usr/ports/x11-wm for a wide selection. Once you have a window manager installed, create a file named .xsession in your home directory. This file should be a script that simply executes the window manager. It can also contain initialisations, like the sh .profile script, e.g. environment variables. Mine looks like this: LANG=sv_SE.UTF-8; export LANG xscreensaver & exec wmaker xscreensaver-command -exit To do all this, you will probably need to deactivate xdm, since you can't access the virtual terminals while it is running, so start in single user and edit /etc/ttys. The inability to switch VT isn't something I can help you with. I've never had that problem, so I haven't bothered finding out more about it. However, I remember having seen posts about it on list once in awhile, so it seems to be a problem that occurs every now and then. > > And about /var/log/xdm.log and /var/log/Xorg.0.log to be honest I > have no idea what I'm looking at. > > Here is my /var/log/xdm.log http://pastebin.com/hjCJ5Dx9 and > /var/log/Xorg.0.log http://pastebin.com/i0sSqayq > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVTNijAAoJEPJMW41Co4JgdJkQAJ39f1g1BUFob+9JqGOsVGMM DyewXs1F1PUvyY0cb1c6j670t2p/BqB9V+lUidtDFzuYnZSaRYhuDmzxAwSrsjks cB5/xR+7d2KckmT1IlL7BNwoK9YjKwwA1Ee+P/sU/NBQtwV0t48l21ZwC1nCgh82 mkfHOZZNvE5z7OoMlsNGeh/ZX5dq46HtD68FDTPFgy88hn4QGujBaar25Hz+8I+H cl8jwJVJwaPw5+BVZ1nyaduo1sgUekOPvTdT2t91r6iP7mcn050rEQXENJw+EHiE 1wWUszZn0ytPlEfwA1WElG1i5U/a8PD1266976tYFMVdGAnFQ40ysF1zcWS1lytJ uyNiR+6Lz1aHKeDWv2UvY7rbJZ+rn18D7gyIMAHKNkuZSVSXHAp8k7fLqWSGvB47 wJ5P+Bit73BUDN5UQH81xZLivVdjGh7XI5Go5vtvVA7C9uZSGH59sULE/4RJvv50 TZfH38CtpdLTq5QEqwf23Z/5hEoUTTylabMfyFbVGpkQlztiUlEG3D4vFQJ01XnP KFENX8rDefOVzpjP4xQf1tBZn9NrtLN1EMfOEEcwMVAe/d92JuD/lhqoSu4xTxqO oq2paZ5Ai+xXZDfqXzJAaXJYx7C1yFl1q1RQkXIhCfvuUQAj5VuAdP32Xu2sqOa7 wt1zjawd8iNiQwrZ87C4 =QfyZ -----END PGP SIGNATURE-----