GUIDE - Fresh Setup of Raspberry Pi 2 (B)


Recommended Posts

+John Teacake

So little did I know that today the RPi 3 would be announced, However I got my RPi a few days back. Alot needs to be done to get it to work "properly" out of the box. Now I got the RPi with the 8GB Memory card from here.

 

https://www.modmypi.com/raspberry-pi/rpi2-model-b/raspberry-pi-2-model-b-new-and-8gb-microsd-card-bundle

 

Could not be happyer with ModMyPi. Extremely Fast Order Processing and Shipping.

 

So a few things I noticed (or rather what I have done with it so far...)

 

I am basing this from Raspian by the way, It works fine so far.

 

Anyway the first thing ANY Linux user should do is the obligatory.....

 

sudo apt-get update
sudo apt-get upgrade

 

Self Explantory....

 

Next ....

 

There are a built in set of tools to do a few "Advanced things" by all means play around with the other settings, However there is a specific option to make available ALL the disk space. Run this on the command line...

 

sudo raspi-config

 

I installed a few monitoring tools of my own preference. 

 

sudo apt-get install rpi-update htop iftop iptraf

 

If you are running it as a headless server, This implies you have SSH access and your Pi is shoved behind a <<Insert generic place to put your Pi>> Especially if your using it as a low powered server and not the GUI for any Media Center Apps etc. 

 

Remove the following....

 

sudo apt-get remove aspell desktop-base desktop-file-utils dictionaries-common dillo fonts-droid fonts-freefont-ttf fontconfig fontconfig-config galculator gnome-icon-theme gnome-themes-standard gpicview gsettings-desktop-schemas gsfonts gsfonts-x11 hicolor-icon-theme leafpad lightdm lightdm-gtk-greeter lxappearance lxde lxde-common lxde-core lxde-icon-theme lxmenu-data midori mime-support openbox omxplayer penguinspuzzle x11-common wpagui python3 python3-minimal python-pygame x11-common

turn off the swap space, the SD card might be slower so we dont need to use that.

 

sudo apt-get purge dphys-swapfile dphys-config

 

THIS alone is worth its waiting gold, A DNS Based Ad Blocker. I highly recommend it and I highly recommend you donate to the author. Copy and paste this command directly. 

 

curl -L install.pi-hole.net | bash

 

Update the RPI Firmware

 

sudo rpi-update

 

You should have a good basic system to do with whatever you want by now. 

 

Back up the System to an Image File so you can easily restore it. 

 

dd if=/dev/mmcblk0p1 of=/path/to/img/file/raspi.img bs=1M 

I installed transmission, Granted I mounted a USB hard drive to torrent from and to. But you can do whatever you like just be sure to mount it. These are the settings you need to change.

sudo apt-get install transmission-cli transmission-common transmission-daemon
sudo service transmission-daemon stop
sudo nano /var/lib/transmission-daemon/info/settings.json
**************************************************
*************Change the Following Settings***********
**************************************************
MOST NETWORKS WILL USE THIS RANGE, CHANGE IT TO SUIT YOUR NETWORK

"rpc-whitelist": "127.0.0.1,192.168.*.*",
(Optional) -----------------> "rpc-password": "{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj",
(Optional) -----------------> "rpc-username": "transmission",

sudo service transmission-daemon start
The default rpc-username and password is “transmission”
/var/lib/transmission-daemon/downloads/ <-------------------Default Downloads
http://server-ip:9091

Enjoy!! Please ask any questions below........

 

 

  • Like 1
Link to post
Share on other sites
+John Teacake

A few tweaks to the CPU for the Pi....

 

root@raspberrypi:~# apt-get install cpufrequtils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcpufreq0
The following NEW packages will be installed:
  cpufrequtils libcpufreq0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.5 kB of archives.
