-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18/04/13 05:30, Bob Proulx wrote: > Darac Marjal wrote:
>> But with some work you MIGHT be able to get it to start as a >> getty (a 'getty' is the program that init starts on the virtual >> console and which accepts your username/password before starting >> a shell). > > Scary! I am sure it is possible. But I think it would be ugly to > do it that way. > ... > > I am sure that it is possible. Never phrase something in the form > of a challenge or people will work the puzzle to completion. But > that doesn't make it the best way to do it. Challenge accepted :-) Since I realised this would be useful for me (my firewall is a soekris box with only a serial console), I fiddled around and came up with this: 7:23:respawn:/usr/bin/socat /dev/ttyUSB0,b19200,raw,echo=0 /dev/tty7,b38400,raw,echo=0 I'm not a socat expert, so there may well be better options to choose, and I don't know that it actually needs to run from inittab (since it won't quit each time you log out, unlike a getty), but it seems to work :-) Note that the machine I'm doing this on doesn't have a serial port, so I'm using a USB-serial adapter, and it doesn't run X, so no conflict on tty7. And agreed - I don't know if it's the best way to do it. Richard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQEcBAEBAgAGBQJRihZWAAoJELSi8I/scBaNVbEH/RL18q+sreBJh/K8nAjc4sU6 ap0K8/48FPrBZYIMzePEoffkK7KmBGkSQYxm8GqoRl09a2dJi8dg0fuJJZcqjriJ qTwC54YCm/ISRErifmxPkfnBzUkLgni/BH1q5k4Bfrj2SoMRHsOmm/tgMi84dTBt f34DIlG+SFvCvpC3zPUjDIX0zOjY5IuzLmug7+HA8hw6QhkyFZpYKXlm+stiUHjZ 8qGAvxERnUFqre05+G8MjbDXLC2jlSH3f7ZF51byHmqkET0x+j5E963/VGGYIeN2 fdAHXGalfDsNEhnEH3iM7XilVBS+ZaQ4atXmZtaVoV1mMNd4TW18q3U2+ZopuOc= =OOiP -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/518a165c.8020...@walnut.gen.nz