<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<FONT color=#0c0c0c>Bob:</FONT><BR>
<FONT color=#0c0c0c></FONT> <BR>
<FONT color=#0c0c0c>Can we see a copy of your "dojnos" file ?</FONT><BR>
<FONT color=#0c0c0c></FONT> <BR>
<FONT color=#0c0c0c>I call up a file named "startnos". Here it is</FONT><BR>
<FONT color=#0c0c0c></FONT> <BR>
<FONT color=#0c0c0c>=======================================</FONT><BR>
<FONT color=#0c0c0c>cd /jnos<BR>rm -f /jnos/spool/mqueue/*.lck 2> /dev/null<BR>rm -f /jnos/spool/mail/*.lck 2> /dev/null<BR>sleep 1<BR>export TZ=EST5EDT<BR>export TERM=linux<BR>exec ./jnos -d/jnos -v</FONT><BR>
<FONT color=#0c0c0c>=======================================</FONT><BR>
<FONT color=#0c0c0c></FONT> <BR>
<!--StartFragment --><FONT color=#0c0c0c>I'm running Ubuntu 10.04.1<BR><BR>I tried using tty5 as my test console. Still no joy.<BR><BR>First, Ubuntu would not run "startnos" until I manually flagged it an executable file.<BR><BR>Then in my "startnos file" I had to comment out the line "export TERM=linux". Ubuntu doesn't seem to like it from inside "startnos".<BR><BR>Then, I also had to comment out the "sleep 1". When running from the "startnos" Ubuntu also does not like it.<BR><BR>Although, if I'm at the terminal command line myself and type either one manually, Ubuntu seems fine with them. Go figure.<BR><BR>So, from tty5 (brought up by f5) I can "cd /jnos" and then can also "<B>.</B>/startnos" and JNOS boots up.<BR>If I "exit"  JNOS, it does not respawn in tty5 at all. I just get dropped back to the /jnos directory at the command line.<BR><BR>When I change the <I><U>tty5.conf</U></I>  file to attempt to kick JNOS on boot, (since I can manually do it from the command line as above) I can access  tty1 through tty4, and tty6 and tty7(GUI).  tty5 is just has a blinking cursor line with nothing happening....ever.<BR></FONT><BR>
<FONT color=#0c0c0c>Here is my revised tty5.conf file</FONT><BR>
<FONT color=#0c0c0c></FONT> <BR>
<FONT color=#0c0c0c>=====================================</FONT><BR><SPAN lang=EN>
# 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 /jnos/startnos tty5<BR>
# exec /sbin/getty -8 38400 tty5<BR>
<BR></SPAN>
<FONT color=#0c0c0c>=====================================</FONT><BR>
<FONT color=#0c0c0c> <BR>
I know I'm close. Just cant seem to get tty5 to run JNOS<BR>
 <BR>
Also, I'm new to linux, so all of this is a huge learning curve for me.<BR>
 <BR>
73,<BR>
 <BR>
Bill - de KG6BAJ<BR>
<BR> </FONT><BR>
<DIV id=SkyDrivePlaceholder><FONT color=#0c0c0c></FONT></DIV><FONT color=#0c0c0c>
<HR id=stopSpelling>
</FONT>Date: Fri, 26 Nov 2010 18:10:01 -0500<BR>From: bobtenty@gmail.com<BR>To: nos-bbs@tapr.org<BR>Subject: Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>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>
<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass span.ecxEmailStyle18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxEmailStyle19
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxBalloonTextChar
{font-family:'Tahoma','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</STYLE>

<DIV class=ecxWordSection1>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">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.</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">More than one way to fire it off…</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Cheers!</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Jim N8AVX</SPAN></P>
<P class=ecxMsoNormal><A target=_blank name=_MailEndCompose><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></A></P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=ecxMsoNormal><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=ecxmoz-txt-link-abbreviated href="mailto:nos-bbs-bounces@tapr.org">nos-bbs-bounces@tapr.org</A> [<A class=ecxmoz-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...</SPAN></P></DIV></DIV>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">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.</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Michael</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">N6MEF</SPAN></P></DIV><PRE><FIELDSET class=ecxmimeAttachmentHeader></FIELDSET>
_______________________________________________
nos-bbs mailing list
<A class=ecxmoz-txt-link-abbreviated href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</A>
<A class=ecxmoz-txt-link-freetext href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs" target=_blank>https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</A>
</PRE></BLOCKQUOTE><BR><BR>_______________________________________________ nos-bbs mailing list nos-bbs@tapr.org https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs                                    </body>
</html>