<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I think you're missing the point here. If it aint working in tty5.conf it ain't going to work in nos.conf.<BR>
 <BR>
Besides, mu computer uses 7 consoles by default. I think I can spare #5 for use with NOS<BR> <BR>
> From: n7xy@clearwire.net<BR>> Date: Sat, 27 Nov 2010 05:38:39 -0800<BR>> To: nos-bbs@tapr.org<BR>> Subject: Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...<BR>> <BR>> Instead of using tty5.conf for this, create a new file nos.conf. That way you will still have tty5 working normally,<BR>> <BR>> Bob, N7XY<BR>> <BR>> On Nov 26, 2010, at 6:42 PM, Wm Lewis wrote:<BR>> <BR>> > Bob:<BR>> > <BR>> > Can we see a copy of your "dojnos" file ?<BR>> > <BR>> > I call up a file named "startnos". Here it is<BR>> > <BR>> > =======================================<BR>> > 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<BR>> > =======================================<BR>> > <BR>> > 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 "./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 tty5.conf 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>> > <BR>> > Here is my revised tty5.conf file<BR>> > <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 /jnos/startnos tty5<BR>> > # exec /sbin/getty -8 38400 tty5<BR>> > <BR>> > =====================================<BR>> > <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>> > <BR>> > 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>> > 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:<BR>> > 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.<BR>> > <BR>> > More than one way to fire it off…<BR>> > <BR>> > Cheers!<BR>> > <BR>> > Jim N8AVX<BR>> > <BR>> > From: nos-bbs-bounces@tapr.org [mailto:nos-bbs-bounces@tapr.org] On Behalf Of Michael Fox - N6MEF<BR>> > Sent: Friday, November 26, 2010 12:46 AM<BR>> > To: 'TAPR xNOS Mailing List'<BR>> > Subject: Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...<BR>> > <BR>> > 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.<BR>> > <BR>> > Michael<BR>> > N6MEF<BR>> > <BR>> > _______________________________________________<BR>> > nos-bbs mailing list<BR>> > <BR>> > nos-bbs@tapr.org<BR>> > https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs<BR>> > <BR>> > <BR>> > _______________________________________________ nos-bbs mailing list nos-bbs@tapr.org https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs _______________________________________________<BR>> > nos-bbs mailing list<BR>> > nos-bbs@tapr.org<BR>> > https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs<BR>> <BR>> <BR>> _______________________________________________<BR>> nos-bbs mailing list<BR>> nos-bbs@tapr.org<BR>> https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs<BR>                                       </body>
</html>