58

The answer to the question if something is legal or not, depends on the interpretation of laws in a particular jurisdiction. This answer should not be treated as a legal advice. It is based on published information by the relevant party. Raspberry Pi Foundation made a clear statement that answers your question in the Starting a business with a Raspberry Pi ...


21

First install some packages: apt-get install samba-common smbclient samba-common-bin smbclient cifs-utils Then, create a local directory and mount the remote share: mkdir /mnt/abc mount -t cifs //server/share /mnt/abc where server is your windows computer name (dns or netbios) and share is your windows shared directory. Depending on the access you ...


15

Getting Node.js on a Raspberry Pi You can either: Compile Node.js yourself (as ppumkin already pointed out)—takes about 2 hours on a Raspberry Pi. Or you can download the binary v0.8.17 Performance I did a quick performance test (to give a rough first impression): My Raspberry Pi is overclocked (Turbo) with default memory_split (64) Tests were ...


14

The community is in the progress of making dotnet core working on ARM. Samsung recently joined the dotnet foundation to (mostly) do work for ARM. .NET is a great technology that dramatically boosts developer productivity. Samsung has been contributing to .NET Core on GitHub – especially in the area of ARM support – and we are looking forward to ...


13

This is a nice guide on exactly how to setup Ruby on Rails. Obviously using the RPI. I think it would be pointless to copy and paste the whole article here, so here is a google cached version of the above page as well. Google Cache Ruby on Rails


11

This one may be useful.. GPGPU python library for the raspberry pi. https://github.com/nineties/py-videocore A general-purpose GPU (GPGPU) is a graphics processing unit (GPU) that performs non-specialized calculations that would typically be conducted by the CPU


11

This depends on what libraries you wish to link your code with. If you are using the Raspbian images, the architecture is "armhf" and the compilation flags are: -march=armv6 -mfpu=vfp -mfloat-abi=hard If you are compiling for Debian "armel" arch, the compilation flags are different.


11

To overwrite itself, your operating system must run fully in RAM and neither read nor write from SD card after booting. piCore/TinyCore is probably one of the few Linux OS which can do that.


10

