Re: [beagleboard] Re: How to autorun script at startup of Beaglebone quickly ?

2018-09-07 Thread Dieter Wirz
On Thu, Sep 6, 2018 at 4:34 AM Mala Dies  wrote:
> If you have a piece of software you want to run on boot, follow along here: 
> https://www.freedesktop.org/software/systemd/man/systemd.service.html.
>
> Along the bottom section of the page, on that site, there should be a 
> instance/example. Enjoy!
>

 I have an application running at startup of Beaglebone but after 
 15minutes, I want after the board is connected, my application will be 
 running with an url : 192.168.7.2:5000/app quickly like cloud9.

If I understand correctly, you don't want to run an application on
boot but after 15 Min.
Maybe this is easier to accomplish with crontab: Simply ad a line to
/etc/crontab

@reboot some_user sleep 900 ; /path_to/myscript

Where some_user can be root or any other user

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrsED%2BN0KT9roGw54zSW%3DthY7QMFFztkEy96LL9QONwkzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Fragmentation while extracting big tar file with 81000 4k size files on eMMC partition

2017-06-16 Thread Dieter Wirz
Hello

On Thu, May 25, 2017 at 8:25 PM, Ankur Tank  wrote:
> Hello Experts,
>
> We are seeing fragmentation and resultant eMMC partition corruption when
> extracting tar file with 81000 files of 4k size.
>
> Detailed steps are listed in Test_steps.txt file and other attached tars
> contain required scripts to big tar file and other test scripts.
>
> In test is very simple,
> 1. we have tar with 81000 number of 4k size file
> 2. we ran latest debian from Beagleboard.org from Micro SD Card
> 3. Partitioned eMMC in two partitions
> 4. Then mounted one of the partition and started extracting big tar file on
> that partition.
>
> This results in below Error.
> EXT4-fs error (device mmcblk1p2) in ext4_do_update_inode:4665: Journal has
> aborted
> [12064.194479] EXT4-fs error (device mmcblk1p2) in add_dirent_to_buf:1921:
> Journal has aborted
> [12064.209980] EXT4-fs error (device mmcblk1p2) in
> ext4_do_update_inode:4665: Journal has aborted
> [12064.223765] EXT4-fs error (device mmcblk1p2) in ext4_create:2455: IO
> failure
> [12064.238221] EXT4-fs error (device mmcblk1p2):
> ext4_journal_check_start:56: Detected aborted journal
> [12064.247591] EXT4-fs (mmcblk1p2): Remounting filesystem read-only

Did u check the the number of inodes on your device mmcblk1p2 (df -i).
The number _must_ be over 81000. You can tune the number of inodes
while formatting (man mkfs.ext4) with -N. You should play around with
-b and other parameters as well...

tar.gz is nothing else than a gzipped tar file. Did you try the same
experiment with a uncompressed tar having the same size ?


> Strange enough this test works fine on Angstrom OS image

Maybe Angstrom mkfs produces a different filesystem with different # of inodes

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrsrwMoYqH1%3DVqhAgjgoHwOotcUmY30bo6JE9boA8zu3Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Connect two beaglebone wirelessly

2017-03-02 Thread Dieter Wirz
On Thu, Mar 2, 2017 at 10:32 AM,   wrote:
> The project is aimed to allow two beaglebone black to communicate
> wirelessly in real-time.
I guess "real-time" is not possible over wlan. Depending on how
critical time is. ns for sure is not possible;(

> The data that has to be transmitted will come from an ethernet cable,
> using Powerlink (http://www.ethernet-powerlink.org).  So from one side
> there will be the ethernet cable connected to the sensor, the beaglebone
> and the wifi module, from the other side another bbb +wifi connected via
> ethernet to a computing unit.

However, it's easy to misuse any linux computer as a wireless
accesspoint. see e.g.
https://seravo.fi/2014/create-wireless-access-point-hostapd. And the
other bbbw will bravely connect, if configured correctly...

HTH
Dieter

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrsUPm_0fyOevkhYrQEoW8b%3D4_AQY3bJZAU6BJjgakf4vQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Running GUI apps in a non-desktop debian BBB

2017-02-23 Thread Dieter Wirz
Have a look @
"X11 Forwarding using SSH"
If you installed eclipse via apt and have X11 forwarding enabled in
/etc/ssh/sshd_config "X11Forwarding yes" the you simply have to add an
-X to your ssh-Session
On my Linux Laptop:

ssh dw@myBBB -X
apt install geany
geany &

And geany pops up on your screen;) (dont forget the ampersand,
otherwise you ssh connection is locked;) You have to install your
Program with apt because u need a minimal installation of X11 on your
BBB.

IMHO this works as well with putty on Windows;)

HTH
Dieter

On Thu, Feb 23, 2017 at 4:40 PM, Dror Lugasi  wrote:
> Hi Everyone! I have a question regarding the console version of debian for
> the BBB.
> To keep my performance high i have disabled the desktop and am running only
> the terminal like in a console version of linux.
> my question is: can i run IDE's like eclipse or monodevelop with the their
> GUI in this current situation?
>
> i have tried to install them and then type "monodevelop" or "eclipse" in the
> command line and nothing happened.
>
> Any one knows how to do this? (if possible)
>
> My goal is to write multiple file projects in C++ and i want the comfort of
> the GUI of the IDE.
>
> Thanks!
> Dror.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/709a8b21-7c4a-4bb7-9458-3d27e72f0b20%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrs_fLawErXN9KP7KpTsa5eES-XTKD%3DNYHhG8dy608m5jA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Running .exe file after boot

2016-10-26 Thread Dieter Wirz
./someexecutable
This means run "someexecutable" in the in the current directory
because ./ is the current directory.
In startup scripts give the full path! without leading point!
e.g.
/home/you/somepath/someexecutable
AND as evilwulfie pinted out, never ever call a unix executable *.exe.
This is evil;)




On Wed, Oct 26, 2016 at 7:28 PM, Dror Lugasi  wrote:
> Hello guys..
> I have a code i wrote in monodevelop and i have the program .exe file that i 
> want to run after the desktop is loaded.
> When i go into the terminal and change the dir to the debug folder and run 
> ./thefile.exe it works.
>
> I tried to add this command to a shell script that i run at boot as
> ./thefile.exe
> And also cd  and then ./thefile.exe but none has worked.
>
> Can anyone please help me to figure out how to run my .exe file automatically 
> after boot (prefer as root if possible)
>
> Cheers!
> Dror.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/f73293bd-454b-4f41-8141-776bf8ca454c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrvc9ht6B2yUWf8X%2BMfnDFnCj_jhUUYtbWkoyVBAYqDM_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Testing usb webcam, out of space during cheese installation

2016-06-27 Thread Dieter Wirz
/dev/mmcblk0p1   3706992 3552016 0 100% /
Your mmc is full, you need more space!
Have a look at /var/log
du -sh /var/log
Have a look at /usr

http://askubuntu.com/questions/32191/how-do-i-remove-cached-deb-files

But this will not help really;)
Even if you do a
apt-get remove --purge *all_programs_you_do_not_need_anymore*
It's maybe easier to save all Files you want to keep and do a fresh
install of yor BBB
HTH

On Mon, Jun 27, 2016 at 3:38 AM, Ben Nguyen  wrote:
> I wanted to see if my cheapy usb webcam works on the bbb (stock, running
> debian 8.5).. so I installed cheese, but during installation, using this
> guide, it said out of memory!
>
> https://blog.adafruit.com/2014/08/26/use-cheese-to-add-a-usb-camera-to-your-beagleboneblack-txinstruments-beagleboardorg…
>
>
>
> Not sure how much space I started with, but this is now:
>
>
>
> root@beaglebone:~# df
>
> Filesystem 1K-blocksUsed Available Use% Mounted on
>
> udev   10240   0 10240   0% /dev
>
> tmpfs 100784852092264   9% /run
>
> /dev/mmcblk0p1   3706992 3552016 0 100% /
>
> tmpfs251956   4251952   1% /dev/shm
>
> tmpfs   5120   4  5116   1% /run/lock
>
> tmpfs 251956   0251956   0% /sy
>
>
>
> How much of /devmmcblk0p1 (emmc) is from cheese?  Since it didn't finish
> installing correctly, I'm guessing it's best not to run it, but how do
> unistall the partial install? And how can I see the camera output without
> the use of cheese?
>
>
>
> BTW, the camera I'm using is a very old Logitech Quickcam Chat (640x480
> 961413-0215).  Figured the low frame resolution/frame rate should be a piece
> of cake for the bbb!  This webcam works on my desktop debian running cheese.
>
>
> I know there's a few webcams known to work with the bbb, (Logitech C920,
> playstation eye), but if I do have to buy a new one, I was thinking of a
> microsoft kinect or a lifecam studio Q2F-00014/X821857-003
> Q2F-00015/Q2F-3 Q2F-00013 5WH-2 1425 Q2F-1).
>
> http://www.diyinhk.com/shop/usb-microscope-1080p-for-smt-soldering/51-lifecam-studio-1080p-microscope-lens-mod-kit.html
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/7004c634-f8bc-4b37-9cb6-407a2c9744be%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrtsDRioAxYUj_NcMgJL6B7JwYqLbqmAiJznVL2nDjBHQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: BeagleBone Black aplay using USB audio adapter causes crash

2016-06-24 Thread Dieter Wirz
wav Files are huge, even if its only a fart;), depending on number of
channels and sampling rate. Its a raw format. The reading speed from
your Memory (sd or mmc) might simply be to slow. Convert the files to
another format and have a look at mp123, nvlc, mplayer,  Some of
them work even with lossless formats. I propose: give mp3 and mp123 a
try;)

