From owner-freebsd-questions@freebsd.org Mon Jul 18 15:22:28 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 9689DB9D977 for ; Mon, 18 Jul 2016 15:22:28 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm13-vm0.bullet.mail.bf1.yahoo.com (nm13-vm0.bullet.mail.bf1.yahoo.com [98.139.213.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58EE21967 for ; Mon, 18 Jul 2016 15:22:28 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1468855341; bh=3FW3PyUERIXI2mYftBAE2MMqRxsCwG1hw6v3xxtq5sY=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=XqePg4KtXEkdw/59aDTNaHNqofcfnfGcbt6vxOdcYn9j7zuYgDht1bhjn/6zbCiJS7PTi1WmBGUQzml0bf9aWW6PPvsakh1I7hjY0Xc8rCXGqjhuIKszd7k0+ELYLDYwuaTwu4WcTC6DDrzxM9BniFyJlphvaGNn5+9OkPnX9WmfnbVa5LAPTafM9+xFBUbIUL21sV9NygNMt+SYBfJ9aH1IXiAwF7LA6kxKrAc7AV6sK/M9J3FP7zb8c+FunML7wUZR8w+T1twcO4fV+9JdXF3OgM3dglqPP0URH08vElFpn/EfO7qB+mQAC8pO6OHB5vZNnsDHfBoydEhDSbl5rA== Received: from [98.139.215.143] by nm13.bullet.mail.bf1.yahoo.com with NNFMP; 18 Jul 2016 15:22:21 -0000 Received: from [68.142.230.65] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 18 Jul 2016 15:22:21 -0000 Received: from [127.0.0.1] by smtp222.mail.bf1.yahoo.com with NNFMP; 18 Jul 2016 15:22:21 -0000 X-Yahoo-Newman-Id: 608250.16015.bm@smtp222.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GQskiT0VM1l5LS3F6smOTFFF3S.j_uxTEt47dODDfVM0l70 f8F_KzVDpyxCSGhCR35Kmy9kBPK7kgpy0Dv4EyUu_JC9MGD.wYYrHLPEf286 sWtUkKT6JyMjC.wPyzIgrDEqnivdv7LxKpjxejR79.Hu9TPtaHZ1.xHHSTo4 XKZ2h7145zZPnM_K4NzDkioYbRPFXE5UGnf4uKNr5ROzBm4uC7M_oAwAp6Cq Dnos2jOX37opqaw4t0u2xW9ZW51TqiHNn_lR7zBLqh_403FZQRu_Hx8Q871d YggjNU.Ymz5wL3XoiEBFP_BgkFYUUo5DwjLDCKup.A4xDx3zqZrR.TaSVvXB QUFfFSapxb9NNVpO_J1MZMPgw9Cs7r0l5Cxb7hLjir8Z3FlAo7xNRRSFZDbZ NtOmKRkFDZ9GJp_EIItACvUXp9BFxpJY4b66fSVMPEk3K3RbPH4UfO2bY5_A gWe5nU5l1MbmaBbCMp8c_6az0uvdAxRQVM9vD2J1kPIRtz7TdbtDXxL2cRUj QfinRgrZrc6zOA1YTpASCdatBVuiziZ7DOw2IPjsym47cVCYz6nWVTxN9 X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: How to change back to the console when stucked by the desktop environment To: Yubin Ruan , "Julian H. Stacey" References: <201607161358.u6GDwTi1040789@fire.js.berklix.net> <578B4386.4080301@gmail.com> Cc: freebsd-desktop@freebsd.org, freebsd-questions@freebsd.org From: Anthony Jenkins Message-ID: <578CF42C.5000604@yahoo.com> Date: Mon, 18 Jul 2016 11:22:20 -0400 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: <578B4386.4080301@gmail.com> Content-Type: text/plain; charset=utf-8 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: Mon, 18 Jul 2016 15:22:28 -0000 On 07/17/2016 04:36 AM, Yubin Ruan wrote: > 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 If this is a laptop, remember some laptops require you to press an key to send the - keycodes (this is often configurable in the BIOS). So to issue the ++ key sequence, you actually have to press +++. -- Anthony Jenkins