{"id":2020,"date":"2015-03-09T20:48:37","date_gmt":"2015-03-10T01:48:37","guid":{"rendered":"http:\/\/www.wiredprairie.us\/blog\/?p=2020"},"modified":"2015-03-09T20:48:37","modified_gmt":"2015-03-10T01:48:37","slug":"my-raspberry-pi-2-model-b-setup","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2020","title":{"rendered":"My Raspberry Pi 2 Model B setup"},"content":{"rendered":"

I recently purchased a Raspberry Pi 2 in preparation for installation of Windows 10<\/a> (and more<\/a>) (when there\u2019s a version that\u2019s compatible). In the mean time, I installed the current version of Raspbian<\/a>. <\/p>\n

I bought a simple case<\/a> via Amazon. Nothing too fancy \u2026 extremely functional (it allows the LEDs to still display which is nice).  For storage, I went overboard and splurged on a $29 MicroSD card from SanDisk<\/a>. While it\u2019s definitely oversized for my Linux needs, when I install Windows on the Pi 2, I wanted to have sufficient extra space for whatever tinkering I would do \u2026 and not need to worry about buying a larger card then.<\/p>\n

\"image\"<\/a>I also purchased a cable<\/a> that permits toggling the power to the Pi. The Pi doesn\u2019t have a power switch on it, but now the cable I use does instead. I suppose I could have just unplugged it, but this seemed handier. <\/p>\n

I also bought a 2A USB<\/a> charger\/power for it. This power supply apparently<\/em> is great for preventing what might be considered a brown-out to the PI when there are many devices connected (as it will hold the voltage much closer to the required 5V). As that seemed Like a Good Thing\u2122, I splurged (an extra $4) and bought it. If you don\u2019t have peripherals connected, this isn\u2019t necessary from what I\u2019ve read. Most any 1.0A USB charger should work. Again, as I didn\u2019t want to rebuy down the road, I spent a tiny bit extra. There are dedicated wall transformers that \u201care designed\u201d for the Raspberry Pi, but I selected something generic that could be reused for other tasks, so the USB cable is removable (there are a lot that are hardwired to the transformer). The dedicated transformers are $4-6 cheaper.<\/p>\n

I also picked up a tiny keyboard<\/a> from MCM (where I bought the Pi from as well) for when VNC doesn\u2019t make sense. (I\u2019d be shocked if the Windows on ARM for the Pi will support Remote Desktop).<\/p>\n

I already had a OK USB mouse, so I skipped that. <\/p>\n

\"image<\/p>\n

Node (Current)<\/h3>\n

Node v0.12.0 from Node-Arm<\/a>.<\/p>\n

\n

wget http:\/\/node-arm.herokuapp.com\/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb<\/pre>\n

<\/div>\n

VNC Server<\/h3>\n

I couldn\u2019t get the scripts<\/a> on raspberrypi.org to run the vncserver correctly upon startup. So, I found a combination that works.<\/p>\n

\n
sudo apt-get install tightvncserver<\/pre>\n<\/div>\n
 <\/div>\n
then run:<\/div>\n
\n

tightvncserver<\/pre>\n

<\/div>\n

Log into a terminal on the Pi as root:<\/p>\n

\n
sudo su<\/pre>\n<\/div>\n
\n
Navigate to the directory \/etc\/init.d\/:<\/div>\n
\n
\n <\/div>\n
\n
cd \/etc\/init.d\/<\/pre>\n

Create a new file here containing the following script:<\/div>\n<\/div>\n

\n

# First configure the user you want to run this under - this will generally <\/span>
be pi, unless you've created your own users
export USER='<\/span>pi'
eval cd
~$USER
# Check the state of the command - this'<\/span>ll either be start or stop
case
"$1"<\/span> in<\/span>
start)
# if it's start, then start <\/span>
vncserver using the details below
su $USER -c
'\/usr\/bin\/vncserver :1 -geometry 1920x1080 -depth 24'<\/span>
echo
"Starting vncserver for $USER "<\/span>
;;

stop)
# if it's stop, then just kill the <\/span>
process<\/span>
pkill Xtightvnc
echo
"vncserver stopped"<\/span>
;;
*)

echo "Usage: \/etc\/init.d\/vncserver {start|stop}"<\/span>
exit
1
;;
esac
exit 0<\/pre>\n

Save this file as vncboot<\/strong> (for example)<\/div>\n

Make this file executable:<\/p>\n

\n
chmod 755 vncboot<\/pre>\n

Enable dependency-based boot sequencing:<\/div>\n

\n
update-rc.d \/etc\/init.d\/vncboot defaults<\/pre>\n

If enabling dependency-based boot sequencing was successful, you will see this: <\/p>\n

<\/p>\n

\n
update-rc.d: using dependency based boot sequencing
<\/pre>\n

<\/div>\n

But if you see this: <\/p>\n

<\/p>\n

\n
update-rc.d: error: unable to read \/etc\/init.d\/\/etc\/init.d\/vncboot
<\/pre>\n

