Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread Rainer Weikusat
Florian Zieboll  writes:
> Rainer Weikusat  wrote:
>
>
>> JFTR: The point of the [] in
>> 
>> ps faux | grep get[t]y
>> 
>> was that it eliminates the grep itself from the output.
>
>
> Would you please elaborate on this magic?! I found a great RegEx
> reference (1) by the way, but no answer, I'm stunned.

[t]

is a character class matching all characters which are t. Hence, the
regex matches getty but not get[t]y.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread dev



On 03/07/2016 06:46 PM, fsmithred wrote:

Have you tried adding 'nomodeset' to the boot command? Which nvidia card
are you using?


This seems to have fixed it. Oddly enough, another devuan box I have 
does not need this boot param. hrm...  I took it one step further and 
rebooted with "vga=791" to make the text console a bit more "roomy".


Thanks for all the help everyone!



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread Rainer Weikusat
Didier Kryn  writes:
> Le 08/03/2016 17:32, dev a écrit :
>>
>> $ ls -l /dev/tty[1-6]
>> crw--w 1 root tty 4, 1 Mar  8 08:08 /dev/tty1
>> crw--w 1 root tty 4, 2 Mar  8 10:09 /dev/tty2
>> crw--w 1 root tty 4, 3 Mar  8 08:08 /dev/tty3
>> crw--w 1 root tty 4, 4 Mar  8 08:08 /dev/tty4
>> crw--w 1 root tty 4, 5 Mar  8 08:08 /dev/tty5
>> crw--w 1 root tty 4, 6 Mar  8 08:08 /dev/tty6 
>
> A device write-only for group looks strange.

Not really. That's what you get when running mesg y in a used tty so
that other people cane use write(1) to send message to you but not read
from your terminal.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread Florian Zieboll
On Tue, 08 Mar 2016 16:45:59 +
Rainer Weikusat  wrote:


> JFTR: The point of the [] in
> 
> ps faux | grep get[t]y
> 
> was that it eliminates the grep itself from the output.


Would you please elaborate on this magic?! I found a great RegEx
reference (1) by the way, but no answer, I'm stunned.

Florian


(1) http://www.zytrax.com/tech/web/regex.htm
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread Didier Kryn

Le 08/03/2016 17:32, dev a écrit :


$ ls -l /dev/tty[1-6]
crw--w 1 root tty 4, 1 Mar  8 08:08 /dev/tty1
crw--w 1 root tty 4, 2 Mar  8 10:09 /dev/tty2
crw--w 1 root tty 4, 3 Mar  8 08:08 /dev/tty3
crw--w 1 root tty 4, 4 Mar  8 08:08 /dev/tty4
crw--w 1 root tty 4, 5 Mar  8 08:08 /dev/tty5
crw--w 1 root tty 4, 6 Mar  8 08:08 /dev/tty6 


A device write-only for group looks strange. On my old 
debian-wheezy I get


crw--- 1 root root 4, 0 mars   8 17:56 /dev/tty0
crw-rw 1 root tty  4, 1 mars   8 17:56 /dev/tty1
crw-rw 1 root tty  4, 2 mars   8 17:56 /dev/tty2
crw-rw 1 root tty  4, 3 mars   8 17:56 /dev/tty3
crw-rw 1 root tty  4, 4 mars   8 17:56 /dev/tty4
crw-rw 1 root tty  4, 5 mars   8 17:56 /dev/tty5
crw-rw 1 root tty  4, 6 mars   8 17:56 /dev/tty6
crw--- 1 root root 4, 7 mars   8 17:56 /dev/tty7
crw--- 1 root root 4, 8 mars   8 17:56 /dev/tty8
crw--- 1 root root 4, 9 mars   8 17:56 /dev/tty9

Didier

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread Rainer Weikusat
dev  writes:

> On 03/07/2016 11:28 AM, Steve Litt wrote:
> :: Step 1 is this:
> ::
> :: ps ax | grep getty
>
>
> Thanks Steve. Mine is:
>
> $ ps ax | grep getty
>  2575 tty1 Ss+0:00 /sbin/getty 38400 tty1
>  2576 tty2 Ss+0:00 /sbin/getty 38400 tty2
>  2577 tty3 Ss+0:00 /sbin/getty 38400 tty3
>  2578 tty4 Ss+0:00 /sbin/getty 38400 tty4
>  2579 tty5 Ss+0:00 /sbin/getty 38400 tty5
>  2580 tty6 Ss+0:00 /sbin/getty 38400 tty6
>  6301 pts/7S+ 0:00 grep getty

