From owner-freebsd-desktop@freebsd.org Sun Jul 17 08:36:29 2016 Return-Path: Delivered-To: freebsd-desktop@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-desktop@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Using and improving FreeBSD on the desktop 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 From owner-freebsd-desktop@freebsd.org Sun Jul 17 10:38:36 2016 Return-Path: Delivered-To: freebsd-desktop@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 C72C9B9C06A; Sun, 17 Jul 2016 10:38:36 +0000 (UTC) (envelope-from ike@michaeleichorn.com) Received: from mx1.eichornenterprises.com (mx1.eichornenterprises.com [104.236.13.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.eichornenterprises.com", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EE54117B; Sun, 17 Jul 2016 10:38:35 +0000 (UTC) (envelope-from ike@michaeleichorn.com) Received: from smtp.eichornenterprises.com (cpe-76-188-217-142.neo.res.rr.com [76.188.217.142]) by mx1.eichornenterprises.com (OpenSMTPD) with ESMTP id 47f9a499; Sun, 17 Jul 2016 06:31:51 -0400 (EDT) Received: by smtp.eichornenterprises.com (OpenSMTPD) with ESMTPSA id dc5bef72 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 17 Jul 2016 06:31:52 -0400 (EDT) Message-ID: <1468751677.23217.10.camel@michaeleichorn.com> Subject: Re: How to change back to the console when stucked by the desktop environment From: "Michael B. Eichorn" To: Yubin Ruan , "Julian H. Stacey" Cc: freebsd-desktop@freebsd.org, freebsd-questions@freebsd.org Date: Sun, 17 Jul 2016 06:34:37 -0400 In-Reply-To: <578B4386.4080301@gmail.com> References: <201607161358.u6GDwTi1040789@fire.js.berklix.net> <578B4386.4080301@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.4 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 10:38:36 -0000 On Sun, 2016-07-17 at 16:36 +0800, Yubin Ruan wrote: > > 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 Alt>  > ( 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 Maybe it could be KMS related? Try swithing the console driver from sc(4) to vt(4) by adding: kern.vty=vt to /boot/loader.conf and rebooting. Vt(4), also known as newcons is the UTF-8 and KMS friendly console driver. Vt(4) will be the console driver for 11.0 (r274085) but the older sc(4) is the default on 10.x. From owner-freebsd-desktop@freebsd.org Mon Jul 18 15:22:28 2016 Return-Path: Delivered-To: freebsd-desktop@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 5F3C2B9D975 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 270001966 for ; Mon, 18 Jul 2016 15:22:27 +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-desktop@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Using and improving FreeBSD on the desktop 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