<!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">
My dojnos<br>
<br>
#! /bin/sh<br>
<br>
# Script to invoke the Unix Jnos. Usage: dojnos [-gdb]
[optional_args]<br>
# User should edit definitions for jnosroot and autoexec, and edit
the<br>
# $local and $remote addresses and $mtu value in the DIP script
below:<br>
<br>
jnosroot=/srv/home-remote/hamradio/jnos<br>
<br>
jnoscommand=./jnos2i<br>
autoexec=autoexec.nos<br>
<br>
cd $jnosroot<br>
rm spool/mqueue/*.lck 2>/dev/null<br>
<br>
QRZDRV=/media/cdrom<br>
MSGUSER=kg6baj<br>
USER=kg6baj<br>
export QRZDRV MSGUSER USER<br>
# Add some more to allow access even when ftpusers is damaged:<br>
# YOU MUST 'CUSTOMIZE' THE NEXT 3 LINES OR YOU WILL HAVE A BIG
SECURITY FLAW.<br>
NOSSYSOP=whatever<br>
NOSPASSWD=bill<br>
NOSPATH="/srv/home-remote/hamradio/jnos/public"<br>
export NOSSYSOP NOSPASSWD NOSPATH<br>
<br>
<br>
# Rename any existing core file so we can use GDB later to debug it<br>
if [ -f core ]; then<br>
mv core core.`date "+%y%m%d-%T"`<br>
fi<br>
<br>
# Rename any existing proclog file (Jnos kernel debug option)<br>
if [ -f proclog ]; then<br>
mv proclog proclog.`date "+%y%m%d-%T"`<br>
fi<br>
<br>
# OK, do we need to run via gdb?<br>
if [ "$1" = "-gdb" ]; then<br>
shift<br>
echo TO INVOKE JNOS, USE: run -g2 $@ -d $jnosroot $autoexec<br>
echo ...<br>
exec gdb $jnoscommand<br>
else<br>
<br>
#exec $jnoscommand -g2 -w7+4 -d $jnosroot $autoexec
</dev/tty5>/dev/tty5 2>&1<br>
<br>
<br>
exec $jnoscommand -g2 -w7+4 -d </dev/tty5>/dev/tty5
2>&1 <br>
<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 10-11-27 01:29 PM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-W18349E61EF2C13DD88B56A9220@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
ok, here's the next problem..<br>
<br>
From concole 4, I typed what you said, and console 5 did come to
life.<br>
<br>
The issue was now JNOS could not find the "autoexec.nos" file
because <br>
the "startnos" crashed on the very first command of "cd /jnos"<br>
<br>
So... now what?<br>
<br>
<hr id="stopSpelling">
Date: Sat, 27 Nov 2010 13:17:28 -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 10.04 autoboot JNOS & respawn<br>
<br>
<meta name="Generator" content="Microsoft SafeHTML">
The error is in "startnos".<br>
<br>
<br>
In your "startnos" file you have:<br>
<br>
<span lang="EN">exec /jnos/jnos -d/jnos -v
</dev/tty5>/dev/tty5 2>&1 <br>
<br>
The error is "jnos -d/jnos -v"<br>
<br>
<br>
You should use:<br>
<br>
<br>
</span><span lang="EN">exec /jnos/jnos -d -v
</dev/tty5>/dev/tty5 2>&1 </span><br>
<br>
-----<br>
<br>
tty5.conf itself is OK<br>
<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
On 10-11-27 07:01 AM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-W11F755859E8313E72FFD88A9220@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>Bob:<br>
<br>
I tried updating as you said. Still no Joy. <br>
<br>
Do I need to be using some sort of SUDO command in any of this
for it to work on boot?<br>
<br>
Here are my updated files. <br>
<br>
"startnos" file (in /jnos directory<br>
==============================================<br>
<span lang="EN">cd /jnos<br>
rm -f /jnos/spool/mqueue/*.lck 2> /dev/null<br>
rm -f /jnos/spool/mail/*.lck 2> /dev/null<br>
export TZ=PST8PDT<br>
exec /jnos/jnos -d/jnos -v </dev/tty5>/dev/tty5
2>&1 <br>
</span>==============================================<br>
<br>
and the "tty5.conf" file<br>
<br>
==============================================<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<br>
</span>==============================================<br>
<br>
What am I missing ?<br>
<br>
Bill<br>
KG6BAJ<br>
<hr id="ecxstopSpelling">
Date: Sat, 27 Nov 2010 01:23:29 -0500<br>
From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:bobtenty@gmail.com">bobtenty@gmail.com</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-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>
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>
<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>