OpenBCM V1.07b11 (WIN32)

Packet Radio Mailbox

DBO595

[LAU JN59RM]

 Login: GAST





  

NL2ZTM > BPQ32    23.10.15 21:32l 337 Lines 11671 Bytes #999 (0) @ WW
BID : 1661_NL3ZTM
Read: GAST
Subj: Fwd: Re: [BPQ32] Installing TNC-PI and pilinbpq on JESSIE
Path: DBO595<BX0RBL<FRB001<BBS645<NL3WAM<NL3ZZE<NL3ZTM
Sent: 151018/1324Z 1661@NL3ZTM.NL3ZTM.ZH.NLD.EU BPQ1.4.64




-------- Doorgestuurd bericht --------
Onderwerp: 	Re: [BPQ32] Installing TNC-PI and pilinbpq on JESSIE
Datum: 	Thu, 15 Oct 2015 00:10:54 +0200
Van: 	Remco Post pe1pip@pipsworld.nl [BPQ32] <BPQ32@yahoogroups.com>
Antwoord-naar: 	BPQ32@yahoogroups.com
Aan: 	BPQ32@yahoogroups.com



Hi all,


on jan 21 of this year I wrote to this list on this matter:

> Ok, so I couldnt resist. For each socat create a service file:
>
> root@aprsdigi1:/etc/systemd/system# cat linbpq-socat\@com0.service
> [Unit]
> Description=socat for linbpq %i
> After=network.target
> Before=linbpq.service
>
> [Service]
> User=aprs
> WorkingDirectory=/home/aprs/linbpq
> ExecStart=/usr/bin/socat -d -d -ly pty,raw,echo=0,link=%i0 
> pty,raw,echo=0,link=%i1
>
> [Install]
> WantedBy=linbpq.service
>
> this will create a com00 and an com01 as a symlink for the ptys. copy 
> to ‘linbpq-socat\@com1.service for a second socat pty pair, etc.
>
> root@aprsdigi1:/etc/systemd/system# cat linbpq.service
> [Unit]
> Description=BPQ32 on linux
> After=network.target
>
> [Service]
> User=aprs
> WorkingDirectory=/home/aprs/linbpq
> ExecStart=/home/aprs/linbpq/linbpq
>
> [Install]
> WantedBy=multi-user.target
>
> run ‘systemctl install for each of the files you created, first for 
> linbpq.service, then for each socat service.

In the same manner you can most likely find a getty service that is 
using the serial port and deinstall it. More info in the archives….