On Thu, Jun 23, 2016 at 7:17 AM, William Wendin  wrote:
> BTW, I usually set the for loop to 100, not 1.   Sometimes it crashes doing
> it just once however.
>
>
> On Wednesday, June 22, 2016 at 5:02:50 AM UTC-7, William Wendin wrote:
>>
>> Question: I can't get aplay to work reliably with a USB audio adapter.  It
>> works most of the time, but every once in a while it crashes and hangs, I
>> can't play again.   The only fix seems to be to cycle the power on the
>> BeagleBone Black.
>>
>> Any help on how to debug this?  I know linux but have never debugged
>> someone else's kernel crashes.
>>
>> --
>>
>> Linux beaglebone 4.1.15-ti-rt-r43 #1 SMP PREEMPT RT Thu Jan 21 20:13:58
>> UTC 2016 armv7l GNU/Linux
>> BeagleBone Black rev C
>> USB audio dongle from Sabrent, or from Syba (I tried both and the both
>> cause the same problem).  I believe they both have the same internal
>> hardware but that may not matter.
>>
>> I haven't altered the kernel or cape in any way (I installed on microSD
>> using bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img)
>> I have run "apt-get update" and "apt-get upgrade"
>>
>> If I play some files in a loop like this, it eventually crashes and aplay
>> hangs.  It is hard to repeat but it is repeatable
>>
>> for ((i=0; i<1; i++))
>> do
>>   aplay -Ddefault:Device /opt/sounds/wav/yipe.wav
>>   aplay -Ddefault:Device /opt/sounds/wav/fart_z.wav
>>   aplay -Ddefault:Device /opt/sounds/wav/scream2.wav
>> done
>>
>> dmesg:
>> [  331.175898] Unable to handle kernel NULL pointer dereference at virtual
>> address 001c
>> [  331.194307] pgd = db8bc000
>> [  331.197049] [001c] *pgd=9c25e831, *pte=, *ppte=
>> [  331.213614] Internal error: Oops: 17 [#1] PREEMPT SMP THUMB2
>> [  331.213726] Modules linked in: c_can_platform c_can can_dev spidev
>> pwm_tiehrpwm pwm_tiecap tieqep snd_soc_evm pruss_remoteproc snd_usb_audio
>> snd_hwdep snd_usbmidi_lib snd_rawmidi snd_seq_device omap_rng rng_core
>> tilcdc snd_soc_davinci_mcasp snd_soc_edma spi_omap2_mcspi usb_f_acm u_serial
>> usb_f_rndis g_multi usb_f_mass_storage u_ether libcomposite tda998x
>> snd_soc_hdmi_codec uio_pdrv_genirq uio
>> [  331.213743] CPU: 0 PID: 2871 Comm: aplay Not tainted 4.1.15-ti-rt-r43
>> #1
>> [  331.213748] Hardware name: Generic AM33XX (Flattened Device Tree)
>> [  331.213757] task: dc2d9680 ti: ddcee000 task.ti: ddcee000
>> [  331.213780] PC is at musb_start_urb+0x34/0x93c
>> [  331.213790] LR is at musb_cleanup_urb+0x87/0x98
>> [  331.213800] pc : []lr : []psr: 000f0133
>> sp : ddcefde0  ip :   fp : 
>> [  331.213806] r10:   r9 : ffec  r8 : c0cfdea0
>> [  331.213812] r7 : e083ec10  r6 : 0001  r5 : dc2bc500  r4 : ddb24010
>> [  331.213818] r3 : ddb24b60  r2 :   r1 :   r0 : ddb24010
>> [  331.213828] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb
>> Segment user
>> [  331.213835] Control: 50c5387d  Table: 9b8bc019  DAC: 0015
>> [  331.213843] Process aplay (pid: 2871, stack limit = 0xddcee218)
>> [  331.213850] Stack: (0xddcefde0 to 0xddcf)
>> [  331.213864] fde0: ddb24010 1284  c0529f33 0003 03e7
>> e083ec10 c0cfdea0
>> [  331.213876] fe00: c0cfde98 c0c2ee00 ddb24b60  dc2bc500 
>> dc7f7300 
>> [  331.213889] fe20: ddb24010 c052a96f e083ec00 dc2bc500 dc2d9680 ddb24010
>> 1b4f1d09 ddb24b60
>> [  331.213901] fe40:  dc7f7300 e083ec10 c0cfdea0 c0cfde98 
>>  c052ab43
>> [  331.213912] fe60: dc7f7300 dc2bc500 ddb24010   0001
>> dc7cad08 c052af59
>> [  331.213925] fe80: ddcefe88 c004e8e9  c011d71b dc2bb000 dc7f7300
>> ff98 dcf51000
>> [  331.213936] fea0: dccd53ec dccd53e8 0008 c04f27fd dfd72e94 c00ef857
>> 0002 dccd53f0
>> [  331.213948] fec0: dccd40e0 bf8d9249  dccd4000  db84b600
>> dcdd64b8 bf8d9fd3
>> [  331.213960] fee0: 0001 dc15c410 dc15c474 bf8e0577 dc15c410 c0c0ba94
>> 0001 bf8e0673
>> [  331.213972] ff00: db84b600 c05c548f c05c5459 c05c52df 0003 db84b600
>> dc730400 
>> [  331.213985] ff20: dc2f8540 c05c5937 db84b600 dc7cad00 dcdd6000 c05c5ecf
>>  db84b600
>> [  331.213997] ff40: dc7cad00 c05c5fa7 dc7cad00 dc1c4230  dcd9d410
>> db2243c0 c012ae5f
>> [  331.214009] ff60:   dc2d9c3c  c0c379c8 dc2d9680
>> c000eac4 ddcee000
>> [  331.214021] ff80:  c00468dd dc7cad00 ddcee000 c000eac4 ddceffb0
>> 0006 c00112d3
>> [  331.214033] ffa0: 007045e8 007046f0 007045e8 c000e979  
>> 007043f8 b6ee45a1
>> [  331.214045] ffc0: 007045e8 007046f0 

Re: [beagleboard] getting timestamp in kernel

2016-06-16 Thread Dieter Wirz
Hi
I am no Kernel Programmer;), however I guess what u are looking for
is: gettimeofday()
e.g.
#include 
#include 
void main()
{
struct timeval tv;

gettimeofday(, NULL);

unsigned long long millisecondsSinceEpoch =
(unsigned long long)(tv.tv_sec) * 1000 +
(unsigned long long)(tv.tv_usec) / 1000;

printf("ms since 1/1/1970: %llu\n", millisecondsSinceEpoch);
}

Hint: if you are searching for ANSI c hints in google, add ansi or cpp
or POSIX to your question, e.g.:
"gcc unix  timestamp milliseconds"
HTH


On Thu, Jun 16, 2016 at 1:28 AM,   wrote:
> I am new to kernel programing and am trying to find a way to get a timestamp
> into some kernel code we had custom written for us.
>
> it looks like the normal c library time.h has a get_clocktime() function,
> but this does not exists in the linux/time.h lib.
>
> Is there a way to stamp my debug/info meassges from my kernel code with a
> time at millisecond resolution. The timestamp on the log file is buffered
> and thefore off.
>
> Thanks
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/aeaec6ce-e16c-41c4-8866-4415bc7d6c02%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrsJfjxZrODTWYtf7hcFiY2n89JR4T1sTVyS_b1v9hwLJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] 2016-05-31 vs. 2016-05-13

2016-06-03 Thread Dieter Wirz
On Fri, Jun 3, 2016 at 7:02 PM, Wally Bkg  wrote:
> I noticed:
>
> https://rcn-ee.com/rootfs/bb.org/testing/2016-05-31/lxqt-4gb/bone-debian-8.4-lxqt-4gb-armhf-2016-05-31-4gb.img.xz
> is out and that:
>
> https://debian.beagleboard.org/images/bone-debian-8.4-lxqt-4gb-armhf-2016-05-13-4gb.img.xz
> is now "current".
>
> Will apt-get update & apt-get upgrade get me from 2016-05-13 to 2016-05-31?
> or should I start with a fresh image.  Just looking to redo my "newbie"
> tests this weekend.
Consider to do a 'apt-get dist-upgrade' or a 'apt full-upgrade'
Google will tell u the difference between upgrade, dist-upgrade and
full-upgrade;)

>
> In theory upgrading should do it, but in practice, some packages get added
> and thus aren't there to be upgraded.

Note: all packages installed with apt will be upgraded. But, there
might be other differences between 2016-05-13 and 2016-05-31, namely
other packages installed...

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAK4vXrvvCH6iSfDT%3DbLCbcBuGfPx-Xrsk5rsXAHVa8Jk%3Dop%2B2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How to use Exim4 to Send Email from Beaglebone Black Debian

2016-04-21 Thread Dieter Wirz
Create the file .muttrc eg in /root/ or in /home/debian/ (the user
that wants to use mutt) and add a line
set smtp_url="smtp://user:passw...@smtp.someserver.com"
And don't forget the return after this line. (as in crontab as well)

* * * * * root ls /somefolder  | mutt -s ""  someu...@someserver.com 2>&1

BTW: didn't you read my Email where i worte that you can redirect
crontabs output into a file:
* * * * * root ls /somefolder >> /root/crontab_err.txt 2>&1

On Thu, Apr 21, 2016 at 2:06 AM, John Baker
<bakerengineerin...@gmail.com> wrote:
> Dieter,
> I'm trying to get mutt running to get error messages from crontab. I
> installed mutt with aptitude and it may be working but I don't know how to
> set it up to get the messages :-[
>
> Apr 20 23:49:01 beaglebone /USR/SBIN/CRON[8657]: (root) CMD (export
> DISPLAY=:0 && /usr/bin/python /home/debian/Desktop/SimB.py)
> Apr 20 23:50:01 beaglebone /USR/SBIN/CRON[8690]: (root) CMD (export
> DISPLAY=:0 && /usr/bin/python /home/debian/Desktop/SimB.py)
> Apr 20 23:51:02 beaglebone /USR/SBIN/CRON[8723]: (root) CMD (export
> DISPLAY=:0 && /usr/bin/python /home/debian/Desktop/SimB.py)
> Apr 20 23:52:01 beaglebone /USR/SBIN/CRON[8756]: (root) CMD (export
> DISPLAY=:0 && /usr/bin/python /home/debian/Desktop/SimB.py)
>
> Setup is described in https://wiki.debian.org/Mutt says there is a muttrc
> file in "a user's $HOME directory" but I find only unreadable muttrc files
> elsewhere and I'm not sure I know where and what a "user's $HOME directory"
> is.
>
> 1. Do I need to set up some directory in /home/?
> 2. Do I need to create a muttrc file to configure mutt?
> 3. Is there a way to find and read the sent messages?
>
> Thanks,
> John
>
> On Wednesday, May 27, 2015 at 7:44:18 AM UTC-7, Dieter Wirz wrote:
>>
>> If you only want to send mail, install mutt
>> With mutt u can use any SMTP server, and mutt comes with its own;-)
>>
>> On Tue, May 26, 2015 at 11:09 PM, tcb2 <tchadwic...@gmail.com> wrote:
>> > I've recently gotten Exim4 to send mail from the BBB with Debian, using
>> > the
>> > Gmail SMTP server. (I tried using the BBB as the server with SMTP port
>> > 25,
>> > but my ISP [Comcast] blocks that port to prevent spam.) I am running
>> > code to
>> > monitor a sensor, and wanted an email alert to me at certain detected
>> > values. Here are the general steps:
>> >
>> > 1. Tell Google that you'll be sending email from your BBB. From a
>> > browser on
>> > the BBB, sign in to your gmail account at:
>> > http://www.google.com/accounts/DisplayUnlockCaptcha
>> >
>> >
>> > 2. Open port 587. For this you need to be root. Check your iptables
>> > (firewall) first to see if 587 is already open:
>> > # iptables -L -n
>> >
>> > If not, then
>> > # iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT
>> >
>> > and, if you don't have any input rules, which is good (see
>> >
>> > http://unix.stackexchange.com/questions/104954/how-to-allow-outgoing-smtp-on-iptables-debian-linux),
>> > then
>> >
>> > # iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
>> >
>> > 3. Install and configure exim4 as root. This is the package that sends
>> > the
>> > email.
>> >
>> > # apt-get install exim4
>> >
>> > Now, configure exim as root:
>> >
>> > # dpkg-reconfigure exim4-config
>> > in the dialog, answer as follows:
>> >
>> > Configuration type mail sent by smarthost; received via SMTP or
>> > fetchmail
>> >  System mail name localhost
>> >  IP-addresses to listen on for incoming SMTP connections 127.0.0.1 ; ::1
>> > (to
>> > refuse external connections)
>> > Other destinations for which mail is acceptedleave empty
>> > Machines to relay mail forleave empty
>> > IP address or host name of the outgoing smarthostsmtp.gmail.com::587
>> > Hide local mail name in outgoing mail ?yes
>> > Keep number of DNS-queries minimal (Dial-on-Demand) ?no
>> > Delivery method for local mailmbox format in /var/mail/
>> > Split configuration into small files ?no
>> >
>> > check /etc/exim4/update-exim4.conf.conf to see if the file looks like
>> > the
>> > below, and if not, change it:
>> >
>> > dc_eximconfig_configtype='smarthost'
>> > dc_other_hostnames=''
>> > dc_local_interfaces='127.0.0.1 ; ::1'
>> > dc_readhost=''
>> > dc_relay_