After this operation, 274 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcpufreq0 armhf 008-1 [12.9 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main cpufrequtils armhf 008-1 [40.6 kB]
Fetched 53.5 kB in 0s (72.0 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libcpufreq0.
(Reading database ... 33671 files and directories currently installed.)
Preparing to unpack .../libcpufreq0_008-1_armhf.deb ...
Unpacking libcpufreq0 (008-1) ...
Selecting previously unselected package cpufrequtils.
Preparing to unpack .../cpufrequtils_008-1_armhf.deb ...
Unpacking cpufrequtils (008-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u3) ...
Setting up libcpufreq0 (008-1) ...
Setting up cpufrequtils (008-1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Processing triggers for libc-bin (2.19-18+deb8u3) ...
Processing triggers for systemd (215-17+deb8u3) ...
>>>>>>>>>>Installing Packages>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
root@raspberrypi:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
conservative ondemand userspace powersave performance

>>>>>>>>>>Check what is available>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
****************************************************************************************
nano /etc/default/cpufrequtils
****************************************************************************************
# valid values: userspace conservative powersave ondemand performance
# get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
GOVERNOR="performance" * Change this to what you want, See above. If the file does not exist. Save and Exit.
****************************************************************************************
**************AFTER REBOOT CHECK*******************************************************
****************************************************************************************

root@raspberrypi:/mnt/USBHDD# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
****************************************************************************************
****************************************************************************************
****************************************************************************************
********************************Benchmark It********************************************
root@raspberrypi:/sys/devices/system/cpu# time echo "scale=1500; 4*a(1)" | bc -l
3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\
40917153643678925903600113305305488204665213841469519415116094330572\
70365759591953092186117381932611793105118548074462379962749567351885\
75272489122793818301194912983367336244065664308602139494639522473719\
07021798609437027705392171762931767523846748184676694051320005681271\
45263560827785771342757789609173637178721468440901224953430146549585\
37105079227968925892354201995611212902196086403441815981362977477130\
99605187072113499999983729780499510597317328160963185950244594553469\
08302642522308253344685035261931188171010003137838752886587533208381\
42061717766914730359825349042875546873115956286388235378759375195778\
18577805321712268066130019278766111959092164201989380952572010654858\
63278865936153381827968230301952035301852968995773622599413891249721\
77528347913151557485724245415069595082953311686172785588907509838175\
46374649393192550604009277016711390098488240128583616035637076601047\
10181942955596198946767837449448255379774726847104047534646208046684\
25906949129331367702898915210475216205696602405803815019351125338243\
00355876402474964732639141992726042699227967823547816360093417216412\
19924586315030286182974555706749838505494588586926995690927210797509\
302952

real    0m6.785s
user    0m6.730s
sys     0m0.010s

****************************************************************************************

More Information: https://software.intel.com/sites/default/files/comment/1716807/how-to-change-frequency-on-linux-pub.txt
 

  • Like 1
Link to post
Share on other sites
Haggis

Great Guide :D

  • Like 1
Link to post
Share on other sites
+John Teacake

Thanks!! I love the RPi and what it can be used for. Shame my Aluminium case got lost in the post so its literally just hanging by a network cable over a desk at the minute. :laugh:

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By zikalify
      Raspberry Pi Compute Module 4 now available for $25
      by Paul Hill



      The Raspberry Pi Foundation has just announced the Raspberry Pi Compute Module 4. The new board is available starting at $25 with prices increasing to $90 depending on the customisations you make. Alongside the Compute Module 4, the Compute Module 4 IO Board is available for $35 and the Compute Module 4 Antenna Kit is also available for those who need it.

      If you like to customise products before buying them, you’ll love the Raspberry Pi Computer Module 4. With four RAM options, four Flash options, and optional wireless connectivity, there are a total of 32 variants of the new product. Even when fitted with 8GB RAM, 32GB Flash, and wireless, the new product will only cost $90, which is still affordable.

      The main specifications for the new Compute Module 4 are as follows:

      1.5GHz quad-core 64-bit ARM Cortex-A72 CPU VideoCore VI graphics, supporting OpenGL ES 3.x 4K60 hardware decode of H.265 (HEVC) video 1080p60 hardware decode, and 1080p30 hardware encode of H.264 (AVC) video Dual HDMI interfaces, at resolutions up to 4K Single-lane PCI Express 2.0 interface Dual MIPI DSI display, and dual MIPI CSI-2 camera interfaces 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM Optional 8GB, 16GB or 32GB eMMC Flash storage Optional 2.4GHz and 5GHz IEEE 802.11b/g/n/ac wireless LAN and Bluetooth 5.0 Gigabit Ethernet PHY with IEEE 1588 support 28 GPIO pins, with up to 6 × UART, 6 × I2C and 5 × SPI With the new IO Board, you’ll get a ready-made development platform that accepts standard connectors. The Raspberry Pi Foundation said that the IO Board can also act as a starting point for those looking to build their own designs. With the Compute Module 4 IO Board, you’ll get the following:

      Two full-size HDMI ports Gigabit Ethernet jack Two USB 2.0 ports MicroSD card socket (only for use with Lite, no-eMMC Compute Module 4 variants) PCI Express Gen 2 x1 socket HAT footprint with 40-pin GPIO connector and PoE header 12V input via barrel jack (supports up to 26V if PCIe unused) Camera and display FPC connectors Real-time clock with battery backup The new Compute Module 4 and its complementary devices are available for purchase now through different partners all linked on the main Raspberry Pi website.

    • By News Staff
      Linux Administration Cookbook (normally $35.99) - free offer ends today
      by Steven Parker

      Claim your complimentary copy (worth $35.99) for free, before the offer expires ends today Oct 6.



      What's it about?
      Insightful recipes to work with system administration tasks on Linux.

      Linux is one of the most widely used operating systems among system administrators, and even modern application and server development is heavily reliant on the Linux platform.



      The Linux Administration Cookbook is your go-to guide to get started on your Linux journey. It will help you understand what that strange little server is doing in the corner of your office, what the mysterious virtual machine languishing in Azure is crunching through, what that circuit-board-like thing is doing under your office TV, and why the LEDs on it are blinking rapidly.

      This book will get you started with administering Linux, giving you the knowledge and tools you need to troubleshoot day-to-day problems, ranging from a Raspberry Pi to a server in Azure, while giving you a good understanding of the fundamentals of how GNU/Linux works.

      Through the course of the book, you’ll install and configure a system, while the author regales you with errors and anecdotes from his vast experience as a data center hardware engineer, systems administrator, and DevOps consultant.

      By the end of the book, you will have gained practical knowledge of Linux, which will serve as a bedrock for learning Linux administration and aid you in your Linux journey.

      This free offer expires on October 6.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Linux Administration Cookbook ($35.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 10/06/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here, but be aware that these are all time-limited offers. If you are uncomfortable sharing your details with a third-party sponsor, we understand. Or via our preferred partner:

      How can I disable these posts? Click here.

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Free download: Linux Administration Cookbook (normally costs $35.99)
      by Steven Parker

      Claim your complimentary copy (worth $35.99) for free, before the offer expires next Tuesday on October 6.



      What's it about?
      Insightful recipes to work with system administration tasks on Linux.

      Linux is one of the most widely used operating systems among system administrators, and even modern application and server development is heavily reliant on the Linux platform.



      The Linux Administration Cookbook is your go-to guide to get started on your Linux journey. It will help you understand what that strange little server is doing in the corner of your office, what the mysterious virtual machine languishing in Azure is crunching through, what that circuit-board-like thing is doing under your office TV, and why the LEDs on it are blinking rapidly.

      This book will get you started with administering Linux, giving you the knowledge and tools you need to troubleshoot day-to-day problems, ranging from a Raspberry Pi to a server in Azure, while giving you a good understanding of the fundamentals of how GNU/Linux works.

      Through the course of the book, you’ll install and configure a system, while the author regales you with errors and anecdotes from his vast experience as a data center hardware engineer, systems administrator, and DevOps consultant.

      By the end of the book, you will have gained practical knowledge of Linux, which will serve as a bedrock for learning Linux administration and aid you in your Linux journey.

      This free offer expires next Tuesday on October 6.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Linux Administration Cookbook ($35.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 10/06/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here, but be aware that these are all time-limited offers. If you are uncomfortable sharing your details with a third-party sponsor, we understand. Or via our preferred partner:

      How can I disable these posts? Click here.

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Linux Administration Cookbook (normally $35.99) - free download
      by Steven Parker

      Claim your complimentary copy (worth $35.99) for free, before the offer expires on Oct 6.



      What's it about?
      Insightful recipes to work with system administration tasks on Linux.

      Linux is one of the most widely used operating systems among system administrators, and even modern application and server development is heavily reliant on the Linux platform.



      The Linux Administration Cookbook is your go-to guide to get started on your Linux journey. It will help you understand what that strange little server is doing in the corner of your office, what the mysterious virtual machine languishing in Azure is crunching through, what that circuit-board-like thing is doing under your office TV, and why the LEDs on it are blinking rapidly.

      This book will get you started with administering Linux, giving you the knowledge and tools you need to troubleshoot day-to-day problems, ranging from a Raspberry Pi to a server in Azure, while giving you a good understanding of the fundamentals of how GNU/Linux works.

      Through the course of the book, you’ll install and configure a system, while the author regales you with errors and anecdotes from his vast experience as a data center hardware engineer, systems administrator, and DevOps consultant.

      By the end of the book, you will have gained practical knowledge of Linux, which will serve as a bedrock for learning Linux administration and aid you in your Linux journey.

      This free offer expires on October 6.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Linux Administration Cookbook ($35.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 10/06/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here, but be aware that these are all time-limited offers. If you are uncomfortable sharing your details with a third-party sponsor, we understand. Or via our preferred partner:

      How can I disable these posts? Click here.

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Save 96% off this Complete IoT & Hardware eBook + Video Course Bundle
      by Steven Parker



      Today's highlighted deal comes via our eBooks section of the Neowin Deals store, where for only a limited time, you can save 96% off this Complete IoT & Hardware eBook + Video Course Bundle. 9.5 hours of video content + 6 practical eBooks to help you explore today's fastest growing tech field and work on real IoT projects.

      What's the deal?
      This deal consists of the following courses:

      Mastering Arduino [eBook]
      A Project-Based Approach to Electronics, Circuits, & Programming Hands-On Robotics Programming with C++ [eBook]
      Enhance Your Programming Skills to Build Exciting Robotic Projects Internet of Things Programming Projects [eBook]
      A Practical Project-Based Guide to Help You Build & Control Your IoT projects Hands-On Industrial Internet of Things [eBook]
      Build a Strong & Efficient IoT Infrastructure at Industrial and Enterprise Level Practical Internet of Things Security [eBook]
      Explore the Complex Realm of Securely Building & Deploying Systems in the IoT-Connected World Linux Device Driver Development Cookbook [eBook]
      Over 30+ Recipes to Develop Custom Drivers for Your Embedded Linux Applications Build & Program Smart LEGO Mindstorm EV3 Robot [Video]
      Invent, Build & Program Your Very Own Robots Internet of Things with Python & Raspberry Pi [Video]
      Develop a Secure, Real-Time & End-to-End Internet of Things Introduction to Internet of Things [Video]
      Understand the Building Blocks of IoT & Learn How to Prototype Your Own IoT Projects From Scratch Robotic Process Automation: RPA Fundamentals & Build a Robot [Video]
      Learn the Key Elements of RPA, Build Your First Robot Using UiPath, & Get Ready for the Future! Good to know
      Length of time users can access this course: lifetime Updates included Redemption deadline: redeem your code within 30 days of purchase For full details, terms, and instructor info for the above courses, click here.

      What's the benefit?
      This Complete IoT & Hardware eBook + Video Course Bundle normally costs $766, but you can pick this up for just $29.99 for a limited time, that's a saving of $736.01 off the normal price!

      >> Learn more or Purchase now <<
      See all discounted ebooks on offer. This is a time-limited deal.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Nintendo Gaming Bundle Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 70% off Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.