> On 14 okt. 2015, at 18:43, Tadd Torborg tadd@mac.com 
> <mailto:tadd@mac.com> [BPQ32] <BPQ32@yahoogroups.com 
> <mailto:BPQ32@yahoogroups.com>> wrote:
>
> I found a way to make the background execution work.  Here is a 
> trivial demo to show automatic restart and start after boot.
>
>
> Information came from
> https://wiki.archlinux.org/index.php/Systemd
> and RaTTus on theraspberrypi.org <http://raspberrypi.org/>forums
>
>
> I created a file */etc/systemd/system/tadd.service*
> -rw-r--r-- 1 root root 158 Oct 14 16:18 tadd.service
>
> The contents of the file are:
> [Unit]
> Description=Tadd script test
>
> [Service]
> ExecStart=/usr/local/etc/background_test.sh
> Restart=always
> RestartSec=2
>
> [Install]
> WantedBy=multi-user.target
>
>
> Now the program pointed to by ExecStart=  will be run at boot time, 
> and 2 seconds after that program quits it will be started again.
>
> Once this file is created you need to do these commands
> *sudo systemctl daemon-reload*
> *sudo systemctl enable tadd.service*
> *sudo systemctl start tadd.service*
>
> The script file I executed is
> -rwxr-xr-x 1 root staff 54 Oct 14 16:19background_test.sh
>
> #!//bin/sh
>
> uptime >> /usr/local/etc/test.log
>
>
> **
> **
> **
> *
> *
> After starting the service I used sudo reboot  to reboot the Raspberry 
> PI.  Here is the log file:
>
> pi@raspberrypi~ $cd /usr/local/etc
> pi@raspberrypi/usr/local/etc $cat test.log
>  16:32:01 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:03 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:05 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:07 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:10 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:12 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:14 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:16 up 11 min,  3 users, load average: 0.01, 0.06, 0.05
>  16:32:22 up 0 min,  0 users,  load average: 0.24, 0.05, 0.02
>  16:32:25 up 0 min,  0 users,  load average: 0.24, 0.05, 0.02
>  16:32:27 up 0 min,  1 user,  load average: 0.30, 0.07, 0.02
>  16:32:29 up 0 min,  2 users,  load average: 0.30, 0.07, 0.02
>  16:32:32 up 0 min,  2 users,  load average: 0.44, 0.10, 0.03
>  16:32:34 up 0 min,  2 users,  load average: 0.44, 0.10, 0.03
>  16:32:36 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
>  16:32:38 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
>  16:32:58 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
>  16:33:00 up 0 min,  3 users,  load average: 0.52, 0.13, 0.04
> pi@raspberrypi/usr/local/etc $
>
>
> Sometime later today I hope Ill try to continue the install of the 
> packet node software and support and see how far we get.  I have to 
> change the way my scripts work to use the status request mechanism 
> in*systemctl*instead of*grep*ping in*/etc/inittab*like I used to, in 
> order to know if the node software is set to automatically run.  Also 
> the commands to start and stop the background operation need changing 
> etc etc etc.   or is it usr usr usr?   I dont know!  The world keeps 
> changing!!!  haha.
>
> Anybody know how to start FDSK   on all of the SD media?  It used to 
> be *shutdown -rF*   but that doesnt work in JESSIE
>
> *Tadd / KA2DEW*
> *tadd@mac.com <mailto:tadd@mac.com>*
> *Raleigh NC  FM05pv*
> *
> *
> *“Packet networking over ham radio": 
> http://tarpn.net/t/packet_radio_networking.html*
> *
> *
>
>
>> On Oct 14, 2015, at 11:44 AM, Tadd Torborgtadd@mac.com 
>> <mailto:tadd@mac.com>[BPQ32] <BPQ32@yahoogroups.com 
>> <mailto:BPQ32@yahoogroups.com>> wrote:
>>
>> John,
>>
>>   Thanks for the reply.  Im trying to figure this stuff out.   I 
>> couldnt get my install scripts to get far enough to start linbpq so 
>> I tried it with a script.  Was this doomed to fail?  Looking at your 
>> email.
>>
>>> In directory /etc/init rename tty2.conf to tty2.save
>>>
>>   I couldnt find a*tty2.conf*and nothing that looked like that 
>> in*/etc/init*
>>
>> I did verify that console messages to serial can be turned off in 
>> raspi-config.
>>
>> Is there anything you have to do to get the system to register the 
>> new bpq.conf?    I created a script file in /usr/local/etc, made it 
>> +x and created by root.  I just told it to do
>> uptime >> /usr/local/etc/test.log and then sleep for 20.    It didnt 
>> seem to start.  I tried rebooting to see if that would do it. 
>>  Nothing.    Originally I tried to make the script run aplay but then 
>> I decided that was too complicated so I went to echoing “uptime” 
>> output.  That didnt work either.
>>
>> Just to make sure my new conf has the right permissions, I compared 
>> it to ssh.conf
>>
>> pi@raspberrypi/etc/init $ls ssh.conf -lrat
>> -rw-r--r-- 1 root root 641 Mar 22  2015 ssh.conf
>> ppi@raspberrypi /etc/init $ ls tadd* -lrat
>> -rw-r--r-- 1 root root 103 Oct 14 14:34 tadd.conf
>> i@raspberrypi/etc/init $cat tadd.conf
>> #
>> start on runlevel [2345]
>> stop on runlevel [12345]
>> respawn
>> exec "/usr/local/etc/background_test.sh"
>>
>>
>> pi@raspberrypi/etc/init $cd /usr/local/etc
>> pi@raspberrypi/usr/local/etc $ls -lrat
>> total 24
>> drwxrwsr-x 10 root staff 4096 Jan  1  1970..
>> -rw-r--r-- 1 root staff 8620 Oct 13 20:35spam.wav
>> -rwxr-xr-x 1 root staff   43 Oct 14 14:44background_test.sh
>> drwxrwsr-x 2 root staff 4096 Oct 14 14:44.
>> pi@raspberrypi/usr/local/etc $cat background_test.sh
>> uptime >> /usr/local/etc/test.log
>> sleep 20
>> pi@raspberrypi/usr/local/etc $
>>
>>
>> Ill search the googles and see if I can find anything.
>>
>> found a few things
>> https://blog.sleeplessbeastie.eu/2015/04/27/how-to-manage-system-services-on-debian-jessie/
>>
>> This showed places to start stop and list services but the list does 
>> not match what is in /etc/init, and my conf wasnt in the list.
>>
>> There is something called*upstart*that uses the files in /etc/init
>> I looked up upstart
>> http://www.linux.com/learn/tutorials/404619-manage-system-startup-and-boot-processes-on-linux-with-upstart
>>
>> That said to use initctl to get a list of startup processes.  initctl 
>> doesnt seem to exist as a command in the Raspbian 8 JESSIE distribution.
>>
>> https://wiki.archlinux.org/index.php/Systemd
>>
>> While interesting, this document doesnt seem to exactly match the 
>> Raspberry PI Raspbian 8 JESSIE  distribution.
>> # systemctl edit/unit/
>> got an error message “Unknown operation ‘edit.      However.. this 
>> is closer. At least the document described things which DID match 
>> JESSIE.
>>
>> … The searching will go on,,  however I have to make some money and 
>> get back to this later.
>>
>>     Tadd
>>
>>
>> *Tadd / KA2DEW*
>> *tadd@mac.com <mailto:tadd@mac.com>*
>> *Raleigh NC  FM05pv*
>> *
>> *
>> *“Packet networking over ham radio": 
>> http://tarpn.net/t/packet_radio_networking.html*
>> *
>> *
>>
>>
>>> On Oct 13, 2015, at 6:29 PM, 'John Wiseman'john.wiseman@cantab.net 
>>> <mailto:john.wiseman@cantab.net>[BPQ32] <BPQ32@yahoogroups.com 
>>> <mailto:BPQ32@yahoogroups.com>> wrote:
>>>
>>>
>>> Tadd,
>>> raspi-config now has an option to disable the getty on the serial 
>>> port, but I don't know if it is there in Jessie.
>>> With the new Kernels i2c is also enabled with reaspi-config.
>>> This works to start linbpq for some systems that don't use /etc/inittab
>>>
>>> Create a filebpq.confin directory/etc/init
>>>
>>>
>>>         /etc/init/bpq.conf
>>>
>>>
>>> #
>>> start on runlevel [2345]
>>> stop on runlevel [!2345]
>>> respawn
>>> exec "/home/pi/linbpq/runbpq" >/dev/tty2
>>>
>>> In directory /etc/init renametty2.conf to tty2.save
>>>
>>> 73, John
>>
>>
>
>

