hcitool can't maintain connections on Raspberry Pi - raspberry-pi

I'm trying to install bluez on a Raspberry Pi. It seems to work, but hcitool lecc always disconnects after ~2 seconds. This happens on a freshly installed os. I follow the steps listed here: http://www.elinux.org/RPi_Bluetooth_LE.
Installing bluez with apt-get instead of building the source seems to have fixed my problem.
sudo apt-get install bluez

sudo apt-get install bluez
will fix this.
When I asked this question, there was no update bluez package in the repos that have bluetooth capability. I must have been compiling from source wrong

Related

How to switch from strongswan to openswan

Having installed strongswan on my raspberry pi I want to switch to openswan but it is not working
built openswan and tried sudo make install but it is failing

How to update SANE in raspberry to new version?

In the latest raspbian, after entering "sudo apt-get install sane", the version sane 1.0.25 is installed. I need to have version 1.0.27, which already supports my scanner. How can I install the latest version?

Running Raspberry Pi 1 OS on Raspberry Pi 3

I have a Raspberry Pi 1 running Raspbian. I tried running the SD card from it on a Raspberry Pi 3 but it didn't boot.
I've read various things about upgrading a Raspberry Pi 2 install to run on Raspberry Pi 3, but little for upgrading from 1 to 3.
Can anyone please help?
All you need to do is update the firmware of your raspberry Pi while the sd card is still plugged in your RPi 1,
Step 1, Update the System, sudo apt-get update
Step 2, Upgrade the System sudo apt-get upgrade
Step 3, Update the firmware itself, sudo apt-get install rpi-update
Reboot and shutdown your RPi 1.
These two links might be helpful for troubleshooting,
Update the Firmware on a Raspberry Pi
Pi 3 cannot boot images
that for with Pi 2?
What is the version of the OS you are running?
uname -a
If it is older than the introduction date of you R Pi2 then it probably will not work. The newer OSs are backward compatible. So I would make a new OS SD boot card.
Have you tried the following commands?
(there is one more command, than Sufiyan wrote, he just installs it, but is not running it)
sudo -s
apt-get update
apt-get dist-upgrade
apt-get install rpi-update
rpi-update
halt
That worked for me, was once migrating some old RasPis to the new ones.
The OS for Raspberry Pi 1 is mainly the same as Pi 3,
so you should be able to install the software for this transfer.
Put NOOBS on the Pi 1's SD and boot. Find the "edit config" area and change the OS to Pi3
First, find a USB to MicroSD card adapter (found on Amazon for dirt cheap). Plug in the Pi 3's SD Card and choose it as the copy to device. Choose the Pi 1's SD as the source, then begin the copy. This can take up to 30 minutes. Next, safely eject the Pi 3's SD Card and format the Pi 1's SD. Next, insert the SDCard into your Pi 3 and boot.
You now have Raspbian Full on the Pi 3.

rnpm command not found after "sudo npm install rnpm -g"

I am still new to coding and I ran into a weird problem.
I am trying to use the facebook SDK in my react native app and I was following the tutorials for installing rnpm. However, after I installed rnpm package the "rnpm" command is still unusable. Can someone point out what I did wrong? I already installed the package globally.
Since last November, rnpm is part of the React Native core, so you don't need to install rnpm anymore. You can run directly 'react-native link' to link the dependencies that you instal using npm.
You need to install npm on your macbook
issue
sudo port install npm
https://medium.com/#samthor/installing-npm-on-mac-os-x-with-macports-27e9f380ffb7#.58c58rzca

Raspberry pi freeze when trying to install vlc

I am trying to install vlc on my raspberry pi 3. Using sudo apt-get install vlc. The process starts, but eventually freezes. This is the only time it freezes and it does so every time I try. Cant reboot through ssh either. I use the official stontronica power supply, so doubt that is the problem.
Any help is much appreciated