[nos-bbs] ubuntu 9.1 compiles OK now, but...
Bob Tenty
bobtenty at gmail.com
Fri Nov 26 18:10:01 EST 2010
In Ubuntu the consoles/ virtual tty's are started from
/etc/init/
Editing tty5.conf for example (jnos running as "root")
# 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 /sbin/getty -8 38400 tty5
exec /srv/home-remote/hamradio/jnos/dojnos
"dojnos" is a bash/sh file that starts jnos in a console/virtual tty
To start the jnos executable "jnos" directly in console/virtual tty5
Replace the last line with:
exec /srv/home-remote/hamradio/jnos/jnos tty5
Older versions of Ubuntu use the directory /etc/event.d/
---------------------------------------------------------------------------
For example:
editing the file "tty5"
# 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 2
start on runlevel 3
stop on runlevel 0
stop on runlevel 1
stop on runlevel 4
stop on runlevel 5
stop on runlevel 6
respawn
# exec /sbin/getty 38400 tty5
exec /bin/su - hamradio -c "/srv/home-remote/hamradio/jnos/dojnos"
The last line can be replaced for user "root" with:
exec /bin/su - root -c "/srv/home-remote/hamradio/jnos/dojnos"
or just..
exec /srv/home-remote/hamradio/jnos/dojnos
or without bash file "dojnos" and using the jnos executable "jnos"
directly:
exec /srv/home-remote/hamradio/jnos/jnos tty5
73,
Bob VE3TOK
On 10-11-26 04:20 PM, Jim Smith wrote:
>
> 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.
>
> More than one way to fire it off...
>
> Cheers!
>
> Jim N8AVX
>
> *From:*nos-bbs-bounces at tapr.org [mailto:nos-bbs-bounces at tapr.org] *On
> Behalf Of *Michael Fox - N6MEF
> *Sent:* Friday, November 26, 2010 12:46 AM
> *To:* 'TAPR xNOS Mailing List'
> *Subject:* Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...
>
> 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.
>
> Michael
>
> N6MEF
>
>
> _______________________________________________
> 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/20101126/ee289dbd/attachment.html>
More information about the nos-bbs
mailing list