The RPI ARM core is an ARM 1176jzf-S, the suitable flags should then be -march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp Drop the -mfloat-abi=hard -mfpu=vfp when on a soft float distro. These flags can be found by running gcc -mcpu=native -march=native -Q --help=target on gcc >= 4.7`


10

Web Servers Node.JS can be used as a web server replacement on the Pi and you can create stand alone or Single Page web applications with ease. But just for your information, in most real world applications it is recommended to use servers like the modern nginx , light weight lighttpd or the chunky but fully featured apache2! And then script node.js to ...


10

That may depend on your distro, but if you are using raspbian, the stock gcc includes g++, here's the version info: me@RPi» gcc -v Using built-in specs. [...] --enable-languages=c,c++,fortran,objc,obj-c++ So apt-get install gcc should work if it isn't already there. Most distros will build gcc with C++ support, so this should be true for them too. The ...


10

To install development tools on raspbian : sudo apt-get install build-essential


9

You can write high-level programs that run on the Pi's GPU using QPULib: https://github.com/mn416/QPULib It's a programming language and compiler targeting the 12 vector processors (QPUs) inside the Pi's GPU. It aims to be easy to use and is implemented as an EDSL (Embedded Domain Specific Language) -- a lightweight alternative to a full-blown OpenCL ...


9

The Raspberry Pi foundation has been endorsing GPGPU on the Pi since 2014 , shortly after Broadcom released documentation for the QPU units inside the GPU. An experimental OpenCL compiler was created by Simon J. Hall (the winner of the tightly related 2014 10,000 $ competition to make Quake run acceptably without using the GPU BLOB) : see here.


8

I found that this set should be the optimal: -march=armv6 -mfloat-abi=hard -mfpu=vfp (the -mfloat-abi=hard, of course only when you use an armhf distro)


8

I'd suggest looking at this distribution which has a number of things stripped out that makes it a bit better suited to running a server. SSH is already running in it, so you can just SSH (pi/raspberry) in. Remember to sudo raspi-config once you've got it installed on a card and running, and use the menu option for expanding out the root-fs to fill ...


8

You can get Element14 to make custom Raspberry Pi's for you: http://www.technewsworld.com/story/Element-14-to-Bake-Custom-Raspberry-Pis-82670.html Unfortunately - For whatever reason (most probably exclusivity agreements with Element14) the 2835/2836 is not available for retail purchase. So purchasing that chip from any other channel except Element14 is ...


7

Do you all write the code directly on the Pi!? No. Probably the simple strategy is to mount a share/directory/filesystem from the pi onto whatever computer you want, edit the code this way remotely using whatever software you want, and then to test just use a single, ongoing ssh session. This should not introduce some lag if you are on the same (WLAN). ...


7

On Pis with the 40 pin expansion header GPIO 35 is connected to a 5V supply monitoring system (it is also the GPIO used to control the power LED on the boards with a power LED fitted). It will read high (1) if the supply is greater than 4.65V and low (0) otherwise. See rasberrypi.org forum post.


7

As pointed out elsewhere, dd-ing over a running OS is never a good idea. An alternative (and the usual way you'd develop embedded systems) is to have your OS image served from a network drive and the target board perform a network boot. This speeds up the initial development and you only need to write out the SD cards as you get closer to completion and need ...


6

In general, you cannot access interrupts directly from a userland program. Those interrupts need to be exposed via some kernel facility to do what you want. The kernel exports gpio devices as /sys/class/gpio/gpio* devices, and GPIO pins can be exported for userland use. This facility also provides edge triggering for GPIO, and can be configured to trigger ...


6

The basic issue is to circumvent any window manager, etc., that runs by default after you start X. If you use a display manager (this provides a graphical login screen) you should be able to do keep using it. In any case, create a file in your home directory called .Xclients (with the leading dot) that looks like this: #!/bin/sh lxterminal I'm using ...


6

I'm not aware of any ready built solution for your needs. However you could write your own with not very much effort. How many different calls do you make to the gpio functions? You might find you use less than 10. Just create your own local Python module named the same as your target module and produce stubs for the functions you use. E.g. if you use ...


6

if the samba share does not need any credentials to login and you want to mount the share when you start your raspberry pi then edit the fstab file as root sudo nano /etc/fstab and add the following line //server/share /mnt/abc cifs guest 0 0 close and save the changes to the fstab file check that everything connects as it should with sudo mount -...


6

The Pi is definitely not guaranteed to work in harsh environments. Whether it's adequate for what you want to do depends on what you want to do, and what the downside of failure is. For example, if you want to use it to automatically unlock doors when it recognizes the face of an authorized user, your customers may or may not care if it fails to unlock, as ...


5

Oracle have now released a developer preview of Java JDK8 for ARM which specifically includes support for hard-float Raspbian on the Pi. It works, and I have found it to be around 20 times faster than OpenJDK for certain floating point intensive computations. http://jdk8.java.net/fxarmpreview/


5

The kernel has an API for SMBus/I2C. You just have to include a couple of headers: #include <linux/i2c-dev.h> #include <sys/ioctl.h> There's no library that needs linking. I've used this to write C++ based interfaces to various I2C sensors, I'm sure it can be made to work with an RTC. The API isn't the complicated part, it's figuring out how ...


5

This answer is correct for Pi models available at the time. The Pi3 and Pi3B+ (and probably Pi Zero W) DO NOT use pin35 to indicate power. As @joan stated GPIO 35 is connected to the power. This is all with 40 pin header (except Zero - which doesn't actually have a header or AFAIK a power monitor). pin@p35 { function = "input"; termination = "no_pulling"; ...


4

I did a wee bit of time with Tkinter 15 years ago, then a few years later I did something with wx. While I was able to get stuff done, I found them a both a bit tedious. I don't know how much the situation has improved since I last used them -- or how much my own learning would make them seem easier today. However, in the past few months, I've been ...


4

I've got a command line .NET application to work with Mono. The app is basically doing something akin to port forwarding, taking data received via the serial UART and forwarding it over TCP/IP. It uses the SerialPort, TcpListener, TcpClient and Socket .NET classes, with only minor changes needed to the SerialPort handling code. I'm using the Debian soft ...


Only top voted, non community-wiki answers of a minimum length are eligible