Vadim Tabakman

Static IP on Raspberry PI 

Static IP on Raspberry PI

As I've been doing a bunch around cameras, streams, security, I wanted to make sure I can move my Raspberry Pi around with out worrying about the IP address changing.  That's really because my house has a pretty decent router that protects from incoming traffic.

But I've added some redirects and port forward, to allow certain things through, but securely :).  Well, setting the IP address on the Pi wasn't obvious, at least not to me.  So here's a few steps:

sudo nano /etc/dhcpcd.conf

Then to change the wifi connection to a static IP, add this (or modify that file)

interface wlan0

static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

Posted by Vadim Tabakman Saturday, October 14, 2017 10:10:00 PM Categories: Raspberry PI static ip

Streaming Video with the Raspberry Pi 

Streaming Video with the Raspberry Pi

I bought one of those cheapy camera boards for the Raspberry Pi, and I thought it'd be good to have it watching outside my office all the time.

The thing is, I didn't want to just take pictures, I wanted to stream video from it.

RPi-Cam-Web-Interface to the rescue. Thanks to all the people that put that together, because it was super easy to configure.

https://elinux.org/RPi-Cam-Web-Interface 

Posted by Vadim Tabakman Saturday, October 14, 2017 10:02:00 PM Categories: camera Raspberry PI stream video

Audio issues on Raspberry Pi 

I had a lot of audio issues using Analog option.

The following helped:

sudo -iE

cd /boot

nano config.txt

-- add the following line:
audio_pwm_mode=2

reboot

Posted by Vadim Tabakman Saturday, October 14, 2017 9:01:00 PM Categories: audio Raspberry PI

Simple Website on a Raspberry PI 

Simple Website on a Raspberry PI

Install a few important components

sudo apt-get install apache2 php5 libapache2-mod-php5

Start the apache service

sudo service apache2 restart

Modify the default page:

cd /var/www/html/
sudo nano index.html

sfd

 

Posted by Vadim Tabakman Monday, October 9, 2017 10:10:00 AM Categories: apache Raspberry PI website

apt-get died unexpectedly segmentation fault 

apt-get died unexpectedly segmentation fault

What an exciting title for a post :)

This is purely for me.  After starting my Raspberry PI 3, I went to do an update and the "sudo apt-get update" failed with an error that contained "has died unexpectedly" and "segmentation fault".

After many minutes googling and binging I found that this worked :

cd /tmp

wget http://mirrordirector.raspbian.org/raspbian/pool/main/a/apt/apt_0.9.7.7+rpi1_armhf.deb

dpkg -i apt_0.9.7.7+rpi1_armhf.deb

 

But, I ended up going to "http://mirrordirector.raspbian.org/raspbian/pool/main/a/apt/" to find a package that existed and that I could actually install without an error.

It is meant to update your "apt-get', but it actually downgraded it.  I'm hoping after the update/upgrade, it will update that also.

Hope this helps someone.

Posted by Vadim Tabakman Monday, October 2, 2017 6:02:00 PM Categories: apt-get Raspberry PI