Articles

New article

my bad

published on 17 Jan. 2015

*** Update ***
The mail server should be back up and working as intended.

Sorry for the downtime over the past couple of days :'( I switched everything over to a new VPS, and still haven't had the time to set everything up :-/ i.e. the mail server, etc etc.
Edit Destroy

Build QEMU with SPICE video support for an OS X VM

published on 11 Jan. 2015

In this tutorial / guide I hope to show one how to build QEMU with SPICE support, so one can use the qxl video driver when running a OS X under a QEMU Virtual Machine.

My current setup is the following, MBPr running archlinux with the most recent packages. (I run pacman -Syu probably once a week). However when I installed QEMU from AUR there wasn't support for SPICE at the time, so I decided to build QEMU from git source to include support for SPICE.

I chose to install the following packages in /opt/local to keep things separate from the archlinux packages. I run the following commands in a terminal.

mkdir /opt/local
mkdir /opt/src
cd /opt/src
git clone git://git.qemu-project.org/qemu.git
Note QEMU is almost updated daily, so after cloning the repo to your local box, running git pull will get one updated to the latest greatest version of QEMU.
cd /opt/src
git clone git://cgit.freedesktop.org/spice/spice-protocol
git clone git://cgit.freedesktop.org/spice/spice
wget http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz
tar xvzf celt-0.5.1.3.tar.gz
export PKG_CONFIG_PATH=$INST_ROOT/lib/pkgconfig:$INST_ROOT/share/pkgconfig
cd $SRC_ROOT/spice-protocol
./autogen.sh --prefix=$INST_ROOT
Note if it complains about missing m4 directory run, mkdir m4
./autogen.sh --prefix=$INST_ROOT
make install
cd $SRC_ROOT/celt-0.5.1.3
./configure --prefix=$INST_ROOT
make install
Note only if you don't have a recent enough version of pixman (spice configure will complain if you need it)
cd $SRC_ROOT/pixman
./autogen.sh --prefix=$INST_ROOT
make install
 
cd $SRC_ROOT/spice
./autogen.sh --prefix=$INST_ROOT
make install
 
cd $SRC_ROOT/qemu
./configure --prefix=$INST_ROOT --target-list=x86_64-softmmu --enable-spice
make

Next, follow the steps outlined in this guide. Remember to add -vga qxl to the QEMU command line argument to use the SPICE video driver. The qemu command I'm using to get OS X to boot looks like the following,

qemu-system-x86_64 -enable-kvm -m 4096 -cpu core2duo -machine q35 \
-usb -device usb-kbd -device usb-mouse \
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
-kernel VM/chameleon_svn2400_boot -smbios type=2 -device ide-drive,bus=ide.2,drive=MacHDD \ 
-drive id=MacHDD,if=none,file=VM/osx-mavericks.img \
-netdev user,id=hub0port0 -device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \
-vga qxl
After following these steps one should be able to boot OS X (10.9.5) using QEMU on a Linux based computer using the SPICE qxl video driver.

External Links

http://www.spice-space.org/page/Building_Instructions
http://wiki.qemu.org/Main_Page
http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/

Edit Destroy

iOS / iDevice Serial Communication

published on 09 Jan. 2015

This is a blog post of a google doc I wrote up a while back.

Objective

To communicate an Arduino micro controller to an iPhone 3GS using serial communication.


Requirements

External Links

Setup

I then wrote a simple Arduino sketch to print Hello World! to serial buffer on the iPhone. The sketch looks like the following,

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("Hello World!");
delay(1000);
}

Soldering the Dock Connector

I would recommend having a 3rd hand, sheet of paper, and masking tape.

INSERT IMAGE!!! INSERT IMAGE!!!

Now according to the below diagram pin 13 on the dock connector is for serial RX com and pin 15 can be used for the GND.
INSERT IMAGE!!!

Testing serial receive communication on iPhone

  1. jailbreak iDevice
  2. install cydia
  3. search for minicom within cydia
  4. install minicom
  5. open minicom with root, # minicom
  6. set serial port to /dev/tty.iap
  7. change baud rate to 9600
  8. turn off hardware / software flow control

Edit Destroy

Stainless steel brewstand build

published on 04 Jan. 2015

Here are some pictures of my stainless steel brewstand build.
stainless steel tubing framing the tubing blake cutting tubing framing the base sizing casters on base spot welding the top spot welding the top2 base / top center diamods center diamods complete support arms support arms complete burner / wind screen wind screen / burner complete support arms brewstand almost complete brewstand complete
Edit Destroy

How to list the groups a user belongs to on a Linux system

published on 03 Jan. 2015

To list the groups a user belongs to on a Linux system, run the following command in a terminal.
$ groups [userName]
i.e.
$ groups capin
The output should look something similar to,
sys lp wheel uucp lock scanner vboxusers sambashare kvm libvirt rvm users

Edit Destroy

How to check the distribution on a Linux system

published on 03 Jan. 2015

To check the distribution of current a running Linux system, run the following command in a terminal.
$ cat /etc/*-release

The output will look like the following,
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

Edit Destroy

How to restart a Ruby on Rails application running in Phusion Passenger

published on 03 Jan. 2015

To restart a Ruby on Rails application running in Phusion Passenger, run the following command in a terminal.
$ touch tmp/restart.txt

Edit Destroy

How to start SSH server in Arch Linux

published on 03 Jan. 2015

In order to start the SSH server in Arch Linux, run the following command in a terminal.
$ systemctl start sshd

Edit Destroy

How to see the partition layout of a disk

published on 03 Jan. 2015

To see the partition layout of a disk, run the following command in a terminal.
$ lsblk

Edit Destroy

How to test disk write speed

published on 03 Jan. 2015

In order to test the write speed of your HDD (Hard Disk Drive) or SSD (Solid State Drive) run the following command in a terminal.
$ time dd if=/dev/zero bs=1024k of=tstfile count=1024

Edit Destroy

nice try :P

published on 02 Jan. 2015

nope
Edit Destroy

How to display a list of users on a UNIX system

published on 02 Jan. 2015

$ cat /etc/passwd

Edit Destroy

hi chris

published on 01 Jan. 2015

will this work?
Edit Destroy

Hello Diana

published on 30 Dec. 2014

Let's kick some ass at trivia. bold
Edit Destroy

How to add a user to a group using Arch Linux

published on 30 Dec. 2014

# gpasswd -a [user] [group]

or

$ sudo usermod -a -G [group] [user]

Edit Destroy

hello rails

published on 29 Dec. 2014

This is my first blog post using Ruby on Rails :D
Edit Destroy

New article