Re: [beagleboard] Re: How to make a python program start on boot? May need to use sudo.

2016-04-17 Thread Dieter Wirz
For debugging u can redirect the output into a file, eg:
* * * * * root /usr/bin/python /home/debian/Desktop/SimB.py >>
/home/debian/err.txt 2>&1
(write this all in one line)

However, if your program is an X program the error will be something like:
"cannot open display"

But: All Window Managers i know provide methods to autostart a x-program
If your WM is lxde the u will find a good explanation here:
https://wiki.archlinux.org/index.php/LXDE#Autostart



On Sun, Apr 17, 2016 at 3:20 AM, evilwulfie <evilwul...@gmail.com> wrote:

> I Am saying that if your depending on the GUI for any part of your program
> it may expect the xwindow system to be active before
> it starts, then seeing that the GUI is not running just exits.
>
> It's hard to second guess what your program is doing here but it "may" be
> the issue.
>
> try checking for the xwindow system being running before starting your
> program.
>
>
>
>
>
>
> On 4/16/2016 6:16 PM, John Baker wrote:
>
> Hi Wulf Man,
> My GUI is part of a simulation program. There's a lot of calculation and
> the GUI to allow me to enter some parameters and display the results on a
> graph. You're saying that I have to start up my calculation part of the
> program and then the GUI?
> John
>
> On Saturday, April 16, 2016 at 5:37:07 PM UTC-7, Wulf Man wrote:
>>
>> If this is a GUI only program you need to start your program
>> after the GUI is up, I don't see this check in your crontab file
>> Been too long since i have done this but i am sure google is your friend
>>
>>
>>
>> On 4/16/2016 4:53 PM, John Baker wrote:
>>
>> Hi Dieter,
>> Still not working. I have a hunch that the problem is with Tkinter but
>> can't tell. I have to run my GUI program SimB.py with the terminal program
>> on the BBB, typing sudo python SimB.py, then it runs happily.
>>
>> *Here's my crontab in /etc:*
>> # /etc/crontab: system-wide crontab
>> # Unlike any other crontab you don't have to run the `crontab'
>> # command to install the new version when you edit this file
>> # and files in /etc/cron.d. These files also have username fields,
>> # that none of the other crontabs do.
>>
>> SHELL=/bin/sh
>> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>>
>> # m h dom mon dow user command
>> 17 * * * * rootcd / && run-parts --report /etc/cron.hourly
>> 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts
>> --report /etc/cron.daily )
>> 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts
>> --report /etc/cron.weekly )
>> 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts
>> --report /etc/cron.monthly )
>> #
>> @reboot root /usr/bin/python /home/debian/Desktop/SimB.py
>> * * * * * root /usr/bin/python /home/debian/Desktop/SimB.py
>>
>> *and here's from the syslog file that doesn't tell me anything:*
>>
>> Apr 16 23:37:01 beaglebone /USR/SBIN/CRON[2293]: (root) CMD (sudo python
>> /home/debian/Desktop/SimB.py)
>>
>> Apr 16 23:37:01 beaglebone /USR/SBIN/CRON[2294]: (debian) CMD (sudo
>> python /home/debian/Desktop/SimB.py)
>>
>> Apr 16 23:37:01 beaglebone /USR/SBIN/CRON[2295]: (root) CMD
>> (/usr/bin/python /home/debian/Desktop/SimB.py)
>>
>> Apr 16 23:37:14 beaglebone /USR/SBIN/CRON[2292]: (CRON) info (No MTA
>> installed, discarding output)
>>
>> Apr 16 23:37:14 beaglebone /USR/SBIN/CRON[2290]: (CRON) info (No MTA
>> installed, discarding output)
>>
>> Apr 16 23:37:14 beaglebone /USR/SBIN/CRON[2291]: (CRON) info (No MTA
>> installed, discarding output)
>>
>>
>> I can successfully run my program with a keyboard attached to my BBB
>> using sudo python SimB.py, have to use the sudo, otherwise gets a Tkinter
>> error. I just now double-checked and my GUI program SimB.py runs very
>> happily. Cannot run SimB.py thru putty as it gives the Tkinter error.
>>
>> Any ideas?
>> Thanks,
>> John
>>
>> On Saturday, April 16, 2016 at 1:04:21 AM UTC-7, Dieter Wirz wrote:
>>>
>>> On Sat, Apr 16, 2016 at 5:57 AM, John Baker <bakerengi...@gmail.com>
>>> wrote:
>>>
>>>> John Minton,
>>>> I gave crontab a try and of course it didn't work. It seems like this
>>>> should be a piece of cake to do. I probably did something wrong. I checked
>>>> the syslog and see an error: "No MTA installed."
>>>>
>>>
>>> ​
>>> If u​
>>>
>>> ​ have an error in ​crontab the cro

Re: [beagleboard] Re: How to make a python program start on boot? May need to use sudo.

2016-04-16 Thread Dieter Wirz
On Sat, Apr 16, 2016 at 5:57 AM, John Baker 
wrote:

> John Minton,
> I gave crontab a try and of course it didn't work. It seems like this
> should be a piece of cake to do. I probably did something wrong. I checked
> the syslog and see an error: "No MTA installed."
>

​
If u​

​have an error in ​crontab the crontab tries to send you an Email... And of
coarse cannot without MTA;)

My crontab file says:
> ​​
> @reboot sudo python /home/debian/Desktop/myProg.py
> * * * * * sudo python /home/debian/Desktop/myProg.py
>

​The are two crontabs, users and system crontab.
Users crontab you can change with
$ crontab -e
System crontab with
$ sudo nano /etc/crontab

If u want to run a process as root, then best is, if u add

> @reboot root /usr/bin/python /home/debian/Desktop/myProg.py
> * * * * * root /usr/bin/python /home/debian/Desktop/myProg.py
>
to /etc/crontab

HTH

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Mapping BBB as a Drive on Windows

2016-04-11 Thread Dieter Wirz
On Mon, Apr 11, 2016 at 11:11 AM, 'AndyS' via BeagleBoard
 wrote:
> Hi All,
>
> I would like to map my BBB Linux file system as a drive under windows.  I
> have managed to do this quite easily on Ubuntu, but struggling on Windows.
>
> It is really handy to do all file editing / backing up code on the host
> machine.
>
> Any advice would be greatly appreciated.

Hi
If u mount a linux file system in Windows (eg with samba AKA cifs)
then windows will mess up all permissions, cannot distinguish properly
between capital and lower case letters. hello.c and HeLlO.C in Windows
is the same file;(.

However, there is a workaround:
If you can connect with ssh, you can as well connect with the sftp and
scp protocol to BB(B). _and_ there are many good and free sftp clients
available for windows.
Tip: have a look @ winscp, connect with sftp and right click on the
file u want to edit, u can even choose your favorite editor...
HTH
didi

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Difference between Beaglebone Console and IOT images?

2016-04-02 Thread Dieter Wirz
IIRC, I only did an "apt-get install geany".

Maybe you have to add
X11Forwarding yes
to /etc/ssh/sshd_config and restart the server;)


On Sat, Apr 2, 2016 at 6:24 PM, Jason Kridner  wrote:
> Xinit shouldn't be required, just X apps.
>
> On Apr 2, 2016, at 10:33 AM, Wally Bkg  wrote:
>
> I'm no expert on the minimum required packages, but on my BBW Console image
> 2015-11-12  X apps like geany wouldn't work untill I installed xinit which
> sure brought in a lot of xorg stuff along with it.
>
> My experience is that running gui applications via ssh -X (especially over
> the USB gadget) actually has better interaction than when running on the BBB
> HDMI display, so its very useful!
>
>
> On Friday, April 1, 2016 at 2:18:46 AM UTC-5, Jason Kridner wrote:
>>
>>
>>
>> On Mar 30, 2016, at 2:12 PM, Robert Nelson  wrote:
>>
>> On Wed, Mar 30, 2016 at 2:09 PM, Wally Bkg  wrote:
>>
>> I'm curious as to difference between the Beaglebone Console and IOT images
>>
>> and the reason(s) for choosing one over the other.
>>
>>
>> Even on my BBW I prefer an lxde or lxqt image as I like to be able to do
>> ssh
>>
>> -X for things like gedit or geany from time to time, and I like the easy
>>
>> back-up and/or cloning of SD cards over flashing eMMC, but I'd like to
>> know
>>
>> when an alternate image might make sense.
>>
>>
>> The iot image = lxqt image - lxqt/xorg...
>>
>>
>> I believe 'ssh -X' should still be useful for you since you'd be running
>> the X Server on your host and don't need it on the Bone.
>>
>> To take this a bit further, I wonder how X11 in the browser is these days:
>> * https://archive.fosdem.org/2015/schedule/event/webx11/
>> * https://m.youtube.com/watch?v=6zJ8TNcWTyo=1
>> * https://magcius.github.io/xplain/article/
>>
>>
>> Regards,
>>
>> --
>> Robert Nelson
>> https://rcn-ee.com/
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beagleboard...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: C compiler

2016-03-25 Thread Dieter Wirz
On Fri, Mar 25, 2016 at 3:57 PM, Graham Haddock  wrote:
> Yes.
> sudo chmod 755 myprogram
> or
> sudo chmod 755 myprogram.o
>
Graham, please do not tell fairy tails on this list!

$ echo '#include ' > hello.c
$ echo 'int main (void) {  printf ("Hello, world!\n");   return 0; }' >> hello.c
$ cat hello.c
#include 
int main (void) {  printf ("Hello, world!\n");   return 0; }
$ gcc -Wall -o hello hello.c
$ ./hello
Hello, world!
$ ls -l
total 12
-rwxrwxr-x 1 dw dw 7332 Mar 25 16:32 hello
-rw-rw-r-- 1 dw dw   80 Mar 25 16:31 hello.c
$

No chmod needed, no myprogram.o there, why the sudo

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] C compiler

