Youtube projects: Turn a toy gun into a cool Movie Prop Gun

41sgRFxlhmL

I had watched a video by David Knop on youtube about painting a water gun and making it look more like a movie prop. Here is his video:

 

So i took his idea and applied it to my little Nerf N-Strike Blaster Pistol. Hung the parts from some wire on the ceiling of my garage. Took some old cans of paint in the garage (flat black, silver, and brown) and an old rag and started painting:

20140707-073121-27081664.jpg

20140707-073011-27011443.jpg

20140707-073123-27083122.jpg

20140707-073122-27082400.jpg

20140707-073215-27135844.jpg

20140707-073216-27136532.jpg

20140707-073217-27137236.jpg

Now to try this on my nerf rifle!

Pisnes – snes9x USB controller setup

20130824-215931.jpg
Was having issues getting pisnes working while on vacation with the snes USB controller i picked up from amazon. The buttons were not setup correctly. Right shoulder was quiting, etc.

I found a nice post online that has the buttons setup already. Just edit the lines on your snes9x.cfg file to the following:

A_1=1
B_1=2
X_1=0
Y_1=3
L_1=4
R_1=5
START_1=9
SELECT_1=8
QUIT=10
ACCEL=7
QLOAD=10
QSAVE=11

Installing free Pi version of Minecraft on Raspberry PI

#Login to the raspberry from the console. (Ok i guess you could do all the installing from ssh, but you will want to be at the console for the final command)

#Start up the gui session

  • startx

#Open a web browser to http://pi.minecraft.net and copy the link to the download file.
#Open terminal window

  • sudo wget <paste>

#unzip that thing

  • sudo tar -zxvf mine<tab will auto-fill the file name you downloaded>

#Look for the new folder name

  • ls -l

#Go into the new folder

  • cd mcpi

#Start the game

  •  ./minecraft-pi

Go play some free minecraft!

Strip streams from Shoutcast.com

Basically this is how to grab the direct http address to a specific radio station in shoutcast. That way you can add it to mpc or another streaming radio player without needing a webrowser running.

First things, install the free VLC media player

Then browse to the shoutcast.com page and find the HELP drop down box.

Select SETTINGS

shoutcast01

Select the following option to play it in your own media player

  • Play SHOUTcast stations in default media player ( eg: Winamp / iTunes / Windows Media Player )

Go find a station to play and click on it. You should get the option to open the .pls file. If it doesnt open in vlc you may need to change your default programs so that vlc opens .pls files.

After vlc opens the stream, you should begin to hear the station. Go to TOOLS and open MEDIA INFORMATION.

At the bottom is the stream “location”.

copy this and paste it into your favorite music player.

mpc example:

  1. mpc add http://67.159.60.45:8030
  2. mpc play

Raspberry PI – FreeCiv Server install

From freeciv.org:

Freeciv is a Free and Open Source empire-building strategy game inspired by the history of human civilization. The game commences in prehistory and your mission is to lead your tribe from the Stone Age to the Space Age…

These instructions are for installing and running a freeciv server on the raspberry pi. It works surprisingly well.

#Install the files

  • sudo apt-get install -y freeciv-server freeciv-client-gtk

#Start the server

  • freeciv-server

#done. no really, thats it.

Server options: http://freeciv.wikia.com/wiki/Server_Manual

#now grab a game client and connect to the PI’s ip

http://freeciv.wikia.com/wiki/Download

connect to freecivplayer listgame is working

Star-Made – Ubuntu Server Install

starmade-screenshot-0000

Star-Made (star-made.org) is a Minecraft style game in space where you create spaceships and explore the universe. It is currently in alpha and is free to play. And like Minecraft it runs on java, so it works on most operating systems. This tut is for installing and running the server, but the single player client files are also installed so you could play it also in that mode if you wanted.

Note 1: this will not run well enough to use on a raspberry pi, at least not without a lot of tweaking. Note 2: These instructions are based off my installing on Ubuntu Server 12.04, 32b version.

#As always update/upgrade your server before hand

  • sudo apt-get update
  • sudo apt-get upgrade -y

#Install java

  • sudo apt-get install -y openjdk-7-jre

#Create directory to hold games files

  • cd
  • mkdir games
  • cd games

#download jar file

  • sudo wget http://files.star-made.org/StarMade-Starter.jar

#Run Jar to expand game files

  • sudo java -jar StarMade-Starter.jar -nogui

#make .sh file executable

  • cd StarMade
  • sudo chmod ug+x StarMade-dedicated-server-linux.sh

#startup server for first time to create server.cfg file

  • sudo ./StarMade-dedicated-server-linux.sh

#After first load, stop server and configure settings

  • cntrl-c
  • sudo nano server.cfg

#Get server IP and start Star-Made

  • ifconfig
  • sudo ./StarMade-dedicated-server-linux.sh

Startup the client and connect to it

http://star-made.org

starmade-screenshot-0003starmade-screenshot-0002starmade-screenshot-0001

Raspberry PI – wicd-curses wifi program

