#HOW-TO: Virtualize Raspian with Qemu
0.Workspace
mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev
1.Install Qemu
https://web.archive.org/web/20131210001638/http://xecdesign.com/compiling-a-kernel/ | |
https://web.archive.org/web/20131209235952/http://xecdesign.com/compiling-qemu/ | |
https://web.archive.org/web/20131210001407/http://xecdesign.com/working-with-qemu/ | |
https://web.archive.org/web/20131210001526/http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ |
cd ~/raspi | |
git clone https://github.com/raspberrypi/linux.git | |
wget http://xecdesign.com/downloads/linux-qemu/linux-arm.patch | |
patch -p1 -d linux/ < linux-arm.patch | |
cd ~/raspi/linux | |
make ARCH=arm versatile_defconfig |
#HOW-TO: Virtualize Raspian with Qemu
0.Workspace
mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev
1.Install Qemu
#!/bin/bash | |
# For Ubuntu. | |
# Cobbled together from: | |
# http://elinux.org/RPi_Kernel_Compilation | |
# http://mitchtech.net/raspberry-pi-kernel-compile/ | |
# Assumes you already have https://github.com/raspberrypi/linux cloned at ~/rpi | |
cd ~/rpi/linux |
#!/bin/bash | |
# For Ubuntu. Probably works elsewhere too. | |
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf | |
# It also chroots you into the directory, so you can act as a Raspbian user. | |
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/ | |
mkdir -p ~/rpi | |
cd ~/rpi |
# | |
# Linux/arm 3.10.21 Kernel Configuration | |
# | |
CONFIG_ARM=y | |
CONFIG_MIGHT_HAVE_PCI=y | |
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
CONFIG_HAVE_PROC_CPU=y | |
CONFIG_STACKTRACE_SUPPORT=y | |
CONFIG_HAVE_LATENCYTOP_SUPPORT=y | |
CONFIG_LOCKDEP_SUPPORT=y |
#!/usr/bin/ruby | |
class IPGenerator | |
public | |
def initialize(session_count, session_length) | |
@session_count = session_count | |
@session_length = session_length | |
@sessions = {} | |
end |
#!/usr/bin/ruby | |
# | |
# Moved to: https://github.com/uriel1998/volumerb | |
# | |
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 | |
# Unported License. To view a copy of this license, visit | |
# http://creativecommons.org/licenses/by-sa/3.0/. | |
# | |
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj); |
#!/usr/bin/liquidsoap | |
set("log.file.path", "/dev/null") | |
set("log.stdout", true) | |
set("server.telnet", false) | |
set("harbor.bind_addr","0.0.0.0") | |
# tweak these values if you have lag, skipping, buffer underrun etc | |
# set("frame.duration",0.04) | |
# set("root.max_latency",60.) |
#!/usr/bin/python | |
import time | |
import datetime | |
import random | |
timestr = time.strftime("%Y%m%d-%H%M%S") | |
f = open('access_log_'+timestr+'.log','w') | |
ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"] | |
referers=["-","http://www.casualcyclist.com","http://bestcyclingreviews.com/top_online_shops","http://bleater.com","http://searchengine.com"] |