Last active
December 16, 2025 20:20
-
-
Save bwann/3f8cca8dc709ce1e18f25c2e95bde7bc to your computer and use it in GitHub Desktop.
mgetty to login prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mgetty/mg_ttyUSB0.log during a login call: | |
| -- | |
| 12/16 12:14:46 SB0 mgetty: stable release 1.2.1 | |
| 12/16 12:14:46 SB0 check for lockfiles | |
| 12/16 12:14:46 SB0 locking the line | |
| 12/16 12:14:47 SB0 lowering DTR to reset Modem | |
| 12/16 12:14:48 SB0 send: \d\d\d+++\d\d\dATV1&C1&D2&K3S7=60#CID=1[0d] | |
| 12/16 12:14:51 SB0 waiting for ``OK'' ** found ** | |
| 12/16 12:14:51 SB0 waiting... | |
| 12/16 12:15:52 SB0 wfr: waiting for ``RING'' | |
| 12/16 12:15:52 SB0 wfr: waiting for ``RING'' | |
| 12/16 12:15:59 SB0 send: ATA[0d] | |
| 12/16 12:15:59 SB0 waiting for ``CONNECT'' ** found ** | |
| 12/16 12:16:26 SB0 send: | |
| 12/16 12:16:26 SB0 waiting for ``_'' ** found ** | |
| 12/16 12:17:01 ##### data dev=ttyUSB0, pid=1436044, caller='5392272040', conn='14400/ARQ/V32/LAPM/V42BIS', name='', cmd='/bin/login', user='bwann' | |
| # modem caller sees: | |
| CONNECT 14400/ARQ/V32/LAPM/V42BIS | |
| Debian GNU/Linux ttyUSB0 57600 | |
| Your connection: 14400/ARQ/V32/LAPM/V42BIS | |
| Your caller-id: 5392272040 | |
| wann.net UUCP service - 1.650.220.UUCP (8827) | |
| Node 1: USR Courier 3453C, S 2.3.31 D 2.1.41, Cisco SPA122, voip.ms | |
| uucp.wann.net login: bwann | |
| Password: | |
| Linux uucp.wann.net 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 | |
| uucp.wann.net (Unknown CPU) | |
| Debian GNU/Linux 12 (bookworm) 3884 MB RAM / 0 GB SWAP | |
| 6.1.0-rpi4-rpi-v8 (aarch64) | |
| Last login: Tue Dec 16 12:03:58 PST 2025 from 2602:f7bf:1::240 on pts/0 | |
| bwann@uucp:~$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| systemctl enable mgetty@ttyUSB0 | |
| systemctl start mgetty@ttyUSB0 | |
| # systemctl status mgetty@ttyUSB0 | |
| ● mgetty@ttyUSB0.service - mgetty on /dev/ttyUSB0 | |
| Loaded: loaded (/etc/systemd/system/mgetty@.service; enabled; preset: enabled) | |
| Active: active (running) since Tue 2025-12-16 12:05:15 PST; 1min 32s ago | |
| Docs: man:mgetty(8) | |
| Main PID: 1432730 (mgetty) | |
| Tasks: 1 (limit: 3919) | |
| CPU: 19ms | |
| CGroup: /system.slice/system-mgetty.slice/mgetty@ttyUSB0.service | |
| └─1432730 /sbin/mgetty /dev/ttyUSB0 | |
| Dec 16 12:05:15 uucp.wann.net systemd[1]: Started mgetty@ttyUSB0.service - mgetty on /dev/ttyUSB0. | |
| root@uucp:/etc/mgetty# ps auxww | grep mgetty | |
| root 1432730 0.0 0.0 2296 820 ? Ss 12:05 0:00 /sbin/mgetty /dev/ttyUSB0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # login.config | |
| # | |
| # This file is managed by Chef. Do not edit, all changes will be overwritten. | |
| # See wn_mgetty/README.md | |
| # | |
| U* uucp @ /usr/lib/uucp/uucico -l -u @ | |
| /AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug | |
| * - - /bin/login @ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mgetty configuration file | |
| # | |
| # This file is managed by Chef. Do not edit, all changes will be overwritten. | |
| # See wn_mgetty/README.md | |
| # | |
| # Global config | |
| debug 4 | |
| fax-id | |
| issue-file /etc/issue.mgetty | |
| speed 57600 | |
| port-owner uucp | |
| port-group uucp | |
| port-mode 0664 | |
| # Port config | |
| port ttyUSB0 | |
| init-chat "" \d\d\d+++\d\d\dATV1&C1&D2&K3S7=60#CID=1 OK | |
| rings 2 | |
| data-only y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment