<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt">Jose,<br><br>On my Pi running JNOS, I have the line in /etc/inittab like this:<br><br>8:2345:respawn:/jnos/startnos<br><div><span><br></span></div><div> </div><div>73 de Ray W6RAY<br>Visalia, CA DM06ih</div><div><br></div> <div style="font-family: lucida console, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Jose Ng Lee <hp2cwb@cwpanama.net><br> <b><span style="font-weight: bold;">To:</span></b> TAPR xNOS Mailing List <nos-bbs@tapr.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 13, 2014 6:37 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [nos-bbs] Raspberry Pi Jnos exiting every 15 minutes or
less<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1123165801">
<div>
<div><font face="Arial">Thanks Bob for your help.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">I disable the Respawn and run it from the shell.
This afternoon tested it in the office and Jnos stay alive for 4 hours without
exiting until I exit and went home. At home now, the status command show
is up for 2 hours, 19 minutes, and 30 sec.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Something is wrong with the way I automatically restart
routine in case of crash.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">In /etc/inittab added this line:</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">##Start Jnos on bootup and respawn it should it
crash<br>JNOS:2345:respawn:/jnos/startnos</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">My startnos:</font></div>
<div><font face="Arial"><br>#!/bin/sh<br># Script to invoke the Linux Jnos.
Usage: dojnos [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>rm -f /jnos/spool/mqueue/*.lck 2>/dev/null<br>rm -f
/jnos/spool/mail/*.lck 2>/dev/null<br>#<br>exec /jnos/jnos -d /jnos -v
</dev/tty8>/dev/tty8 2>&1<br>#<br></font></div>
<div><font face="Arial">So maybe something wrong with tty8 or should I try another
tty?</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Or if there is another way to autostart Jnos in the
RPI?</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Now, that I monitor my log more frecuently to try to solve
my problem. I see that hackers are trying to hack into my
Jnos.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">14:59:20 89.106.101.23:39439 - MBOX (root) bad
login<br>14:59:32 89.106.101.23:39580 - MBOX (root) bad
login<br>14:59:44 89.106.101.23:39753 - MBOX (admin) bad
login<br>14:59:55 89.106.101.23:39905 - MBOX (admin) bad
login<br>15:00:07 89.106.101.23:40024 - MBOX (admin) bad
login<br>15:00:18 89.106.101.23:40139 - MBOX (admin) bad
login<br>15:00:30 89.106.101.23:40252 - MBOX (admin) bad
login<br>15:00:41 89.106.101.23:40369 - MBOX (admin) bad
login<br>15:00:53 89.106.101.23:40491 - MBOX (admin) bad
login<br>15:01:04 89.106.101.23:40606 - MBOX (cusadmin) bad
login<br>15:01:15 89.106.101.23:40728 - MBOX (cusadmin) bad
login</font></div>
<div><font face="Arial">19:29:05 121.34.217.118:47267 - MBOX (root) bad
login<br>21:06:05 110.184.235.100:45981 - MBOX (root) bad
login<br>21:13:40 109.166.175.86:54030 - MBOX (root) bad
login<br></font></div>
<div><font face="Arial">Thanks,</font></div>
<div><font face="Arial">José / HP2AT</font></div>
<blockquote style="BORDER-LEFT:#000000 2px solid;PADDING-LEFT:5px;PADDING-RIGHT:0px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px;">
<div style="FONT:10pt arial;">----- Original Message ----- </div>
<div style="FONT:10pt arial;BACKGROUND:#e4e4e4;"><b>From:</b>
<a rel="nofollow" title="bobtenty@gmail.com" ymailto="mailto:bobtenty@gmail.com" target="_blank" href="mailto:bobtenty@gmail.com">Bob Tenty</a>
</div>
<div style="FONT:10pt arial;"><b>To:</b> <a rel="nofollow" title="nos-bbs@tapr.org" ymailto="mailto:nos-bbs@tapr.org" target="_blank" href="mailto:nos-bbs@tapr.org">TAPR xNOS Mailing List</a> </div>
<div style="FONT:10pt arial;"><b>Sent:</b> Wednesday, February 12, 2014 6:23
PM</div>
<div style="FONT:10pt arial;"><b>Subject:</b> Re: [nos-bbs] Raspberry Pi Jnos
exiting every 15 minutes or less</div>
<div><br></div>
<div class="yiv1123165801moz-cite-prefix">Check or /var/log/syslog gives you a clue just
before the time it restarts.<br><br>Run jnos from the shell prompt instead of
in a pseudo tty and let it run for a while<br>and see or it doesn't
crash or whatever.<br><br>It may be how you start jnos in a pseudo tty if it
keeps running from the shell.<br><br>73,<br><br>Bob (Boudewijn)
VE3TOK<br><br><br>On 14-02-12 11:20 AM, Jose Ng Lee wrote:<br></div>
<blockquote type="cite">
<div><font face="Arial">I am using the F6BVP image with AX25, DXSpider, Fbb,
Fpac preintalled burned into a 32GB SD card. Later installed Jnos,
APRX, and LinBPQ. All the other software are working OK. My only
problem is Jnos that is keep exiting in every 15 minutes or
less. I set it to respawn automatically. I tried
jnos2f and jnos2fx4 compiled from the source OK but still exiting. The
logs doesn't show me why it is exiting.</font></div>
<div> </div>
<div><font face="Arial">JNOS LOG:<br>09:54:25 - allocating maximum of 24
Axip (axudp + axip) devices<br>09:54:25 - allocating maximum of 24
dynamic gateways for routes<br>09:54:26 - using new [tun0]
device<br>09:54:26 - tun_rx - listening for packets<br>09:55:07
- JNOS 2.0j.4 (Linux) was started<br>10:09:51 - allocating maximum of
24 Axip (axudp + axip) devices<br>10:09:51 - allocating maximum of 24
dynamic gateways for routes<br>10:09:51 - using new [tun0]
device<br>10:09:51 - tun_rx - listening for packets<br>10:10:33
- JNOS 2.0j.4 (Linux) was started<br>10:19:13 - allocating maximum of
24 Axip (axudp + axip) devices<br>10:19:13 - allocating maximum of 24
dynamic gateways for routes<br>10:19:14 - using new [tun0]
device<br>10:19:14 - tun_rx - listening for packets<br>10:19:55
- JNOS 2.0j.4 (Linux) was started<br>10:20:10 - allocating maximum of
24 Axip (axudp + axip) devices<br>10:20:10 - allocating maximum of 24
dynamic gateways for routes<br>10:20:10 - using new [tun0]
device<br>10:20:10 - tun_rx - listening for packets<br>10:20:51
- JNOS 2.0j.4 (Linux) was started</font></div>
<div> </div>
<div><font face="Arial">SYSLOG:<br>Feb 12 10:19:37 hp2ng netromd[3139]:
receiving NODES broadcast on port lan from HP2NG-6<br>Feb 12 10:19:55 hp2ng
kernel: [ 160.052280] IPv4: martian source 200.46.129.3 from
44.163.22.12, on dev tun0<br>Feb 12 10:19:55 hp2ng kernel: [
160.076090] IPv4: martian source 200.46.129.3 from 44.163.22.12, on dev
tun0<br>Feb 12 10:19:55 hp2ng kernel: [ 160.102165] IPv4: martian
source 200.46.129.3 from 44.163.22.12, on dev tun0<br>Feb 12 10:20:10 hp2ng
LINBPQ[3289]: BPQ32 Heartbeat Buffers 786 APRS Queues 0 0#015<br>Feb 12
10:20:10 hp2ng netromd[3139]: receiving NODES broadcast on port bpq from
HP2NG-2<br>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to
me<br>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to
me<br>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to
me<br>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: quality less
than worst_qual<br>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node:
quality less than worst_qual<br>Feb 12 10:20:10 hp2ng netromd[3139]:
netromr: add_node: quality less than worst_qual<br>Feb 12 10:20:10 hp2ng
netromd[3139]: netromr: add_node: quality less than worst_qual<br>Feb 12
10:20:10 hp2ng NetworkManager[2896]: SCPlugin-Ifupdown:
devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)<br>Feb 12
10:20:10 hp2ng NetworkManager[2896]: SCPlugin-Ifupdown:
devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)<br>Feb 12
10:20:10 hp2ng NetworkManager[2896]: SCPlugin-Ifupdown:
device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown
configuration found.<br>Feb 12 10:20:34 hp2ng netromd[3139]: receiving NODES
broadcast on port lan from HP2NG-6<br>Feb 12 10:20:51 hp2ng kernel: [
216.684161] IPv4: martian source 200.46.129.3 from 44.163.22.12, on dev
tun0<br>Feb 12 10:20:51 hp2ng kernel: [ 216.707724] IPv4: martian
source 200.46.129.3 from 44.163.22.12, on dev tun0<br>Feb 12 10:20:52 hp2ng
kernel: [ 216.733542] IPv4: martian source 200.46.129.3 from
44.163.22.12, on dev tun0<br>Feb 12 10:21:05 hp2ng LINBPQ[3289]: BPQ32
Heartbeat Buffers 786 APRS Queues 0 0#015<br>Feb 12 10:22:00 hp2ng
LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0 0#015<br>Feb 12
10:22:31 hp2ng dbus[2812]: [system] Activating service
name='org.freedesktop.ConsoleKit' (using servicehelper)<br>Feb 12 10:22:31
hp2ng dbus[2812]: [system] Successfully activated service
'org.freedesktop.ConsoleKit'<br>Feb 12 10:22:56 hp2ng LINBPQ[3289]: BPQ32
Heartbeat Buffers 787 APRS Queues 0 0#015<br>Feb 12 10:23:31 hp2ng kernel:
[ 375.843236] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0
MAC=b8:27:eb:e1:b2:ee:00:16:17:4d:70:d9:08:00:45:00:00:81:e3:32:00:00:de:5d:66:88
SRC=200.46.129.3 DST=200.46.129.4 LEN=129 TOS=0x00 PREC=0x00 TTL=222
ID=58162 PROTO=93 <br>Feb 12 10:23:51 hp2ng LINBPQ[3289]: BPQ32 Heartbeat
Buffers 787 APRS Queues 0 0#015<br>Feb 12 10:24:46 hp2ng LINBPQ[3289]: BPQ32
Heartbeat Buffers 787 APRS Queues 0 0#015<br>Feb 12 10:25:02 hp2ng kernel:
[ 466.821519] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0
MAC=b8:27:eb:e1:b2:ee:88:43:e1:dc:7f:40:08:00:45:00:00:28:01:00:00:00:6a:06:0b:dd
SRC=198.40.52.152 DST=200.46.129.4 LEN=40 TOS=0x00 PREC=0x00 TTL=106 ID=256
PROTO=TCP SPT=6000 DPT=3389 WINDOW=16384 RES=0x00 SYN URGP=0 <br>Feb 12
10:25:42 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0
0#015<br>Feb 12 10:26:37 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787
APRS Queues 0 0#015<br>Feb 12 10:27:32 hp2ng LINBPQ[3289]: BPQ32 Heartbeat
Buffers 787 APRS Queues 0 0#015<br>Feb 12 10:28:22 hp2ng kernel: [
667.562527] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0
MAC=b8:27:eb:e1:b2:ee:88:43:e1:dc:7f:40:08:00:45:00:00:30:a1:0a:00:00:68:06:cf:b6
SRC=61.129.91.83 DST=200.46.129.4 LEN=48 TOS=0x00 PREC=0x00 TTL=104 ID=41226
PROTO=TCP SPT=24397 DPT=22 WINDOW=65535 RES=0x00 SYN URGP=0 <br>Feb 12
10:28:27 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0
0#015</font></div>
<div> </div><font face="Arial">
<div>I tried gdb but it said no debugging symbols. I re-compiled the
jnos binary without stripping but still shows the no debugging
symbols. I tried in the makefile debug static -g3 but does not compile
and exit with Error.</div>
<div> </div>
<div><a rel="nofollow" ymailto="mailto:root@hp2ng:/home/hp2at" target="_blank" href="mailto:root@hp2ng:/home/hp2at">root@hp2ng:/home/hp2at</a># ps -ef | grep
jnos<br>root 3874
1 0 10:47 tty8 00:00:00 /jnos/jnos -d /jnos
-v<br>root 3961 3959 0 10:50
pts/10 00:00:00 grep jnos<br><a rel="nofollow" ymailto="mailto:root@hp2ng:/home/hp2at" target="_blank" href="mailto:root@hp2ng:/home/hp2at">root@hp2ng:/home/hp2at</a># gdb -p 3874<br>GNU gdb
(GDB) 7.4.1-debian<br>Copyright (C) 2012 Free Software Foundation,
Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a rel="nofollow" target="_blank" href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>This is
free software: you are free to change and redistribute it.<br>There is NO
WARRANTY, to the extent permitted by law. Type "show copying"<br>and
"show warranty" for details.<br>This GDB was configured as
"arm-linux-gnueabihf".<br>For bug reporting instructions, please
see:<br><<a rel="nofollow" target="_blank" href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>.<br>Attaching
to process 3874<br>Reading symbols from /jnos/jnos...done.<br>Reading
symbols from /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so...(no debugging
symbols found)...done.<br>Loaded symbols for
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so<br>Reading symbols from
/lib/arm-linux-gnueabihf/libncurses.so.5...(no debugging symbols
found)...done.<br>Loaded symbols for
/lib/arm-linux-gnueabihf/libncurses.so.5<br>Reading symbols from
/lib/arm-linux-gnueabihf/libtinfo.so.5...(no debugging symbols
found)...done.<br>Loaded symbols for
/lib/arm-linux-gnueabihf/libtinfo.so.5<br>Reading symbols from
/lib/arm-linux-gnueabihf/libgcc_s.so.1...(no debugging symbols
found)...done.<br>Loaded symbols for
/lib/arm-linux-gnueabihf/libgcc_s.so.1<br>Reading symbols from
/lib/arm-linux-gnueabihf/libc.so.6...Reading symbols from
/usr/lib/debug/lib/arm-linux-gnueabihf/libc-2.13.so...done.<br>done.<br>Loaded
symbols for /lib/arm-linux-gnueabihf/libc.so.6<br>Reading symbols from
/lib/arm-linux-gnueabihf/libdl.so.2...Reading symbols from
/usr/lib/debug/lib/arm-linux-gnueabihf/libdl-2.13.so...done.<br>done.<br>Loaded
symbols for /lib/arm-linux-gnueabihf/libdl.so.2<br>Reading symbols from
/lib/ld-linux-armhf.so.3...(no debugging symbols found)...done.<br>Loaded
symbols for /lib/ld-linux-armhf.so.3<br>0xb6e9bd80 in select () at
../sysdeps/unix/syscall-template.S:82<br>82
../sysdeps/unix/syscall-template.S: No such file or
directory.<br>(gdb)</div>
<div> </div>
<div>I tried looking at the autoexec.nos for anything not right, the network
configuration, shorewall firewall configuration, cron jobs, not running the
other software LinBPQ, APRX, etc but still exiting in 15 minutes or
less.</div>
<div> </div>
<div>Any help where to look or what to try to make JNOS work.</div>
<div> </div>
<div>Thanks,</div></font>
<div><font face="Arial">Jose / HP2AT</font></div><br>
<fieldset class="yiv1123165801mimeAttachmentHeader"></fieldset> <br><pre>_______________________________________________
nos-bbs mailing list
<a rel="nofollow" class="yiv1123165801moz-txt-link-abbreviated" ymailto="mailto:nos-bbs@tapr.org" target="_blank" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a rel="nofollow" class="yiv1123165801moz-txt-link-freetext" target="_blank" href="http://www.tapr.org/mailman/listinfo/nos-bbs">http://www.tapr.org/mailman/listinfo/nos-bbs</a>
</pre></blockquote><br>
<div style="DISPLAY:none;" id="yiv1123165801translator-floating-panel" class="yiv1123165801translator-theme-default">
<div id="yiv1123165801translator-floating-panel-button" title="Click to translate"></div></div>
<div>
</div><hr>
_______________________________________________<br>nos-bbs mailing
list<br>nos-bbs@tapr.org<br>http://www.tapr.org/mailman/listinfo/nos-bbs<br></blockquote></div>
</div><br>_______________________________________________<br>nos-bbs mailing list<br><a ymailto="mailto:nos-bbs@tapr.org" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><br><a href="http://www.tapr.org/mailman/listinfo/nos-bbs" target="_blank">http://www.tapr.org/mailman/listinfo/nos-bbs</a><br><br><br></div> </div> </div> </div></body></html>