From owner-freebsd-questions@freebsd.org Sun Jul 17 08:36:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 047B4B9917E; Sun, 17 Jul 2016 08:36:29 +0000 (UTC) (envelope-from ablacktshirt@gmail.com) Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::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 C892E1E79; Sun, 17 Jul 2016 08:36:28 +0000 (UTC) (envelope-from ablacktshirt@gmail.com) Received: by mail-pa0-x22e.google.com with SMTP id fi15so51521289pac.1; Sun, 17 Jul 2016 01:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=jOTONpUYcWwXyElIAXcyQBoE0fuiMddigw/VgWapjoU=; b=JPplEHHcJmoZITAC8anEa9/eOqRcoNBVZJLJIcvrtFwtHa9z/bf+BWf/qjVUck7rHU 9YitlMywTD3ozbSFX04nLEDuEAxM0IRs2YftkBnXrKNbUAcL8SvKDAkXYn3W2a1IXVJK ewqanivF7Tos/KiMLKtC16gIberpgHSsFU5wo/KCIJF1gfreqFDNIRaFNDMWNeStb0zs TQzSllEcXraA/i0rLIg2QcxxyN5j9rEKv22T/A2kA3K8t0DA0CP2GAX+oPYq8hGM7GBH bgr9uUuUHL7MQPPucW8zNTbcFhLSO1S/gx8P97VQzX0UTXqw+v2Xo/2MZSaIGoA8Iw5G 81kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=jOTONpUYcWwXyElIAXcyQBoE0fuiMddigw/VgWapjoU=; b=kkL27m6JYN/1iw971StMnJyNC5YU/DtWKqXkROabl9UnYmCIc4KXQ716sO3T7ExISN D2YyfNZH8w5ioSsZkjhaMEEy+XoWG96pmTDDKG+l3y9irFg3G4jjf79wzBqIkiZGfK3S f+igeCp1LfdNn4mNHRmppWKwAU4YRxKkQlcEdt/h/rFVh8G8SgmPi3jBRr7g3ZuW8f9t NCZx+GzYNqPmvnl9zcZX5KZL54GzzT74D/Ll5heMObFyPF+2S7w2EPYbTDNagyJOpCuo x7/WjuJRpCBNwYSs/qmg3YY757Yk3My/HamgP+2A7RpkcBPr+x7m9eTuVDc139eYRfb1 vTdg== X-Gm-Message-State: ALyK8tLMfbWTWGh8YUnflR2jDz3voqL4xi+XWilTnVucI2El8JqJT5iH3IksXe4jkam5EA== X-Received: by 10.66.197.195 with SMTP id iw3mr33504089pac.82.1468744588077; Sun, 17 Jul 2016 01:36:28 -0700 (PDT) Received: from [192.168.10.108] ([110.64.91.55]) by smtp.gmail.com with ESMTPSA id d5sm4485746pfa.44.2016.07.17.01.36.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jul 2016 01:36:27 -0700 (PDT) Subject: Re: How to change back to the console when stucked by the desktop environment To: "Julian H. Stacey" References: <201607161358.u6GDwTi1040789@fire.js.berklix.net> Cc: freebsd-questions@freebsd.org, freebsd-desktop@freebsd.org From: Yubin Ruan Message-ID: <578B4386.4080301@gmail.com> Date: Sun, 17 Jul 2016 16:36:22 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <201607161358.u6GDwTi1040789@fire.js.berklix.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 08:36:29 -0000 On 2016年07月16日 21:58, Julian H. Stacey wrote: > Hi, Reference: >> From: Yubin Ruan >> Date: Sat, 16 Jul 2016 20:56:01 +0800 > > Yubin Ruan wrote: >> Hi, >> I just tried FreeBSD-10.3 stable and get stuck when trying to use the >> Mate desktop environment. I use Slim as the login manager. But when I >> try to login, with correct username and passwd, Slim tell me that >> "Failed to execute login command" >> (Any idea why would that happen?) >> So I try to switch back to the console use "Alt-F1...Alt-F8", which is >> suggested by the doc. But that doesn't work. Why ? >> >> How can I switch back to the console to tune the system? > > (Ive never heard of Slim, but) general procedure: > From another net connected host: > rlogin / telnet / ssh yourhost > cd /var/log ; ls -ltr > ls -l xdm.log messages Xorg.0.log > + whatever logfile might be appropriate for your Slim > ps -laxww > kill some processes, watch if they restart > vi /etc/ttys > change eg > ttyv1 "/usr/local/bin/xdm -nodaemon" xterm on secure > to > ttyv1 "/usr/local/bin/xdm -nodaemon" xterm off secure > maybe you are using ttyv0 for xdm > (I use ttyv1 to leave 0 for errors) > kill -HUP 1 > sometimes screen still wont come back, > if desperate then reboot > > PS I dropped cc: freebsd-amd64@freebsd.org > as this has nothing to do with that CPU, & freebsd.org list rules > say dont cross post more than 2 lists. > > Cheers, > Julian > Thanks, I just manage to install a proper desktop environment(Xfce) to use and it seems to work fine. However, still, I cannot manage to do tty-switching using ( didn't work either). Strangely, whenever I press , the whole desktop block. I don't know why, it just block everytime I press ( the _ stand for number 1...8) My /etc/ttys file looks like this: console none unknown off secure ttyv0 "/usr/libexec/getty Pc" xterm on secure . . (the same ) . ttyv7 "/usr/libexec/getty Pc" xterm on secure ttyv8 "/usr/local/bin/xdm-nodaemon" xterm off secure #serial terminal ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure . . ttyu3 "/usr/libexec/getty 3wire" vt100 onifconsole secure #Dumb console dcons "/usr/libexec/getty std.9600" vt100 off secure Any idea? Thanks, Ruan