JFTR: The point of the [] in

ps faux | grep get[t]y

was that it eliminates the grep itself from the output.

You could try killing one of them and then switching to the VT. init
should restart it which may cause it to become alive again. Pressing
enter a couple of times might also help as the first should cause the
getty to hand control over to login and the second should cause a login
failure followed by getty being restarted.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-08 Thread dev



On 03/07/2016 11:28 AM, Steve Litt wrote:
:: Step 1 is this:
::
:: ps ax | grep getty


Thanks Steve. Mine is:

$ ps ax | grep getty
 2575 tty1 Ss+0:00 /sbin/getty 38400 tty1
 2576 tty2 Ss+0:00 /sbin/getty 38400 tty2
 2577 tty3 Ss+0:00 /sbin/getty 38400 tty3
 2578 tty4 Ss+0:00 /sbin/getty 38400 tty4
 2579 tty5 Ss+0:00 /sbin/getty 38400 tty5
 2580 tty6 Ss+0:00 /sbin/getty 38400 tty6
 6301 pts/7S+ 0:00 grep getty



RE: anon.ud...@subscribed.udmvt.ru
Here is my tty listing:

$ ls -l /dev/tty[1-6]
crw--w 1 root tty 4, 1 Mar  8 08:08 /dev/tty1
crw--w 1 root tty 4, 2 Mar  8 10:09 /dev/tty2
crw--w 1 root tty 4, 3 Mar  8 08:08 /dev/tty3
crw--w 1 root tty 4, 4 Mar  8 08:08 /dev/tty4
crw--w 1 root tty 4, 5 Mar  8 08:08 /dev/tty5
crw--w 1 root tty 4, 6 Mar  8 08:08 /dev/tty6


:: Do you also have at least one /sbin/getty implementation installed?
Yes, it appears to be a symlink however. maybe does not matter:

$ dir /sbin/getty
lrwxrwxrwx 1 root root 6 May 25  2015 /sbin/getty -> agetty

$ dir /sbin/agetty
-rwxr-xr-x 1 root root 39792 May 25  2015 /sbin/agetty


:: Make sure /sbin/getty is runnable by root, test how it runs:
This appears to function correctly also.
# /sbin/getty 38400 tty8
^Z
[1]+  Stopped /sbin/getty 38400 tty8

# bg
[1]+ /sbin/getty 38400 tty8 &

# ps -ef | grep getty
root  2575 1  0 08:08 tty1 00:00:00 /sbin/getty 38400 tty1
...
root  7064  6909  0 10:16 pts/700:00:00 /sbin/getty 38400 tty8


:: And also do cat /dev/vcs7 | less
It's there :)
# fgrep login /dev/vcs8
 login:

::  be sure you are in the runlevel 2 or 3
looks good.
# runlevel
N 2

:: vbetool vbemode set 3
I ran this in xfce4-terminal from the desktop. It blinked out the video 
signal then returned to the desktop. I'm assuming this should be run 
from rc.local or something similar when in a true textmode environment?




RE: hendrik "...terminals...don't come back until a reboot.":
Have rebooted, still no luck :/


RE: Rainer Wikusat:
:: You aren't per chance running a display manager on tty1..
I don't know how to tell. When I reboot, Slim comes up on the screen and 
I login.


tty output (from xfce4-terminal):
$ tty
/dev/pts/10

who output:
$ who
devuanuser  tty5 Mar  8 10:21
devuanuser  pts/0Mar  8 08:10 (:0.0)
devuanuser  pts/1Mar  8 08:10 (:0.0)
devuanuser  pts/3Mar  8 08:13 (:0.0)
devuanuser  pts/4Mar  8 08:57 (:0.0)
devuanuser  pts/5Mar  8 09:05 (:0.0)
devuanuser  pts/6Mar  8 09:08 (:0.0)
devuanuser  pts/7Mar  8 10:08 (:0.0)
devuanuser  pts/8Mar  8 10:15 (:0.0)
devuanuser  pts/9Mar  8 10:30 (:0.0)
devuanuser  pts/10   Mar  8 10:30 (:0.0)



