Results 1 to 2 of 2

Thread: configuring vgetty

  1. #1
    Join Date
    Aug 2008
    Location
    USA
    Beans
    128
    Distro
    Ubuntu 16.04 Xenial Xerus

    Exclamation configuring vgetty

    Hi guys.

    I am a little bit confused on configuring vgetty. The manual states the following.....

    "vgetty is not meant to be run from the command line. It should be run
    from the /etc/inittab file so it can respawn after each call. Here is a
    typical inittab entry:

    S0:345:respawn:/usr/sbin/vgetty ttyS0"

    Well after checking the file system there is no /etc/inittab file anymore because of upstart. I did some more research per this http://askubuntu.com/questions/34308...s-inittab-file .
    I took the advice and researched init(5) at https://help.ubuntu.com/community/UpstartHowto At the bottom they talk about gettys and say the following ......

    "In /etc/init there is a file named ttyN.conf for each getty that will be started, where N is numbered 1 to 6. Remove any that you do not want."

    Sure enough there is, but is this where I would put the above vgetty statement? Do I add it to all six of the ttyN.conf files? If this is not where I should add the statement then which file would I add it too?

    Lastly my modem is a usb modem and wvdial.conf says this.....

    Code:
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    Baud = 460800
    New PPPD = yes
    Modem = /dev/ttyACM0
    ISDN = 0
    ; Phone = <Target Phone Number>
    ; Password = <Your Password>
    ; Username = <Your Login Name>
    I would assume I would change this statement
    Code:
    S0:345:respawn:/usr/sbin/vgetty ttyS
    to
    Code:
    S0:345:respawn:/usr/sbin/vgetty ttyACM0
    Any way thanks for any insight or help you can give.
    Why aren't you on #ubuntuforums on irc.freenode.net?
    Answers and Howtos

  2. #2
    Join Date
    Mar 2009
    Beans
    0

    Re: configuring vgetty

    # cat > /etc/init/vgetty.conf

    description "vgetty daemon"

    start on runlevel [2345]
    stop on runlevel [!2345]

    respawn
    exec /usr/sbin/vgetty -s 115200 ttyACM0


    --
    It should works fine. I tested it in ubuntu 13.10
    Regards
    Last edited by luilver; August 11th, 2014 at 07:31 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •