[nos-bbs] Ubuntu 10.04 autoboot JNOS & respawn

Bob Tenty bobtenty at gmail.com
Sat Nov 27 14:06:31 EST 2010


My dojnos

#! /bin/sh

# Script to invoke the Unix Jnos.  Usage: dojnos [-gdb] [optional_args]
# User should edit definitions for jnosroot and autoexec, and edit the
# $local and $remote addresses and $mtu value in the DIP script below:

jnosroot=/srv/home-remote/hamradio/jnos

jnoscommand=./jnos2i
autoexec=autoexec.nos

cd $jnosroot
rm spool/mqueue/*.lck 2>/dev/null

QRZDRV=/media/cdrom
MSGUSER=kg6baj
USER=kg6baj
export QRZDRV MSGUSER USER
# Add some more to allow access even when ftpusers is damaged:
# YOU MUST 'CUSTOMIZE' THE NEXT 3 LINES OR YOU WILL HAVE A BIG SECURITY 
FLAW.
NOSSYSOP=whatever
NOSPASSWD=bill
NOSPATH="/srv/home-remote/hamradio/jnos/public"
export NOSSYSOP NOSPASSWD NOSPATH


# Rename any existing core file so we can use GDB later to debug it
if [ -f core ]; then
         mv core core.`date "+%y%m%d-%T"`
fi

# Rename any existing proclog file (Jnos kernel debug option)
if [ -f proclog ]; then
         mv proclog proclog.`date "+%y%m%d-%T"`
fi

# OK, do we need to run via gdb?
if [ "$1" = "-gdb" ]; then
         shift
         echo TO INVOKE JNOS, USE: run -g2 $@ -d $jnosroot $autoexec
         echo ...
         exec gdb $jnoscommand
else

#exec $jnoscommand  -g2 -w7+4 -d $jnosroot $autoexec 
</dev/tty5>/dev/tty5 2>&1


exec $jnoscommand  -g2 -w7+4 -d </dev/tty5>/dev/tty5 2>&1



73,

Bob VE3TOK













On 10-11-27 01:29 PM, Wm Lewis wrote:
> ok, here's the next problem..
>
> From concole 4, I typed what you said, and console 5 did come to life.
>
> The issue was now JNOS could not find the "autoexec.nos" file because
> the "startnos" crashed on the very first command of "cd /jnos"
>
> So... now what?
>
> ------------------------------------------------------------------------
> Date: Sat, 27 Nov 2010 13:17:28 -0500
> From: bobtenty at gmail.com
> To: nos-bbs at tapr.org
> Subject: Re: [nos-bbs] Ubuntu 10.04 autoboot JNOS & respawn
>
> The error is in "startnos".
>
>
> In your "startnos" file you have:
>
> exec /jnos/jnos -d/jnos -v </dev/tty5>/dev/tty5 2>&1
>
> The error is "jnos -d/jnos -v"
>
>
> You should use:
>
>
> exec /jnos/jnos -d  -v </dev/tty5>/dev/tty5 2>&1
>
> -----
>
> tty5.conf itself is OK
>
>
>
> 73,
>
> Bob VE3TOK
>
>
> On 10-11-27 07:01 AM, Wm Lewis wrote:
>
>     Bob:
>
>     I tried updating as you said. Still no Joy.
>
>     Do I need to be using some sort of SUDO command in any of this for
>     it to work on boot?
>
>     Here are my updated files.
>
>     "startnos" file (in /jnos directory
>     ==============================================
>     cd /jnos
>     rm -f /jnos/spool/mqueue/*.lck 2> /dev/null
>     rm -f /jnos/spool/mail/*.lck 2> /dev/null
>     export TZ=PST8PDT
>     exec /jnos/jnos -d/jnos -v </dev/tty5>/dev/tty5 2>&1
>     ==============================================
>
>     and the "tty5.conf" file
>
>     ==============================================
>     # tty5 - getty
>     #
>     # This service maintains a getty on tty5 from the point the system is
>     # started until it is shut down again.
>
>     start on runlevel [23]
>     stop on runlevel [!23]
>
>     respawn
>     exec /jnos/startnos
>     ==============================================
>
>     What am I missing ?
>
>     Bill
>     KG6BAJ
>     ------------------------------------------------------------------------
>     Date: Sat, 27 Nov 2010 01:23:29 -0500
>     From: bobtenty at gmail.com <mailto:bobtenty at gmail.com>
>     To: nos-bbs at tapr.org <mailto:nos-bbs at tapr.org>
>     Subject: Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...
>
>     Bill:
>
>     To start it in  virtual tty5 add </dev/tty5>/dev/tty5 2>&1 to the
>     "exec"
>     line in your startnos file.
>
>     like:
>
>     exec ./jnos  -g2 -w7+4 -d </dev/tty5>/dev/tty5 2>&1
>
>
>     export TERM=linux is not necessary
>
>
>     Don't use tty5 (or whatever console not in use) to your tty5.conf
>     file if you use
>     </dev/tty5>/dev/tty5 2>&1 , etc  in your startnos file.
>
>
>
>
>     You can stop and start tty5 with the commands:
>
>     initctl stop tty5
>     initctl start tty5
>
>
>
>     73,
>
>     Bob VE3TOK
>
>
>     _______________________________________________
>     nos-bbs mailing list
>     nos-bbs at tapr.org  <mailto:nos-bbs at tapr.org>
>     https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs
>
>
>
> _______________________________________________ nos-bbs mailing list 
> nos-bbs at tapr.org https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs
>
>
> _______________________________________________
> nos-bbs mailing list
> nos-bbs at tapr.org
> https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20101127/83c0dcfa/attachment.html>


More information about the nos-bbs mailing list