Jason Davey

Developer, programmer and infrastructure specialist.

About
Photos
  • Jason Davey16th January 2017

    Emulate Raspberry Pi - Raspbian Jessie with NGINX and PHP using QEMU

    Download QEMU
    https://qemu.weilnetz.de/w32/qemu-w32...

    Download Raspbian Lite
    http://vx2-downloads.raspberrypi.org/...

    Download Kernel
    https://github.com/dhruvvyas90/qemu-r...

    Install QEMU

    Copy over the Raspbian and Kernel files to the QEMU installation directory

    cd C:\Program Files (x86)\qemu
    qemu-system-arm -kernel kernel-qemu-4.4.13-jessie -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -drive "file=2016-11-25-raspbian-jessie-lite.img,index=0,media=disk,format=raw" -net nic -net user,hostfwd=tcp::10022-:22,hostfwd=tcp::10080-:80

    Create a link between mmcblk and the virtual sda device

    /etc/udev/rules.d/90-qemu.rules

    KERNEL=="sda", SYMLINK+="mmcblk0"
    KERNEL=="sda?", SYMLINK+="mmcblk0p%n"
    KERNEL=="sda2", SYMLINK+="root"

    sudo passwd root
    passwd

    apt-get update

    apt-get install nginx-common
    nano /etc/nginx/sites-available/default
    #listen [::]:80 default_server; (Remove IPv6)
    apt-get install nginx

    apt-get install php5-fpm

    Uncomment PHP lines
    service nginx reload

    nano /etc/php5/fpm/php.ini
    display_errors=on

    service php5-fpm restart

    nano /var/www/html/info.php

  • Jason Davey19th November 2016

    This is just a sample entry for testing this profile theme. Feel free to click around and try things out. The contact page will be added shortly where you'll be able to get in contact.

  • Jason Davey19th November 2016

    First test entry.

Sponsored

Empower your business.
Frozen Tiger empowers business owners to accomplish their goals through the latest technology and ideas.