ZFS setup notes

Posted on Sun 05 March 2017 in posts

install archiso

# sudo pacman -S archiso
# sudo -i or su root

create dir to hold arch live
# mkdir -p ~/archlive
# cp -r /usr/share/archiso/configs/releng/* ~/archlive

edit pacman.conf to add achzfs vim ~/archlive/pacman.conf

[archzfs]
SigLevel = Optional TrustAll
Server = http://archzfs.com/$repo/x86_64

add archzfs-linux …


Continue reading

Installing and configuring php on arch linux

Posted on Sun 28 August 2016 in posts

Installing and configuring php on arch linux

  • Install php sudo pacman -S php php-fpm php-mcrypt
  • Configure timezone in /etc/php/php.ini with date.timezone = America/Denver
  • Install and configure mariaDB
sudo pacman -S mariadb
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql

# uncomment the following lines from …

Continue reading

Install arch linux on rpi3

Posted on Tue 07 June 2016 in posts

Follow instructions from the following url to install:

https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3

change root password: tp root

install some software:

pacman -S sudo gvim

uncomment the visudo line for wheel

$ sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
$ locale-gen
$ echo LANG=en_US.UTF-8 …

Continue reading

VPN Setup

Posted on Fri 26 February 2016 in posts

Used the following tutorial for generating keys: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04

To set up a new client

go to /etc/openvpn/easy-rsa run command ./build-key clientname to generate keys then just copy the keys and make a config on the client

files necessary for client

client.crt …


Continue reading

Debian static network config for 4 port ethernet adapter

Posted on Sun 14 February 2016 in posts

Network config for camera system

# edit the interfaces file `sudo vim /etc/network/interfaces` and add the
following lines

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    mtu 9000
    # to connect to switch, use the following …

Continue reading

Install cuda 7 on Debian 8 Jesse

Posted on Fri 12 February 2016 in posts

From fresh install

install vim, sudo, htop

$ su root
$ apt-get update
$ apt-get install vim sudo htop

export EDITOR=vim

add recorder as sudo $ visudo recorder ALL=(ALL) NOPASSWD: ALL

install needed libraries for cuda install

apt-get install gcc-4.8 make linux-headers-amd64 gcc build-essential

download cuda runfile Version 7.0 (Important …


Continue reading

Arch install

Posted on Fri 24 April 2015 in posts • Tagged with arch

Had to switch secure boot off of windows mode in the bios

set keyboard layout with # loadkeys dvorak

partition the disk with gdisk gdisk /dev/sda o (create new partition table) n (add new partition) # Needs 2 partitions: EFI (ef00) roughly 500Mb Linux? w (write partition to disk)

make filesystem …


Continue reading

Laptop setup with arch

Posted on Wed 17 September 2014 in posts • Tagged with arch

  • configure internet connection
  • set up partitions
  • create filesystems (ext4 ...)

Mount partitions:

(mount root) mount /dev/sda1 /mnt
(mount home) mount /dev/sdb1 /mnt/home
  • select a mirror from /etc/pacman.d/mirrorlist

Install base and base-develop

 pacstrap -i /mnt base base-devel

Generate fstab

genfstab -U -p /mnt >> /mnt/etc …

Continue reading

Printing in arch linux

Posted on Thu 27 March 2014 in posts • Tagged with arch

install cups, gsfronts hplib

    pacman -S cups gsfonts hplib

    hp-setup -i

when running the hp-setup command it gave an error that no PPD file was found I also had to change the usb port from a front port to a port on the motherboard for whatever reason. I had to …


Continue reading

Installing arch linux on desktop

Posted on Tue 25 March 2014 in posts

created two partitions with gparted. One is a 180GB HDD the other is a 60GB SSD

use dd to create bootable usb drive

Select arch linux x64 install

change keyboard to dvorak

    loadkeys dvorak

mount the devices

    mount /dev/sda1 /mnt
    mkdir /mnt/home
    mount /dev/sdb1 /mnt/home

edit …


Continue reading

Mass delete google voice messages

Posted on Tue 11 March 2014 in posts

Install simplejson

sudo pacman -S python-simplejson

Install py-googlevoice from aur

yaourt -S python-pygooglevoice

Change line 70 of voice.py

in usr/lib/python2.7/site-packages/googlevoice/voice.py galx = re.search(r"name=\"GALX\" type=\"hidden\"\n *value=\"(.+)\"", content).group(1)


Debugging remote dev server

Posted on Thu 06 March 2014 in posts

Allow runserver to accept requests from any address

By default, the runserver command will not accept outside connections.

python manage.py runserver 127.0.0.0:8000

This will only accept connections from 127.0.0.0, if you are connected to a remote server and not using port forwarding …


Continue reading

Setting up Less CSS with Django

Posted on Thu 23 January 2014 in Python • Tagged with less, django, css

I recently started using Less Css with Django, after using it briefly I found that I did not want to manually compile Less after making changes during development. Using this approach I am able to compile Less client-side during development and have django-compressor compile server-side on live site.

1. Install …


Continue reading

South migration - table already exists

Posted on Tue 24 September 2013 in Python • Tagged with python, django, south

I was recently adding a slug field to a model in a Django application when I ran into this error when doing the South migration:

Error in migration: test_app:0002_auto__add_field_category_slug
DatabaseError: table "_south_new_test_app_category" already exists

When South makes changes to an existing table, it creates a new table with a …


Continue reading

Using The ADXL335 Accelerometer With Arduino

Posted on Wed 20 October 2010 in posts • Tagged with adxl335, arduino

Setting up the DXL335 triple axis accelerometer is pretty straight forward. First I soldered 6 straight breakaway headers into the ADXL335 in order to easily plug the breakout board directly into the analog pins in the Arduino.

Once soldered I plugged the accelerometer in to the following pins:

Breakout Pin …

Continue reading

750 Words

Posted on Wed 24 March 2010 in Writing • Tagged with writing

I have been using the site 750words.com for a while now and have come to really enjoy using it. At first I had a little trouble navigating the site and the links didn’t seem very intuitive. However, I caught on fast and have no trouble getting around the …


Continue reading