2016-03-25 Thread Dieter Wirz
gcc

On Fri, Mar 25, 2016 at 11:40 AM, Brainiac  wrote:
> hi eeveryone,
>
> does the BeageleBone Black have a C compiler ?
>
> i want to controle a step by step motor using BBB with C language , and i'm
> wondering if the BBB has an integrated C compiler
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] bbb Internal ADC configuration settings?

2016-03-06 Thread Dieter Wirz
On Sun, Mar 6, 2016 at 9:19 AM, Audrey  wrote:
> Where can I find it (and set it)?
>
> I'm right now trying to collect voltage readings using beaglebone's internal
> adc using a bash script and a while loop. Right now the data collection is
> clocking at around 33 microseconds, but I know that the internal adc should
> be able to collect data as fast as 5 microseconds. What should I do to make
> that happen? Is the problem with making while loops move faster, or is it
> about setting the adc configurations?

Scrolling and calling external functions like 'date' in Terminal are
extremely time consuming. In order to know how fast adc read is you
might want to start without timer and print in you loop
E.G:

#!/bin/bash
#echo cape-bone-iio > /sys/devices/bone_capemgr.*/slots
t0=$(date +%s%6N)
for ((i=0;i<1000;i++)); do
 rawVal=$(cat /sys/bus/iio/devices/iio:device0/in_voltage0_raw)
 #   voltage=$(bc -l <<< $rawVal/4095*1.8)
done
t1=$(date +%s%6N)
time=$(expr $t1 - $t0)
echo $time

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How can I give higher priority to user-space signal which emits data by usig signal over bbb interru

2016-02-22 Thread Dieter Wirz
Have a look at "nice"

import os
os.nice(-20)

A nice value of -20 represents highest priority, and a nice value of
19 represent least priority for a process.


On Mon, Feb 22, 2016 at 5:01 PM, Upol Ryskulova
 wrote:
> How can I give higher priority to user-space signal which emits data by usig
> PySide Signal class over the interrupt which reads value from a sensor when
> edge is rising of beaglebone black(BBB) gpio. The sensor rate is set to 860,
> so in every second it reads 860 data, consequently changes the flow of the
> process 860 times, and when 860 data has been read from the sensor it takes
> average of that values and emits PySide Signal with data (we should not
> return values from interrupt handler function and they have to have really
> short execution time period, that is why I used Pyside's Signal class to
> emit signal with data). This signal emitted is connected to printWeight()
> data in the server-side, and expected to execute when signal is emitted. But
> since interrupt is generated 860 times per second cpu usage is not given to
> server-side. How can I handle this issue? my server.py is as follows
>
> from bottle import
> redirect,get,post,request,response,template,run,route,Bottle,static_file
> from bottle.ext.websocket import GeventWebSocketServer
> from bottle.ext.websocket import websocket
> import time
> import signal
>
> from HardwareInterrupt import Hardware
> from Signals import _Signal_DataArrived
> import signal
>
> hardware = None
> def printWeight(data):
> global hardware
> print "data = ",data
>
> #signal.signal(signal.SIGALRM,printWeight)
>
> @route('/')
> def websocket():
> global hardware
> hardware = Hardware()
> hardware.setups()
> #hardware.startReadingValue()
> print "hardware..."
>
>
> _Signal_DataArrived.run(printWeight)
> run(host='0.0.0.0',port=8001,server=GeventWebSocketServer)
>
> and HardwareInterrupt.py is like this
>
> ..
> def setups(self):
> #setting Gpio setups
> Gpio.setup("P9_24", Gpio.IN,pull_up_down=Gpio.PUD_DOWN)
> Gpio.add_event_detect("P9_24", Gpio.RISING)
> self.setupI2cSettings()
>
> Gpio.add_event_callback(_SensorValueDetectedPin,self.readValueFromSensor)
>
>
>  def readValueFromSensor(self,channel):
> if (self.count == 860):
> result=self.total/self.count
> weight = result * self.sensorValueToGramConverter
> weight =
> self.doCalibration(weight,self.prev_weight)#currentVal)#,previousVal)
> self.prev_weight = weight
> print '%.2f' % (weight)
> self.count = 0
> result = 0
> self.total = 0
> obj = {'weight':weight}
> self._weight = weight
> _Signal_DataArrived.emitIt(weight)
> import time
> time.sleep(0.1)
> self.count = self.count + 1
> MSB, LSB = self.i2c.readList(0x00, 2)
> combined = (MSB << 8) | LSB # gelen verinin decimal hali
> self.total +=combined
>  
>
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How to access BBB hwclock/system time through java?

2016-02-22 Thread Dieter Wirz
On Mon, Feb 22, 2016 at 3:07 PM, Raman Arumugam
 wrote:
> Hi all
>
>   How to access the hwclock/system time on BBB via java, i succeeded
> for date but for system time no luck, it prints different one, is there any
> idea?
hwclock is set to Universal Time Coordinated (UTC) AKA Greenwich Mean Time (GMT)

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Connect beaglebone black to mac

2016-02-22 Thread Dieter Wirz
On Sun, Feb 21, 2016 at 9:51 PM, John Syne  wrote:
> Open terminal, type:
> ssh debian@192.16.1.105
How did you find this ip?
If you connect your BBB to your router with DHCP server, then BBB will
ask for an IP and most probably get one. But which one???

- If a screen and keyboard is connected to a keyboard and screen then
tipe into the terminal
ifconfig

- If no screen is available, you can do a portscan e.g. with nmap and
search for ssh, http ... and maybe this is your BBB

- On some routers see all devices connected if you log in eg with your browser.

> On Feb 21, 2016, at 7:17 AM, Manuel Silva 
> wrote:
>
> I've tried several ways to connect my BBB to mac (el capitan) through SSH
> (https://learn.adafruit.com/ssh-to-beaglebone-black-over-usb/installing-drivers-mac)
> e i've failed.
>
> I have read that horndis doesn't work with this OS.
>
> Is it possible to establish a connection using an ethernet cable or anything
> else?
>
> Thanks
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Play audio/video in the background.

2016-02-21 Thread Dieter Wirz
On Sun, Feb 21, 2016 at 12:58 PM, Dudi Goldenberg
 wrote:
> The idea is to have a responsive daemon that will allow me to
> start/stop/resume audio/video playing while the other parts of the app are
> busy dealing with I/O etc.
>
> All the players I found are interactive and does not daemonize...

Have a look at daemontools and mpg123:
http://www.unixuser.org/~euske/doc/daemontools/mp3play-e.html

Maybe for video you can do something similar;)

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Where to find Debian console images?

2016-02-14 Thread Dieter Wirz
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot_console

On Sun, Feb 14, 2016 at 4:26 PM, Elias Diem  wrote:
> Hi there
>
> I've heard that there are console images available for Debian (well, images
> that are smaller in size). I can't find them for my Beaglebone Black. I
> looked at
>
> http://beagleboard.org/latest-images
>
> Do they exist?
>
> --
> Greetings
> Elias
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> --- You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Protect eMMC/eMMC flasher Data

2016-02-08 Thread Dieter Wirz
Hi Julien
It's illegal to encrypt a Linux image (and sell it)! Please read the
GPL in detail! http://www.gnu.org/licenses/gpl-3.0.en.html
But, if your software is strictly your software, _and_ not depending
on any GPL'd libraries, (LGPL might work, I am no lawyer;) Then it
might work with a user with an encrypted home folder. Ask Google, how
to do this.
And BBB is open source as well. Has no CE IMHO. Did u read the legal
issues of BBB?
Dieter


On Mon, Feb 8, 2016 at 5:51 PM, Julien  wrote:
> Hello,
>
> I up the post, nobody has a solution for encrypting an image ?
>
> I see more solution for the raspberry but i don't find a same solution for
> BBB...
>
> I tested with encfs but the password must be typed or in a script. For
> automount folder at startup this is not secure. And i think with encFS a
> personne can boot with µSD card and find the ssh/encFS passwords on eMMC...
>
> Thanks.
>
> Best Regards,
> Julien.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Partial hang and most 'ps' time counters are 0?

2016-01-07 Thread Dieter Wirz
On Thu, Jan 7, 2016 at 7:22 PM,   wrote:
> I have a BeagleBone Black. I use it for testing a C++ library under 32-bit
> ARM. The library has a test driver executable program. The library also has
> a test script which builds test driver under different configurations and
> then executes the self tests.
>
> The script takes about 4 hours to run on a modern desktop. I'm guessing its
> going to take 2 to 3 days under the BeagleBone. The problem is, the machine
> basically hangs after about 8 to 12 hours of testing. My current SSH session
> stops producing output. When I attempt to start a new SSH session, it
> partially hangs (progresses very slowly).
>
> When I check counters for running processes under the new shell, I see
> nearly all counters are 0. `cryptest.sh` has been running for over a day, so
> it seems like it should be non-0 (see below).
>
> The BeagleBone is running Debian 8 snapshot from December, 2015.
>
> Any ideas on how I should start troubleshooting the problem?

Have a look at screen. Maybe your ssh connection sucks;)

apt-get install screen
screen
./cryptest.sh
a d # to detach the session
screen -r # to reattach the session

(Note: some versions of screen only allow root to run screen...
so
sudo screen
su jwalton )

Alternatively you could try
nohup ./cryptest.sh > cryptest.log 2>&1 &
tail -f cryptest.log

HTH
Dieter

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Call a C program from PHP

2015-12-09 Thread Dieter Wirz
Hi
Apache in debian runs as user www-data. Has the user www-data the rights to run
1. your program
2. access gpio

You may test this if you su www-data, having no password:
su # become root
su www-data # become user www-data
bash # as www-data has no shell
/var/www/ledCtl $led $onOff

HTH


On Tue, Dec 8, 2015 at 8:02 PM, Marcelo Rodrigues  wrote:
> Hi Everyone,
>
> I wrote a small C program for turning on/off the LEDs of the BeagleBone, it
> works fine when I call it direct from command line. However, when I try to
> call it from a PHP code it doesn't work.
>
> I'm using Linux beaglebone 3.8.13-bone71.1 and Apache2. The C program reads
> 2 arguments from command line (led and onOff) that says which led to control
> and its state. The exec line in the PHP code is the following:
> exec("/var/www/ledCtl $led $onOff");
>
> Do you have any idea how can I find the reason this call doen'st work from
> PHP code?
>
> Thanks in advance.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Call a C program from PHP

2015-12-09 Thread Dieter Wirz
BTW: did you check
/var/log/apache2/error.log


