{"id":435,"date":"2014-01-10T19:14:53","date_gmt":"2014-01-11T02:14:53","guid":{"rendered":"http:\/\/somethingk.com\/main\/?p=435"},"modified":"2014-01-17T19:19:50","modified_gmt":"2014-01-18T02:19:50","slug":"pi-time","status":"publish","type":"post","link":"https:\/\/somethingk.com\/main\/pi-time\/","title":{"rendered":"Pi Time!"},"content":{"rendered":"<p>Just bought my own <a title=\"Raspberry Pi\" href=\"http:\/\/www.raspberrypi.org\">Raspberry Pi<\/a>\u00a0(Model B), endearingly named the Lil Devil. I&#8217;ve worked with Pi&#8217;s at school but now I have my own, sweetness.<\/p>\n<p><a href=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/2014-01-10-20.09.51.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-medium wp-image-437\" alt=\"Lil Devil\" src=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/2014-01-10-20.09.51-225x300.jpg\" width=\"225\" height=\"300\" srcset=\"https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/2014-01-10-20.09.51-225x300.jpg 225w, https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/2014-01-10-20.09.51-768x1024.jpg 768w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p><em>&#8220;The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It is a capable little computer which can be used in electronics projects, and for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video&#8221; (raspberrypi.org).<\/em><\/p>\n<p><strong>My environment:<\/strong><\/p>\n<ul>\n<li><a title=\"Raspberry Pi Model B\" href=\"http:\/\/www.adafruit.com\/products\/998\" target=\"_blank\">Raspberry Pi <\/a>(Model B) $39.95<\/li>\n<li><a title=\"SanDisk 32GB MicroSDHC\" href=\"http:\/\/www.amazon.com\/gp\/product\/B004G7D0EG\/ref=oh_details_o07_s00_i01?ie=UTF8&amp;psc=1\" target=\"_blank\">32GB MicroSD with adapter<\/a> $21.00 (Model B needs the adapter)<\/li>\n<li><a title=\"Miniature WiFi\" href=\"http:\/\/www.adafruit.com\/products\/814\" target=\"_blank\">Miniature WiFi adapter<\/a> $11.95<\/li>\n<li><a title=\"5V USB Port Power Supply\" href=\"http:\/\/www.adafruit.com\/products\/501\" target=\"_blank\">5V USB Port Power Supply<\/a> $5.95<\/li>\n<li><a title=\"USB Cable A\/MicroB\" href=\"http:\/\/www.adafruit.com\/products\/592\" target=\"_blank\">USB Cable A\/MicroB<\/a> $3.95<\/li>\n<li>HDMI cable, mouse, keyboard, display (If you can&#8217;t SSH)<\/li>\n<\/ul>\n<p>So now that I have one, I&#8217;m going to put Kali back on it along with OpenVAS, see previous <a title=\"OpenVas for Kali Linux on the Raspberry Pi\" href=\"http:\/\/somethingk.com\/main\/?p=139\">post<\/a>.<\/p>\n<p><strong>Imaging the SD<\/strong><\/p>\n<p>This time to image my SD card I used dd on my Mac. When I imaged the SD on my PC, I used\u00a0<a href=\"http:\/\/sourceforge.net\/projects\/win32diskimager\/\">Win32 Disk Imager<\/a>. For dd:<\/p>\n<p>With the SD card inserted into your computer, check where it is mounted with either fdisk (Linux) or\u00a0diskutil (Mac).<\/p>\n<pre>fdisk - l<\/pre>\n<p>or<\/p>\n<pre>diskutil list<\/pre>\n<p>Locate your SD. Mine was located at \/dev\/disk2 (seen in screenshot below).<\/p>\n<p><a href=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.50.24-PM.png\"><img decoding=\"async\" class=\"aligncenter size-medium wp-image-443\" alt=\"Screen Shot 2014-01-10 at 7.50.24 PM\" src=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.50.24-PM-300x189.png\" width=\"300\" height=\"189\" srcset=\"https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.50.24-PM-300x189.png 300w, https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.50.24-PM.png 570w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Unmount the SD.<\/p>\n<pre>unmount &lt;SD LOCATION eg \/dev\/...&gt;<\/pre>\n<p>or<\/p>\n<pre>diskutil unmountdisk &lt;SD LOCATION \/dev\/...&gt;\r\n\r\n<a href=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.51.22-PM.png\"><img decoding=\"async\" class=\"aligncenter\" alt=\"Screen Shot 2014-01-10 at 7.51.22 PM\" src=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/01\/Screen-Shot-2014-01-10-at-7.51.22-PM-300x192.png\" width=\"300\" height=\"192\" \/><\/a><\/pre>\n<p>Lastly, use dd to image the SD card, the command is the same on both platforms. You can either use a custom <a title=\"Custom Raspberry Pi Image\" href=\"http:\/\/docs.kali.org\/development\/custom-raspberry-pi-image\" target=\"_blank\">Kali Pi image<\/a> or a normal <a title=\"Install Kali ARM on a Raspberry Pi\" href=\"http:\/\/docs.kali.org\/armel-armhf\/install-kali-linux-arm-raspberry-pi\" target=\"_blank\">Kali image<\/a>.<\/p>\n<pre>sudo dd if=&lt;IMG LOCATION&gt; of=&lt;SD LOCATION \/dev\/...&gt;<\/pre>\n<p>WARNING: Make sure to select the write SD location, you do not want to wipe your computers HD!<\/p>\n<p>This may take some time depending on the size of your SD.<\/p>\n<p><strong>Starting it Up<\/strong><\/p>\n<p>Plug all the pieces together (HDMI cable, mouse, keyboard, WiFi adapter, USB to power supply, and SD).<\/p>\n<p>The default credentials for Kali is root:toor.<\/p>\n<p>This was super annoying but dd did not image my entire SD card, it made a small 4GB image (The size of the image I had, most pi images are 2GB from what I hear.) I ended up installing raspy-config in order to expand my image partition on the card. I followed these <a title=\"Raspi-Config in Kali\" href=\"http:\/\/rageweb.info\/2013\/03\/21\/raspi-config-in-kali\/\" target=\"_blank\">instructions<\/a>.<\/p>\n<p>Once I had my PI going, I checked that the WiFi was working correctly. I followed this <a href=\"http:\/\/learn.adafruit.com\/adafruits-raspberry-pi-lesson-3-network-setup\/buying-a-usb-wifi-adapter\" title=\"Buying a USB Wifi Adapter\" target=\"_blank\">tutorial<\/a> to get it working. Following, I was able to SSH immediately (I found the IP address on my router&#8217;s web interface), some of you might have to configure OpenSSL. This way you can SSH into the device without the need of a dedicated monitor, HDMI cable, keyboard or mouse.<\/p>\n<pre>rm\u00a0\/etc\/ssh\/ssh_host_*\r\ndpkg-reconfigure openssh-server\r\nservice\u00a0ssh\u00a0restart<\/pre>\n<p>Always good to update your libraries and upgrade your system.<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<p>Cool, the environment is now ready for whatever you want to do. If you are worried about security, <a title=\"bastion.sh\" href=\"https:\/\/github.com\/tylerjl\/bastion.sh\" target=\"_blank\">bastion.sh<\/a> is a really cool tool designed to tighten security on any Linux device. Worth trying.<\/p>\n<p>More Pi fun to come!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just bought my own Raspberry Pi\u00a0(Model B), endearingly named the Lil Devil. I&#8217;ve worked with Pi&#8217;s at school but now I have my own, sweetness. &#8220;The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It is a capable little computer which can be used in electronics projects, and for many of the things [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,6],"tags":[114,112,61,113],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-kali","category-linux","tag-imaging-sd","tag-model-b","tag-raspberry-pi","tag-setup"],"_links":{"self":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":22,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/435\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}