-- 

Met vriendelijke groeten,

Remco Post
remco@pipsworld.nl <mailto:remco@pipsworld.nl>




73 Remco Post
pe1pip@pipsworld.nl <mailto:pe1pip@pipsworld.nl>



__._,_.___
------------------------------------------------------------------------
Posted by: Remco Post <pe1pip@pipsworld.nl>
------------------------------------------------------------------------
Reply via web post 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/messages/17925;_ylc=X3oDMTJyY2dxNDFlBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARtc2dJZAMxNzkyNQRzZWMDZnRyBHNsawNycGx5BHN0aW1lAzE0NDQ4NjA2NTY-?act=reply&messageNum=17925> 
	• 	Reply to sender 
<mailto:pe1pip@pipsworld.nl?subject=Re%3A%20%5BBPQ32%5D%20Installing%20TNC-PI%20and%20pilinbpq%20on%20JESSIE> 
	• 	Reply to group 
<mailto:BPQ32@yahoogroups.com?subject=Re%3A%20%5BBPQ32%5D%20Installing%20TNC-PI%20and%20pilinbpq%20on%20JESSIE> 
	• 	Start a New Topic 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/newtopic;_ylc=X3oDMTJmcmE1MmNjBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDZnRyBHNsawNudHBjBHN0aW1lAzE0NDQ4NjA2NTY-> 
	• 	Messages in this topic 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/topics/17916;_ylc=X3oDMTM3MHNoZmgwBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARtc2dJZAMxNzkyNQRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzE0NDQ4NjA2NTYEdHBjSWQDMTc5MTY-> 
(8)

Visit Your Group 
<https://groups.yahoo.com/neo/groups/BPQ32/info;_ylc=X3oDMTJmaDcwNHRxBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzE0NDQ4NjA2NTY-> 


  * New Members
    <https://groups.yahoo.com/neo/groups/BPQ32/members/all;_ylc=X3oDMTJnZ25hdmN2BF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxNDQ0ODYwNjU2>
    3

Yahoo! Groups 
<https://groups.yahoo.com/neo;_ylc=X3oDMTJlbmg5Z2pzBF9TAzk3NDc2NTkwBGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTQ0NDg2MDY1Ng--> 

• Privacy <https://info.yahoo.com/privacy/us/yahoo/groups/details.html> 
• Unsubscribe 
<mailto:BPQ32-unsubscribe@yahoogroups.com?subject=Unsubscribe> • Terms 
of Use <https://info.yahoo.com/legal/us/yahoo/utos/terms/>

..

__,_._,___





Lese vorherige Mail | Lese naechste Mail


 27.07.2025 14:57:30lZurueck Nach oben