On Wed, Dec 9, 2015 at 4:55 PM, Dieter Wirz <didi.w...@gmail.com> wrote:
> Hi
> Apache in debian runs as user www-data. Has the user www-data the rights to 
> run
> 1. your program
> 2. access gpio
>
> You may test this if you su www-data, having no password:
> su # become root
> su www-data # become user www-data
> bash # as www-data has no shell
> /var/www/ledCtl $led $onOff
>
> HTH
>
>
> On Tue, Dec 8, 2015 at 8:02 PM, Marcelo Rodrigues <msrm...@gmail.com> wrote:
>> Hi Everyone,
>>
>> I wrote a small C program for turning on/off the LEDs of the BeagleBone, it
>> works fine when I call it direct from command line. However, when I try to
>> call it from a PHP code it doesn't work.
>>
>> I'm using Linux beaglebone 3.8.13-bone71.1 and Apache2. The C program reads
>> 2 arguments from command line (led and onOff) that says which led to control
>> and its state. The exec line in the PHP code is the following:
>> exec("/var/www/ledCtl $led $onOff");
>>
>> Do you have any idea how can I find the reason this call doen'st work from
>> PHP code?
>>
>> Thanks in advance.
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beagleboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Running android on Beaglebone black

2015-10-25 Thread Dieter Wirz
On Sat, Oct 24, 2015 at 6:02 PM,   wrote:
> Hi,
>
> I have been running Angstrom on the BBB for some time now, however I would
> prefer a OS that does not need a battery backup I have found that just
> switching OFF the BBB (with Angstrom or Debian) causes startup problems due
> to improper shutdowns.
>
> Is it possible to avoid this by using android OS instead, or does this also
> need a battery backup to allow for a proper shutdown process ??
>
> I have seen many Android TV stick devices running via USB or HDMI, but these
> do not have battery backup, but instead rely on a TV for power. How are
> these devices able to prevent shutdown problems ??
>
> The application I am planning to run will not use the SDcard or any other
> backup devices, the application will reside in the SDCard though , but
> hopefully would run entirely from the RAM. This way I hope to prevent any
> problems due to improper shutdown...

Have a look at this:
http://armsdr.blogspot.ch/2014/11/beaglebone-debian-read-only-filesystem.html
and this:
http://askubuntu.com/questions/109413/how-do-i-use-overlayfs

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] how can i file transfer to PC (Window) from BBB

2015-10-04 Thread Dieter Wirz
e.g. winscp: https://winscp.net/

On Sun, Oct 4, 2015 at 1:18 PM, 멘지  wrote:
> I'm using Putty
>
> and i want to file transfer to my PC (window 7)
>
> I want to run only the C language, without a separate program.
>
> The file is 200kb bmp files.
>
> Is there any way ??
>
> BBB was installed Debian
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Reinstalling Cloud9 on Debian Image 2015-03-01

2015-09-23 Thread Dieter Wirz
On Wed, Sep 23, 2015 at 3:26 PM, Robert Nelson  wrote:
> On Wed, Sep 23, 2015 at 4:23 AM, Mark A. Yoder  wrote:
>> I've managed to get Cloud9 uninstalled (or at least broken) on my Bone
>> running "Debian Image 2015-03-01".
>>
>> apt-get install cloud9-installer
>>
>> results in
>>
>> The following packages have unmet dependencies:
>>  cloud9-installer : Depends: c9-core-installer but it is not going to be
>> installed
>> E: Unable to correct problems, you have held broken packages.
>>
>> I can't find c9-core-installer.
>>
>> How do I get Cloud9 in reinstalled?
>
> sudo apt-get remove cloud9-installer ; sudo apt-get install c9-core-installer
sudo apt-get remove --purge cloud9-installer ; sudo apt-get install
c9-core-installer
With the option --purge u get rid of the configuratio files as well ;
Have a look at
man apt-get
HTH

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Ubuntu 14.04 hangs on the BBB

2015-09-03 Thread Dieter Wirz
How stable and powerful is your power supply? U might try to connect
your Weather station over a powered USB hub.

On Thu, Sep 3, 2015 at 6:12 PM,   wrote:
> Hello All,
>
> I have installed Ubuntu 14.04 on the BBB eMMc, and it works fine.
>
> It has an USB meteo sensor connected.
>
> Every few days it becomes unavailable: no ping answers, no ssh access.
>
> I need to unplug it, and then it reboots fine, but when I look into /var/log
> I find very little.
>
> How can I troubleshoot this?
>
> I need it to be as reliable as its big brothers Ubuntu servers...
>
> thanks for reading,
>
> ciao,
>
> -Gian
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] strange issue where PRU1 is not loaded from boot, but works from terminal when program is ran

2015-06-26 Thread Dieter Wirz
8.6 s after boot starts seems still to be quite early. You can can
change the boot order in systemd e.g with Type=idle or with After=...
An alternative might be:
echo @reboot root /pathto/myscript.sh  /etc/crontab
HTH

On Fri, Jun 26, 2015 at 4:26 AM, terra ÜÝÜ r3l...@gmail.com wrote:
 running BeagleBoard.org Debian Image 2015-03-01

 startup (from
 https://learn.adafruit.com/adding-a-real-time-clock-to-beaglebone-black/set-rtc-time)
 is invoked via;

 systemd
 bash script has a delay, increased it to 2 min still same non-running of the
 PRU.

 given the large delay; I have logged in and checked, program was not running
 I executed it(via putty), and it ran 100% fine.

 I killed the program, waited for the start-up script to kick in
 the start up script executed the program and its running fine.

 kinda not sure where to next?

 to recap
 I login(via putty)
 ps ax|grep myprogam
 does not show my program running
 I execute program
 cd /home
 myprogam 

 I kill the program
kill -9 myprogramPID

 2 minutes pass, and the program executes and runs 100% good.

 If I restart login(via putty) and wait 2 minutes, the program executed but
 no PRU activity.

 I do get, error below consistently upon boot-up, but does not seem to effect
 the operation of the PRU.
 root@beaglebone:~# dmesg|grep pru
 [8.606803] omap_hwmod: pruss: failed to hardreset
 root@beaglebone:~#


 On Thursday, 25 June 2015 20:43:26 UTC+10, Dieter Wirz wrote:

 How do you invoke the startupscript? (Maybe it's to early during boot.)

 On Thu, Jun 25, 2015 at 10:35 AM, terra ÜÝÜ r3l...@gmail.com wrote:
  Hi,
 
  I have a basic application which use PRU1. program works 100% when
  executes
  as root from user space (via putty).
  I have a bash start up script, which synchronizes with RTC and executes
  my
  program.
  cat /usr/share/rtc_ds3231/clock_init.sh
 
  #!/bin/bash
  sleep 15
  echo ds3231 0x68  /sys/class/i2c-adapter/i2c-1/new_device
  hwclock -s -f /dev/rtc1
  hwclock -w
  /home/myprogram
 
  as a result, the time synch is working, the program executes (ps ax|grep
  myprogram) shows it running; though no PRU1 activity.
  I need to login as root (via putty) kill the process and start is again
  (as
  root), and it works just fine. Literally no other actions are taken,
  killing
  the program multiple times still results in 100% operation each time.
  ps ax|grep myprogram
  kill -9 myprogramPID
  /home/myprogram 
 
  Kind help would be most appreciated
  Thank You
 
  --
  For more options, visit http://beagleboard.org/discuss
  ---
  You received this message because you are subscribed to the Google
  Groups
  BeagleBoard group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to beagleboard...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Make the Board to boot as fast as possible

2015-05-28 Thread Dieter Wirz
I don't think that making X and LXDE booting faster is an option.
Maybe with a mayor rewrite of both;-)

But, depending on your project, it might be worth to have a look at
framebuffer, there are a lot of options and programs. E.g., if you
want a slideshow, have a look at fbi...

On Thu, May 28, 2015 at 1:46 PM,  klang.christoph.pie...@gmail.com wrote:
 Hi!
 I'm a BeagleBone starter. So please excuse me if my questions are
 beginner-like.
 I'd like to make the board to startup as fast as possible. Only one
 executable will run on
 it and therefore I don't need thinks like the taskbar or anything like that.

 The tool has to run under LXDE and needs Network support. Thats all.

 Tanks for any help!

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How to use Exim4 to Send Email from Beaglebone Black Debian

2015-05-27 Thread Dieter Wirz
If you only want to send mail, install mutt
With mutt u can use any SMTP server, and mutt comes with its own;-)

On Tue, May 26, 2015 at 11:09 PM, tcb2 tchadwic...@gmail.com wrote:
 I've recently gotten Exim4 to send mail from the BBB with Debian, using the
 Gmail SMTP server. (I tried using the BBB as the server with SMTP port 25,
 but my ISP [Comcast] blocks that port to prevent spam.) I am running code to
 monitor a sensor, and wanted an email alert to me at certain detected
 values. Here are the general steps:

 1. Tell Google that you'll be sending email from your BBB. From a browser on
 the BBB, sign in to your gmail account at:
 http://www.google.com/accounts/DisplayUnlockCaptcha


 2. Open port 587. For this you need to be root. Check your iptables
 (firewall) first to see if 587 is already open:
 # iptables -L -n

 If not, then
 # iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT

 and, if you don't have any input rules, which is good (see
 http://unix.stackexchange.com/questions/104954/how-to-allow-outgoing-smtp-on-iptables-debian-linux),
 then

 # iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

 3. Install and configure exim4 as root. This is the package that sends the
 email.

 # apt-get install exim4

 Now, configure exim as root:

 # dpkg-reconfigure exim4-config
 in the dialog, answer as follows:

 Configuration type mail sent by smarthost; received via SMTP or fetchmail
  System mail name localhost
  IP-addresses to listen on for incoming SMTP connections 127.0.0.1 ; ::1 (to
 refuse external connections)
 Other destinations for which mail is acceptedleave empty
 Machines to relay mail forleave empty
 IP address or host name of the outgoing smarthostsmtp.gmail.com::587
 Hide local mail name in outgoing mail ?yes
 Keep number of DNS-queries minimal (Dial-on-Demand) ?no
 Delivery method for local mailmbox format in /var/mail/
 Split configuration into small files ?no

 check /etc/exim4/update-exim4.conf.conf to see if the file looks like the
 below, and if not, change it:

 dc_eximconfig_configtype='smarthost'
 dc_other_hostnames=''
 dc_local_interfaces='127.0.0.1 ; ::1'
 dc_readhost=''
 dc_relay_domains=''
 dc_minimaldns='false'
 dc_relay_nets=''
 dc_smarthost='smtp.gmail.com::587'
 CFILEMODE='644'
 dc_use_split_config='false'
 dc_hide_mailname='true'
 dc_mailname_in_oh='true'
 dc_localdelivery='mail_spool'

 Then modify /etc/exim4/passwd.client to (substitute your gmail name and
 pwd):

 gmail-smtp.l.google.com:yourgmailn...@gmail.com:yourpassword
 *.google.com:yourgmailn...@gmail.com:yourpassword
 smtp.gmail.com:youremailna...@gmail.com:yourpassword

 Change permissions, etc

 # chown root:Debian-exim /etc/exim4/passwd.client
 # chmod 640 /etc/exim4/passwd.client

 restart Exim

 # update-exim4.conf
 # invoke-rc.d exim4 restart


 4. Test sending mail

 you can do this in perl, for example:

 #!/usr/bin/perl

 $to = 'some-email-address';
 $from = 'yourgmailn...@gmail.com';
 $subject = 'Test Email';
 $message = 'This is test email sent by Perl Script';

 open(MAIL, |/usr/sbin/sendmail -t);

 print MAIL To: $to\n;
 print MAIL From: $from\n;
 print MAIL Subject: $subject\n\n;
 print MAIL $message;

 close(MAIL);

 print Email Sent Successfully\n;

 or another way it to create a file called mail-body.txt:

 to : some-email-address
 from : yourgmailn...@gmail.com
 subject : Test mail

 This is the first mail sent by my server's sendmail !

 and then do

 # cat mail-body.txt | sendmail -t

 if mail is not sending, then check /var/log/exim4/mainlog for errors.

 # tail /var/log/exim4/mainlog


 good luck!

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Restart SSH service (or even reboot board) from Cloud9 IDE?