Setting up your Pi to connect to wireless AP’s can be a pain at times. wicd-curses is a nice command line program to get this going for you easily. Only issue i have found so far is it doesn’t seem to like accessing the network on both eth0 and wlan0 at the same time. Meaning if your eth0 is on a different subnet than the AP you are connecting to, you will immediately lose connection to your putty session when you tell it to connect to the AP. Other than that, really cool.

#Update and Upgrade your Pi first

  • sudo apt-get update
  • sudo apt-get upgrade -y

#install wicd-curses

  • sudo apt-get install -y wicd-curses

#run it!

  • wicd-curses

#you should see available wifi ssids. Options are listed at the bottom. If you just highlight and hit enter it should connect you right up. I recommend hitting P and adjusting preferences, like auto connect so it reconnects after a reboot.

wicd-curses man page

Raspberry PI – Cacti Install and Monitor Qnap NAS w/SNMP

Pibow Case 04
#edit settings

  • sudo raspi-config
    1. Expand File system to use entire SD card
    2. Memory Split to 16
****NOTE: From here down, the instructions are not Raspberry Specific. Should work on Debian, ubuntu, etc

————————————————–

#Update/Upgrade

  • sudo apt-get update
  • sudo apt-get upgrade -y

#install Cacti

  • sudo apt-get install -y cacti

#Set a password for mysql if you want or leave it blank
#Hit ok a couple times

#Which kind of web-server should be used by cacti?

Apache2

#meanwhile back on the qnap…

On your pc:

  1. http://QNAP_NAS_IP:8080
  2. Go to Network Services and Select SNMP Settings
  3. Enable SNMP Service
  4. Enter your raspberry’s IP in Trap 1
  5. You can leave the Community field or change it. This is your snmp “password”. You will need to enter it in the Cacti page.

qnap snmp settings

#Back at the Raspberry pi, eventually you will be asked if you want to “configure database for cacti with dbconfig-common” on the raspberry.

<YES>

#When it is done it will drop you back to the command prompt. You are now done with the PI.

#Back at your computer:

Cacti Installation - Next

  1. http://Raspberry_PI_IP/cacti
  2. Next >>
  3. Next >>
  4. Finish

first cacti login

  1. LOGIN!
  2. Admin / Admin
  3. Make a new password
  4. success!

#Add the Qnap in the Cacti webpage

  • Choose Devices
  • Click on ADD
    • Description: Some name
    • Hostname: IP or Hostname of NAS
    • Host Template: Linux Server
    • SNMP version 2
    • SNMP community: whatever you entered in the QNAP above
    • CREATE

device add

  • If successful you should see some info at the top like the picture below:

device add succesfull

#Now its time to make some graphs

Select Create Graphs in the top right

You will see a list of things you can monitor. You probably want CPU, memory, eth0, and the disk partitions. Select the things you want to monitor and “create”

make graphs

#Now we just need to add it to the Graph Tree

On the left, select Graph Tree and than Default Tree

default tree

Click Add on the right.

Change Item type to HOST and find your Device Name

add host

Click CREATE.

#No go to Graphs on the top and open the Default Tree to verify that it is showing up. It will take 5-10 minutes to show any graphs.

graph tree list

#Take a break

final graphs

I have a fever and the only cure is more cacti

Raspberry Pi – Xbox Motion Cam Setup

#Update and Upgrade your Raspberry PI

  • sudo apt-get update
  • sudo apt-get upgrade -y

#Plug in Camera directly to raspberry pi or into hub and check to see if it is detected

  • lsusb

#install the Motion software. Motion Software Guide

  • sudo apt-get install -y motion

#Find and change settings

  • sudo nano /etc/motion.motion.conf

Daemon=ON

webcam_localhost=OFF

#Start Motion Service

  • sudo service motion start

#Browse to the webpage on your pc to see the camera feed

http://yourRaspberryIP:8081

#to access the pictures directly from your windows computer, use a program like WinSCP to ftp into /tmp/motion and copy the files to your desktop.

http://winscp.net/eng/download.php

#example pictures taken with the default picture settings 320×240 jpgs. Around 15k per picture.

Xbox Motion Capture Test 02 Xbox Motion Capture Test 01

Raspberry Pi – WordPress Install

#Upgrade and Update

  • sudo apt-get update
  • sudo apt-get upgrade -y

#Install LAMP

  • sudo apt-get install -y apache2 php5 mysql-client mysql-server tomcat6 vsftpd

#Setup MYSQL

  • mysql -u root -p
  • dpkg-reconfigure mysql-server
  • CREATE DATABASE wordpressDBname;
  • GRANT ALL PRIVILEGES ON wordpressDBname.* TO ‘wordpressusername’@’localhost’ IDENTIFIED BY ‘wordpresspassword‘;

#install wordpress

#Open your browser

  1. http://yourRaspberryIP/wordpress/wp-admin/install.php
  2. Fill in Database Name, User Name, and Password the same as entered above.
  3. Run the install and than browse to your new wordpress site
  4. http://yourRaspberryIP/wordpress/

Pi Press Screen capture