<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    In Ubuntu the consoles/ virtual tty's are started from<br>
    <br>
    /etc/init/   <br>
    <br>
    Editing tty5.conf  for example (jnos running as "root")<br>
    <br>
    # tty5 - getty<br>
    #<br>
    # This service maintains a getty on tty5 from the point the system
    is<br>
    # started until it is shut down again.<br>
    <br>
    start on runlevel [23]<br>
    stop on runlevel [!23]<br>
    <br>
    respawn<br>
    #exec /sbin/getty -8 38400 tty5<br>
    exec /srv/home-remote/hamradio/jnos/dojnos<br>
    <br>
    <br>
    "dojnos" is a bash/sh file that starts jnos in a console/virtual tty<br>
    <br>
    To start the jnos executable "jnos" directly in console/virtual tty5<br>
    <br>
    Replace the last line with:<br>
    <br>
    exec /srv/home-remote/hamradio/jnos/jnos  tty5<br>
    <br>
    <br>
    Older versions  of Ubuntu use the directory /etc/event.d/<br>
    ---------------------------------------------------------------------------<br>
    <br>
    For example:<br>
    <br>
    editing the file "tty5"<br>
    <br>
    # tty5 - getty<br>
    #<br>
    # This service maintains a getty on tty5 from the point the system
    is<br>
    # started until it is shut down again.<br>
    <br>
    start on runlevel 2<br>
    start on runlevel 3<br>
    <br>
    stop on runlevel 0<br>
    stop on runlevel 1<br>
    stop on runlevel 4<br>
    stop on runlevel 5<br>
    stop on runlevel 6<br>
    <br>
    respawn<br>
    # exec /sbin/getty 38400 tty5<br>
    exec /bin/su - hamradio -c "/srv/home-remote/hamradio/jnos/dojnos" <br>
    <br>
    The last line can be replaced for user "root" with:<br>
    <br>
    exec /bin/su - root -c "/srv/home-remote/hamradio/jnos/dojnos"<br>
    <br>
    or just..<br>
    <br>
    exec /srv/home-remote/hamradio/jnos/dojnos<br>
    <br>
    or without bash file "dojnos"  and using the jnos executable "jnos"
    directly:<br>
    <br>
    <br>
    exec /srv/home-remote/hamradio/jnos/jnos  tty5<br>
    <br>
    <br>
    73,<br>
    <br>
    Bob VE3TOK<br>
    <br>
    On 10-11-26 04:20 PM, Jim Smith wrote:
    <blockquote cite="mid:002a01cb8daf$c1629e10$4427da30$@charter.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">I haven’t tried to do this in Ubuntu, but on
            Slackware 10.1 I use the install script Maiko provides. I
            install it into /opt then modify /etc/iniitab to use console
            5 as the JNOS console with
            “c5:1235:respawn:/opt/jnos/startnos /dev/tty5” in place of
            the usual line for console 5. Works fine. If I need to I
            kill it and it automatically respawns.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">More than one way to fire it off…<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">Cheers!<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">Jim N8AVX<o:p></o:p></span></p>
        <p class="MsoNormal"><a moz-do-not-send="true"
            name="_MailEndCompose"><span style="font-size: 11pt;
              font-family: "Calibri","sans-serif";
              color: rgb(31, 73, 125);"><o:p> </o:p></span></a></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0in 0in;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  "Tahoma","sans-serif";">From:</span></b><span
                style="font-size: 10pt; font-family:
                "Tahoma","sans-serif";">
                <a class="moz-txt-link-abbreviated" href="mailto:nos-bbs-bounces@tapr.org">nos-bbs-bounces@tapr.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:nos-bbs-bounces@tapr.org">mailto:nos-bbs-bounces@tapr.org</a>] <b>On Behalf Of </b>Michael
                Fox - N6MEF<br>
                <b>Sent:</b> Friday, November 26, 2010 12:46 AM<br>
                <b>To:</b> 'TAPR xNOS Mailing List'<br>
                <b>Subject:</b> Re: [nos-bbs] ubuntu 9.1 compiles OK
                now, but...<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">What we do is run a script that is executed from
            /etc/rc.local.  This is run at boot time.  The script calls
            JNOS in a the “screen” command, so that we can attach/detach
            to the console from any terminal.  The script also executes
            in a loop which tests the exit code of JNOS and, if not 0,
            restarts it.  Works FB.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">Michael<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">N6MEF<o:p></o:p></span></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
nos-bbs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a class="moz-txt-link-freetext" href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>