2015-05-15 Thread Dieter Wirz
chmod +s /sbin/reboot
Now all users can reboot, as well your webserver...
Note: this is _very_ insecure!

On Wed, May 13, 2015 at 8:12 PM,  tomlon...@gmail.com wrote:
 I need to reboot my c9.io too. Nothing?


 On Tuesday, March 11, 2014 at 10:55:17 AM UTC-5, MikeG_BBB wrote:

 Twice in 6 months, my BBB has locked me out of an SSH connection (standard
 Angstrom distribution, the only additions are lighttpd and PHP, using a
 static IP). The standard
 webserver on port 80 and a lighttpd server on port 6980 still work as does
 the Cloud9 IDE. The only way to get it back is a hard reset.

 This normally wouldn't be an issue but I'm about to put a couple of these
 in a not-easily-accessible place.


 Is there a way to restart SSH or even reboot the board from within the
 Cloud9 IDE? I could connect a kill circuit to one of the I/O and power
 cycle the board from Cloud9 but that's a bit messy.



 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Installing Python Libraries to access GIOP on BeagleBone through Ubuntu 14.04

2015-05-02 Thread Dieter Wirz
On Sat, May 2, 2015 at 5:01 PM, Mehreen Qayas mehrqa...@gmail.com wrote:
 It is connected through Ethernet cable only. I used the SSH root@192.168.7.2
 in the Ubuntu terminal to connect to this remote system.
192.168.7.2 you get usually when connecting over USB. is this a typo?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Installing Python Libraries to access GIOP on BeagleBone through Ubuntu 14.04

2015-05-02 Thread Dieter Wirz
Seems that your BBB has no network (or no nameserver)! Is it connected
via USB only?
Easiest is to connect it via Ethernet to a router with dhcp-Server.


On Sat, May 2, 2015 at 1:20 PM, Nova Jack mehrqa...@gmail.com wrote:
 Background
 I am working on Virtual Machine, using 32bit Ubuntu and have successfully
 connected to the remote server using the beaglebone's IP address after
 installing the required bone drivers for the beaglebone. I want to access
 GIOP of BeagleBone Black and be able to run a DC motor on it. I have tried
 following this tutorial by adafruit:

 https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation-on-ubuntu

 but I seem to get errors in the early stages.

 Errors
 My first error is with the very first command using 

 sudo ntpdate pool.ntp.org to set the right date and time. But I get the
 following errors:

 root@beaglebone:~# sudo ntpdate pool.ntp.org Error resolving pool.ntp.org:
 Name or service not known (-2) 23 Apr 21:18:42 ntpdate[2034]: Can't find
 host pool.ntp.org: Name or service not known (-2) 23 Apr 21:18:43
 ntpdate[2034]: no servers can be used, exiting root@beaglebone:~# sudo
 apt-get update Err http://debian.beagleboard.org wheezy-bbb Release.gpg
 Could not resolve 'debian.beagleboard.org' Err http://security.debian.org
 wheezy/updates Release.gpg Could not resolve 'security.debian.org' Err
 http://ftp.us.debian.org wheezy Release.gpg Could not resolve
 'ftp.us.debian.org' Err http://ftp.us.debian.org wheezy-updates Release.gpg
 Could not resolve 'ftp.us.debian.org' Reading package lists... Done W:
 Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/Release.gpg
 Could not resolve 'ftp.us.debian.org' W: Failed to fetch
 http://ftp.us.debian.org/debian/dists/wheezy-updates/Release.gpg Could not
 resolve 'ftp.us.debian.org' W: Failed to fetch
 http://security.debian.org/dists/wheezy/updates/Release.gpg Could not
 resolve 'security.debian.org'


 Question
 -Does it have to do with the beaglebone's debian's image not been updated to
 the latest version?
 -Is it because I don't have complete access to the beaglebone (in reference
 to the security error message)
 -Am I missing some essential packages for the beaglebone?

 Would really appreciate your help!

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] startx with systemd

2014-08-29 Thread Dieter Wirz
Usually on Linux systems you simply install a desktop manager like
GDM, KDM, XDM This way you get a userlogin. But I never tried this
with Angstrom.

On Mon, Aug 25, 2014 at 10:18 PM, William Hermans yyrk...@gmail.com wrote:
 By creating / adding a service. I have not done this myself, so do not know
 how it all is done, but I've seen it done recently. googling systemd
 services should help.

 One link i found quickly just now searching :
 http://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html


 On Mon, Aug 25, 2014 at 12:49 PM, bart.debo...@gmail.com wrote:

 Dear,

   I'm trying to start X from systemd (Angstrom - Beaglebone black). So
 far, all my attempts failed. Starting X from command line works perfectly.

   Any hint how X is started from systemd?

 Thanks,
 Bart

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Security when connecting autonomous BB to the Internet

2014-05-30 Thread Dieter Wirz
Before you can hardening a Debian server you have to make a normal
Debian Server out of it...

Login as root in the terminal (e.g. with putty from a win machine):
root@arm:~# adduser prz # add a new regular user with password
root@arm:~# deluser debian # remove the Testuser
root@arm:~# rm -rf /home/debian
root@arm:~# passwd # give root a real passwd

At this point I propose to install a real like apache:
root@arm:~# apt-get install apache2

Now you can check with a portsniffer e.g. nmap what ports are open on
your BBB but now your  system should be fairly secure



On Wed, May 28, 2014 at 10:10 AM, David Farning dfarn...@gmail.com wrote:
 A good term to google for is hardening a Debian server.

 There are many articles and several good books for people with various
 backgrounds.

 On Tue, May 27, 2014 at 8:13 PM, Przemek Klosowski
 przemek.klosow...@gmail.com wrote:
 On Tue, May 27, 2014 at 7:29 PM,  brettmaurer...@gmail.com wrote:

 I'm connecting a BB to the internet and want to make sure it is relatively
 secure. Things like Cloud9, BoneScript, and root default password are all
 things that might leave open security holes.

 I'm no Unix expert so I'll pose the question here. Can anyone point me to a
 guide for what I should do to make the BB secure for long term autonomous
 connection to the Internet?

 Well, that's a difficult question. You connect it to the Internet so
 that it's capable of performing certain functions that you want, but
 you want to secure it so that it will not do anything that you don't
 want.  The best approach, then, is to rigorously specify what's
 allowed and what's not, and implement controls that match this spec.
 You have several tools in your disposal:

 - you can set up an independent firewall in front of your device: if
 your device is on a home/ISP network you probably have a router that
 already implements that.

 - the BBB can run the Linux firewall (iptables) that control the
 network traffic into and out of your device

 - if your requirements can be met by your BBB always originating
 traffic, things are easier: both iptables and ISP router firewalls
 support outgoing connections out of the box, and your BBB is in
 control of the traffic. You have to pay attention to DNS---DNS
 spoofing is the principal vulnerability for this kind of setup

 - if you need to connect to the BBB from the outside, you want to
 limit the open ports and implement it in a cryptographically secure
 way, by using SSH/SSL/TLS or IPsec. This is tricky to get right,
 because there's always a possibility of vulnerabilities like
 Heartbleed

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups 
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups 
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SO_BINDTODEVICE

2014-05-30 Thread Dieter Wirz
Did you try to run your program as root, with su or sudo?
eg:
~ sudo yourprogram
or
~ su
~ yourprogram


On Fri, May 30, 2014 at 10:58 AM, A P a.poole...@gmail.com wrote:


 Hi,

 System setup :

 Beaglebone Black with Debian from SD card, Ethernet and Wifi. Cross
 compiling on Windows 7 machine.
 Running program in debug mode via Eclipse (Win7) using gdb as debugger

 Problem:
 I am writing an application that requires ethernet and wifi (via usb) on the
 beaglebone black. My problem is that I need to point some TCP sockets to the
 Ethernet port but by default Linux os decides what is best so chooses wifi!
 So to get around this I use

 struct ifreq ifr;
 memset(ifr, 0, sizeof(ifr));
 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), interface);

 ioctl(TsocketId, SIOCGIFINDEX, ifr);
 error = setsockopt(socketId, SOL_SOCKET, SO_BINDTODEVICE,  (void*)ifr,
 sizeof(ifr));


 However setsockopt always returns an error EPERM which is Operation Not
 Permitted (or similar). I have tried the simpler form of passing 'eth0' in,
 also with the same results.

 After much reading on the internet it appears that I need extra rights to
 run this command.

 I am struggling at this point

 I have set the file permissions to include chmod u+s   --- made no
 difference
 I have edited sudoers to give admin users sudo privileges  (I believe my
 debian user is one as now I don't have to enter a password everytime I type
 sudo..)

 # Members of the admin group may gain root privileges
 %admin  ALL=(ALL) NOPASSWD:ALL

 This also made no difference.

 My application is running under the debian user

 Any help much appreciated..

 A P

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] [beaglebone black] vnc viewer issue

2014-02-07 Thread Dieter Wirz
try
nohup ./squares 


On Sat, Jan 11, 2014 at 6:37 AM, Henry Rahardjo henryr...@gmail.com wrote:


 https://lh5.googleusercontent.com/-cEQEAMrg1uk/UtDWSnoi2pI/AAs/yDcdB7jUD1U/s1600/vnc.jpg
 hi all
 I use angtorm 3.8.13 and use vnc viewer
 I got some problems with vnc viewer when i want to see my ran opencv code
 i have built the opencv samples from opencv-2.4.3 and some other opencv
 code
 i can run the opencv code like in the picture that i attached (opencv
 sample squares)  (i used command : ./squares)
 after the opencv code ran: a new window that show the sample appeared in
 back of terminal window
 the problem is : I cannot even move the terminal window and the sample
 squares window so i cannnot see the sample code.
 the only option left after i ran the code just to close the terminal window

 please help me
 what should i do?
 thanks all



  --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] SSH connection by wifi

2014-02-07 Thread Dieter Wirz
On Fri, Feb 7, 2014 at 4:47 PM,  stefanbrunner...@googlemail.com wrote:
 Hello there,

 I connected my BBB to my wifi with an edimax wireless adapter. This works
 fine so far, i even got a connection to the internet.

 my problem is, I have only access to the BBB by the usb cable. I want so
 connect by SSH with the Wifi network.

 I guess there's probably a problem with the non static ip adress of my
 router because DHCP is activated.

