RE: [leaf-user] beep.lrp question
Ok lets say I have a little Beep tune written. I call it beep_song and I store it in /etc. It looks like this: {I chmod'ed it +rx} #!/bin/sh beep -f 1000 -r 2 -n -r 5 -l 10 --new beep -f 300.7 -r 3 -d 100 -l 400 beep -f 1000 -r 1 -n -r 5 -l 10 --new So I can play the little beep tune by typing './beep_song' This is where I am stumped. I want to use this beep tune when my system is fully booted. I am assuming that I need to insert './etc/beep_song" in some init script but I have no idea where. Can anyone help me out? Thanks in advance! Troy -Original Message- From: Bruce McNamara [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 12:45 AM To: [EMAIL PROTECTED] Cc: Troy Aden Subject: Re: [leaf-user] beep.lrp question I use Beep for indicating the interfaces are up etc.. /bin/beep -f 600 -n -f 900 -n -f1200 -n -f1800 -f 600 -n -f 900 -n -f1200 - n -f1800 -f 600 -n -f 900 -n -f1200 -n -f1800 I found an article Simple Sounds for Linux By Jay Link ( do a google an yee shal find...) which I used as a rough guide it said: Usage is simple. Both programs take two arguments: the tonal frequency in Hertz, and the duration in milliseconds. So, let's say you compiled beep.c.direct into "beep". Here's all you'd need to do: beep 440 200 This will play a 440 Hz tone for 200 milliseconds, or a fifth of a second. To play multiple notes, it's often necessary to insert a "rest" between them, like so: beep 440 200 beep 0 200 beep 700 200 Note that the "spacer" note, or rest, plays at zero Hertz (i.e., it doesn't play at all), but it continues for the same duration as the other notes. Using the beep program, it's easy to play simple melodies. Here are the frequencies for some basic notes: 262 C - "middle C" 277 C# 294 D 311 D# 330 E 349 F 370 F# 392 G 415 G# 440 A 466 A# 494 B To find the frequencies of subsequent notes, simply multiply the highest note you know by 1.0595, and then round up or down as appropriate. For example, 494 * 1.0595 = 523.393, or 523 Hz, which should be the "C" note that's one octave above middle C. > Subject: [leaf-user] beep.lrp question > > Hello there. I have made a simple sh script to run beep for Bering Uclibc > 2.2.2. I want the system to run the script to tell me when it is done > booting. Can anyone please tell me where I need to go to do this? The > how-to for beep.lrp is not very helpful in this regard? > > Thanks in advance! > > Troy > Bruce McNamara - Managing Director Professional System Integrators Ltd P.O. Box 9767, Auckland, New Zealand PH: +64 (021) 922 088 Fax: +64 (09) 629 0927 Email: [EMAIL PROTECTED] PSI - Help when you need IT --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] beep.lrp question
i have a tencendy to put things into the /etc/init.d/rmnologin if it's just a 1 liner that needt to run at the end of the boot sequence. if it was more i'd make a separate /etc/init.d/beep, and add it to beep.lrp's file list to make it backup together with beep you can also do it with the 'up' statement in /etc/network/interfaces, but that is a bit before the box is ready, it needs to do shorewall and a few other things too mvh Ronny On Mon, 2004-11-01 at 01:16, Troy Aden wrote: > Hello there. I have made a simple sh script to run beep for Bering Uclibc > 2.2.2. I want the system to run the script to tell me when it is done > booting. Can anyone please tell me where I need to go to do this? The how-to > for beep.lrp is not very helpful in this regard? > > Thanks in advance! > > Troy > > > --- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > > leaf-user mailing list: [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-user > SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html -- Ronny Aasen <[EMAIL PROTECTED]> --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
RE: [leaf-user] ipsec subnet-to-subnet vpn
Ok great! The setup is pretty straightforward. Please let me know if this helped you out. Here are some commented configs. :) I hope they are clear enough. Let me know if you need some points laid out better. First off, you need the following modules and packages: ipsec.lrp, libm.lrp, lpthread.lrp, mawk.lrp, ipsec.o. If you want to get a little more fancy, you can use an algorithm like aes (they can be found here:2.4.26\kernel\net\ipsec\alg make sure and download the modules package). Be warned both sides have to use the same algorithms or it will crash ipsec. Also, be aware that you will require two floppies to run ipsec. I am assuming that you know how to add modules and packages to Bering Uclibc. # /etc/ipsec.conf - FreeS/WAN IPsec configuration file # More elaborate and more varied sample configurations can be found # in FreeS/WAN's doc/examples file, and in the HTML documentation. # basic configuration config setup # THIS SETTING MUST BE CORRECT or almost nothing will work; # %defaultroute is okay for most simple cases. interfaces=%defaultroute # Debug-logging controls: "none" for (almost) none, "all" for lots. klipsdebug=none plutodebug=none # Use auto= parameters in conn descriptions to control startup actions. plutoload=%search plutostart=%search # Close down old connection when new one using same ID shows up. uniqueids=yes # defaults for subsequent connection descriptions conn %default # How persistent to be in (re)keying negotiations (0 means very). keyingtries=0 # RSA authentication with keys from DNS. authby=secret esp=aes # [only use this if you load the ipsec_aes.o module} right= #{local Gateway machine's external ip address} rightsubnet=10.10.34.0/24 #{the local subnet address} rightnexthop= #{the default gateway for the local Gateway machines external ip address} pfs=yes conn example # -to start connection type "ipsec whack --initiate --name (name here) left= #{the remote Gateway machine's external ip address} leftsubnet=192.168.0.0/16 #{subnet address of the remote network, different than the right's subnet. If you have multiple subnets, you can just use a subnet mask that encompasses all of your subnets. For example, if you have subnets between 192.168.20.0/24 and 192.168.30.0/24, you can use 192.168.0.0/16 as your "left subnet" declaration. This will allow ALL hosts to be connected to the 10.10.34.0/24 network and visa-versa} leftnexthop= #{default gateway for the remote Gateway machine} esp=aes auto=start conn block #these are just for security auto=ignore conn private auto=ignore conn private-or-clear auto=ignore conn clear auto=ignore conn packetdefault auto=ignore Now the Pluto shared secrets file: # This file holds shared secrets or RSA private keys for inter-Pluto # authentication. See ipsec_pluto(8) manpage, and HTML documentation. # RSA private key for this host, authenticating it to any other host # which knows the public part. Suitable public keys, for ipsec.conf, DNS, # or configuration of other implementations, can be extracted conveniently # with "ipsec showhostkey". #: RSA { # # -- Create your own RSA key with "ipsec rsasigkey" # } # do not change the indenting of that "}" 149.158.267.17{this is your external IP -eth0} 137.165.207.162 {this is the external IP of the remote router you are connecting to} : PSK " 0xdbf32da2_2c79331f_d4abd93b_9a291810_0864bb26_aa9840eb_e0 " {make sure you hit enter at the end of this line or you will get errors when you try to connect. It requires a "end of line" carriage return. To make a Pre-shared key, install freeswan IPSEC on a Linux box and run this command: "ipsec ranbits --bytes 25" Ok Now you have to do some stuff in shorewall. You have to make some entries in shorewall tunnels;rules;interface and policy files. Policy file needs to have this: loc vpn ACCEPT vpn loc ACCEPT Rules file needs to have this: #IPSEC RULES ACCEPT net vpn udp 500 ACCEPT net vpn 50 - ACCEPT net vpn 51 - Interface file needs to have this: #ZONEINTERFACE BROADCAST OPTIONS net eth0detect routefilter,tcpflags,norfc1918 {These are optional, I just included them for the hell of it. Just make sure you have the last line} loc eth1detect vpn ipsec0 Tunnels file needs to have this: ipsec net 137.165.207.162 {remote routers IP.) Ok now you are ready to rock! All you need to do is initiate the connection. (It will do this at boot but you may want to do it manually to test. First do this: 'ipsec setup restart' {this will reload the ip
Re: [leaf-user] beep.lrp question
I use Beep for indicating the interfaces are up etc.. /bin/beep -f 600 -n -f 900 -n -f1200 -n -f1800 -f 600 -n -f 900 -n -f1200 - n -f1800 -f 600 -n -f 900 -n -f1200 -n -f1800 I found an article Simple Sounds for Linux By Jay Link ( do a google an yee shal find...) which I used as a rough guide it said: Usage is simple. Both programs take two arguments: the tonal frequency in Hertz, and the duration in milliseconds. So, let's say you compiled beep.c.direct into "beep". Here's all you'd need to do: beep 440 200 This will play a 440 Hz tone for 200 milliseconds, or a fifth of a second. To play multiple notes, it's often necessary to insert a "rest" between them, like so: beep 440 200 beep 0 200 beep 700 200 Note that the "spacer" note, or rest, plays at zero Hertz (i.e., it doesn't play at all), but it continues for the same duration as the other notes. Using the beep program, it's easy to play simple melodies. Here are the frequencies for some basic notes: 262 C - "middle C" 277 C# 294 D 311 D# 330 E 349 F 370 F# 392 G 415 G# 440 A 466 A# 494 B To find the frequencies of subsequent notes, simply multiply the highest note you know by 1.0595, and then round up or down as appropriate. For example, 494 * 1.0595 = 523.393, or 523 Hz, which should be the "C" note that's one octave above middle C. > Subject: [leaf-user] beep.lrp question > > Hello there. I have made a simple sh script to run beep for Bering Uclibc > 2.2.2. I want the system to run the script to tell me when it is done > booting. Can anyone please tell me where I need to go to do this? The > how-to for beep.lrp is not very helpful in this regard? > > Thanks in advance! > > Troy > Bruce McNamara - Managing Director Professional System Integrators Ltd P.O. Box 9767, Auckland, New Zealand PH: +64 (021) 922 088 Fax: +64 (09) 629 0927 Email: [EMAIL PROTECTED] PSI - Help when you need IT --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
RE: [leaf-user] lpthread.lrp backup error (Bering Uclibc 2.2.2)
I corrected that in: /var/lib/lrpkg/lpthread.list Changed: var/lib/lrpkg/libpthread.* To: var/lib/lrpkg/lpthread.* Scott. - Scott Young Network Integration Solutions Inc. Phone: 780-461-3371 Fax: 780-465-7270 email: [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Troy Aden > Sent: Sunday, October 31, 2004 5:12 PM > To: Leaf-User (E-mail) > Subject: [leaf-user] lpthread.lrp backup error (Bering Uclibc 2.2.2) > > I am getting the following error when I backup lpthread.lrp. > Is this something I should be concerned with? > Thanks in advance. > > Creating lpthread.lrp Please wait: \tar: > var/lib/lrpkg/libpthread.*: No such file or directory > tar: Error exit delayed from previous errors Back-up of > lpthread complete > > Troy > > > --- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > -- > -- > leaf-user mailing list: [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-user > SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html > > --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] beep.lrp question
Hello there. I have made a simple sh script to run beep for Bering Uclibc 2.2.2. I want the system to run the script to tell me when it is done booting. Can anyone please tell me where I need to go to do this? The how-to for beep.lrp is not very helpful in this regard? Thanks in advance! Troy --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] lpthread.lrp backup error (Bering Uclibc 2.2.2)
I am getting the following error when I backup lpthread.lrp. Is this something I should be concerned with? Thanks in advance. Creating lpthread.lrp Please wait: \tar: var/lib/lrpkg/libpthread.*: No such file or directory tar: Error exit delayed from previous errors Back-up of lpthread complete Troy --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] ipsec subnet-to-subnet vpn
Hi All, First of all, thanks to everyone involved with this project. The support from the mailing list archives is great! I've been trying to get an ipsec vpn between two bering-uclibc v2.2.1 routers going. Before boring everyone with the details, I'm wondering if there is a definitive example of subet-to-subnet ipsec setup with shorewall. I will post full deatils, as per instructions, but at this point, I think I just need a good example to work from. Both routers are the same, with the following .lrp's loaded: NameVersionDescription ===-==-== initrd V2.2.1 uClibc- LEAF Bering-uClibc initial filesystem rootV2.2.1 uClibc- Core LEAF Bering-uClibc package config 0.4Core config and backup system package etc V2.2.1 uClibc- local V2.2.1 uClibc- LEAF Bering local package iptables1.2.11 IP packet filter administration tools for 2.4. shorwall ulogd 1.02 The Netfilter Userspace Logging Daemon dropbear0.43 Rev 2 Dropbear SSH 2 server and scp client ntpdate 4.1.0-8client for setting system time from NTP server ntpsimpl4.1.0-8NTP v4 daemon for simple systems from Debian sh-httpd1.2.5 Rev 3Small shell-based web server weblet 1.0.0 Rev 4http-server content lpthread0.9.20 The libpthread library mawk1.3.3-9Mawk is an interpreter for the AWK Programming libm0.9.20 The libm library modules V2.2.1 uClibc- Define & contain your LEAF Bering modules ipsec 1.0.7 Openswan IPSEC dnsmasq 2.15 Rev 1 Dnsmasq is lightweight, easy to configure DNS TIA, Scott. --- Scott Young Network Integration Solutions Inc. Phone: 780-461-3371 Fax: 780-465-7270 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] Upgrading Leaf
On Sun, 2004-10-31 at 01:36, Alex Rhomberg wrote: > Tom, > You can read this link about some tools for upgrading: > > http://cvs.sourceforge.net/viewcvs.py/*checkout*/leaf/devel/alexrh/lck/READM > E.html?rev=HEAD > I didn't upgrade the tools since I uploaded them, though. Thanks, Alex -- I'll add a link the the Shorewall upgrade documentation. -Tom -- Tom Eastep\ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key signature.asc Description: This is a digitally signed message part
[leaf-user] RE: [leaf-devel] 2.4.26 kernel for wd1100.o
Hi! > -Original Message- > From: Victor McAllister [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 30, 2004 5:30 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [leaf-devel] 2.4.26 kernel for wd1100.o > > According to Erich Titl's instructions on LEAF. > > Quote: > > "The Bering kernel has the softdog driver compiled statically > into the > kernel. It must be made a module in order to use the wd1100 driver." > > uClibc seems to use both softdog and wd1100 as modules but the WRAP > board still does not "reboot" with software. I haven't the > time or the > hardware to look this over. Anyone know of a simple solution for > uClibc on a WRAP to do a software reboot using wd1100 as the watchdog? Bering uClibc has both entries in /etc/modules, but you will need to enable wd1100 and add the module (if not present already) to /lib/modules Believe me, it works ;) Luis Correia Bering uClibc Team Member PGP Fingerprint: BC44 D7DA 5A17 F92A CA21 9ABE DFF0 3540 2322 21F6 Key Server: http://pgp.mit.edu --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] Upgrading Leaf
Tom, You can read this link about some tools for upgrading: http://cvs.sourceforge.net/viewcvs.py/*checkout*/leaf/devel/alexrh/lck/READM E.html?rev=HEAD I didn't upgrade the tools since I uploaded them, though. Cheers Alex -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tom Eastep Gesendet: Dienstag, 26. Oktober 2004 16:25 An: [EMAIL PROTECTED] Cc: Erich Titl Betreff: Re: [leaf-user] Shorewall 1.4 -> 2.0.9 On Monday 25 October 2004 23:27, Erich Titl wrote: > At 15:34 25.10.2004 -0700, you wrote: > >... > > > >Now if LEAF/Bering just had an easy way to upgrade packages > > Mhhh... actually there was a suggestion (and contribution) long time > ago by Alex Rhomberg IIRC. 20 minutes of searching on the LEAF site didn't find any information on upgrading; lot's of information about how to install and configure initially. -Tom -- Tom Eastep\ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html