Uncategorized

Raspberry Pi Camera Server

It’s so easy to set up a Raspberry Pi Camera Server because of RPi-Cam-Web-Interface. I’m using these materials;

  • Raspberry Pi Zero W with Jessie Lite
  • Raspberry Pi NoIR Camera Board, Version 2
  • Raspberry Pi Zero Camera Adapter (this is required because the camera port on the Raspberry Pi Zero is smaller compared to the camera port on the Raspberry Pi 2 or 3)

Here are the steps:

  1. Prepare a new Raspberry Pi with Raspbian
  2. Make sure it’s connected to a network and you can ping it from your computer
  3. Confirm that the camera is working, run this command you should see the live video for 6 seconds. If this works then proceed to the next step. Otherwise fix this first.
    raspistill -v -f -vf -t 6000
  4. Run these commands to install the RPi-Cam-Web-Interface:
    sudo apt-get update
    git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.gitcd RPi_Cam_Web_Interface
    chmod u+x *.sh
    ./install.sh
  5. From your computer, go to http://192.168.0.10/html/ (IP is your Raspberry Pi’s IP)
  6. Voila!
Uncategorized

Upgrade Windows 10 Home to Professional on a Dell laptop

I have a Dell XPS laptop and it came with Windows 10 Home installed. I had a Windows 10 Professional license tied to my Microsoft account.  I wanted to upgrade my Home installation to a Professional installation, here’s how I did it:

UPDATE: The following steps did not work as I had hoped. It didn’t not accept my other Microsoft account’s Windows 10 Pro license. I ended up buying the Windows 10 Pro license from Play-Asia for very cheap. I still went through steps 1-5 and then I entered the new Windows 10 Pro key. And it didn’t work! I ended up calling Microsoft and activated it over the phone. And done! 🙂

  1. Open Windows 10 Settings and go to activation
  2. Click on Product Key and use this one VK7JG-NPHTM-C97JM-9MPGT-3V66T. (This is a generic Windows 10 Professional key, it will simply allow you to perform the upgrade)
  3. Perform the upgrade
  4. After restart, Windows will ask for activation
  5. Open Windows 10 Settings and go to activation
  6. Click on Troubleshoot
  7. Click on “I recently changed hardware on this device” and select the license from the Microsoft account
  8. Sign in to your Microsoft account (the one with the Windows 10 Professional license) and voila!
Linux

Docker CE on Linux Mint 18.1

Here are the instructions to installing Docker CE on Linux Mint 18.1 Serena.

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

The following line in the SOURCE automatically determines the distribution, which is Serena, but there are no Linux Mint packages for Docker. You have to change it to the matching Ubuntu distribution. FYI Linux Mint Serena is based on Ubuntu 16.04 Xenial.

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce

Test the Docker install with this command. It will automatically download the hello-world image and run it.

sudo docker run hello-world

SOURCE: https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository

Linux

Ubuntu 16.04 Argghh!

I have a simple request, put the minimize, maximize and close buttons on the right hand of the window. Guess what? Canonical have completely disabled the ability to do that. Argghh! For that reason I refuse to use Ubuntu. Linux is meant to be open and customizable! I’m looking for something else…I’m going to try Linux Mint 🙂

Uncategorized

Raspbian (PIXEL) with SDL2 (compiled from source)

Here are the instructions to (re)installing SDL2 on Raspbian by compiling from source.

sudo apt-get remove --purge libsdl2-dev
sudo apt-get autoremove
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile1-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake
sudo apt-get install libraspberrypi-dev raspberrypi-kernel-headers
mkdir build && cd build
wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz
cd SDL2-2.0.5
./configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl
make
sudo make install
sudo ldconfig

Hooray! SDL performance is much much faster! 🙂

SOURCE 1: https://solarianprogrammer.com/2015/01/22/raspberry-pi-raspbian-getting-started-sdl-2/
SOURCE 2: http://choccyhobnob.com/tutorials/sdl2-2-0-5-on-raspberry-pi/

Raspberry Pi

Raspbian (PIXEL) with SDL2

UPDATE: SDL performance is very slow. I don’t think it has anything to do with the Raspberry Pi 1 that I’m using. It just can’t be that slow. I believe it has more to do with the fact the libsdl-dev package is not using OpenGL. It’s not compiled for that use. I might have to try build it from source….


Here are the ins

  1. Get Raspbian running
  2. Enable VNC and SSH
  3. sudo apt-get update
  4. sudo apt-get install libsdl2-dev
  5. Run your app

To run without desktop manager:

  1. Edit /home/pi/.config/lxsession/LXDE-pi/autostart
  2. Comment out all lines that start with @ with #
  3. Add your app and precede with @

Source: http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/auto-running-programs-gui

To turn off the cursor:

  1. Edit /etc/lightdm/lightdm.conf
  2. Find the line ‘xserver_command’ under [SeatDefaults]
  3. Change it to ‘xserver_command = X -nocursor’