Here is the ps output you mention:
# ps faux | grep get[t]
root  2575  0.0  0.0  14416  1940 tty1 Ss+  08:08   0:00 
/sbin/getty 38400 tty1
root  2576  0.0  0.0  14416  2056 tty2 Ss+  08:08   0:00 
/sbin/getty 38400 tty2
root  2577  0.0  0.0  14416  1996 tty3 Ss+  08:08   0:00 
/sbin/getty 38400 tty3
root  2578  0.0  0.0  14416  1928 tty4 Ss+  08:08   0:00 
/sbin/getty 38400 tty4
root  2580  0.0  0.0  14416  1944 tty6 Ss+  08:08   0:00 
/sbin/getty 38400 tty6



RE: fsmithred
:: Have you tried adding 'nomodeset' to the boot command?
Hrm.. not yet, I will try later this morning.

:: Which nvidia card are you using?
$ lspci  | grep NV
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 
750 Ti] (rev a2)

01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-07 Thread fsmithred

On 03/07/2016 09:40 AM, dev wrote:

Hello,
I noticed today, upon trying to rebuild my nvidia module, that I have no
login available on the virtual terminals customarily available via the
keypress [CTRL][ALT]+(F1-F8 keys).





And this is /proc/cmdline. Nothing odd in there either:
   BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 \
   root=UUID=903c83ee-aa77-41c3-aaac-548a4f280c45 ro ipv6.disable=1


Any thoughts how to get this working?
Thanks
___



Have you tried adding 'nomodeset' to the boot command? Which nvidia card 
are you using?


-fsr

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-07 Thread Hendrik Boom
On Mon, Mar 07, 2016 at 12:28:12PM -0500, Steve Litt wrote:
> On Mon, 7 Mar 2016 08:40:02 -0600
> dev  wrote:
> 
> > Hello,
> > I noticed today, upon trying to rebuild my nvidia module, that I have
> > no login available on the virtual terminals customarily available via
> > the keypress [CTRL][ALT]+(F1-F8 keys).
> > 
> > The keypresses work, showing console output, but there is no "login:"
> > 
> > /etc/inittab is here:
> > 
> > $ egrep -v '(#|^$)' /etc/inittab
> >id:2:initdefault:
> >si::sysinit:/etc/init.d/rcS
> >~~:S:wait:/sbin/sulogin
> >l0:0:wait:/etc/init.d/rc 0
> >l1:1:wait:/etc/init.d/rc 1
> >l2:2:wait:/etc/init.d/rc 2
> >l3:3:wait:/etc/init.d/rc 3
> >l4:4:wait:/etc/init.d/rc 4
> >l5:5:wait:/etc/init.d/rc 5
> >l6:6:wait:/etc/init.d/rc 6
> >z6:6:respawn:/sbin/sulogin
> >ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
> >pf::powerwait:/etc/init.d/powerfail start
> >pn::powerfailnow:/etc/init.d/powerfail now
> >po::powerokwait:/etc/init.d/powerfail stop
> >1:2345:respawn:/sbin/getty 38400 tty1
> >2:23:respawn:/sbin/getty 38400 tty2
> >3:23:respawn:/sbin/getty 38400 tty3
> >4:23:respawn:/sbin/getty 38400 tty4
> >5:23:respawn:/sbin/getty 38400 tty5
> >6:23:respawn:/sbin/getty 38400 tty6
> > 
> > 
> > And this is /proc/cmdline. Nothing odd in there either:
> >BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 \
> >root=UUID=903c83ee-aa77-41c3-aaac-548a4f280c45 ro ipv6.disable=1
> > 
> > 
> > Any thoughts how to get this working?
> > Thanks
> 
> 
> Step 1 is this:
> 
> ps ax | grep getty
> 
> Here's my output:
> 
> =
> [slitt@mydesk ~]$ ps ax | grep getty
>   621 tty6 Ss+0:00 agetty tty6 38400 linux
>   622 tty5 Ss+0:00 agetty tty5 38400 linux
>   626 tty4 Ss+0:00 agetty tty4 38400 linux
>   631 tty2 Ss+0:00 agetty tty2 38400 linux
>   634 tty3 Ss+0:00 agetty tty3 38400 linux
>  4873 pts/10   R+ 0:00 grep getty
> [slitt@mydesk ~]$
> =
> 
> However, I'm not using Devuan right now, so your mileage may vary.

