Re: [beagleboard] Re: Static IP on eth0

2016-09-11 Thread Paul Wolfson
Use connman
http://derekmolloy.ie/set-ip-address-to-be-static-on-the-beaglebone-black/

Hi Eric,
> I followed your comment exactly and update /etc/network/interfaces file:
> ===
> # The primary network interface
> auto eth0
> iface eht0 inet static
> address 192.168.1.26
> netmask 255.255.255.0
> gateway 192.168.1.1
> #iface eth0 inet dhcp
> # Example to keep MAC address between reboots
> #hwaddress ether DE:AD:BE:EF:CA:FE
> ==
> Then I "/etc/init.d/networking restart" or "reboot", but my eth0's ip
> address is still got from dhcp, e.g. 192.168.1.112.
> Can you give more hint?
> Thanks.
>
> Jeffrey Ke
>
>

-- 
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/CAKCWynZ9%3D%3DBcxUvgF_ZiwukVt0bOAc90WHbuXY5DBh%2ByVs4U3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Simultaneous Windows/Linux access to eMMC partition

2016-05-20 Thread Paul Wolfson
If you aren't used to working with SMB/CIFS network shares make sure you
understand that you have separate Samba Users and Unix Users which need to
be synchronized as William is doing here:

$ sudo smbpasswd -a william

I'd also add that starting with *a clean smb.conf file* will make things
easier.  You have to get the user and group mappings correct between the
two operating systems.

Don't forget to RTFM at http://www.samba.org, there are many helpful
examples if you get stuck.  Also, there is a (flawed) very useful admin
tool Webmin, which is a GUI for a Samba Windows File Server documented at
http://doxfer.webmin.com/Webmin/Samba_Windows_File_Sharing.

I have found NFS mounts easier to work with and more stable,
https://technet.microsoft.com/en-us/library/cc754350(v=ws.11).aspx.

If this is new to you, it is *much* easier to figure out between a Windows
host and a Linux VM hosted on your PC, first.

-------
Paul Wolfson


On Fri, May 20, 2016 at 3:25 PM, William Hermans  wrote:

> I've found Samba to be the best way:
>
> $ sudo apt-get install cifs-utils samba
> $ sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
>
> $ sudo nano /etc/samba/smb.conf
> add:
>   [beagleshare]
>comment = beaglebone support share
>path = /home/william/
>writeable = yes
>valid users = william
>guest ok = no
>security = user
>
> $ sudo smbpasswd -a william
> $ sudo /etc/init.d/samba restart
> $ sudo nano /etc/hosts.allow
> add:
>   ALL: LOCAL
>
> Windows PC:
> Click start
> Right click MyComputer, or ThisPC
> Select Map Network Drive
> In the folder field put in the share name. In my case:
> \\192.168.254.XXX\beagleshare
> Check the Checkbox for "Connect using different credentials"
> Click Finish.
> User name, and password will be username and password you entered for
> smbpasswd.
>
> On Fri, May 20, 2016 at 11:10 AM, Robert Nelson 
> wrote:
>
>>
>> On May 20, 2016 1:05 PM,  wrote:
>> >
>> > Hello all,
>> >
>> > I'm not sure if what I'm trying to do is even possible, but thought I'd
>> ask on here to see if anyone has any more knowledge about how to try this.
>> >
>> > I'd like to use the USB Micro port on the BBB as a mass storage drive
>> with files created by the BBB accessible by Windows.
>> >
>> > If I create a file in Linux and move it to the partition before Windows
>> is connected, it's great provided the partition is unmounted before Windows
>> is connected.
>> >
>> > I can create and modify files without problems, PROVIDED that the
>> partition is not also mounted under Linux. When the partition is mounted
>> simultaneously in Linux and Windows all bets are off. I can create files in
>> Windows and view them in Linux, but I can't create files in Linux and view
>> them in Windows. Modifying files in Windows does not work, and all changes
>> are lost.
>> >
>> > Is it possible to set this up for simultaneous access. The idea being
>> that I can plug my BBB in to Windows and transfer a file from the BBB to
>> Windows. At some point while the BBB is connected to Windows, a new file
>> may be created by the BBB, and I would want to be able to transfer that
>> file as well within Windows.
>> >
>> > I'm running a BBB with Debian Wheezy 7.8, kernel 3.8.13-bone70.
>>
>> Sure..
>>
>> Use NFS/samba or anything that allows multiple user access..  setup the
>> emmc, mount emmc has both a network drive on BBB and windows pc..
>>
>> Regards,
>>
>> --
>> 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/CAOCHtYiBrOanPu1N%2BBpcP1uV2O8hQiLH-v8nL%2B5q1Pyojk7wBA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/beagleboard/CAOCHtYiBrOanPu1N%2BBpcP1uV2O8hQiLH-v8nL%2B5q1Pyojk7wBA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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.
&

Re: [beagleboard] What? Linux development on windows... and arm support

2016-04-24 Thread Paul Wolfson
We're singing from the same hymn sheet, J Dog.  For all the passion, blood
sweat and tears expended on the BeagleBone, it's not a production system.
I'm looking forward to Windows 10.3.2.2's release.  In the interim, I'm
content with a Powershell alias ssh = putty.exe.