Have a look at the manual of your router. All routers I know allow to
provide fixed IP's.



 Now I want to connect with Putty to the BBB without an cable connection.

 How do i get the Ip adress of the BBB? Is this even possible as i try to do?

 maybe this is helpfull
 wlan0 Link encap:Ethernet  HWaddr 80:1F:02:D7:B4:4F
   inet addr:192.168.2.101  Bcast:192.168.2.255  Mask:255.255.255.0
Did you try to ssh (with putty) 192.168.2.101?

If you don't have any clue what's the IP of your BBB, have a look at
nmap. IRRC there is a windows version available...

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Using CGI for system configuration

2014-01-14 Thread Dieter Wirz
On Mon, Jan 13, 2014 at 1:03 PM, Denizhan Yerel denizhanye...@gmail.com wrote:
 I'm planning to use BBB as a motion controller. There are some parameters
 which have to be changed by the user in runtime and no need to create a
 fancy frontend so I want to a simple webpage which can be even accessible
 with smartphone. I got some ideas but I wanted to get another ideas.

 For changing variables:
 -My opinion writing a C++ code is enough for this task as it works with CGI.
 (I thought C++ for the reason there will be no overhead of interpreter.)
 -My motion control algorithm works as a service which written in C++.
 -A frontend c++ binary works with CGI changes some configuration file and
 restarts service(s).

Hi!
I did similar things with php and C binaries. (call the C binaries from php)
I can start stop experiments, configure experiments, create plots
(with ImageMagick or with libpng, the latter is much faster...),
download measurement files, shutdown, change IP, etc... In other
words, you can do almost everything with your web-interface.
The main problem are the user rights, they have to be carefully
set In my case, the measurement file is created by a cronjob, but
the Webserver must be able to manipulate it.

I agree, CGI might be the better way to go. I even thought of making
at some point a CGI rewrite.

Dieter

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Code protect

2014-01-07 Thread Dieter Wirz
Have a look at this:
http://gpl-violations.org/

On Tue, Jan 7, 2014 at 7:58 AM,  sdeco...@gmail.com wrote:
 Hi,
 Is it possible to protect the code against copy for an industrial
 application ?

 Thanks you

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Mystery: Beaglebone Black doesn't respond ping or ssh regularly

2014-01-06 Thread Dieter Wirz
On Mon, Jan 6, 2014 at 5:51 PM, JJ jareli.1234...@gmail.com wrote:


 maanantai, 6. tammikuuta 2014 14.19.59 UTC+2 Dieter Wirz kirjoitti:

 Did you test, if your BBB is still connected to the www while he is
 not accessible? eg with a cronjob, something like:
 * * * * * ping -c 1 google.com  /some_path_to/ping.log


 Works fine with 1 minute interval, no errors.
 The ping crontab works as the dynamic dns updater, since I am able to ping
 and ssh my BBB after the crontab excecution. With 1 minute interval, there
 are no connection problems at all.

 This ping crontab may be a temporary solution to the problem, but something
 is wrong blatantly.
 Here's a summary: if BBB has been connected to somewhere just a moment ago,
 I can connect to it. But when BBB's internet connection has been idle for a
 few minutes, it won't respond my requests until next dns/ping crontab
 execution.

Weird

..ooOO IIRC Arch and Debian have conman as default network connection
manager.  But in a setup you have IMHO conman is *not* the ultimate
solution (conman may be great for laptops, etc). Did you have a look
at conman's log files? They tend to be *not* in /var/log depending on
your system.

I would try the following:
- Inactivate / Uninstall conman
- edit /etc/network/interfaces
- start the connections with ifup eth0

HTH
Dieter

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Re: Extracting eMMC contents using FAT formatted card

2014-01-06 Thread Dieter Wirz
Did you try something like:
git clone git://github.com/jadonk/buildroot
in your terminal

On Mon, Jan 6, 2014 at 8:02 PM,  jim.langs...@gmail.com wrote:
 Hello,

 I realize that this is an old thread, but was hoping that one of y'all might
 see this and shed some light on what I'm doing wrong...

 I pulled the buildroot project from
 https://github.com/jadonk/buildroot/releases/tag/save-emmc-0.0.1; since
 it's exactly what I need (an initramfs with working support for the SD card;
 I can't get MMC/SD to work with the mainline kernel and Buildroot 2013.11).

 Problem is, when I follow the build instructions, it goes off to do a GIT
 clone on from GitHub of tag ddd36e546e53d3c493075bbebd6188ee843208f9 to
 get Linux kernel patches.  It appears to contact the GIT server, processes
 some 697MB with of data, builds a tarball on the remote end, and then
 downloads a linux-ddd36e546e53d3c493075bbebd6188ee843208f9.tar.gz tarball
 file with 20 bytes in it.

 At this point, the Buildroot compile dies, since the tarball is
 truncated/corrupted/something.

 I'm not very well versed in GIT internals; can anyone shed some light on
 what might be wrong so I can get this compiled?  I will happily provide any
 logs or other information, but am too new at using GIT to know what to post
 up.

 Thanks,
 Jim



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] C Code - File transfer from BB-XM to PC via Serial

2013-12-10 Thread Dieter Wirz
Frank is perfectly right. If u _need_ ZMODEM.
But ZMODEM is only supported in modern Systems for backwards compatibility.
If your serial connection to BB-XM is USB on Win 7/8 host then much more
reliable options are available.
Maybe you tell us a bit more about your setup and what you call serial.

If your connection is RS232 or similar, then ZMODEM is still a good option.

On Tue, Dec 10, 2013 at 6:30 PM, Frank Hunleth
fhunl...@troodon-software.com wrote:
 On Tue, Dec 10, 2013 at 10:45 AM, Pietro Luigi Carotenuto
 pietroluigi1...@libero.it wrote:
 Ok, but how to know if BeagleBoard can send/receive a file from my PC?

 Maybe I'm not understanding your question, but the lrz/lsz utilities
 run on Linux so they'll run on the BeagleBoard once you've installed
 them. They send or receive over stdout and stdin. On the PC side, you
 either run lrz/lsz, or if you're running Windows, your terminal
 program probably supports ZMODEM.

 Which are the ways to do it?
 I'm using the serial as stdout.
 And then, which is the C code to do that?

 I've never tried to integrate ZMODEM code directly into a program of
 mine. It seems easier to have your program start up lrz or lsz when
 they're needed.

 Frank

 Thank you, really

 Il giorno martedì 10 dicembre 2013 16:29:32 UTC+1, Frank Hunleth ha scritto:

 On Tue, Dec 10, 2013 at 10:18 AM, Pietro Luigi Carotenuto
 pietrol...@libero.it wrote:
  Hi,
 
  I need to transfer files from BB to my host PC via serial.
 
  I know that usually zmodem is used, but
 
  1) how to know if zmodem is installed?

 Take a look at the lrzsz package. I've seen the command line utilities
 installed as lrz and lsz or just as rz and sz depending on the
 Linux distro.

 
  2) Which is the C code in order to execute the file transfer process?
 
  Thank you in advance,
  Pietro
 
  --
  For more options, visit http://beagleboard.org/discuss
  ---
  You received this message because you are subscribed to the Google
  Groups
  BeagleBoard group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to beagleboard...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups 
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] How to run 2 sripts at the same time?

2013-11-25 Thread Dieter Wirz
Take time.time modulo 1 and not sleep.time, and paste it into one program
eg:
 LED off if time.time()%1  .5 else  LED on



On Mon, Nov 25, 2013 at 7:53 PM,  bram.seys...@gmail.com wrote:
 Goodevening,

 Does anybody have an idea how to run these 2 scripts at the same time?

 What would be the best way to?

 I have tried to activate the 2 scripts with a bashscript, but this gave some
 weird results.

 The goal is that the BBB completes the grafcet and has a blinking green LED
 to show it's running.

 I know I could just paste running_green under grafcet, but then the timing
 of the blinking would not be correct.

 Here are the 2 python scripts:
 Grafcet.py

 #!/usr/bin/python

 import Adafruit_BBIO.GPIO as GPIO
 import time

 GPIO.setup(P8_12, GPIO.OUT)
 GPIO.setup(P8_14, GPIO.OUT)
 GPIO.setup(P8_16, GPIO.OUT)
 GPIO.setup(P8_18, GPIO.OUT)
 GPIO.setup(P8_11, GPIO.IN)
 GPIO.setup(P8_13, GPIO.IN)
 GPIO.setup(P8_15, GPIO.IN)
 GPIO.setup(P8_17, GPIO.IN)
 GPIO.setup(P8_19, GPIO.IN)

 X = 0

 while True:
 # stap 1
   if GPIO.input(P8_11) and X == 0:
 GPIO.output(P8_12, GPIO.HIGH)
 X +=  1
 printStep 1: Boiling ingredients
 # stap 2
 elif GPIO.input(P8_13) and X == 1:
 GPIO.output(P8_14, GPIO.HIGH)
 GPIO.output(P8_12, GPIO.LOW)
 X += 1
 printStep 2: Add yeast and sugar
 elif GPIO.input(P8_15) and X == 2:
 GPIO.output(P8_16, GPIO.HIGH)
 GPIO.output(P8_14, GPIO.LOW)
 X += 1
 printStep 3: fermenting for 6 weeks
 # stap 4
 elif GPIO.input(P8_17) and X == 3:
 GPIO.output(P8_16, GPIO.LOW)
 X = 0
 printEnd of cycle, beer is ready
 # noodstop NC
 elif GPIO.input(P8_19) == False:
 X = 5
 printEmergency button has been activated!
 time.sleep(.1)

 running_green.py

 #!/usr/bin/python

 import Adafruit_BBIO.GPIO as GPIO
 import time

 GPIO.setup(P8_18, GPIO.OUT)

 while True:
 time.sleep(.5)
 GPIO.output(P8_18, GPIO.HIGH)
 time.sleep(.5)
 GPIO.output(P8_18, GPIO.LOW)

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Re: Is it possible to run BBB off cheap rechargeable batteries?

2013-11-13 Thread Dieter Wirz
Hi Rowland
Up to now you did not tell us that you use 9V for motors that consume
maybe much more power than a BBB. If you Project is a little Segway or
robot car where it is okay when the battery is down after 20 Minutes
or so, then go ahead with the 7805. You can solder this together even
without PCB.
And, because it's a students project it's maybe safer not to use
lipo's. they tend to explode if not charged correctly:-(

Dieter