Here;s mine, and I *am* running Devuan jessie:

hendrik@notlookedfor:~$ ps ax | grep getty
 1951 tty1 Ss+0:00 /sbin/getty 38400 tty1
 1952 tty2 Ss+0:00 /sbin/getty 38400 tty2
 1953 tty3 Ss+0:00 /sbin/getty 38400 tty3
 1954 tty4 Ss+0:00 /sbin/getty 38400 tty4
 1955 tty5 Ss+0:00 /sbin/getty 38400 tty5
 1956 tty6 Ss+0:00 /sbin/getty 38400 tty6
30356 pts/1S+ 0:00 grep getty
hendrik@notlookedfor:~$ 

done from a Roxterm in xcfe.

-- hendrik


> Notice I'm running "agetty", not "getty", which is respawned in your
> inittab. I don't remember ever seeing a Linux (as oppposed to BSD) that
> ran "getty" instead of "agetty". You might need to change that.

And it seems I am running getty.  No problems noted here.

-- hendrik
On my Debian wheezy, though, whenever I gat a kernel upgrade, all my 
text terminals in ctl-alt-F1 through 6 disappear, and don't come back 
until a reboot.

-- hendrik

> 
> Also, seeing whether your gettys, each of which represents one virtual
> terminal, are running. If not, that tells you something.
> 
> SteveT
> 
> Steve Litt 
> March 2016 featured book: Quit Joblessness: Start Your Own Business
> http://www.troubleshooters.com/startbiz
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-07 Thread Steve Litt
On Mon, 7 Mar 2016 08:40:02 -0600
dev  wrote:

> Hello,
> I noticed today, upon trying to rebuild my nvidia module, that I have
> no login available on the virtual terminals customarily available via
> the keypress [CTRL][ALT]+(F1-F8 keys).
> 
> The keypresses work, showing console output, but there is no "login:"
> 
> /etc/inittab is here:
> 
> $ egrep -v '(#|^$)' /etc/inittab
>id:2:initdefault:
>si::sysinit:/etc/init.d/rcS
>~~:S:wait:/sbin/sulogin
>l0:0:wait:/etc/init.d/rc 0
>l1:1:wait:/etc/init.d/rc 1
>l2:2:wait:/etc/init.d/rc 2
>l3:3:wait:/etc/init.d/rc 3
>l4:4:wait:/etc/init.d/rc 4
>l5:5:wait:/etc/init.d/rc 5
>l6:6:wait:/etc/init.d/rc 6
>z6:6:respawn:/sbin/sulogin
>ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
>pf::powerwait:/etc/init.d/powerfail start
>pn::powerfailnow:/etc/init.d/powerfail now
>po::powerokwait:/etc/init.d/powerfail stop
>1:2345:respawn:/sbin/getty 38400 tty1
>2:23:respawn:/sbin/getty 38400 tty2
>3:23:respawn:/sbin/getty 38400 tty3
>4:23:respawn:/sbin/getty 38400 tty4
>5:23:respawn:/sbin/getty 38400 tty5
>6:23:respawn:/sbin/getty 38400 tty6
> 
> 
> And this is /proc/cmdline. Nothing odd in there either:
>BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 \
>root=UUID=903c83ee-aa77-41c3-aaac-548a4f280c45 ro ipv6.disable=1
> 
> 
> Any thoughts how to get this working?
> Thanks


Step 1 is this:

ps ax | grep getty

Here's my output:

=
[slitt@mydesk ~]$ ps ax | grep getty
  621 tty6 Ss+0:00 agetty tty6 38400 linux
  622 tty5 Ss+0:00 agetty tty5 38400 linux
  626 tty4 Ss+0:00 agetty tty4 38400 linux
  631 tty2 Ss+0:00 agetty tty2 38400 linux
  634 tty3 Ss+0:00 agetty tty3 38400 linux
 4873 pts/10   R+ 0:00 grep getty