-- 
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/CAKCWyna%2Botadv9h%3DY-i4jd%2BKJ%2BC5iBp7h%3DxOfDY9PXM1umtugQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] What? Linux development on windows... and arm support

2016-04-24 Thread Paul Wolfson
Hi J dog:

Would you be kind enough to post a reference to this capability?  I have
the early preview tools for Windows 10 IoT, bash on NT, and the Android and
Windows phone SDKs.  What I have is quite rough at this point, so I am
surprised that a June or July 2016 release date is possible.

Thanks,
Paul

-
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Sun, Apr 24, 2016 at 3:12 AM, J dog  wrote:

>Interesting report i read:At its last event, Microsoft unveiled
> the Anniversary Update for Windows 10, presumably its public name for
> Redstone (Phase One?). The update, likely to land in June or July 2016, is
> replete with a suite of stylus-optimized apps and tools in Windows Ink,
> Android notifications and a full-on Linux development environment built
> right into the OS and extended support for ARM processors.
>
> --
> 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/c20084e7-6c8f-4f37-a5f9-60e2cc7b9be8%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/c20084e7-6c8f-4f37-a5f9-60e2cc7b9be8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAKCWynangQdH-fzVsMAyLaanKH_x%3DrcoXwB2Di3xdDCfY79Xzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Beaglebone and Chromebook connection

2016-04-17 Thread Paul Wolfson
The trick is creating a network route to the USB gadget.  If you are
familiar with a unix style command line, the tools are there to mount the
192.168.7.x network in the Chrome OS terminal.  I am travelling and don't
have access to my BBB, but I'll try later when I have physical access,
rather than over a VPN.  Chrome OS should automatically mount the USB
device (BBB) as a network device, just as it would a USB-LAN adapter or
USB-wireless device.  Chrome OS has to see a dhcp server on the 192.168.7.x
network of the connection will fail unless you explicitly mount the BBB on
a static Chrome OS address.  At that point, you might as well just use the
built in BBB ethernet adapter.

You will have exactly the same problem in Windows 7, 8.1 and 10; there has
to be a route to the 192.168.7.x subnet.  Either you need a router on that
subnet or you need to specify a route explicitly.

Kind regards,
Paul

-
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Sat, Apr 16, 2016 at 10:38 PM,  wrote:

> I can confirm that when I connect the beaglebone to the chromebook and
> power up the chromebook, the network never comes up, but if I get an update
> on the chromebook and can 'soft' reboot it without shutting down the
> beaglebone, when the chromebook comes back up, the network is up. If there
> was a way I could reboot the chromebook once the beaglebone booted up, that
> would fix my problem, but from what I can see, there is no way to do a
> reboot of a chromebook, except for when you get a system update.
>
>
> On Friday, 1 April 2016 11:47:48 UTC+11, christi...@gmail.com wrote:
>>
>> Hi all,
>> I'm trying to connect a Beaglebone to a Chromebook without any luck. The
>> network connection doesn't seem to get established.
>> Only time it worked was when I had to reboot the Chromebook after I
>> received an OS update. Once I logged in, the network was up. I didn't
>> manage to get the connection up again after that once time.
>>
>> Thanks for your help.
>> Christian
>>
> --
> 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/9e72fcb6-e05c-4eb0-86df-85e19ad2e006%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/9e72fcb6-e05c-4eb0-86df-85e19ad2e006%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAKCWynbs5sL2OO4idckKyJA%2BQ72yCnYqNDt%2B-KHwaR%2BW2zqyTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: How to write a data file to Beaglebone from Python

2016-04-14 Thread Paul Wolfson
modeString = "w"
fileNameString = "out.txt"
f = open(fileNameString, modeString)
f.write("This is a test for text output.")
f.close()


On Thu, Apr 14, 2016 at 4:06 PM, Melk933  wrote:

> The Python on my machine throws up an error.
> $ python testopen.py
> Traceback (most recent call last):
> File "testopen.py", line 1, in  f= open("T3.txt", w)
> NameError: name 'w' is not defined
>
>
> On Wednesday, April 13, 2016 at 8:34:57 AM UTC-7, mickeyf wrote:
>>
>> I'm not a Python developer either, 'though I know it is very popular of
>> late. Does it say something about Python itself that it did not throw up a
>> big error in your face when the quotes were omitted? Or is the problem
>> elsewhere?
>>
>> On Wednesday, April 6, 2016 at 11:24:18 AM UTC-7, John Baker wrote:
>>>
>>> Gosh, how did I miss that, that the mode is a string. Well it had to be
>>> something simple like that. Quoting the w and r fixed the problem. Very
>>> embarrassing.
>>> :-[
>>> Thanks,
>>> John
>>>
>>>
>>>

-- 
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] Ada on the BeagleBone Black

2016-04-06 Thread Paul Wolfson
Brent:

It is a rare treat to see well documented code, which includes explicit
handling of (MKS) units.  Your Ada raises the bar for anyone designing
maintainable code for the BBB.  It, at the very least, serves as
pseudo-code for anyone programming in any language.

Ada and Jovial before it leaves a bad taste in my mouth from years back.  I
recall spending more time patching compilers than getting assigned tasks
done.

Keep up the good work!

Paul

-

On Tue, Apr 5, 2016 at 2:03 PM,  wrote:

> I have been doing some Ada programming on the BeagleBone Black using gnat
> and gnat-gps from the Debian repository.  One of the things that I've been
> doing is developing a library of routines to access various bits of the
> board's I/O.  The source is available at
> https://github.com/BrentSeidel/BBS-BBB-Ada.git and currently covers the
> LEDs, GPIO, I2C, PWM, and Analog Inputs.  I don't claim that this is
> anywhere near production ready, but it might provide some useful examples
> or information, even if you're not using Ada.
>
> Comments, questions, suggestions are welcome.
>
> Brent
>
> --
> 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 write a data file to Beaglebone from Python

2016-04-05 Thread Paul Wolfson
python
>>> import os
>>> os.getcwd()
'home/pwolfson'
>>>


-----
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Tue, Apr 5, 2016 at 6:13 PM, William Hermans  wrote:

> *That's what I figured William. As far as I can tell, I am doing the open
>> and write and read like I have with C and as described in
>> https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files
>> <https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files>.
>> However, I am not getting any error message when I do the open for writing
>> and do the write, just that the file is not getting created and written. It
>> should be so straightforward but it's not working.*
>>
>
> Does this file already exist ? You should check the documentation for the
> file write() method and see what all is required for the method to work
> correctly. Also, as I said I'm no python developer, but the code shown
> there is really bad form. There is no error checking on the file object
> when attempting the open() call. In C this would be done by checking the
> value of f, but I'm not even sure this is possible in python.
>
> So I'd attempt to help you trouble shoot this by writing code myself,
> here, and testing. But I'm very "allergic" to python. Or more correctly,
> I'm getting old, and set in my ways, and python just is not in my future
> plans. *ever* . . .
>
> On Tue, Apr 5, 2016 at 3:05 PM, John Baker 
> wrote:
>
>> That's what I figured William. As far as I can tell, I am doing the open
>> and write and read like I have with C and as described in
>> https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files.
>> However, I am not getting any error message when I do the open for writing
>> and do the write, just that the file is not getting created and written. It
>> should be so straightforward but it's not working.
>> John
>>
>> On Tuesday, April 5, 2016 at 2:57:02 PM UTC-7, William Hermans wrote:
>>>
>>> I'm not a python developer, but actually have done this many times in C.
>>> So I can tell you this with certainty. This is done no different than it is
>>> done on any Linux system.
>>>
>>> The point here is that you should go out and find any good python
>>> tutorial, that covers writing to a file, and follow it.
>>>
>>> On Tue, Apr 5, 2016 at 1:43 PM, John Baker 
>>> wrote:
>>>
>>>> I want to store a little data on the eMMC from my Python code. My
>>>> program is not getting errors when I try to write a very short data file
>>>> but it doesn't actually seem to write it as I cannot read it back. I am
>>>> using
>>>> f = open('MyFile.txt', w)
>>>>
>>>> or
>>>> f = open('/home/debian/Desktop/MyFile.txt', w)
>>>>
>>>> or
>>>> f = open('MyFile.txt', r)
>>>>
>>>> or
>>>> f = open('/home/debian/Desktop/MyFile.txt', r)
>>>>
>>>> to open the file and am not getting any errors but Python is not
>>>> finding the file and I cannot find the file with a  search from WinSCP.
>>>>
>>>> So how to create a data file and where does it go?
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> --
>>>> 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 

Re: [beagleboard] Re: Beaglebone and Chromebook connection

2016-04-04 Thread Paul Wolfson
>
> Just out of curiosity, which OS image are you using for your Beaglebone?


​It was in the screenshot.​

​  Machinekit Debian Image 2016-03-13
Linux beaglebone 3.8.13-xenomai-r17​

-
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Mon, Apr 4, 2016 at 7:20 AM,  wrote:

> Hi Paul,
> Thanks for posting this info.
> There might be an issue with my Chromebook then because they network
> doesn't seem to come up. Just out of curiosity, which OS image are you
> using for your Beaglebone?
> Also yesterday after I finished running apt-get upgrade, all of the sudden
> they USB network started working. Of course after I rebooted the Beaglebone
> never came back up again.
> When I get more time, I will play with different Linux images on the
> Beaglebone see if that changes anything.
> Cheers
> Christian
>
>
> On Monday, 4 April 2016 11:57:25 UTC+10, Paul Wolfson wrote:
>>
>> Hi Christian,
>>
>> Out of curiosity I just tried connecting my Samsung Chromebook to my
>> beaglebone using a standard USB cable and it worked fine.  Note below that
>> the Chromebook is getting a DHCP address 192.168.7.1 from the beaglebone,
>> but otherwise it's okay.
>>
>> If you continue to have trouble you can open the Chromebook terminal and
>> type help_advanced.  That will give you access to the Chrome dev shell
>> where you have access to route and dmesg to help in debugging, which will
>> show that there is a route created between 192.168.1.x and 192.168.7.x.
>>
>> crosh> route
>> /0 default via 192.168.1.1 dev mlan0  metric 1
>> /1 192.168.1.0/24 dev mlan0  proto kernel  scope link  src 192.168.1.151
>> /2 192.168.7.0/30 dev eth0  proto kernel  scope link  src 192.168.7.1
>>
>>
>>
>> ​
>>
>> -
>> Paul Wolfson
>> -
>>
>>
>> On Sat, Apr 2, 2016 at 1:41 AM,  wrote:
>>
>>> Hi Wally,
>>> Thanks for your reply.
>>> I'm using the latest Debian image from the downloads sections. Also I
>>> ran apt-get dist-upgrade to make sure it had the latest version of all the
>>> packages.
>>> I need to investigate the 'USB gadget interface'. All I know is that
>>> from the linux side, it seems to be up and running with IP address
>>> 192.168.7.2. From the Chromebook side the interface doesn't seem to come
>>> up. If I manually assign the ip address to 192.168.7.1, I still can't ping
>>> each other.
>>> I imagine that when you say 'wired' connection you mean using a regular
>>> ethernet cable rather than USB. Ethernet works just fine, but it kindof
>>> makes it clunkier than having a Chromebook ->USB->Beaglebone.
>>> Thanks
>>> Christian
>>>
>>> On Saturday, 2 April 2016 03:05:25 UTC+11, Wally Bkg wrote:
>>>>
>>>> What Beaglebone image are you running?   I've found many of the recent
>>>> images have issues with getting the "USB gadget" Ethernet over USB to work
>>>> reliably.   Without the USB gadget interface the ssh deb...@192.168.7.2
>>>> will not work.  Can you try a wired Ethernet connection?  Then the ssh
>>>> login should work to the IP your router assigns to the Beaglebone.
>>>>
>>>> On Thursday, March 31, 2016 at 7:47:48 PM UTC-5, christi...@gmail.com
>>>> wrote:
>>>>>
>>>>> Hi all,
>>>>> I'm trying to connect a Beaglebone to a Chromebook without any luck.
>>>>> The network connection doesn't seem to get established.
>>>>> Only time it worked was when I had to reboot the Chromebook after I
>>>>> received an OS update. Once I logged in, the network was up. I didn't
>>>>> manage to get the connection up again after that once time.
>>>>>
>>>>> Thanks for your help.
>>>>&g

[beagleboard] Re: Control and monitor Beaglebone from azure

2016-04-04 Thread Paul Wolfson
Beaglebone and Azure are not a problem, Azure is a generic Microsoft 
branded cloud resource, which you can run locally.

For reference, I have a mixed stack of Linux and Windows servers running on 
a Microsoft Hyper-V Server stack.  Node.js and C#.net (mono) are common 
across all the platforms.  There is no charge for the basic hyper-V server, 
you just pay for the Microsoft licensed products you have running on it. 
 There is no limit to the Linux resources you have running.Unless you 
want Visual Studio supporting Windows 10 IoT  or SQL Server there is no 
compelling need for Microsoft anything.  Libvirt and KVM are a good 
substitute for Hyper-V.

Generic Hyper-V Server SKU: 
 10586.0.151029-1700.TH2_RELEASE_SERVERHYPERCORE_OEM_X64FRE_EN-US

I haven't found anything on Azure that I can't already do locally using a 
stack of Microsoft and Linux servers and desktops except for the big data 
analytics offerings.  If you need access to Microsoft products as a 
developer, you can subscribe to one of their MAPS programs.

On Sunday, April 3, 2016 at 5:55:05 PM UTC-4, Sean McMahon wrote:
>
> Hmm Not much response.
>
> I came across this : 
> https://www.microsoft.com/en-gb/server-cloud/internet-of-things/azure-iot-suite.aspx
>
> Anyone tried it out?
>
> On Monday, 28 March 2016 14:59:33 UTC+1, Sean McMahon wrote:
>>
>> Hi,
>>
>> I'm looking to talk to my beaglebone over an azure virtual machine, 
>> (external network).  
>>
>> Are there any good tutorials on how to control a beaglebone from the web.
>>
>> I've been searching the web for about three hours and haven't found 
>> anything suitable yet.
>>
>> Thanks,
>> Seán
>>
>

-- 
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] b.writeTextFile how to call from a web inteface

2016-03-27 Thread Paul Wolfson
That text you referred to in my signature is appropriate for circumstances
where [Attorney-Client] or [Attorney-Expert] privileged legal work product
is contained in the email.  It has no practical bearing on the code's open
source licensing model.  I should remember to delete the signature  but if
 I don't anyone with access to this Google Group is the intended
recipient.  Sorry for the confusion.

Paul Wolfson

-

On Sun, Mar 27, 2016 at 8:15 PM, William Hermans  wrote:

> *. . .*
>> *--**---*
>> *The contents of this email are confidential to the sender and the
>> ordinary user of the email address to which it was addressed, and may also
>> be privileged.  If you are not the addressee of the email, you may not
>> copy, forward, disclose or otherwise use it or any part of it in any form
>> whatsoever.  If you have received this email in error, please advise the
>> sender at  214-257-0984 <214-257-0984>.  Thank you.*
>> *--**---*
>>
>
> May be a bit nick picky, but the above statement bothers me because . . .
>
> a) this is a google group.
> b) the code above was written for a software "platform" that is open
> source, and very likely would have to also be made open source as well - By
> extension.
> c) The hardware discussed in this group is open source, as well as most of
> the software provided "out of the box".
>
> On Sun, Mar 27, 2016 at 1:25 PM, Paul Wolfson  wrote:
>
>> Your example was on my todo list, excuse the long post.  I found the
>> diagnostic logging helpful in understanding the npm upload package busboy,
>> but you can easily shorten it  Using "~/mytmp/" as my temporary directory
>> and tweaking the example at https://www.npmjs.com/package/busboy my
>> server.js file is:
>>
>> var http = require('http'),
>> path = require('path'),
>> os = require('os'),
>> fs = require('fs');
>> inspect = require('util').inspect;
>>
>> var Busboy = require('busboy');
>>
>> http.createServer(function(req, res) {
>>   if (req.method === 'POST') {
>> var busboy = new Busboy({ headers: req.headers });
>>
>> busboy.on('file', function(fieldname, file, filename, encoding,
>> mimetype) {
>>   console.log('File [' + fieldname + ']: filename: ' + filename + ',
>> encoding: ' + encoding + ', mimetype: ' + mimetype);
>>   // uncomment next line to use system temporary directory
>>   // var newPath = os.tmpDir();
>>   var newPath = __dirname + "/mytmp";
>>   var saveTo = path.join(newPath, path.basename(filename));
>>   file.pipe(fs.createWriteStream(saveTo))
>>   file.on('data', function(data) {
>> console.log('File [' + fieldname + '] got ' + data.length + '
>> bytes');
>>   });
>>   file.on('end', function() {
>> console.log('File [' + fieldname + '] Finished');
>>   });
>> });
>>
>> busboy.on('field', function(fieldname, val, fieldnameTruncated,
>> valTruncated, encoding, mimetype) {
>>   console.log('Field [' + fieldname + ']: value: ' + inspect(val));
>> });
>>
>> busboy.on('finish', function() {
>>   console.log('Done!');
>>   res.writeHead(303, { Connection: 'close', Location: '/' });
>>   res.end();
>> });
>>
>> return req.pipe(busboy);
>>
>>   } else if (req.method === 'GET') {
>>
>> res.writeHead(200, { Connection: 'close' });
>> res.end('\
>>\
>> \
>> \
>> \
>>   \
>> ');
>>   }
>> }).listen(8000, function() {
>>   console.log('Listening for requests');
>> });
>>
>> ---
>>
>> server.js generates a simple webpage:
>>  
>>   
>>   
>>   
>>  
>>
>>
>>
>>  
>>
>> 
>>
>> -
>>
>> // Example output, using can-bus.jpg as the test file:
>> //
>> //Listening for requests
>> // Field [textfield]: value: ''
>> // File [filefield]: filename

Re: [beagleboard] b.writeTextFile how to call from a web inteface

2016-03-27 Thread Paul Wolfson
Your example was on my todo list, excuse the long post.  I found the
diagnostic logging helpful in understanding the npm upload package busboy,
but you can easily shorten it  Using "~/mytmp/" as my temporary directory
and tweaking the example at https://www.npmjs.com/package/busboy my
server.js file is:

var http = require('http'),
path = require('path'),
os = require('os'),
fs = require('fs');
inspect = require('util').inspect;

var Busboy = require('busboy');

http.createServer(function(req, res) {
  if (req.method === 'POST') {
var busboy = new Busboy({ headers: req.headers });

busboy.on('file', function(fieldname, file, filename, encoding,
mimetype) {
  console.log('File [' + fieldname + ']: filename: ' + filename + ',
encoding: ' + encoding + ', mimetype: ' + mimetype);
  // uncomment next line to use system temporary directory
  // var newPath = os.tmpDir();
  var newPath = __dirname + "/mytmp";
  var saveTo = path.join(newPath, path.basename(filename));
  file.pipe(fs.createWriteStream(saveTo))
  file.on('data', function(data) {
console.log('File [' + fieldname + '] got ' + data.length + '
bytes');
  });
  file.on('end', function() {
console.log('File [' + fieldname + '] Finished');
  });
});

busboy.on('field', function(fieldname, val, fieldnameTruncated,
valTruncated, encoding, mimetype) {
  console.log('Field [' + fieldname + ']: value: ' + inspect(val));
});

busboy.on('finish', function() {
  console.log('Done!');
  res.writeHead(303, { Connection: 'close', Location: '/' });
  res.end();
});

return req.pipe(busboy);

  } else if (req.method === 'GET') {

res.writeHead(200, { Connection: 'close' });
res.end('\
   \
\
\
\
  \
');
  }
}).listen(8000, function() {
  console.log('Listening for requests');
});

---

server.js generates a simple webpage:
 
  
  
  
 
   
   
   
 
   


-

// Example output, using can-bus.jpg as the test file:
//
//Listening for requests
// Field [textfield]: value: ''
// File [filefield]: filename: can-bus.jpg, encoding: 7bit, mimetype:
image/jpeg
// File [filefield] got 52320 bytes
// File [filefield] got 65536 bytes
// 
// File [filefield] got 4505 bytes
// File [filefield] Finished
// Done!

-
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Sat, Mar 26, 2016 at 12:28 AM,  wrote:

> I have a simple need but in node.js I know it can't be done do to security.
> b.writeTextFile does not seem to work either.
>
> My need is for a user to input a file name and have this file name saved
> on the server for future append to file.
> Like saving encoder values.
>
> This will log the user input but "Cannot read property 'writeFile' of
> undefined"
>
> If anyone has any ideas please help.
>
> var fs = require('fs');var input = document.getElementById('filename');var 
> fileName = input.value;
> function recordToFilename() {var input = 
> document.getElementById('filename');var fileName = input.value;var qw = 
> fileName;
> if (qw) {
> alert('value of: ' + qw);
> console.log(qw);
> // demo output
> var myObject = {
> qw: qw,
> fullN: function() {
> return this.qw;
> }
> };
>
> document.getElementById("demo").innerHTML = myObject.fullN();
> var path = "danny.txt";
> var data1 = "jdsfhadj"
> fs.writeFile(path,data1)
> //end demo output code
> } else {
> alert('Please enter a filename!');
> input.focus();
> }};
>
> HTML Code:
>
> 
> writeFile
> 
> 
> 
>
> Filename
> 

Re: [beagleboard] gpio48 on a Bacon Cape Rev A on a Beaglebone Black Rev B

2016-03-21 Thread Paul Wolfson
*Oops*, missed an update to the script.  Thanks!

7c7
< clr=/sys/class/gpio/gpio48
---
> clr=/sys/class/gpio/gpio48
34a35,38
>
> # [NJO CHANGE] Set GPIO48 as an output
> echo 48 > /sys/class/gpio/export
> echo out > ${clr}/direction


---------
Paul Wolfson, Ph.D., TX LPI, #A17473
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Mon, Mar 21, 2016 at 2:09 PM, Paul Wolfson  wrote:

>
> I just purchased a Bacon Cape to play with and I am having trouble with
> initial diagnostics.   The bash test script
> https://github.com/SoCM/Embedded/blob/master/common/scripts-for-BBB/BBB/Bacon-test.sh
> complains that gpio48 is undefined.   As a result the character display
> tests are failing - quick hint -- hopefully something very simple?
>
> *bash constant definitions:*
>
> cape="BB-BONE-BACONE"
> clk=/sys/class/gpio/gpio2
> serial=/sys/class/gpio/gpio4
> latch=/sys/class/gpio/gpio5
> clr=/sys/class/gpio/gpio48
> button=/sys/class/gpio/gpio22
> red=/sys/class/pwm/pwm0
> green=/sys/class/pwm/pwm1
> blue=/sys/class/pwm/pwm2
> pot=/sys/devices/ocp*/bacon_adc_helper*/AIN5
> pot_min=0
> pot_max=180
>
>
> *output:*
>
> Red PWM
> Green PWM
> Blue PWM
> 7 segment display all off
> 7 segment display all on
> 7 segment display digit check
> 7 segment display digit check (with a dot)
> Press button to continue
> button pressed
> Slider test (press button to exit)
> total 0
>
>
> *pseudo device listing:*
>
> --w--- 1 root root 4096 Dec 31  1999 export
> lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio2 ->
> ../../devices/virtual/gpio/gpio2
> lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio22 ->
> ../../devices/virtual/gpio/gpio22
> lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio4 ->
> ../../devices/virtual/gpio/gpio4
> lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio5 ->
> ../../devices/virtual/gpio/gpio5
> ... no gpio48 port here?
> ...
> lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip0 ->
> ../../devices/virtual/gpio/gpiochip0
> lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip32 ->
> ../../devices/virtual/gpio/gpiochip32
> lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip64 ->
> ../../devices/virtual/gpio/gpiochip64
> lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip96 ->
> ../../devices/virtual/gpio/gpiochip96
> --w--- 1 root root 4096 Dec 31  1999 unexport
>
>
> TIA
> Paul Wolfson
> Dallas
>
> --
> 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.


[beagleboard] gpio48 on a Bacon Cape Rev A on a Beaglebone Black Rev B

2016-03-21 Thread Paul Wolfson

I just purchased a Bacon Cape to play with and I am having trouble with 
initial diagnostics.   The bash test 
script 
https://github.com/SoCM/Embedded/blob/master/common/scripts-for-BBB/BBB/Bacon-test.sh
 
complains that gpio48 is undefined.   As a result the character display 
tests are failing - quick hint -- hopefully something very simple?

*bash constant definitions:*

cape="BB-BONE-BACONE"
clk=/sys/class/gpio/gpio2
serial=/sys/class/gpio/gpio4
latch=/sys/class/gpio/gpio5
clr=/sys/class/gpio/gpio48
button=/sys/class/gpio/gpio22
red=/sys/class/pwm/pwm0
green=/sys/class/pwm/pwm1
blue=/sys/class/pwm/pwm2
pot=/sys/devices/ocp*/bacon_adc_helper*/AIN5
pot_min=0
pot_max=180


*output:*

Red PWM
Green PWM
Blue PWM
7 segment display all off
7 segment display all on
7 segment display digit check
7 segment display digit check (with a dot)
Press button to continue
button pressed
Slider test (press button to exit)
total 0


*pseudo device listing:*

--w--- 1 root root 4096 Dec 31  1999 export
lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio2 -> 
../../devices/virtual/gpio/gpio2
lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio22 -> 
../../devices/virtual/gpio/gpio22
lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio4 -> 
../../devices/virtual/gpio/gpio4
lrwxrwxrwx 1 root root0 Mar 21 11:06 gpio5 -> 
../../devices/virtual/gpio/gpio5
... no gpio48 port here? 
...
lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip0 -> 
../../devices/virtual/gpio/gpiochip0
lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip32 -> 
../../devices/virtual/gpio/gpiochip32
lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip64 -> 
../../devices/virtual/gpio/gpiochip64
lrwxrwxrwx 1 root root0 Dec 31  1999 gpiochip96 -> 
../../devices/virtual/gpio/gpiochip96
--w--- 1 root root 4096 Dec 31  1999 unexport


TIA
Paul Wolfson
Dallas 

-- 
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: Beaglebone Cloud9 Default User

2016-03-18 Thread Paul Wolfson
​Several months ago I posted a note asking how to prevent the Cloud9 IDE
running its shell as root.  The answer pointed out where the bash command
is launched.

if (options.terminal) {

args.push("export ISOUTPUTPANE=0;"
​​
+ (options.defaultEditor
​​
? " export EDITOR='`which c9` open --wait'; "
​​
: "")
​​
+ BASH + " -l");
}
​


​​
> Terminals in cloud9 run bash -l so they will be logged in as the same user
> which have launched the server.js.
>


> See
> https://github.com/c9/core/blob/6cc153e712c64ef8326c195d27a2c224f84429c6/node_modules/vfs-local/localfs.js#L1817
>


> You could either modify that file to run a different command, or modify
> the script that launches the server.js, to launch it from the user you want.
>


> ​
> ​  --
> Harutyun Amirjanyan ​



-
Paul Wolfson, Ph.D., TX LPI, #A17473
Editor, TALI "The Texas Investigator"
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Fri, Feb 5, 2016 at 7:10 PM, William Hermans  wrote:

> I "get it" though. Like for me, I know very basic electronics "OK", but
> really do not have the time nor inclination to become a fully fledged E.E.
> Or my buddy here, who is an excellent E.E. but whom also does not want to
> learn how to program.
>
> I will say that the only real differences I can think of between GPIO, and
> PWM in any code should only be file path, and values sent to the file
> handle. So anyone willing to read through,and understand  the code for
> GPIO. Should theoretically be able to adapt that code for PWM as well.
>
> Unfortunately, in my own case. If I do not have the time to bother
> learning this "something". Obviously I do not have the time to refactor the
> existing code either . . .
>
>
>
> On Fri, Feb 5, 2016 at 4:15 PM, Wally Bkg  wrote:
>
>>
>>
>> On Friday, February 5, 2016 at 1:48:53 PM UTC-6, William Hermans wrote:
>>>
>>> *After giving him a configured BBG (he'd have been dead in the water
>>>> with the image that came in the BBG eMMC, which really breaks the ideal for
>>>> a newbie idea) and showing him how to install the Windows drivers and
>>>> connect to the BBG with Chrome web browser, it clearly was a great starting
>>>> point for him.*
>>>>
>>>
>>> Anything of this nature still has a learning curve. Personally, I think
>>> things of this nature are a waste of time. Not because they're not handy,
>>> or cool. But instead you have to spend a time investment to learn anything.
>>> So you may as well learn the "underlying basics" so you're better prepared
>>> in the future to deal with more complex problems.
>>>
>>> So a very quick example . . . Not knowing what Node-RED really is, I'd
>>> have to spend a considerable amount of time learning this new "software
>>> technology", when I could instead just write  my own code and be done with
>>> it. Now sure, because I'm an experienced developer, who *now* has a decent
>>> bit of javascript / Nodejs experience, this may be easier for me. However,
>>> I had to learn all of this, just like anyone else, and in fact I'm by far
>>> not a Nodejs "expert". And in fact, I knew very little of  Nodejs 3 years
>>> ago when we got our first BBB's . . .
>>>
>>>
>> What you say is true, but I'm afraid its been so long since you've
>> started with zero programming knowledge that you've forgotten how difficult
>> that first step is, its mind numbingly complex when you throw in all the
>> GPIO mux options and restrictions of the Beaglebone
>>
>> A GUI tool like node-red lets a rank beginner do something useful,
>> without spending weeks learning programming and languages.  Drag and drop,
>> wire, and deploy can result it a rather sophisticated program with
>> distributed processing -- a sensor in one building communicating with a
>> actuator in another building over a WiFi n

[beagleboard] Reference to Primer on Interprocess Communication in Linux

2016-03-13 Thread Paul Wolfson
​Dhanesh,
​


> In Linux, we create a pipe using mknod(). I would like to create a
> buffered pipe( of length L, say), on which a remote process can write into
> using socket. How can we associate one end of pipe to a socket?


Here, http://beej.us/guide/bgipc/output/html/singlepage/bgipc.html is a
useful IPC primer written in c. The devil is in the details as Wally
alluded.

The real problem is that programmers have spent far too much time worrying
> about efficiency in the wrong places and at the wrong times; premature
> optimization is the root of all evil (or at least most of it) in
> programming.
> ​  - Donald Knuth​
>
​
Regards,
Paul

-- 
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 wifi RTL819EU installation problems.

2016-02-18 Thread Paul Wolfson
Upgrade to the latest Debian build where support is built in.  I had the
same problem as you did with 3.8.13-bone79.
http://beagleboard.org/latest-images

uname -a
Linux beaglebone 4.1.15-ti-rt-r43 #1 SMP PREEMPT RT Thu Jan 21 20:13:58 UTC
2016 armv7l GNU/Linux
is working for me.

Paul Wolfson

On Thu, Feb 18, 2016 at 10:47 AM, 
wrote:

> Oh man. I hate to resort to this. But surely what arrives in the BB box
> should be straight forward to configure. But it aint!
>
> I need to install driver RTL8192EU. The instructions given on the CD are
> pants!
>
> root@beaglebone:/usr/src# lsusb
> Bus 001 Device 002: ID 0bda:818b Realtek Semiconductor Corp. This is
> RTL8192EU and it needs installing.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> I've updated the headers etc.
> root@beaglebone:/usr/src# uname -a
> Linux beaglebone 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
> GNU/Linux
>
> Not sure how to get the files copied from the CD onto the BeagleBone after
> I've update the BB f/w. I have a /media but no /media/BEAGLEBONE
>
> So I got the files from git. And its all there - lovely.
>
> But the MAKE file falls over:
> 192EU_linux_v4.2.2_7585.20130524  modules
> make[1]: Entering directory `/lib/modules/3.8.13-bone79'
> make[1]: *** No rule to make target `modules'.  Stop.
>
> Any ideas please? 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] Re: Beaglebone Cloud9 Default User

2016-02-05 Thread Paul Wolfson
I very much appreciate the reply.  I was accessing Cloud9 through eth0 not
usb0 so root access from the network was possible.  Were I only accessing
the BeagleBone over the usb network I wouldn't have been concerned.
However I remotely connected over port 3000 and saw a command line running
with root.

I tried chasing down the problem but found the Cloud9 IDE just too
convoluted to figure out.  I tried but failed to change the default user
and password in the configuration file referred to in my earlier post.  At
that point I simply killed Cloud9, and just used Byobu (tmux) terminals to
work with node.js.

In the latest build Debian r43 build Cloud9 is not installed by default so
it's all good.  Robert's little connmanctl tutorial post yesterday made
networking much easier than messing with /etc/network/interfaces.

---------
Paul Wolfson, Ph.D., TX LPI, #A17473
Editor, TALI "The Texas Investigator"
Dallas Legal Technology
3402 Oak Grove Avenue, Suite 300-A
Dallas, Texas 75204-2353


*214-257-0984 (Tel)214-838-7220 (Fax)Send me an email. *
-
The contents of this email are confidential to the sender and the ordinary
user of the email address to which it was addressed, and may also be
privileged.  If you are not the addressee of the email, you may not copy,
forward, disclose or otherwise use it or any part of it in any form
whatsoever.  If you have received this email in error, please advise the
sender at  214-257-0984.  Thank you.
-

On Fri, Feb 5, 2016 at 11:21 AM, Wally Bkg  wrote:

> I'm not very experienced with Cloud9 or BoneScript, but as I understand
> it, at present BoneScript is only usable for code running as root because
> of device driver permissions.  Also BoneScript PWM is not working in the
> "latest" versions.
>
> While this is not optimal, adding user permissions into the mix would
> likely overwhelm people coming from Arduino.  Raspberry Pi currently has
> basically the same setup where only root users can use on board hardware,
> unless its changed with a new Raspbian release recently.
>
> Are you accessing Cloud9 via the USB "gadget" or Ethernet (Wired or
> WiFi)?  I might make a difference.
>
>
>
> On Thursday, January 7, 2016 at 3:42:01 PM UTC-6, Paul Wolfson wrote:
>>
>> I've been using my BBB for some time with Ubuntu 3.8.13-bone30 but
>> upgraded to Debian 4.1.12-ti-r29 because of OS stability problems.  The
>> Cloud9 IDE is back.  I opened it and saw a command shell prompt running as
>> root@beaglebone.
>>
>> Does anyone know off the top of their head where the default user is set?
>>
>> I saw this,
>> http://stackoverflow.com/questions/28822695/change-the-username-and-add-a-password-for-cloud9-in-the-beaglebone-black
>>  but
>> after changing
>> .describe("auth", "Basic Auth username:password")
>> to
>> .describe("auth", "debian:temppwd")
>>
>> and rebooting, the Cloud9 bash prompt is still "root@beaglebone:~# ."
>>
>> [if this is a double post, I apologize]
>>
>> --
> 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.


[beagleboard] Beaglebone Cloud9 Default User

2016-01-07 Thread Paul Wolfson
I've been using my BBB for some time with Ubuntu 3.8.13-bone30 but upgraded
to Debian 4.1.12-ti-r29 because of OS stability problems.  The Cloud9 IDE
is back.  I opened it and saw a command shell prompt running as
root@beaglebone.

Does anyone know off the top of their head where the default user is set?

I saw this,
http://stackoverflow.com/questions/28822695/change-the-username-and-add-a-password-for-cloud9-in-the-beaglebone-black
but
after changing
.describe("auth", "Basic Auth username:password")
to
.describe("auth", "debian:temppwd")

and rebooting, the Cloud9 bash prompt is still "root@beaglebone:~# ."

[if this is a double post, I apologize]

-- 
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.


[beagleboard] Cloud9 IDE default user question

2016-01-07 Thread Paul Wolfson
I've been using my Beagle Bone Black for some time with Ubuntu 
3.8.13-bone30 but upgraded to Debian 4.1.12-ti-r29 because of OS 
stability problems.  The Cloud9 IDE is back.  I opened it and saw a command shell prompt running as 
root@beaglebone.


Does anyone know off the top of their head where the default user is set?