On Wed, Nov 13, 2013 at 4:03 PM,  rowland.oflahe...@gmail.com wrote:
 I agreed there are better solutions available and that is really what I am
 asking... what are those better solutions? For what I am looking to do is
 having everything needed to run the BBB off battery for as cheap as
 possible. We are designing a hardware setup for students to use and they
 have to be able to buy all the components for as cheap as possible. The
 problem with Lipo (from what I have seen) is that the chargers are the
 expensive part.

 Here is where I am at right now. Need at least 9V for running motors as well
 as the BBB.
 3-cell Lipo = $9 from HobbyKing
 Lipo charger = $12 from HobbyKing
 Lipo charger power supply = $8 from Amazon
 Voltage Reg, diode, caps, wires etc. = $3 from DigitKey

 This might be the best solution. But my thought was students might already
 have AA battery chargers at home.

 Thoughts?

 Also, can you point me to a better circuit design that doesn't use the 7805?

 -Rowland


 On Monday, November 11, 2013 4:22:39 PM UTC-5, Dieter Wirz wrote:

 Ron is perfectly right!
 And where do you get cheap rechargeable batteries?
 LIPO prices are going down
 alcaline prices are going up

 Do you really want to invest time and money in last millennium
 alcaline technology?

 7805? If you connect 9v to an 7805 about 40% of the power is converted
 to heat. There are much better solutions available.

 BTW @Ron: What buck/boost regulators are you using. Maybe you can
 provide some hints to the community... I have the ADP sitting on
 my Desktop, but I did not find the time to solder something
 together.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Re: Is it possible to run BBB off cheap rechargeable batteries?

2013-11-11 Thread Dieter Wirz
Ron is perfectly right!
And where do you get cheap rechargeable batteries?
LIPO prices are going down
alcaline prices are going up

Do you really want to invest time and money in last millennium
alcaline technology?

7805? If you connect 9v to an 7805 about 40% of the power is converted
to heat. There are much better solutions available.

BTW @Ron: What buck/boost regulators are you using. Maybe you can
provide some hints to the community... I have the ADP sitting on
my Desktop, but I did not find the time to solder something
together.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Raspbian is to Debian as Angstrom is to ????

2013-11-08 Thread Dieter Wirz
On Fri, Nov 8, 2013 at 5:55 AM, Jeffrey Goldberg jeff...@goldmark.org wrote:
 I'm an old Unix/Linux guy who has been away from modern Linux distros for a
 while. And I've simply found myself absolutely bewildered after ssh'ing into
 my BBB.

 I simply need a pointer to where I can find information about command line
 system admin for this sort of Linux distribution. As an analogy, I found
 that for my Raspberry Pi running Raspbian, I could read about Debian admin
 and package management. What should I be looking toward to understand
 Angstrom (command-line) system administration.

 A specific question is where can I find more about systemctl? As an example,
 I would like to know how sshd is started on my BBB (It runs just fine). But
 I can't find an sshd.service file as the man pages would lead me to believe
 exists. Nor do I find a traditional init.d file. (It was
 /etc/init.d/README that told me to learn about systemctl.) And I even
 desperately looked under xinitd.d.

 I feel like there must be some trove of documentation that I'm failing to
 find. I have looked before posting here.
Maybe this is what you are looking for:
http://www.freedesktop.org/wiki/Software/systemd/
And there you find a link to this:
http://0pointer.de/blog/projects/systemd-for-admins-3.html

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Using BB to measure power

2013-10-31 Thread Dieter Wirz
Really ouch. I you do it like this and connect your BB(B) to the lan,
then all computers in your school are under tension (Brrr)!
Therefore: NEVER USE A VOLTAGE DIVIDER WITH NET CURRENT, unless you
really now what you do!
You need to have a galvanic separation like a transformer or a diode.

Have a look at this:
http://www.instructables.com/id/Real-time-Web-Based-Household-Power-Usage-Monitor/?ALLSTEPS



On Wed, Oct 30, 2013 at 10:31 PM, Przemek Klosowski
przemek.klosow...@gmail.com wrote:
 Ouch, and another ouch since you seem to live in a 220VAC country. You can't
 just connect 220V to a voltage regulator---it has maximum allowed input
 voltage around 35V---you'd exceed that by a factor of almost 10.

 You probably should either do some reading about line voltage electronics
 and 220V power supplies (hint---what you propose could work if you used a
 transformer to get 220V down to 12V or so).

 My suggestion to you would be to consider a low-cost commercial power meter
 like Kill-A-Watt ($20 or so) then point a BBB with a webcam at its display,
 and do
 a little image processing to read out the power. People also cracked them
 open and interfaced directly to their internal circuitry.


 On Wed, Oct 30, 2013 at 2:57 PM, jredr...@gmail.com wrote:

 I'd like to use my BeagleBone Black to build a small power efficiency
 station for my school. For that I plan to measure power consumption using a
 current transformer and a voltage transformer, feed the data into a small 
 fast database and show it through a web interface to the school staff.
 I see that 50 Hz are not a problem for BB ADCs, but I'm not sure at all
 using them is a good idea.
 Intially I planned to use the same voltage I must measure to power the BB.
 I'm starting from a circuit like the attached one (replacing the UA78M33 by
 a UA7805CKCT which provides up to 1.5 A output)

 Changing the R1/R2 divisor I can make the 220V signal lower , but I'd
 always get a signal with a negative side (-0.9V - +0.9V) in the best case.
 Same for the current transformer, after applying its output to a 100 ohms
 resistor. So, first, is it an awful idea to use BB for this purpose? If not,
 how can I avoid the negative part of the signal before feeding the BB ADCs?

 Thanks in advance

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] H264 Encoding in BB-xM...

2013-10-28 Thread Dieter Wirz
For some legal reasons, don't ask me why exactly, ffmpeg cannot be
legally distributed as an executable with H264 support. Therefore u
have to compile it yourself, all components you need are legally
available.
See eg here: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

I did this several times on desktop computers, no problem. But I never
cross compiled it or asked a Beagle to compile it.

good luck!
Dieter


On Mon, Oct 28, 2013 at 4:45 PM,  ozkann...@gmail.com wrote:
 Hi,

 I am currently using Ubuntu 12.10, Kernel 3.7.10-x13 where gst-dsp is
 enabled. I'm tasked to encode the video camera output (UYVY) to H264 in
 BB-xM. I see that there is no related dll64P (h264venc_sn.dll64P) available
 in /lib/dsp. Also, no H264 encoding supported in ffmpeg or avconv (ffmpeg
 -codecs | grep H.264).

 So, how can I proceed in this circumstances? I'm looking forward to some
 guidance. Thanks in advance.

 Regards,
 Ozkan.


 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Crontab entries don't work

2013-10-22 Thread Dieter Wirz
See below

On Tue, Oct 22, 2013 at 1:17 PM,  tige...@gmail.com wrote:
 Hello everyone,
 I need to have a python script running every minute to send a heartbeat
 broadcast.
 I have developed this sript and it works just fine when I start it from the
 shell.
 Next step was to actually add it to the cron list.
 So I have been looking on the net and I saw that should be possible by using
 crontab -e.
 So that's what I've done, resulting in the following :

 30 * * * */usr/bin/ntpdate-sync silent
 1 * * * *python /home/root/keep_alive.py cronjob.log
It is always a good idea to add an absolute path, and if u consider
Jay's tips, the correct for every minute is:
* * * * *  /pathtopython/python /home/root/keep_alive.py 
/home/root/cronjob.log
or if keep_alive.py is an executable simply
* * * * * cd /home/root/; keep_alive.py  cronjob.log
or 
 at some point I even added :
 SHELL=/bin/sh
Why not SHELL=/bin/bash
 and also :

 @reboot python /home/root/keep_alive.py  cronjob.log
try
@reboot /home/root/keep_alive.py   /home/root/cronjob.log

 and because I saw it on the net as well I even tried specifying the user :

 @reboot root /home/root/keep_alive.py  cronjob.log
@reboot root /home/root/keep_alive.py  /home/root/cronjob.log
is the correct entry in /etc/crontab (and not the users crontab)



HTH

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] mount: unknown filesystem type 'iso9660'

2013-10-21 Thread Dieter Wirz
reformat your pendrive with FAT or ext2

On Sun, Oct 20, 2013 at 4:46 PM, Orest Lenczyk pia...@gmail.com wrote:
 sorry if there was such a problem, could you guys help me with this? i am
 unable to mount flash drive

 beaglebone:~# mount /dev/sda pendrive
 mount: unknown filesystem type 'iso9660'

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] How to start X11 / gnome?

2013-10-21 Thread Dieter Wirz
startx

On Sun, Oct 20, 2013 at 12:34 AM, sarkar sarveshkarkha...@gmail.com wrote:

 A Linux newbie here.

 My BBB does not log into X11. Instead, it logs into terminal.
 So I logged in as root and gave command 'systemctl start gdm'. However I'm
 getting message as no such file found.

 Please help me to solve the issue!

 P.S. I have updated the latest Angstrom image.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] mount: unknown filesystem type 'iso9660'

2013-10-21 Thread Dieter Wirz
Sorry, I did not read your 1st post thoroughly.
Usually, if u buy a thumbdrive and connect it to a Linux box it is
recognized as /dev/sdX, in your case /dev/sda
But, the partition, you want to mount is the first partition and not
the whole drive...  Therefore
mount /dev/sda1 pendrive
(note the 1) might do the trick

Fore more information about this ask google for
parted mkfs fdisk always combined with linux
HTH


On Mon, Oct 21, 2013 at 10:02 PM, Orest Lenczyk pia...@gmail.com wrote:
 thanks for answers. i think reason was that i used pendrive earlier as live
 cd with some linux distribution. but after that i reformatted it from fat to
 ext3 - and still has same error. is there anything else i could do (beside
 format to fat or ext2) to make angstrom see flash drive like flash drive not
 cd?

 W dniu poniedziałek, 21 października 2013 11:46:21 UTC+2 użytkownik David
 Goodenough napisał:

 On Sunday 20 Oct 2013, Orest Lenczyk wrote:
  sorry if there was such a problem, could you guys help me with this? i
  am
  unable to mount flash drive
 
  beaglebone:~# mount /dev/sda pendrive
  mount: unknown filesystem type 'iso9660'
 You will probably find that the kernel you are using was build without CD
 support and so no iso9660 support.  You will need to rebuild your kernel
 with
 the relevant config item selected.

 David

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-03 Thread Dieter Wirz
On Thu, Oct 3, 2013 at 9:56 PM,  ignacio.mata...@gmail.com wrote:

 the issue is that i can not find gettimeofday.c in ubuntu. I only find
You have to save the code I provided as gettimeofday.c.

However, I do not see what this has to do with BB(B). Do you want to
crosscompile with eclipse, or what are you intending to do???

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-02 Thread Dieter Wirz
On Tue, Oct 1, 2013 at 11:14 PM,  ignacio.mata...@gmail.com wrote:
 hi, Sorry for disturbing you. How can I compile  gcc -Wall
 gettimeofday.c -o gettimeofday  in eclipse under ubuntu?
I don't know Eclipse too much, I compile such programs in terminal:
Open Terminal
cd to the folder where gettimeofday.c is
type in:
gcc -Wall gettimeofday.c -o gettimeofday
run the Porgram with
./gettimeofday

 I got some errors:
 Field tv_sec could not be resolved
 Field tv_usec could not be resolved

Maybe you have to tell Eclipse:
- it is C (not C++)
- from where to include sys/time.h

HTH

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.