|Comment on Connect Raspberry Pi as Managed Device to IBM Watson IoT Platform by TimMinter||Hi, when installing and running a Pi Zero V1.3 (with wifi dongle) the install completes OK but no device ID is returned by the IoT status command... this is the result of that command and the status command. Can anyone help?
pi@raspberrypi:~ $ service iot getdeviceid
The device ID is
For Real-time visualization of the data, visit http://quickstart.internetofthings.ibmcloud.com/?deviceId=
pi@raspberrypi:~ $ service iot status
● iot.service - LSB: IoT service
Loaded: loaded (/etc/init.d/iot)
Active: active (exited) since Thu 2017-06-29 15:25:28 UTC; 19min ago|
|Your Code in Spaaace!|| In the ISS there are two Astro Pi computers, Ed and Izzy, equipped with Sense HATs, two different camera modules (visual and IR), and stored in rather special cases. They are now running code written by UK school children - the winners of a competition. The data will be feeding back soon! Inspired? If you're a UK child aged from 8-18, you can enter two new music-based coding challenges. Also, after the current set of programs have been run, the Astro Pi machines will be entering flight recording mode, recording sensor readings (including pitch, roll, yaw, rotational intensity, acceleration, humidity, pressure, temperature and magnetic field strength) into a database every 10 seconds. Example data is available now, so you can prepare for the real thing becoming available in late February / March. Can you detect crew activity, O2 repressurisation, the South Atlantic Anomaly or even a CHX dry-out?
The winners of the previous competition:
|RISC OS Pi released (RISC OS for the Raspberry Pi)|
RISC OS Open are very pleased to announce the official release of RISC OS for the Raspberry Pi, “RISC OS Pi”. This is a watershed moment for RISC OS and represents the culmination of many months of hard work from a whole community of developers, testers and other contributors. It also means the Raspberry Pi can now boast support for the quick, compact, original ARM-based operating system.
This is the first ‘official’ release of RISC OS for the Raspberry Pi. It is intended to be programmed onto an SD card (2GB or larger) and can be downloaded free from the Raspberry Pi download site, as an SD card image or as a torrent. Alternatively, you can buy a specially-branded SD card already programmed and tested direct from RISC OS Open.
Eben Upton, from the Raspberry Pi Foundation, had the following to say about the RISC OS release: “Having spent a lot of time in my youth pining over Acorn Archimedes and RiscPC products, it’s a great moment for me personally to see an evolved version of the original ARM operating system brought to the Raspberry Pi. From the Foundation’s point of view, we welcome the arrival of an alternative desktop environment, offering a rich suite of applications, and with BBC BASIC only a few keystrokes away.”
Steve Revill, from RISC OS Open, added: “We’re proud and excited to have achieved this milestone in the development of RISC OS. It’s so good to see some great British software engineering to complement the fantastic British Raspberry Pi hardware.”
|"RISC OS Pi released (RISC OS for the Raspberry Pi)" by Daniel (1698)|
Congratulations on the release. Should this be added to the main downloads html page? http://www.raspberrypi.org/downloads
I also noticed there is a Fedora image that is not on the html page. What’s the foundation’s policy on what goes on the html page?
|ラズパイでのNukkit(MinecraftPE)Server運営について||Raspberrypi3でMinecraftPEのサーバーを建てようと思っています。 サーバーソフトはNukkitです。 起動まではして、起動完了(3.628秒)! "help"または"?"でヘルプを表示 と表示されました。 一応、しばらく家の中で友達と遊んでテストをしようと思い、起動してWindows10版の(ストアから入手できるPE互換の)サーバーに入るから入りました。 すると|
|RaspberryPiのVPNサーバーとしての活用について||ラズパイをVPNサーバーとして扱うとき具体的になにができるか教えていただけませんでしょうか。 インターネット上の説明を見て暗号化の方法だということはわかっていますが、メリットもデメリットもあるような印象を受け、 さらには具体的にどのように活用できるのか、ということが明確になっている記事にたどり着けませんでした。 例えば、これを通じてWinのPCにリモート|
|Raspberry Pi Boss Detector (Bluetooth Early Warning System) #piday #raspberrypi @Raspberry_Pi||Gain a few extra seconds to click away from Facebook with this Boss Detector shared by Millerl1 on Instructables: This is a simple but clever way to leverage Bluetooth radio signals as an early warning system for an approaching boss, sibling, parent, kid, spouse, surprise party recipient, or whomever. Once we’ve connected one or more […]|
|Tweet Photos of Your Plant’s Progress with this IoT Grow-Box #piday #raspberrypi @Raspberry_Pi||Hacking on #InternetOfSeeds Mark II with my @Raspberry_Pi – here's a test live-stream of my cress. 0$ approach to creating an enclosure pic.twitter.com/hyujO6EuNV — Alex Ellis (@alexellisuk) June 11, 2017 From alex ellis’ blog via raspberry pi pod: In this guide I’ll show you how to build an Internet of Things (IoT) grow-box that will […]|
|Atari 2600 Made out of Game Cartridge and Raspberry Pi Zero @Raspberry_Pi #PiDay #RaspberryPi||via Mr Pj Evans A few years ago, I got a great Atari 2600 VCS job lot. Two consoles (a light-sixer and a Vader – now both composite modded) and a stack of games. Out of all the games only one appeared to be beyond repair. That cartridge, Activision’s F-14 Tomcat, was duly placed in […]|
|Fanair: A Weather Station For Your Room #piday #raspberrypi @Raspberry_Pi||Via InMuhsin on Instructables There are countless ways to find out the current weather, but then you only know the weather outside. What if you want to know the weather inside your house, inside a specific room? That’s what I attempt to resolve with this project. Fanair uses multiple sensors to sense: temperature humidity light […]|
|Reinhardt Animatronic with Raspberry Pi @Raspberry_Pi #PiDay #RaspberryPi||Fun project video from YouTube user Skyfox3d.|
|12-foot Tall Raspberry Pi-Powered Electric Guitar @Raspberry_Pi #PiDay #RaspberryPi||via Raspberry Pi Pod Chris Riebschlager and the Dimensional Innovations team came up with an over-sized build for the two-day Boulevardia music festival in Kansas City. They built an electric guitar for the event which weighs in at 500 pounds and is 12 feet in length. It is made out of MDF and steel and the […]|
|Sump Monitor and Alarm #piday #raspberrypi @Raspberry_Pi||From Cory Whitesell on Hackster.io: I built a new home where water is a persistent problem. To mitigate the chances of a flooded basement, I needed a system to notify me in case of a sump pump failure or a power outage so I can react in time. Because of the rural location of my […]|
|From the Adafruit Learning System: Animated Snake Eyes Bonnet for Raspberry Pi @Raspberry_Pi #PiDay #RaspberryPi #AdafruitLearningSystem||Here’s a great guide from our learn system by Phillip Burgess. The Snake Eyes Bonnet is a Raspberry Pi accessory for driving two 128×128 pixel OLED or TFT LCD displays, and also provides four analog inputs for sensors. It’s perfect for making cosplay masks, props, spooky sculptures for halloween, animatronics, robots…anything where you want to […]|
|Raspberry Pi as an E-Book Server @Raspberry_Pi #PiDay #RaspberryPi||via opensource.com eBooks are a great way for teachers, librarians, and others to share books, classroom materials, or other documents with students—provided you have ready and reliable access to broadband. But even if you have low or no connectivity, there’s an easy solution: Create an eBook server with the open source Calibre eBook management software […]|
|Foosball Status and Reservation System With Slack Integration #piday #raspberrypi @Raspberry_Pi||From zolv on Instructables: In a company where I work there is a kicker table. The company occupies many floors and for some of the employees it takes up to 3 minutes to get to the table and…to realize that the table is already occupied. Therefore an idea arised to build a kind of simple […]|
|Bike Speed Analyzer Made With Raspberry Pi @Raspberry_Pi #piday #raspberrypi||Via Joryan on Instructables Hello, in this instructable (sic) we will make a bike speed sensor. This will be controlled by a Raspberry Pi. This speed sensor will detect how fast you go and display this on an LCD, remember how long you biked, how long you paused between biking and how far you have […]|
|Bus Alarm! @Raspberry_Pi #PiDay #RaspberryPi||If you rely on the bus for your commute, check out this handy project from Eva Frohnhofer up on Hackster.io. If you need to know when it’s the right time to go to the bus stop, just by looking up, then this is the project for you! Read more. Each Friday is PiDay here at […]|
|Raspberry Pi Wind Chimes #piday #raspberrypi @Raspberry_Pi||From Mike Cook on vimeo: A Magnetic Vector generator of chimes. The MagPi No. 59 July 2027 Read more Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code […]|
|‘Begging Dog’ robot made with cardboard and Raspberry Pi #piday #raspberrypi @Raspberry_Pi||Via sbattad on Instructables In this project, we will be using a raspberry pi to control a servo that turns a cardboard dog’s head away whenever a person looks at the dog, to mimic a begging dog that doesn’t want to be seen begging. Read more. Each Friday is PiDay here at Adafruit! Be sure […]|
|Controlando um SID com Raspberry Pi||Muitos chips de geração de áudio foram usados em vários computadores antigos. Com certeza o Commodore 64 é uma dessas máquinas que possui vários recursos interessantes que contavam com chips bastantes curiosos pela solução tecnológica envolvida.|
Entre estes chips, o mais curioso é o SID 6581 (SID - Sound Interface Device) que foi usado pelos Commodore 64, antes da evolução do som digital.
Vários projetos atuais ainda usam o SID como elemento de geração de sons, e como não podia deixar de ser, existe um projeto envolvendo uma Raspberry Pi.
No site da Universidade de Buffalo exste uma página pessoal onde é mostrado um projeto curioso usando os GPIOs da Raspberry Pi para interfacear um chip SID para a geração de sons, juntamente com um amplificador de áudio com LM386 e um LCD para visualização de informações.
Não deixe de conferir este projeto em http://www.acsu.buffalo.edu/~robertsz/projects/SID/index.html
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Raspberry Pi Smart Home Control: Domótica com Arduino e Raspberry Pi||Hoje em dia é fácil automatizar residências, comércios e imoveis em geral graças ao baixo preços dos kits e a facilidade de encontrar materiais para que qualquer pessoa possa fazer o seu sistema.|
O site tailandês http://smart-homecontrol.com/ oferece serviço de Domótica para qualquer residência, usando todos as formas de acesso: smartfone, tablet, notebook, etc., usando aplicativos Android.
A nossa sorte é que um blog http://androidcontrol.blogspot.com/ possui o projeto. Foi usado um Arduino, uma placa com relés, Raspberry Pi e um roteador wireless modificado com o OpenWRT.
Mais detalhes você poderá ver em http://androidcontrol.blogspot.com/2014/09/raspberry-pi-smart-home-control.html
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Controle os GPIOs da Raspberry Pi usando C||Se você já está acostumado em programar microcontroladores e não está disposto a aprender uma nova linguagem de programação para acessar os GPIOs da Raspberry Pi, saiba que é possível a programação usando a linguagem C.|
WiringPi é uma biblioteca de acesso GPIO escrito em C para o BCM2835 usada no Raspberry Pi. Está liberado sob a licença GNU LGPLv3 e é utilizável de C e C ++, podendo ser utilizado para ligar circuitos na Raspberry Pi graças as seguintes bibliotecas:
Não deixe de conferir esta biblioteca em http://wiringpi.com/.
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Raspberry Pi 2: quad-core, 900MHz, 1GB de RAM e ainda rodará Ubuntu e Windows 10 de graça!||É pessoal, após o lançamento da Raspberry Pi há 3 anos atrás, outros concorrentes como Banana Pi, CubieBoard, BeagleBone Black e outros apareceram com recursos mais interessantes.|
Agora, a Raspberry Pi possui versão turbinada, com um processador Broadcom BCM2836 quad-core Cortex A7, que permitirá rodar Ubuntu e uma versão gratuita do Windows 10, 1GB de RAM e clock de 900MHz.
O Ubuntu terá uma versão daqui a duas semanas. Sobre o Windows 10 gratuito a Microsoft irá comentar daqui a alguns meses. Até lá cadastrem se no Progrma de desenvolvedores Windows para IoT.
As demais características permanece as mesmas, permitindo a portabilidade dos projetos anteriores. As versões anteriores continuarão ser comercializada normalmente.
Alias, a melhor parte: a nova versão continua a custar US$35,00! Vamos aguardar pra ver aqui no Brasil!
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Sistema Ambilight com Raspberry Pi||Para quem não conhece, o sistema Ambilight cria efeitos de luz ao redor do monitor que correspondem ao conteúdo do vídeo que você está assistindo, como se fosse uma extensão do monitor. Os monitores ou televisores modernos e top de linha possuem este recurso.|
Sébastien resolveu contruir o seu sistema com uma Raspberry Pi e alguns componentes, todos montados um um rack de 19 polegadas.
Basicamente o sinal HDMI enviado ao monitor e convertido em um sinal S-Video, que é capturado em um dongle de captura de vídeo STK1160 conectado a Raspberry Pi. Um script Python utiliza a biblioteca OpenCV, que é responsável por extrair os quadros pixels e descobrir o que as cores devem ser enviadas para os pinos SPI, onde estão conectados ao controlador de LEDs RGB LPD8806. A interface WEB é agradável e também permite controlar os LEDs a partir de qualquer plataforma conectada a sua rede local. Finalmente, um LCD 16x2 padrão e um receptor infravermelho estão ligados à Raspberry Pi, permitindo controlar e monitorar a sua plataforma.
Não deixe de conferir este sistema em http://sebastien.warin.fr/2014/07/31/1549-slightbox-v3-la-version-hdmi/
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Conversor ADC para Raspberry Pi sem usar CI dedicado|
A Raspberry Pi pode fazer muitas coisas maravilhosas e incríveis, mas o que falta mesmo é um conversor analógico-digital (ADC) on board. Claro que podemos conectar um conversor ADC via SPI ou I2C, mesmo com um pouco de trabalho e habilidade.Felizmente existem algumas técnicas simples que podemos implementar em qualquer plataforma, suprindo a falta de um conversor ADC discreto. Componentes baratos como resistores, capacitores e amplificadores operacionais, e claro, um pouco de código, resolvem o problema.
Hussam montou um circuito simples e barato com um comparador de tensão, dois resistores e um capacitor, e com um algoritmo de aproximação sucessiva implementou um conversor ADC que satisfaz a maioria das aplicações que necessitam de leituras de valores analógicos.
Não deixem de conferir esta dica em http://hertaville.com/2014/07/11/adchack/
Se você gostou deste post, não deixe de compartilhar em suas redes sociais, ou ainda deixe uma sugestão ou crítica para deixar o Portal MCU cada vez melhor
|Commenti su PiCamera & Python – programmiamo la webcam su Raspberry Pi di Beniamino Feula||pi@raspberrypi:~ $ /home/pi/scatto.py
: File o directory non esistente
pi@raspberrypi:~ $ sudo python scatto.py
Traceback (most recent call last):
File "scatto.py", line 9, in
camera = PiCamera()
NameError: name 'PiCamera' is not defined
da questi due comandi mi restituisce ^^^^^^^^^
questo è il codice discatto.py
import RPi.GPIO as GPIO
GPIO.setup(17, GPIO.IN, GPIO.PUD_UP)
camera = PiCamera()
|[tech] A geek Dad goes to Kindergarten with a box full of Open Source and some vegetables||
Zoe's Kindergarten encourages parents to come in and spend some time with the kids. I've heard reports of other parents coming in and doing baking with the kids or other activities at various times throughout the year.
Zoe and I had both wanted me to come in for something, but it had taken me until the last few weeks of the year to get my act together and do something.
I'd thought about coming in and doing some baking, but that seemed rather done to death already, and it's not like baking is really my thing, so I thought I'd do something technological. I just wracked my brains for something low effort and Kindergarten-age friendly.
The Kindergarten has a couple of eduss touch screens. They're just some sort of large-screen with a bunch of inputs and outputs on them. I think the Kindergarten mostly uses them for showing DVDs and hooking up a laptop and possibly doing something interactive on them.
As they had HDMI input, and my Raspberry Pi had HDMI output, it seemed like a no-brainer to do something using the Raspberry Pi. I also thought hooking up the MaKey MaKey to it would make for a more fun experience. I just needed to actually have it all do something, and that's where I hit a bit of a creative brick wall.
I thought I'd just hack something together where based on different inputs on the MaKey MaKey, a picture would get displayed and a sound played. Nothing fancy at all. I really struggled to get a picture displayed full screen in a time efficient manner. My Pi was running Raspbian, so it was relatively simple to configure LightDM to auto-login and auto-start something. I used triggerhappy to invoke a shell script, which took care of playing a sound and an image.
Playing a sound was easy. Displaying an image less so, especially if I wanted the image loaded fast. I really wanted to avoid having to execute an image viewer every time an input fired, because that would be just way too slow. I thought I'd found a suitable application in Geeqie, because it supported being out of band managed, but it's problem was it also responded to the inputs from the MaKey MaKey, so it became impossible to predictably display the right image with the right input.
So the night before I was supposed to go to Kindergarten, I was up beating my head against it, and decided to scrap it and go back to the drawing board. I was looking around for a Kindergarten-friendly game that used just the arrow keys, and I remembered the trusty old Frozen Bubble.
This ended up being absolutely perfect. It had enough flags to control automatic startup, so I could kick it straight into a dumbed-down full screen 1 player game (--fullscreen --solo --no-time-limit)
The kids absolutely loved it. They were cycled through in groups of four and all took turns having a little play. I brought a couple of heads of broccoli, a zucchini and a potato with me. I started out using the two broccoli as left and right and the zucchini to fire, but as it turns out, not all the kids were as good with the "left" and "right" as Zoe, so I swapped one of the broccoli for a potato and that made things a bit less ambiguous.
The responses from the kids were varied. Quite a few clearly had their minds blown and wanted to know how the broccoli was controlling something on the screen. Not all of them got the hang of the game play, but a lot did. Some picked it up after having a play and then watching other kids play and then came back for a more successful second attempt. Some weren't even sure what a zucchini was.
Overall, it was a very successful activity, and I'm glad I switched to Frozen Bubble, because what I'd originally had wouldn't have held up to the way the kids were using it. There was a lot of long holding/touching of the vegetables, which would have fired hundreds of repeat events, and just totally overwhelmed triggerhappy. Quite a few kids wanted to pick up and hold the vegetables instead of just touch them to send an event. As it was, the Pi struggled to play Frozen Bubble enough as it was.
The other lesson I learned pretty quickly was that an aluminium BBQ tray worked a lot better as the grounding point for the MaKey MaKey than having to tether an anti-static strap around each kid's ankle as they sat down in front of the screen. Once I switched to the tray, I could rotate kids through the activity much faster.
I just wish I was a bit more creative, or there were more Kindergarten-friendly arrow-key driven Linux applications out there, but I was happy with what I managed to hack together with a fairly minimal amount of effort.
Top 5 articles of the week
|Wanna Raspberry?||Demand for a cheap yet powerful computer is pretty high in geek circles. Remember those days when you could take a ZX Spectrum, or Commodore 64, or something like that and attach it to your TV to fill next few days with a great fun. Since then, PCs pushed out these tiny home computers. But today, Raspberry Pi — a little credit-card sized sweet computer — is here.
The Raspberry Pi is built on Broadcom BCM2835 system on chip which contains ARM1176 core running at 700MHz, with VideoCore 4 GPU, and has 256 MB of RAM on board. It provides two USB ports, 100Mb/s Ethernet, HDMI and composite video; audio output presented as well. Operating system loaded from SD flash.
Yet more fun is that the initial NetBSD support was just committed to the NetBSD source tree, and the Raspberry Pi can boot into multiuser now. Currently work on device drivers is in progress. USB and Ethernet are planned to be supported next.
So, there is a boot log from the very first NetBSD driven RPI board, and work on the device is in full swing. Many people exposed interest, and eventually the Raspberry Pi could became a good alternative for number of well supported, but aging single board computers.
|Comment on Install 3.5″ HDMI Touch Screen Linux Driver on Raspberry Pi by pmaltese||Hello... I've found the solution!!!
1) download the latest drivers from page
and follow the guide in that page. I've used the script "LCD35-HDMI-800x480-show"
2) calibrate your LCD screen using the utility xinput_configurator from raspberry start menu and append the output values in X11 configuration
3) reboot and everything will be ok, either LCD screen and touch stylo
|Envoi de SMS par le RaspberryPi - doudy|
@ Guillaume T.
|Upgrade you old laptop with a Raspberry Pi - take two|
What if you want to connect your Raspberry Pi tailless but use a Windows OS on your laptop?
Well don't despair, there are ways to do that and a few tricks that will allow you to do so under several circumstances.
So let's recap what do we want to achieve. We want to connect a Raspberry Pi to a Windows computer, typically a laptop so that we can use the Keyboard, the Mouse and the Monitor of the laptop and replace its "engine" with a Raspberry Pi.
Old laptop or not this solution also makes for a great way to make your Pi a lot more portable. In this tailless configuration the only cable you might have is the power supply to your laptop!
Be weary that I have used a Windows 7 for the laptop and Raspbian Jessie for the RPi. Things may be slightly different using other versions.
This article should also serve as an Errata Corrige for my previous one with regards to the Pi's support for Link-Local address. I will amend the previous post ASAP.
At least two USB ports
WiFi card (optional)
A functioning Windows OS
VNC or RDP client
VNC or RDP server (which regrettably needs to be installed upfront)
To glue them together we also need a USB Y cable and a 20-30cm Ethernet cable (Cat 5e or +) straight or crossover.
The first hurdle that we need to solve is how to try to make the laptop talk to the Pi at IP level. For that to happen the two must be connected at layer 1 and 2 of the OSI stack. The Ethernet cable plugged in your laptop's NIC and in the Pi's one does just that. It provides physical connectivity and data link. What we don't get as easily is two IPs in the same subnet.
This can be achieved in many ways, let's see a few.
First things first though let's talk about how to allow Windows to resolve the
That we are going to use to connect to the Pi independently from its IP address. Dealing with IP addresses is in fact quite a pain, that's why DNS came about after all. In my previous article I mentioned the good that comes with mDNS so that you can reach raspberrypi.local independently to which IPv4 or IPv6 you are using on the Pi.
Windows does not come natively with mDNS but there is a piece of software that we can install from Apple to install this protocol under Windows. Apple's interpretation of mDNS is called Bonjour and can be found here
Installing it is extremely easy and you will be able to use it straight away. Thanks Apple!
Once installed if you check the services running on your laptop you should see something like this:
Back to IP now. The first thing you should do it to disable any protocol and service that is not quite necessary from the Local Area Connection Property page of your laptop Ethernet's card. This is what I did:
Automatic Private IP Addressing is Microsoft's interpretation of Link-Local address and it is a way of auto assigning IP addresses to hosts within a network segment without the need for a DHCP (service that is typically the job of your home router or NAS). A Class B of IP addresses has been reserved just for this purpose.
169.254.0.0/16 or 169.254.0.1 through to 169.254.255.254 with 169.254.0.0 being the subnet and 169.254.255.255 being the broadcast address. The network mask is 255.255.0.0.
Which in itself is quite a lot of technical gibberish but bare with me.
Now in the absence of a DHCP a Windows system (or any other OS supporting Link-Local address) will be configured as 169.254.x.y and this is the case for the Pi too with Raspbian Wheezy or Jessie.
I know I have said in my previous article that it didn't but ... it turns out it was grapevine knowledge which I would have been better off verifying first. I'll amend the other article ASAP.
The following screenshots illustrate the status of the adapters and of some other aspects at the network level of both the laptop and the RPi.
Note that once the two hosts communicate with each other the IP of the RPi will be evident in the ARP cache of the laptop
Booting your Pi after plugging the network cable and power is enough for your laptop to resolve raspberrypi.local in an IP 169.254.x.y with no extra hurdles. At this point you could already connect to your Pi via VNC by configuring the service on the Pi as I explained in my previous post
All works well also with IPv6
The Pi's sets itself up with an IPv6 and from the laptop pinging raspberrypi.local will successfully resolve and reach the Pi's IPv6 address:
As well as the IPv4.
These are screenshots of the laptop's network info:
Static IP addresses
If your laptop has an IP configured for its Ethernet adapter that you are not willing to alter then you can use the cmdline.txt to configure the Pi with an IP in the same subnet as you laptop. Easy!
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait ip= x.y.z.w
You need to edit the cmdline.txt file in /boot and add the part highlight in bod above. Make sure that all the text is on one line only.
The format is ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> so you can add other parameters if you need to. The netmask might be one that you want to set right.
More simply you could configure the eth0 of the Pi once it is booted if you have access to the GUI before making it tailless on your laptop. A good time to do this is when you install you VNC server
The following screenshots illustrate the status and configuration of the adapters and of some other aspects at the network level of both the laptop and the RPi.
DHCP via ICS
An easy enough solution to connect to your Pi is to leverage on the Internet Connection Sharing functionality of modern Operating Systems like Windows. ICS will let you share a connection on your laptop via another one. Your laptop may have a WiFi card connecting you to the Internet and an Ethernet adapter. ICS will allow you to share the WiFi via the Ethernet NIC, anything connected via an Ethernet cable to the laptop will receive an IP address and will be able to use the WiFi as a gateway to the Internet.
Now we could be interested in just that but I said that we wanted to use old laptops just as KVMs not also as Internet gateways, there is nothing wrong with that but accessing the Pi from elsewhere than the laptop with this configuration may be troublesome if not plain impossible.
What we are very much interested in is the fact the ICS transforms the Windows OS in a DHCP on the shared network adapter so that we can have our IP!
To configure ICS in Windows the sharing must be activated on the interface that we are going to be using as gateway. In my example below I am using my WiFi as gateway and activating the share on the local network adapter
Once that's done the local network adapter will receive an IP address in the range 192.168.137.0/24 which topically will be 192.168.137.1
Note that as the laptop provides an IP to the Pi, the Pi's address can easily be found by looking at the ARP cache of the laptop
The Pi receives an IP like 192.168.137.x as did mine
All this good though comes at a price. The DNS resolution and the default route of the Pi are configured as if we wanted to use the laptop as our gateway. In order to use the Pi's WiFi card instead we need to alter the file
And comment out the line which bares the IP of the laptop.
Next we need to remove the default route once that has once again the IP of the laptop by running:
sudo route del -net 0.0.0.0 gw 192.168.137.1
Lastly we need to setup the IP as static on the Pi as explained in the previous section and this time use the IP we were given with ICS which was 192.168.137.136. Make sure to untick "Automatically configure empty options".
You can change the subnet 192.168.137.0/24 to whichever you prefer by editing the registry
there is a nice article explaining how to
I only have an Ethernet card on my old laptop
In this case we need to trick the OS into believing that it has a connection to share. The best way to do this is to create for example a dialup connection as in here:
or add an additional WiFi card or other network interface via PCMCIA or a bluetoooth adapter but that would be quite inefficient and rather laborious. Unless there are some very specific needs I would just create the fake dial-up.
What else is there to say?
All of the above IP options will require in the majority of cases a one off connection to a monitor, keyboard and mouse so factor this in if you are off somewhere with a brand new SD card for your tailless Raspberry Pi.
Which of these setup is best it largely depends on your needs but the Link-Local address / APIPA seems by far the preferable especially when using Bonjour.
The ICS is certainly the most confusing and complicated but it can have its uses. If your "portable" lab becomes a bit overcrowded and you need a DHCP for some of the devices, then ICS could be your friend. Here is an example:
If your "portable" setup becomes a bit more complex and you have devices that need an IP delivered with a DHCP, ICS is your friend. In the picture above I have a tailless Pi connected to a switch to which are connected the laptop and a security camera. The camera can only do static IP or DHCP hence the need for ICS when on the move.
Also ICS inherently allows you to know the IP of its clients as by assigning them an IP that also generates an entry in the ICS's ARP cache. By inspecting it we can immediately tell which IP have been assigned making connecting to them a lot more easy even in the absence of mDNS / Bonjour.
A good part of what has been said in this article and in the previous one applies to the Raspberry Pi A/A+ and to the Zero but not in all cases. These configurations are meant to use a real Ethernet card and won't always work for the likes of the Ethernet Gadget as in this article from Adafruit. I will explore this at some point and see what of the above is applicable in this case and what should be adjusted.
The cables to make the Pi tailless are only two, could I use a Wireless connection instead of the short Ethernet? I don't see why not but it would make things a bit more complicated and confusing. The Ethernet cable guarantees a really good connection to the laptop and it is not prone to the various problems the WiFi inherently has. Tiding up the Ethernet with the power cable should not be a big problem and I would stick with that. This is until the USB gadget configuration is easier to setup and use, that may be a real game changer.
|Upgrade your old laptop with a Raspberry Pi|
Have you ever wondered what to do with that old laptop you kept for so long because you never had the heart to trough it away?
Plug a Raspberry Pi2 into your old laptop and give it a second life! Also wouldn't it be great to get your Pi around the house with a very portable setup? I know you get a Pi-Top (I'll admit it's cool but $269.99 without the Pi!!!), you can get a Touchscreen even the original from the Pi Foundation, but the recycler in me sometimes screams for justice.
This setup I am using costs near to nothing and gets the dust off those useless laptops in the loft.
The idea is pretty easy; we get a Pi, plug it in two USB ports of the laptop via a Y cable, connect it via the Ethernet port to the NIC of the laptop, VNC into the Pi, configure the Wi-Fi and job done.
Fix the Pi on the back of your laptop's screen with whatever you can think of and enjoy a Pi with no dangling cables but with a nice keyboard, video and mouse setup.
I made sure that the steps to follow are as simple as possible and that the configuration should work in the majority of situations. By all means this can be further improved and I'll be glad to hear from anybody who might have suggestions.
The configuration and setup can be replicated pretty much on any laptop you might have, even a new one!
The requirements for the laptop are:
2 USB ports
1 NIC ethernet
1 Working keyboard and 1 Working Touchpad/Mouse :)
1 Working Screen :))
Mine is quite old as you can see
The Pi needs a Y USB cable with the usual micro connector on the other side. This StarTech 1 feet USB Y Cable for External Hard Drive - Dual USB A to Micro B can do just the job.
A short (20-30 cm) Ethernet cable CAT5e would be more than enough.
Finally a compatible Wi-Fi card.
This is essentially it from the HW point of view. The reason for the Y cable is to make sure that the Pi receives enough current to power itself correctly. Each USB ports in USB1/2 delivers a maximum of 500mA so if you have a laptop of that era you certainly need the Y cable.
The Ethernet cable doesn't need to be a cross-over although that wouldn't hurt if it is. The Pi is capable of Auto MDI-X and will be able to adjust to a straight or a crossover cable directly connected to the laptop; no Ethernet HUB/SWITCH required.
Software wise the Pi will come with its usual distro Raspbian and the Laptop in my case is Elementary Linux. Different combinations of distros should certainly work but might require adjustments compared to what I am showing here.
06-02-16 Please check the information at the bottom of this page before going ahead with the ICS setup.
Most NetworkManager distributions should allow for "internet connection sharing" for each network cards. This allows for the laptop to use a service called Dnsmasq to provide automatic configuration of networking parameters for the guests, in our case the Pi. Great!
This is how I configured my laptop:
Once the "internet configuration sharing" is setup our Pi can be plugged in in the USB ports of the laptop and hooked to the Ethernet cable.
After a while we should have an IP for the PI but we are not going to know which is going to be that easily. Luckily both Rasbian and Elementary (Linux in general does) support something called mDNS out of the box. mDNS is for DNS what Link-local address is for IP (you know those 169.254.x.y addresses?) and it allows for DNS names to be setup "democratically" amongst computers in the same network. Raspbian sets its name as
and once it gets an IP you should be able to ping raspberrypi.local without knowing the IP, excellent!
If you can ping it, you can SSH to it and that's the next thing to do.
We SSH to the Pi and start the VNC server (of course there will be a one off password to setup, keep it simple and use the Pi user password).
The server should be started with the same resolution of your laptop screen as we want to run the Pi in full screen on the laptop. The command to run on the Pi will be something like:
vncserver -geometry 1280x800
or whichever is the resolution of your laptop, I hope you know how to find it :)
We now have a VNC server to connect to, note that it runs on screen :1 but don't try yet to get on the Pi until you have done the steps below otherwise you won't be able to use F8 to close the session as the keyboard might not work.
One thing you may find in fact is that once in fullscreen the keyboard is not working on the remote session. To fix this I had to edit /etc/X11/app-defaults/Vncviewer as sudo
sudo nano /etc/X11/app-defaults/Vncviewer
This is distribution dependant and you might have to look elsewhere for this file depending on what you run on the laptop.
The line that we are uncommenting is:
on the laptop we should now be able to VNC safely to the Pi. The command I am using is:
xtightvncviewer raspberrypi.local:1 -fullscreen -compresslevel 3
we are connecting on host raspberrypi.local on screen 1 in fullscreen and compress the session to get better performance. I made a script just not to have to type that all the time.
You can play with compresslevel from 0 to 9 where 9 is less compressed. The network should not be the bottleneck as it is a dedicated fast-ethernet connection but the video card on you old laptop might be the one not actually able to keep up.
If the command above succeeds you should be prompted for the VNC server password you set earlier on and after that you should finally be in your Pi's desktop!!
We are not done yet unfortunately, a few more tweaks.
The first thing to do on the Pi is to configure the eth0 card as static IP.
The reason is still within the realm of keeping things as simple as possible. You remember that Dnsmasq you mentioned earlier? Well as a good DHCP it will keep on refreshing periodically the information of the Pi's Ethernet adapter not only with IP and Mask but also with Gateway, DNS and default route. Now, after we will enable the Wi-Fi card on the Pi we'll want for the default route and the DNS server to be only the ones of the Wireless card not the ones configured from the DHCP server on the laptop. This will ensure that the Pi will be able to connect to the internet only through its Wi-Fi card.
The best thing to do is to configure the IP address of the Pi's eth0 as the one it used to receive from the DHCP's laptop and
uncheck "Automatically configure empty options"
leaving the Router and DNS sections empty.
Note that this will configure the network mask of the Pi as 255.0.0.0 whilst the laptop interface will have a mask of 255.255.255.0. This is not going to cause any problems although it is quite an horrible thing to live with if you have done any serious networking in your life!
Next we need to edit:
sudo nano /etc/resolv.conf
on the Pi to remove the settings obtained from the laptop. We need to remove the line that says:
or whichever is the IP of your laptop
it should look like this:
Lastly we need to remove the default route 0.0.0.0 associated with the laptop's address, in my case:
sudo route del -net 0.0.0.0 gw 10.42.0.1
so that the routes will look like this:
At this point we'll need to configure the Wi-Fi connection on the Pi in the standard way and we should be done!!!
After these steps connecting again should be just a question of powering up the laptop, starting the VNC server on the Pi (which can of course be set to start automatically) and VNC into the Pi.
What is left to do
A lot more automation can be done. When the laptop shuts down for example we should be able to also run a clean shutdown and wait for the Pi to be off before shutting down the laptop. The VNC session could also be run automatically at the startup of the laptop including passing the password for the Pi. The initial configuration of things for both the Pi and the laptop could be scripted to make things easy even for the less expert.
Finally get a better networking configuration, I hate that thing about the network mask!!
Also some good designer cloud come up with maybe a 3D printed enclosure or VESA fix like structure that can be adjusted to most laptop screens. It'll be nice to find a way to accommodate a breadboard too although having it always fixed on the back of the screen might not be ideal.
I leave it here I guess but this is clearly far from being something to "resell".
If your laptop comes with a Wi-Fi interface then you could use that to connect the Pi to the internet in a much more traditional ICS configuration. This hides the Pi behind a NAT and for the majority won't be a problem and work great, I preferred to use the laptop just as a KVM though.
I must admit that I have tried to find out whether the Pi supports Link-local address which would have made things less complicated but I couldn't find much about this and eventually opted for the more cumbersome "internet connection sharing" approach.
In the long run having to type a password for the laptop and one for the Pi can be tedious so my advice is to at least enable autologin on the laptop and disable the password prompt when exiting the screensaver
06-02-16 - UPDATE
Since I wrote this article I researched a bit more into the matter of Link-Local Address and specifically with regard to the support of this in Raspbian. It turns out that the Pi is more than capable of supporting IP auto configuration and this is in fact the quickest way to go about configuring the Pi in tailless mode (I like calling it this way!).
By configuring the laptop Ethernet interface as Link-Local only the adapter will get a 169.254.x.y address and will be immediately ready to resolve raspberrypi.local.
This doesn't mean that the steps I discussed in the main part of this article are wrong only that the networking setup can be achieved in a much easier way if using Link-Local address instead of ICS.
Sorry for the confusion
|Remoting into the Pi - all the tools you'll ever need|
Being able to connect to a server somewhere out in the wild or in the neighbourhood of your local network is certainly something that has been going on for decades.
The most common activities that one would want to perform on a remote server are:
Commands needs User Interfaces which can either be:
All of this have to be complimented with a number of protocols that allow the act of remoting from a client to a server.
Let's see what happens in the most frequent cases.
Issuing commands to a remote server is mostly done by using the SSH protocol. The Raspbian OS comes with an SSH server enabled by default so all we need to do is to get the right client for the platform from which we want to connect from.
On Windows the best know is PuTTY which in its basic incarnation looks like this
and it is an incredibly great tool to issue commands in a very versatile terminal window.
Somebody else built on top of PuTTY and tried to get to grips with the clatter caused by the need of having to deal with many sessions all opened at once.
The tool is MTPuTTY which is what it says on the tin: Multi-Tabbed PuTTY !
Fantastic, but if you are really hard core and you live in an era where virtual machines had not been invented, you can still use the never ageing Cygwin (although you might actually have good reasons to use it in favour of a VM)
SFTP and SCP
Of course one of the most important things to do on an operating system which revolves all around files is to be able to move them back and forth, around and about via SFTP or SCP whenever this last one might be preferred.
SFTP on Raspbian come as part of the SSH server and also in this case there is nothing to be done on the Pi.
My favourite tools are Filezilla and WinSCP although the humble PSFTP installed with PuTTY can still do a great job if nothing else is available.
A great thing of WinSCP is that it will be able to import all your PuTTY sessions as you install it and it supports SCP along with SFTP. In many instances I have seen people preferring WinSCP to Filezilla.
Filezilla though has my preference as it still supports FTP which is still somewhat handy for the likes of uploading content to websites.
There is of course more to see and discuss about these two great clients but it is time to move on to the next set of tools.
VNCText based terminals are great but we live in an extremely visual world and Graphical User Interfaces are preferred by many with good cause. One of the obvious desires then is to be able to interact directly with the Raspbian desktop and this can be achieved using some form of Virtual Network Computing based software.
There are quite a few incarnations of VNC servers and clients and although Rasbian doesn't come with a specific one the Raspberry Pi foundation seems to point to TightVNC which can be installed fairly easily following their simple guide.
As for the client side ... well there are quite a few but I use RealVNC which covers quite a few platforms and does the job excellently. Remember that your display will be display 1 and that to indicate to the VNC client that you are not connecting to the default screen 0 you will have to write <IP Address>:1 e.g. 10.42.0.53:1
X and the rest
If you feel more adventurous you can try the ways of the X server. The X Window System is based on the X11 protocol and has been on the scene for many years.
The advantage of this approach is the possibility to run programs that need a graphical interface from you terminal session. If for example you would need to quickly run the Pi's browser whilst working via PuTTY, you can simply invoke epiphany and an X windows displaying the browser will come up on your screen.
Counterintuitively the X server will have to be installed on your "from" location.
I have always used Xming as it installs really easily and integrates perfectly with PuTTY.
Just remember to enable X forwarding in your PuTTY session before connecting.
As you run Xming nothing will seem to happen but the program's icon will be displayed in the notification area.
Running a command from PuTTY that will open up in X will result in an X icon being shown in your taskbar and that is for all matters and purposes a window within your client system.
Of course the best way to go to a Linux box is with a Linux box and this can be achieved in a number of ways. All of the above can be done from an Ubuntu machine whether it is your default operating system or you are running an instance as a virtual machine of your Windows host. The software to use will be rather different for the majority but the mechanisms described are the same.
One strange beast to mention in this realm is Cygwin which, as they say on its website,
"is a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows"
and that in fact will allow to work on your Windows box in a "Linuxy" way. One thing we could obviously do is to connect to a Pi from a Cygwin terminal. We can type in xinit and the following whitish window will pop up to indicate that an X server is available! Fantastic
Let's type in a few lines to connect to our Pi and in my case the command is:
ssh -X firstname.lastname@example.org
This means that I am using the SSH client in Cygwin on which I am enabling X forwarding (-X) to my Cygwin X server and connect as the user pi to 10.42.0.53
Once I give the password I am in my Pi as shown by the green prompt. From there I can launch lxtask and get my graphical task manager displayed via Cygwin. Isn't that the most useless thing? :)
Jokes apart though this shows probably one of the many coolest ways to connect to a remote Linux box and it is as close as native Linux as you can get on a Windows computer.
That's all folks
These tools covered most of the use cases that you will ever encounter but bare in mind that what I have listed here are only some of the tools that are available. Also the majority of what I described applies only to Windows. There is of course much more, there is also Apple stuff and one and a million way to do things in Linux.
Note that some of these softwares are also distributed as executable instead of full install. This is great when you want to carry your tools around on a USB key or when the administrators of the systems on which you need to work aren't too lenient on you installing new software. So when downloading check which type you are getting hold of.
Mostly if you can spare some money for those projects that accept donations you can play an important role in promoting what's good out there, right?
This closes "all the tools you'll ever need to remote into your Pi".
|Installing Rasbpian with Noobs|
You bought yourself a shiny new Raspberry Pi, maybe the brand new Pi Zero and now you are really fidgety about doing something exciting with it but ... there are a few things that need to be done first.
I have provided three complementary videos that you can watch to go through the entire process or if you prefer you can go through the following brief instructions
This is in a nutshell what needs to happen:
The first thing you need to do is to get yourself an SD card with a suitable Operating System installed on it so that the Raspberry Pi can run all the basic software that is needed for it to do anything.
At this point NOOBS is your friend!
NOOBS is a piece of software that will help you installing the Operating System onto the SD card.
This can go either of two ways:
The preferred Operating System for the Pi is Raspbian and its latest incarnation is called Jessie. The names of the versions of this OS are coming from Toys Story, the previous one in fact was called Wheezy!
Now Wheezy's character was a bit chubby and Jessie's was quite slim in the cartoon but despite this you will need a bigger SD card to store Jessie than you would have with Wheezy as the OS Jessie is a bit bigger than its predecessor. With this in mind make sure you use at least an 8 GB SD card for your Pi.
If you are going to reuse your card you have to first format it or in other words prepare it to be able to transfer NOOBS onto it, to do so you can use a software called SDFormatter. It is a really easy install to perform and you can use the videos provided if in doubt.
Make sure to backup the contents of your SD card before proceeding as the tool will delete all files in it
Select the right drive letter corresponding to your SD card and click on Format. You will have to accept a couple of alert messages and you card will be ready shortly after.
Once the card is formatted you will need to transfer NOOBS on it. First of all let's get hold of NOOBS.
Once downloaded (it will take a while) it will have to be unpacked in a temporary folder of your choice.
With the content unpacked you will now have to select all the files and copy/paste them onto the SD card you have just formatted (that also will take a while).
The card is now ready to be ejected from the card reader and plugged into the Raspberry Pi.
Make all the necessary connections to the video, the network, the mouse and keyboard and finally plug the power supply in.
After a short while you should lend onto this page
Select install near to Raspbian and ... after a while and a few rather useful information displayed during the installation, the process will terminate and prompt you for restarting into Rasbpian for the very first time.
Great! You made it, your Raspberry Pi is now ready for many adventures to come
Here are the embedded videos mentioned above
HW preparations to get started
Prepare the SD card, get hold of Noobs and transfer it onto the card
Connecting all up and install Raspian
|Contributeur du mois : susvhv (Belgique)|
Qui es-tu ?
Sus est mon alias ordinateur, le “ç” de François ne m'a causé que des ennuis au début des PC's. Né en 1933 ( comptez vous-mêmes ) en région bruxelloise, j'ai émigré à Mol pour y travailler au Centre d’Études Nucléaires comme technicien. Lors d'une restructuration le CEN m'a viré en prépension et depuis plus de 25 ans je me la coule douce. Lors de mes études je n'ai jamais entendu parler d'ordinateurs. Heureusement au CEN j'ai eu la chance de pouvoir, dans mon coin, me familiariser tant avec le matériel qu'avec les logiciels et concevoir de l'appareillage à base de microprocesseur et de microcontrôleurs. Jusqu'à présent j'ai acheté tout mes desktop en pièces détachées. Le dernier tourne sous Ubuntu. Les laptops, je les achète. Au début, au boulot, les émulateurs pour microprocesseur coûtaient la peau de fesses, mais quelques années après la mise en pension je me suis aperçu qu'un microcontrôleur ATMEGA8 ne coûtait plus que quelques euros et était parfaitement programmable à partir d'un port série (maintenant USB) de PC avec des programme gratuits. Actuellement à la période du IOT on a des modules Wifi (Nodemcu, ESP8266) bardés d'interfaces, programmables sous Arduino. Un de ces modules transmet la température de la véranda à la toile et je peux la consulter par smartphone. J'ai mon propre nuage, Owncloud, avec un disque dur d'1 TB piloté par un Raspberry Pi, vous savez, cet ordinateur pour enfants.
Comment et quand as-tu découvert OpenStreetMap ?
De par mon passé de pilote ULM, rallymen, promeneur et géocacheur j'ai toujours manipulé des cartes et dès son apparition je me suis intéressé au GPS, d’où le besoin de cartes, de préférence gratuites. Depuis 2008 j'ai un compte OSM, mais j'utilisais les cartes bien avant malgré les grandes zones blanches sur OSM à cette époque. Mes débuts de mappeur datent seulement de 2011. Le seuil à gravir me semblait trop grand. Par hasard, une ligne haute tension s’arrêtait au pylône de ma rue et j'ai tenté de la prolonger en recherchant la suite des pylônes. Lorsque la ligne haute tension ainsi complétée est apparue sur les cartes OSM, l'élan fut donné et par la suite tous les sentiers pédestres ont suivi, puis les nouvelles rues, les noms des rues, les maisons, les numéros des maisons, les zones, etc, etc. Résorber les zones blanches.
Utilises-tu OpenStreetMap au quotidien ?
Sur le Garmin Dakota20 et sur le smartphone sous Android se trouvent les cartes de toute l'Europe, régulièrement mises à jour. Lors de nos voyages en car - nous ne faisons plus de voyages en voiture - je sais mieux que le chauffeur où l'on se trouve. D'Andorre j'ai toutes les pistes de ski en poche. Sur le smartphone avec 32 GB de mémoire j'utilise OsmAnd, Locus et Oruxmaps. J'ai testé Vespucci pour ajouter les numéros des maisons, mais c'est inutilisable en plein soleil avec des mains moites.
Quelle sorte de contributeur es-tu ?
Pour mapper, je ne quitte plus mon fauteuil. Comme éditeur, j'emploie JOSM. Je l'ai rangé quelque temps lorsqu'il me remplissait tout le disque dur, mais ces défauts ayant été résolus, je l'ai repris car on y intègre de plus en plus de facilités tel que les liens vers les images photos et AGIV pour la Flandre. À [Anvers j'ai assisté à une réunion principalement orientée vers HOT, j'ai donné suite à la dernière demande de Jorieke et j'ai rempli quelque carrés. Il faut bien un peu s'adapter et j'ai difficile à me tenir strictement aux instructions, ce qui n'arrange pas l'uniformité de la carte.
Que cartographies-tu ?
Actuellement on dispose d'une imagerie nettement supérieure et des informations de AGIV et CRAB pour le numéros des maisons ; c'est une nette amélioration par rapport aux anciennes données de Bing. Je charge d’abord avec le tool de Sander les informations par numéro de code postal, généralement dans la région autour de Mol, mon point d'attache, et je corrige la forme des maisons, les rues, les noms de rue, zones, etc. Jusqu’à compléter la zone au maximum. En fonction des conditions atmosphériques, cela peut prendre quelque semaines à quelques mois. J'essaie de ne pas faire trop longtemps la même chose mais j'ai horreur des relations lorsqu'il s'agit d'apporter des corrections de noms.
Quelle est ta plus grande prouesse en tant que contributeur ?
De pouvoir suivre. Mais j'aurais préféré qu'on me demande: quelle est ta plus grosse bévue ? Dans JOSM le '”Q” (forme orthogonale) m'a déjà joué de vilains tours lorsque par hasard toute une zone résidentielle est sélectée et que l'on ne l'a pas remarqué car elle se trouvait en dehors de l'écran. On voit soudainement pendant l'envoi défiler un grand nombre de modifications, parfois plus de mille, et pas moyen de l’arrêter. Le seul moyen que j'ai trouvé pour corriger la bévue est de d'utiliser le smartphone et OsmAnd et de remettre tout en place. Mais cela peut prendre quelques jours s'il s'agit de tout une ville ou d'un village. Cela a quand même un avantage, les zones sont adaptées à une situation plus récentes et réduites. Il est remarquable de constater le nombre de bois rasés, de quartiers entiers qui ont surgi de terre et combien de prairies ont été labourées. Une ligne haute tension y a également été construite. Mais excuses s'il n'y a plus la bonne tension et si certaines caractéristique ont disparu. Si vous trouver un pylône sans fil et sans son ombre, n’hésitez pas à le supprimer. Que personne ne m'ait fait de remarque à ce sujet m'étonne, mais j'ai remarqué que certains font des zones résidentielles beaucoup plus petites, ou ai-je faux ? En fait, je trouve que dans JOSM, pour le “Q”, on devrait insérer une sécurité comme celle qui demande confirmation lorsque l'on déplace une route ou une zone avec trop de nœuds sélectés à la fois. Un compteur signalant le nombre de corrections ou d'additions serait également souhaitable car cela limiterait le nombre d'entrées à jeter lorsqu’on se retrouve avec une erreur qu'on ne parvient pas à corriger.
Pourquoi cartographies-tu ?
C'est toujours gai de se promener par un sentier qu'on a mis soi-même sur la carte. Depuis longtemps je soutiens tout ce qui est “open” et gratuit. C'est aussi une bonne forme d'occupation et une manière de rester à jour. C'est mon SUDOKU à moi. Peut-être inconsciemment le désir de laisser quelque chose à la postérité et d'aider l'humanité. Mais ne philosophons pas trop.
Fais-tu d'autres choses liées à OpenStreetMap ?
Je suis régulièrement les messages du mailgroup pour savoir ce que pensent les autres mappeurs, mais encore entreprendre et entretenir, je ne le fais plus. J'admire le travail des tous ces programmeurs et de ce qu'ils réalisent avec toutes ces données. Mais beaucoup de choses me dépassent.
As-tu des idées sur la façon dont nous pouvons étendre la communauté OpenStreetMap, pour motiver plus de gens à contribuer ?
Ne comptez pas trop sur ceux de mon âge, j'ai essayé mais sans succès. Le problème c'est que la masse de données à introduire est énorme et les connaissances en informatique que cela requiert. Le seuil à franchir est énorme pour la plupart. On trouvera probablement plus d'intéressés parmi les nouveaux pensionnés. Leur connaissance en informatique sont meilleures. Cela doit venir des jeunes en attirant leur attention sur l'énorme quantité de données mises à leur disposition gratuitement comme programmeur, mais les données doivent aussi être introduites. Je suis parvenu à convaincre un prof de géographie à soumettre à des élèves des travaux à l'aide de OSM, mais entre-temps il est lui-même en pension. Il y a des sites comme http://www.seniorennet.be ; ils ont des groupes notamment sur les ordinateurs et Linux ; quelqu'un peut démarrer un groupe.
Quelle est, selon toi, la plus grande force d'OpenStreetMap ?
C'est qu'il fait fi des frontières et qu'il aide à faire un monde meilleur.
Quel est le plus grand défi pour OpenStreetMap ?
De rester comme il est et de résister au piratage et au vandalisme. Heureusement, c'est gratuit et il n'y pas grand chose à gagner. Pourtant je me demande parfois si ce que je mappe ne peut pas être utilisé par des groupes malveillants dans des zones troublées. Bamako et ses environs par exemple.
Comment restes-tu au courant de toutes les petites nouvelles liées à OpenStreetMap ?
Essentiellement via le mailgroup Belge.
As-tu des contacts avec d'autres cartographes ? Comment restes-tu en contact ?
Mon premier contact a été avec Lodde1949 ; à mes débuts nous étions tous deux par hasard à mapper dans le même patelin, lui en JOSM et moi en Potlatch, ce qui peut donner pas mal d'ennuis. Nous avons convenu que j’irais mapper ailleurs, mais il m'a fait remarquer qu'avec JOSM il suffisait de “deux ou trois clics” pour faire une maison. Non sans peine je me suis mis à JOSM. Par curiosité j”ai assisté à une réunion à Anvers où il était surtout question de HOT. J'ai aussi participé à quelques Hangouts. Pour le reste c'est très peu. Il y en a deux près de Mol, mais ils sont très irréguliers.
Pour conclure, y a-t-il encore quelque chose que tu souhaites dire au lecteur ?
Puis-je insister auprès de tous de ne pas effacer ce que d’autres ont introduit, même si c'est bâclé. Effacer peut signifier un adepte de moins. Les images sous-jacentes sont actuellement bien plus précises et mieux alignées que celles utilisées il y a quelques années. J'ai moi-même tendance à effacer et à redessiner, mais je ne le fais qu'avec ce que j'ai auparavant introduit moi-même. Dans JOSM un Ctrl H est vite fait et peut rappeler de bon souvenirs. Parfois je m'exaspère quand je vois que l'on a ajouté des détails alors que la base est mal placée, détails dont je ne vois pas l'utilité. Pourquoi ne pas s'assurer que la base est convenable ?
Bon, j’arrête, car je commence à radoter.
|Mapper van de Maand: Sus (susvhv) uit België|
Wie ben je ?
Sus is mijn computer bijnaam, met de “ç” van François had ik in het begin van de PC's altijd last. (glimlacht) Ik ben geboren in 1933 (tel maar uit ;-) ) in het Brusselse en was technieker op het StudieCentrum voor Kernenergie in Mol, waar ik nu verblijf. Op het SCK heeft men mij bij een herstructurering op brugpensioen gestuurd en ondertussen zit ik al meer dan 25 jaar thuis te genieten. Toen ik school liep was er van computers nog geen sprake. Gelukkig heb ik op het werk de kans gekregen door zelfstudie hardware en software onder de knie te krijgen en met microprocessors en microcontrollers eigen te worden. Tot heden heb ik al mijn desktops in stukken gekocht en zelf gemonteerd. De laatste draait onder Ubuntu. De laptop is onder win10. Laptops koop ik. De ontwikkelingsapparatuur voor microprocessors koste in het begin op het werk peperduur. Enkele jaren na de opruststelling heb ik vastgesteld dat een microcontroller ATMEGA8 nog enkele euro's koste en volledig gratis vanaf een gewone seriële poort van een PC (nu USB) te programmeren was. Nu in het IoT tijdperk kan men onder Arduino Wifi modules (Nodemcu, ESP8266) met allerhande randapparatuur programmeren. Hier draait er één om in de veranda de temperatuur te meten en op het net te zetten zodat ik deze vanaf het net kan uitlezen. Ik heb ook thuis een eigen 1 terabyte Owncloud bestuurd door een Raspberry Pi, ge weet wel, de bankkaartcomputer ontwikkeld voor kinderen (lacht).
Wanneer en op welke manier leerde je OpenStreetMap kennen ?
Mijn verleden van ULM vlieger, rallyrijder, wandelaar en geocacher heeft mij met allerhande kaarten in aanraking gebracht en van in het begin het nut van een GPS laten inzien, en dan heeft men kaarten nodig, liefst gratis.
Gebruik je OpenStreetMap ook zelf ?
Op de Garmin Dakota 20 GPS en op de Android smartphone staan de kaarten van heel Europa en ze worden regelmatig bijgewerkt. Wanneer we nu een busreis doen weet ik steeds waar we zitten, soms beter dan de chauffeur. Zelf reizen met de wagen doen we niet meer.
Hoe map je ?
Ik map nog enkel vanuit mijn luie zetel.
Wat map je zoal ?
Tegenwoordig beschik men over veel betere onderliggende beelden en de AGIV en Crabbestanden voor het nummeren. Wat een verschil met de vroegere uitgerekte beelden van Bing. Eerst laad ik een zonenummer in de tool van Sander, vooral rond Mol, mijn thuisgemeente, en verbeter de huizen, straten, gebieden, huisnummers, gebieden,enz. Tot het hoogst mogelijk getal huizen op de kaart staan. Naargelang het weer buiten kan dat wel enkele weken tot maanden duren om een zonenummer af te werken.
Ik probeer van niet te lang hetzelfde te doen en heb een hekel aan relaties, vooral als men naamfouten oplost. (kijkt triest)
Waar ben jij als mapper het meest trots op?
Dat ik het nog een beetje kan volgen. (lacht)
Vraag eerder waar ben jij niet trots op ?
De “Q” van JOSM (rechthoekig maken) heeft mij al dikke parten gespeeld wanneer een residentieel gebied per toeval geselecteerd is en men het niet opgemerkt heeft omdat gans dat gebied buiten het scherm ligt. Men ziet dan plots tijdens het opladen op het scherm duizenden punten die veranderd worden en daar is geen stoppen meer aan. Het enige die ik gevonden heb in dat geval is er de smartphone met OsmAnd bij te halen om de gebieden terug op de goede plaats te leggen. Dat kan soms enkele dagen duren als het een volledige stad of gemeente is. (kijkt sip)
Het heeft ook wel een voordeel, de gebieden worden aan de recentere situatie aangepast en gesplitst. Het is opmerkelijk hoeveel bossen er gekapt werden, hoeveel wijken uit de grond gestampt werden en hoeveel weiden in akker omgeploegd werden.
Waarom map je ? Wat motiveert je ?
Het is plezierig de paadjes nog eens af te lopen die ge zelf op de kaart gezet hebt en ze te verbeteren indien nodig. (glimlacht) Al lang steun ik al wat “open” en gratis is en het is zeker een goede vorm van vrije tijdsbesteding en een manier om IN te blijven. Dat is mijn SUDOKU. Misschien ook wel onbewust om iets achter te laten en mijn steentje bij te dragen aan het mensdom. Maar laat ons niet filosoferen.
Doe je ook nog andere dingen i.v.m. OpenStreetMap ?
Ik volg regelmatig de berichten van de mailinggroep om te weten hoe anderen de zaak bekijken maar nog iets plannen of onderhouden op langer termijn doe ik niet meer. Ik bewonder wel het werk van al die programmeurs en wat ze met al die gegevens verwezenlijken. Maar dat gaat nu mijn petje te boven.
Heb je ideeën over hoe we de OpenStreetMap gemeenschap kunnen uitbreiden? Of meer mappers kunnen motiveren?
Op mijn leeftijdgenoten mag men niet veel rekenen, ik heb het geprobeerd met enkele maar dat viel tegen. (kijkt sip) Het probleem is de grote massa gegevens die moeten ingebracht worden en de computer kennis die dat vereist. Die instapdrempel is voor de meesten te groot. Bij de actuele op rust gestelden zal men waarschijnlijk meer kandidaten vinden, die hebben al meer computerkaas gegeten. Het moet komen van de studerende jeugd waarbij men moet wijzen op de geweldige database die men gratis tot hun beschikking stelt en waarmee ze kunnen aan de slag gaan als programmeur, en hun vaardigheden kunnen uittesten, maar die data moet dan eerst ingegeven worden. Ik heb wel een leeraar aardrijkskunde kunnen overtuigen om aan zijn studenten enkele opdrachten te geven op basis van OSM, maar ondertussen is die ook al op rust. Er is ook http://www.seniorennet.be , die hebben allerhande mailgroepen o.a. over computers en linux, misschien kan iemand van de jong oprustgestelden daar een mailgroep opstarten. Ikzelf zie dat niet meer zitten.
Wat is de grootste sterkte van OpenStreetMap volgens jou?
Dat het ruim de grenzen overschrijdt en meehelpt om een betere wereld te maken.
Wat is de grootste uitdaging/moeilijkheid voor OpenStreetMap ? Heb je nieuwe ideeën om OpenStreetMap naar het volgende niveau te trekken ?
Om onaangeroerd te blijven en niet gepirateerd of besmet te worden. Gelukkig is het gratis en is er weinig rechtstreeks aan te verdienen voor de krakers. Toch vraag ik mij soms af of het niet kan misbruikt worden als ik in onveilige gebieden dorpen zit te mappen, bv. in Bamako omgeving.
Hoe blijf je op de hoogte van nieuwtjes i.v.m. OpenStreetMap ?
Via de BE mailgroep.
Heb je contact met andere mappers ?
Mijn eerste contact was jaren geleden met Lodde1949, toen waren we allebei in Meerhout aan het mappen, hij met JOSM en ik in Potlatch, en dat kan rare gevolgen hebben. Na afspraak ben ik dan ergens op een andere plaats gaan mappen maar hij heeft mij toen JOSM aangeprezen. “Een huis in 2 of 3 klikken”. Ik ben toen naar JOSM overgestapt, maar dat ging niet zonder moeite.
Uit nieuwsgierigheid ben ik eens naar Antwerpen geweest naar een vergadering waar het vooral over HOT ging. Ik heb ook aan enkele Hangouts deelgenomen.
Om af te sluiten, is er iets dat je de lezer nog zou willen meedelen ?
Mag ik aandringen bij al de mappers het werk van anderen niet te schrappen, ook al is het slordig. Iets deleten is soms een mapper minder. De huidige onderliggende foto's zijn veel nauwkeuriger en liggen beter op hun plaats dan de foto's die men voor enkele jaren gebruikte. Ikzelf heb ook de neiging om iets af te vegen en nieuw te zetten, wat sneller gaat, maar dat doe ik enkel met zaken die ikzelf ingetekend heb. In JOSM is een Ctrl H rap uitgevoerd en het brengt soms herinneringen mee.
|Mapper of the Month: Sus (susvhv) from Belgium|
Who are you ?
Sus is my computer related nickname. In the early days of the PCs I always had problems with the ç of François, my real name (smiles). I was born in 1933, (I leave it to you to calculate my age) in Brussels and I was a technician at the Belgian Nuclear Research Center or SCK in Mol, where I live at the moment. I was sent on early retirement during a restructuring at the SCK. I have been enjoying home life for over 25 years since that moment. When I went to school, there were no computers. Luckily, I got the opportunity at work to spend time to learn about hardware and software and get familiar with microprocessors and microcontrollers. Until now, I have bought all my desktop computers as parts and assembled them myself. The last one runs Ubuntu. My laptop runs Windows 10. Unlike the desktops, I buy my laptops. The hardware for the development for microprocessors we used at work was very expensive in the early days. A few years after my retirement, I noticed that a microcontroller, such as the ATMEGA8 costed only a few euros and they were freely programmable from the serial port (now from USB) of a PC. Today, in the Internet of Things area, one can program Arduino computers with Wifi modules (Nodemcu, ESP8266) to control all kinds of peripherals. I have one running that measures the temperature in the veranda and sends the data to the net, from where I can read it. I also have a 1 terabyte Owncloud server running on a Raspberry Pi. You know, those bankcard-sized computers developed for children (smiles)
Where and when did you learn about OpenStreetMap ?
My history as a pilot of ULM aircrafts, rally driver, hiker and geocacher brought me in contact with all kinds of maps and made me see the usefulness of GPS systems. Those systems requires maps, preferably free maps. I have an OpenStreetMap account since 2008, but I was using the maps already before that time. There were plenty of empty areas on the map back then. I only started mapping in 2011. The initial hesitation was big, especially because I was doing it on my own. Accidentally there was a power pylon in my street where the power line ended in OpenStreetMap. I continued that line as far was possible. When that power line became visible on the map, the ball kept on rolling. I started recording hiking paths, taking pictures of house numbers, surveying new streets and their names, started mapping land use etc. I was busy filling the empty areas !
Are you using OpenStreetMap yourself ?
I have the maps of the whole of Europe on my Garmin Dakota 20 GPS and the Android smartphone, and update them frequently. When we now make a trip with the bus, I often know better where we are than the driver. We no longer travel with car. I also have the ski pistes of Andorra in my pocket. On the smartphone with 32 GB memory, I use OsmAnd, Locus and Oruxmaps. I also tried Vespucci but found it hard to key in the house numbers in full daylight and with sweaty fingers.
How do you map ?
The only mapping I do at the moment is from my lazy chair. As editor I only use JOSM. When JOSM was a memory hog, I switched to other editors, but most problems from the early days are fixed and it contains more and more useful features, a.o. the links to aerial imagery for Flanders. I visited a Missing Maps party in Antwerp, and I also "filled a few squares" when Jorieke recently asked for help for a HOT task. It took some time to adapt. I sometimes have difficulties to follow the rules, but this does not always help the overall quality of the map.
What do you map ?
Nowadays we have access to aerial imagery of much better quality. Furthermore we are allowed to use AGIV and CRAB data for house numbers. This is a big improvement compared to the low quality imagery from Bing. I use the tool developed by Sander for importing house numbers. I work mainly around Mol, where I live. I try to improve the houses, streets, land use and house numbers. I keep going until all buildings are mapped. Depending on the weather, it can take from a few weeks to months before I finish a post code area.
I try not to do the same type of mapping for a long period. I also hate relations [associatedStreet relations], especially when I try to fix naming errors.
What is your biggest achievement
That I can keep up (smiles)
The question should have been what is your biggest mistake ? The "Q" in JOSM (making square corners) have given my several bad experiences, e.g. when I accidentally selected a residential area without noticing because the whole area is outside the screen. Then during upload, you notice that you have modified thousands of points, but there is no way back. The only way I found so far is to grab the smartphone with OsmAnd and reposition the nodes of the area. This can take several days when it is a complete town or village (note: We have informed him about the reverter plugin for JOSM after reading the first draft of the interview). The good things is that the land uses get updated to the current situation. I also split them in more manageable areas. It is remarkable how many trees have been cut, how many new residential areas are build and how many meadows are used as farmland nowadays. I had similar problem with a high voltage line. That took also quite some time. My apologies when I accidentally removed some tags. The line is now also cut into pieces. I could not find all pylons back, so when you find an isolated one, please remove it. That I did not receive complaints about my mistakes, is a small miracle. I assume others have encountered the same problem, because nowadays the residential areas are mapped with smaller polygons. Or am I mistaken ? It would be nice that the "Q"-key in JOSM gets the same warning one receives when a large number of objects is moved. An alternative is a counter that keeps track of the new or updated nodes. This would allow one to avoid large uploads or that one has to throw away a lot of work in case of unrecoverable mistake.
Why do you map ? What motivates you ?
It is nice to walk along the paths that you have mapped before and improve them where needed. (smiles). I support everything open and free for a long time, it is a useful way to spend your spare time and you stay young. This is my form of SUDOKU. Maybe it is also because I want to leave something behind and help humanity a bit. But lets not get philosophical.
Do you do anything else besides mapping ?
I frequently read the messages on the mailing list to understand other people's views, but I no longer plan or maintain anything on the long term. I do admire the work from all the programmers and what they accomplish with the data. But I do not know how they do it.
How can we extend the OpenStreetMap Community ?
You should not count too much on the people from my age group, I have tried, but the results were disappointing. The problem is that huge amounts of data have to be entered and that it requires a good knowledge of computers. Most of them find it too difficult to get started. The current group of people that retires will contain more candidates, as they are already familiar with computers. I think we have to look at the students, and point them to the great database that is freely available to them and which they can use to test their skills as a programmer, with one caveat: the data has to be added first.
I did succeed in convincing a geography teacher to give his students a couple of exercises based on OSM, but he's already retired now. There's a lot of mailing list activity on http://www.seniorennet.be (note: a social network website for retirees), also about computers and Linux. Maybe some of the younger pensioners among you want to start a mailing list there. But I won't do that.
What is the strongest feature of OpenStreetMap for you?
That it goes beyond boundaries and helps to improve the world.
What is the biggest challenge for OpenStreetMap ?
To stay pure and not attract "pirates". Luckily it is free and there is no direct gain for hackers. However, I sometimes wonder whether is can be misused when I am mapping in dangerous zones, e.g. in the area of Bamako.
How do you stay on top of OpenStreetMap news ?
Via the Belgian mailing list.
Do you have contact with other mappers ?
Years ago, I met Lodde1949, while we both were mapping in Meerhout . He used JOSM and I was using Potlatch, and that had weird results. After mutual agreement, I started mapping elsewhere, but he recommended JOSM to me. "A house in 2 or 3 clicks". I made the switch to JOSM then, but that was not without effort. Out of curiosity I once visited a Missing Maps party in Antwerp. I also participated in some hangouts. For the rest I do not have a lot of contact with other mappers. I know some around Mol, but they contribute infrequently.
To round up, is there anything else that you want to mention.?
Can I insist that no one simply removes the work of others, even when it is sloppy ? Deleting something, might mean that you loose a mapper. The current aerial imagery is much more detailed and better aligned than ever before. Even I have sometimes the tendency to wipe out something and replace it with a new object, because that goes faster. But I will only do that when I have added the item myself. In JOSM, you can easily use CTRL-H (show history) and that might bring back memories. I am sometimes annoyed when I see objects that were added to a sloppy background or details that do not seem useful to me. Why did the mapper not improve the background first ? Allez, I am whining again (laughs)
|Comment on TUTORIAL: Stand alone Squeezebox server and player for BBQ by Tony||Hi Gerrelt,
I have got to the bottom of it, Jessie lite seemed to be missing the ntfs-3g file, based on the following advice:
Set ownership when you mount the drive. For example if your drive that you want to mount is /dev/sda1:
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/USBDRIVE/
or if later you want to change permissions of files on the drive after mount, try to add a line to /etc/fstab something like this:
/dev/sda1 /media/USBDRIVE ntfs-3g auto,users,permissions 0 0
Note that ntfs-3g is a built-in package in Raspbian Jessie (but Not Jessie Lite), if you are using older distribution you need to install it before mount (sudo apt-get install ntfs-3g). You can check easily that this package has already installed: dpkg -l | grep ntfs-3g
|Openfire crashing every few days after upgrading to ubuntu 16.04 (raspberry pi)|
I decided to upgrade to Ubuntu 16.04 form 14.04 on my pi 2, after doing a fresh install of Ubuntu 16.04 LTS 'classic' openfire has started crashing every few days.
Looked through the logs and i did not see any error messages on why it crashed.
raspberry pi 2
Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1052-raspi2 armv7l)
Java Version 1.8.0_121 Oracle Corporation Java HotSpot(TM) Server VM