[slitt@mydesk ~]$
=

However, I'm not using Devuan right now, so your mileage may vary.
Notice I'm running "agetty", not "getty", which is respawned in your
inittab. I don't remember ever seeing a Linux (as oppposed to BSD) that
ran "getty" instead of "agetty". You might need to change that.

Also, seeing whether your gettys, each of which represents one virtual
terminal, are running. If not, that tells you something.

SteveT

Steve Litt 
March 2016 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] My virtual terminals seem amiss

2016-03-07 Thread Rainer Weikusat
dev  writes:
> Hello,
> I noticed today, upon trying to rebuild my nvidia module, that I have
> no login available on the virtual terminals customarily available via
> the keypress [CTRL][ALT]+(F1-F8 keys).
>
> The keypresses work, showing console output, but there is no "login:"
>
> /etc/inittab is here:
>
> $ egrep -v '(#|^$)' /etc/inittab
>   id:2:initdefault:
>   si::sysinit:/etc/init.d/rcS
>   ~~:S:wait:/sbin/sulogin
>   l0:0:wait:/etc/init.d/rc 0
>   l1:1:wait:/etc/init.d/rc 1
>   l2:2:wait:/etc/init.d/rc 2
>   l3:3:wait:/etc/init.d/rc 3
>   l4:4:wait:/etc/init.d/rc 4
>   l5:5:wait:/etc/init.d/rc 5
>   l6:6:wait:/etc/init.d/rc 6
>   z6:6:respawn:/sbin/sulogin
>   ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
>   pf::powerwait:/etc/init.d/powerfail start
>   pn::powerfailnow:/etc/init.d/powerfail now
>   po::powerokwait:/etc/init.d/powerfail stop
>   1:2345:respawn:/sbin/getty 38400 tty1
>   2:23:respawn:/sbin/getty 38400 tty2
>   3:23:respawn:/sbin/getty 38400 tty3
>   4:23:respawn:/sbin/getty 38400 tty4
>   5:23:respawn:/sbin/getty 38400 tty5
>   6:23:respawn:/sbin/getty 38400 tty6

You aren't per chance running a display manager on tty1 (default changed
a while ago because someone 'felt' that running the GUI on anything but
the first VT was 'morally inappropriate') in a runlevel different from 2
or 3?

/sbin/runlevel should print the current and previous runlevels. You
could also look if there are actually any gettys runnning,

ps faux | grep get[t]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] My virtual terminals seem amiss

2016-03-07 Thread dev

Hello,
I noticed today, upon trying to rebuild my nvidia module, that I have no 
login available on the virtual terminals customarily available via the 
keypress [CTRL][ALT]+(F1-F8 keys).


The keypresses work, showing console output, but there is no "login:"

/etc/inittab is here:

$ egrep -v '(#|^$)' /etc/inittab
  id:2:initdefault:
  si::sysinit:/etc/init.d/rcS
  ~~:S:wait:/sbin/sulogin
  l0:0:wait:/etc/init.d/rc 0
  l1:1:wait:/etc/init.d/rc 1
  l2:2:wait:/etc/init.d/rc 2
  l3:3:wait:/etc/init.d/rc 3
  l4:4:wait:/etc/init.d/rc 4
  l5:5:wait:/etc/init.d/rc 5
  l6:6:wait:/etc/init.d/rc 6
  z6:6:respawn:/sbin/sulogin
  ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
  pf::powerwait:/etc/init.d/powerfail start
  pn::powerfailnow:/etc/init.d/powerfail now
  po::powerokwait:/etc/init.d/powerfail stop
  1:2345:respawn:/sbin/getty 38400 tty1
  2:23:respawn:/sbin/getty 38400 tty2
  3:23:respawn:/sbin/getty 38400 tty3
  4:23:respawn:/sbin/getty 38400 tty4
  5:23:respawn:/sbin/getty 38400 tty5
  6:23:respawn:/sbin/getty 38400 tty6


And this is /proc/cmdline. Nothing odd in there either:
  BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 \
  root=UUID=903c83ee-aa77-41c3-aaac-548a4f280c45 ro ipv6.disable=1


Any thoughts how to get this working?
Thanks
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng