(info)
Print instructions for runnning with a Linux USB receiver
Print instructions for runnning with a Linux USB receiver
Print instructions for runnning with a Linux USB receiver
def _print_usb_rx_instructions(info):
    """Print instructions for runnning with a Linux USB receiver
    """

    name = (info['setup']['vendor'] + " " + info['setup']['model']).strip()

    util.print_header(name)

    _print("""
    The {0} is a USB receiver, which will receive data from satellite and will
    output data to the host over USB. The host, in turn, is responsible for
    configuring the receiver using specific DVB-S2 tools. Hence, next, you need
    to prepare the host for driving the {0}.
    """.format(name))

    util.print_sub_header("Hardware Connections")

    print("The {} should be connected as follows:\n".format(name))

    print(("LNB ----> {0} (LNB Interface) -- "
           "{0} (USB Interface) ----> Host\n".format(name)))

    _item("Connect the LNB directly to \"LNB IN\" of the {} using a coaxial"
          " cable (an RG6 cable is recommended).".format(name))
    _item("Connect the {}'s USB interface to your computer.".format(name))

    util.prompt_for_enter()

    util.print_sub_header("Drivers")

    _print("""
    Before anything else, note that specific device drivers are required in
    order to use the {0}. Please, do note that driver installation can cause
    corruptions and, therefore, it is safer and **strongly recommended** to use
    a virtual machine for running the {0}. If you do so, please note that all
    commands recommended in the remainder of this page are supposed to be
    executed in the virtual machine.
    """.format(name))

    _print("Next, install the drivers for the {0} by running:".format(name))

    print("""
    blocksat-cli deps tbs-drivers
    """)

    print("Once the script completes the installation, reboot the virtual "
          "machine.")

    util.prompt_for_enter()

    util.print_sub_header("Host Requirements")

    print(
        "Now, install all pre-requisites (in the virtual machine) by running:")

    print("""
    blocksat-cli deps install
    """)

    _print("""
    NOTE: this command supports the apt, dnf, and yum package managers. For
    other package managers, refer to the instructions at:""")
    print(defs.user_guide_url + "doc/tbs.html")

    util.prompt_for_enter()

    util.print_sub_header("Configure the Host")

    _print(
        """Next, you need to create and configure the network interfaces that
    will output the IP traffic received via the TBS5927. You can apply all
    configurations by running the following command:""")

    print("\n    blocksat-cli usb config\n")

    _print("""If you would like to review the changes that will be made before
    applying them, first run the command in dry-run mode:
    """)

    print("\n    blocksat-cli usb config --dry-run\n")

    _print("""
    Note this command will define arbitrary IP addresses to the interfaces. If
    you need (or want) to define specific IP addresses instead, for example to
    avoid IP address conflicts, use command-line argument `--ip`.
    """)

    _print(
        """Furthermore, note that this configuration is not persistent across
    reboots. After a reboot, you need to run `blocksat-cli usb config`
    again.""")

    util.prompt_for_enter()

    util.print_sub_header("Launch")

    print("Finally, start the receiver by running:")

    print("\n    blocksat-cli usb launch\n")

    util.prompt_for_enter()
def _print_usb_rx_instructions ( info ) : name = ( info [ 'setup' ] [ 'vendor' ] + " " + info [ 'setup' ] [ 'model' ] ) . strip ( ) util . print_header ( name ) _print ( """
    The {0} is a USB receiver, which will receive data from satellite and will
    output data to the host over USB. The host, in turn, is responsible for
    configuring the receiver using specific DVB-S2 tools. Hence, next, you need
    to prepare the host for driving the {0}.
    """ . format ( name ) ) util . print_sub_header ( "Hardware Connections" ) print ( "The {} should be connected as follows:\n" . format ( name ) ) print ( ( "LNB ----> {0} (LNB Interface) -- " "{0} (USB Interface) ----> Host\n" . format ( name ) ) ) _item ( "Connect the LNB directly to \"LNB IN\" of the {} using a coaxial" " cable (an RG6 cable is recommended)." . format ( name ) ) _item ( "Connect the {}'s USB interface to your computer." . format ( name ) ) util . prompt_for_enter ( ) util . print_sub_header ( "Drivers" ) _print ( """
    Before anything else, note that specific device drivers are required in
    order to use the {0}. Please, do note that driver installation can cause
    corruptions and, therefore, it is safer and **strongly recommended** to use
    a virtual machine for running the {0}. If you do so, please note that all
    commands recommended in the remainder of this page are supposed to be
    executed in the virtual machine.
    """ . format ( name ) ) _print ( "Next, install the drivers for the {0} by running:" . format ( name ) ) print ( """
    blocksat-cli deps tbs-drivers
    """ ) print ( "Once the script completes the installation, reboot the virtual " "machine." ) util . prompt_for_enter ( ) util . print_sub_header ( "Host Requirements" ) print ( "Now, install all pre-requisites (in the virtual machine) by running:" ) print ( """
    blocksat-cli deps install
    """ ) _print ( """
    NOTE: this command supports the apt, dnf, and yum package managers. For
    other package managers, refer to the instructions at:""" ) print ( defs . user_guide_url + "doc/tbs.html" ) util . prompt_for_enter ( ) util . print_sub_header ( "Configure the Host" ) _print ( """Next, you need to create and configure the network interfaces that
    will output the IP traffic received via the TBS5927. You can apply all
    configurations by running the following command:""" ) print ( "\n    blocksat-cli usb config\n" ) _print ( """If you would like to review the changes that will be made before
    applying them, first run the command in dry-run mode:
    """ ) print ( "\n    blocksat-cli usb config --dry-run\n" ) _print ( """
    Note this command will define arbitrary IP addresses to the interfaces. If
    you need (or want) to define specific IP addresses instead, for example to
    avoid IP address conflicts, use command-line argument `--ip`.
    """ ) _print ( """Furthermore, note that this configuration is not persistent across
    reboots. After a reboot, you need to run `blocksat-cli usb config`
    again.""" ) util . prompt_for_enter ( ) util . print_sub_header ( "Launch" ) print ( "Finally, start the receiver by running:" ) print ( "\n    blocksat-cli usb launch\n" ) util . prompt_for_enter ( )