<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Bill:<br>
<br>
To start it in virtual tty5 add </dev/tty5>/dev/tty5
2>&1 to the "exec"<br>
line in your startnos file.<br>
<br>
like:<br>
<br>
exec ./jnos -g2 -w7+4 -d </dev/tty5>/dev/tty5 2>&1 <br>
<br>
<br>
export TERM=linux is not necessary<br>
<br>
<br>
Don't use tty5 (or whatever console not in use) to your tty5.conf
file if you use <br>
</dev/tty5>/dev/tty5 2>&1 , etc in your startnos file.<br>
<br>
<br>
<br>
<br>
You can stop and start tty5 with the commands:<br>
<br>
initctl stop tty5<br>
initctl start tty5<br>
<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
<br>
On 10-11-26 09:42 PM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-W18E976E28A2E5C06984674A9220@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<font color="#0c0c0c">Bob:</font><br>
<br>
<font color="#0c0c0c">Can we see a copy of your "dojnos" file ?</font><br>
<br>
<font color="#0c0c0c">I call up a file named "startnos". Here it
is</font><br>
<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>
<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>
<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>
<font color="#0c0c0c">
<hr id="stopSpelling">
</font>Date: Fri, 26 Nov 2010 18:10:01 -0500<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bobtenty@gmail.com">bobtenty@gmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><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 moz-do-not-send="true"
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: 3pt 0in 0in;
border-width: 1pt medium medium; border-style: solid none
none; border-color: rgb(181, 196, 223) -moz-use-text-color
-moz-use-text-color;">
<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 moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs-bounces@tapr.org">nos-bbs-bounces@tapr.org</a>
[<a moz-do-not-send="true"
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 moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a moz-do-not-send="true" 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 <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 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>