<\/div>\n

then try the following command: <\/p>\n

<\/p>\n

\n
update-rc.d vncboot defaults
<\/pre>\n

<\/div>\n

Reboot your Raspberry Pi and you should find a VNC server already started.<\/p><\/div>\n

\n
sudo reboot<\/pre>\n<\/div>\n

 <\/h3>\n

.NET\/Mono (current)
\n
<\/h3>\n
\n


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http:\/\/download.mono-project.com\/repo\/debian<\/a> wheezy main"<\/span> | sudo tee \/etc\/apt\/sources.list.d\/mono-xamarin.list
sudo apt-get update && apt-get upgrade
sudo apt-get install mono-complete<\/p><\/pre>\n

Then to test:<\/p>\n

\"image\"<\/a><\/p>\n

With HelloWorld.cs:<\/strong><\/p>\n

<\/div>\n

\"image\"<\/a><\/div>\n

By installing the current Mono as shown above, you\u2019ll have access to mscorlib 4.0<\/a> by using dmcs <\/strong>for C# compilation.<\/p>\n","protected":false},"excerpt":{"rendered":"

I recently purchased a Raspberry Pi 2 in preparation for installation of Windows 10 (and more) (when there\u2019s a version that\u2019s compatible). In the mean time, I installed the current version of Raspbian. I bought a simple case via Amazon. Nothing too fancy \u2026 extremely functional (it allows the LEDs to still display which is […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[6,8],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd5QIe-wA","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1773,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1773","url_meta":{"origin":2020,"position":0},"title":"AV Club \/ Our home setup 2012","date":"December 12, 2012","format":false,"excerpt":"I\u2019ve done a lot of reworking of our computers and network recently and thought I\u2019d post some details about the various physical and digital parts that make our humble WiredPrairie home work. Using Google Docs, I created a labeled diagram with most of the moving parts of our house (WOW,\u2026","rel":"","context":"In "Recommendations"","img":{"alt_text":"Home Setup","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2012\/12\/Home-Setup_thumb1.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2278,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2278","url_meta":{"origin":2020,"position":1},"title":"You don’t need it, but you might want it any way: Ubiquiti Unifi","date":"July 25, 2018","format":false,"excerpt":"TL;DR; The Ubiquiti Networks UniFi products are absolutely worth considering if you're looking to upgrade your home or small office network to a reasonably affordable, manageable, configurable, and expandable setup. A complete setup probably costs more than you're comfortable spending on network infrastructure, but you're worth it. Details There's a\u2026","rel":"","context":"In "General"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2018\/07\/Photo-Jul-23-7-23-26-PM.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":917,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/917","url_meta":{"origin":2020,"position":2},"title":"Tom Bihn Smart Alec Backpack Review","date":"March 10, 2010","format":false,"excerpt":"I recently purchased a Tom Bihn Smart Alec Backpack. Tonight, I put it back in its original shipping box and will be shipping it back to Tom Bihn tomorrow. I wanted to review the bag here on my web site to provide some unbiased and alternative opinions to this bag\u2026","rel":"","context":"In "Recommendations"","img":{"alt_text":"IMG_0329","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2010\/03\/IMG_0329.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2119,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2119","url_meta":{"origin":2020,"position":3},"title":"Geek gift ideas 2016","date":"November 27, 2016","format":false,"excerpt":"If you're looking to buy yourself, I mean someone else some gifts for the upcoming holiday season, here are some items that I've found useful or handy around the house. It's all stuff that I use and would recommend. KMASHI 400A Peak 14.8V 800mAh Compact Car Jump Starter It's around\u2026","rel":"","context":"In "General"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2016\/11\/PlanetBike3H.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1329,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1329","url_meta":{"origin":2020,"position":4},"title":"My Nest Thermostat installation experience","date":"December 18, 2011","format":false,"excerpt":"After the amazing mad dash for the Nest thermostats when they were first made available for pre-order, I ordered three thermostats for our home from Best Buy (as Nest.com had sold out). We\u2019ve got a three zone heating system, and I wanted to replace all at once (as the system\u2026","rel":"","context":"In "Recommendations"","img":{"alt_text":"20111218-IMG_0096","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2011\/12\/20111218-IMG_0096_thumb.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2340,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2340","url_meta":{"origin":2020,"position":5},"title":"My 2019 (near) Silent PC Build","date":"October 6, 2019","format":false,"excerpt":"Puget Systems assembles really nice custom PCs and especially great quiet PCs. However, when I last priced out a system I wanted to build, it was well outside of my budget (by about $1500USD). So, I built my own. It was an experience that took several months to research and\u2026","rel":"","context":"In "General"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2019\/10\/2019-10-06-16_16_02-Task-Manager.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2020"}],"collection":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/comments?post=2020"}],"version-history":[{"count":1,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2020\/revisions"}],"predecessor-version":[{"id":2021,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/2020\/revisions\/2021"}],"wp:attachment":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/media?parent=2020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/categories?post=2020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/tags?post=2020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}