Monday, June 1, 2015

How to Build an arcade cabinet with Raspberry Pi 2

In the 1980s and 90s there was an explosion of gaming consoles and home computers. Computer users of a certain age will have fond memories of machines such as the ZX80, BBC Micro and Megadrive/Genesis. These machines are now quite rare and this is where emulation plays a big part in helping re-live those glory days. 

The Raspberry Pi is a popular choice for emulation because it’s powerful enough to run emulators from Atari to upright arcade cabinets using MAME. The release of the Raspberry Pi 2 has also meant we now have an even more powerful processor that will enable emulators for later consoles, such as the PlayStation One, to run more smoothly. We shall be using the RetroPie emulator (http://bit.ly/ RetroPieProject). You’ll need to copy the downloaded image to a blank high capacity SD card, the larger the better, and you’ll need to use the dd terminal command to copy the image to an SD card.

With Retropie on your SD card connect all of your peripherals, including any USB gamepads that you wish to use, to your Raspberry Pi and power up. On first boot RetroPie will ask if you would like to configure your joypad to work with the user interface. Note: There’s a separate configuration for each of the emulators due to their differing joypad layouts. If you have a wired Xbox 360 controller there’s a great guide on the RetroPie GitHub (http://bit.ly/ RetroPieXbox360SetUp) for helping set it up.

RetroPie uses the popular Emulation Station as its user interface and by default there are a number of systems that can be emulated out of the box. These systems are identifiable by being active on the user interface. For each system there’s a games library beneath it and this is created by inserting a USB drive into your Pi. A script creates the necessary file structure on the drive. Insert this drive into your PC and copy the ROMs from your computer into their corresponding folder on the USB drive. Now return the stick to your Raspberry Pi and RetroPie will automatically copy the contents to your install. By copying ROMs in this way their corresponding emulator is enabled in the Emulation Station user interface.

At this point, we need to advise you that ROMs are copyright material and remain the property of their owners. Their use in emulation is a grey area and many games are now so old that they are no longer commercially available; however, this doesn’t mean that they are out of copyright.

With your ROMs installed go back to the user interface and select which system you would like to play. RetroPie will now ask if you would like to catalogue your games, before accepting, ensure that your Pi is connected via Ethernet to your router. RetroPie will search the internet for your games and download any box art and information about each title. Where there’s a conflict it will ask you to choose which is correct, or if nothing is found it will ask you to manually enter the names of the games. RetroPie can emulate a number of systems, such as the Commodore Amiga, Sega Genesis and Super Nintendo, and on the Pi 2 there’s no need to overclock the system as it runs six times faster than its predecessor. If you are using an original Raspberry Pi then you can streamline your setup using the Advanced Configuration steps on the RetroPie wiki.

NOTE:

There were many different games consoles and computers from the 1970s to early 2000s. Companies such as Commodore, Sinclair, Acorn, Dragon, Sega, Atari all competed for home computing dominance. This drove the rise of bedroom programmers; people who learnt to code from magazines of the time.

In each magazine there would be pages of BASIC code to type into your computer and learn coding via experience. This lead to a boom in the number of games being produced in the UK, and fuelled a generation of coders who are now hoping to reignite that spark with the Raspberry Pi. David Braben, for example, co-wrote the iconic Elite game in the 1980s. Elite was an entire galaxy full of planets, space stations and pirates in only 32Kb of memory. David Braben also happens to be one of the co-founders of the Raspberry Pi Foundation and is very keen to see children creating and learning with computers, rather than simply consuming content.


Build a SmartTV using your Raspberry Pi 2

We have many ways to consume media these days but our main method is still through our TV (even it might be via streaming technology). The Raspberry Pi is well suited to displaying media and since the day of its release users around the world have been creating media centers based on the Pi. In this project, we’ll show you how to do it for yourself. 

We start this project by copying the operating system to the SD card. For this we’ll need to extract the contents of the file downloaded from the OpenELEC website. This will extract an image file, which we need to copy to the SD card. To copy the image to our SD card follow the guidance at their website. Note: For whatever version of Raspberry Pi that you use, ensure that you have the correct image file as Pi 1 and 2 images are currently not compatible.

With the image copied to the SD card, insert it into your Raspberry Pi along with your wireless keyboard and mouse and other connections, such as Ethernet and HDMI to your TV. The last connection to make is the power which will boot your Raspberry Pi.

On your first boot up OpenELEC will lead you through a series of screens that will set up your media center. Once complete you’ll be returned to the main menu which is split into sections to catalogue your pictures, videos and music. With any of these categories you can easily import content from a variety of sources and the following steps are repeatable for all types of media that you wish to import. If you haven’t already inserted a USB hard drive, with movies copied on it, into your Raspberry Pi and then navigate to the Videos menu and then to Files. From here a new dialog box will appear and you’ll be able to browse to the USB drive and the movies contained therein. Your movies will appear in the Videos library and you can select and play them from the list. Content can also be stored on network drives, such as a NAS, and OpenELEC can connect via many standards such as SSH, NFS and Samba, enabling content to be centralized in your home and available to multiple media devices.

OpenELEC also comes with a series of add-ons that can enhance the experience and you can find a selection of these in the Add-on menu for each category, eg a great video addon is the Revision3 channel that broadcasts lots of maker and hacker-based shows. You can easily install the add-on by finding it in the list and clicking Install, and OpenELEC will handle everything from there on. For those of us in the UK, you can also install BBC iPlayer functionality thanks to Kodi.
Controlling OpenELEC using a wireless keyboard and mouse is the default method, but there are other stylish and consumer-friendly ways of doing things. First, there’s FLIRC, (available from the PiHut store) which is an infrared receiver that can be programmed to use your existing remote to control OpenELEC.

Alternatively, if you have a spare Android tablet knocking about there’s a free app called Yatse that turns your tablet into a multimedia controller. This app can show your media catalogue on the tablet screen, and enable you to browse and select media which is then played on your television.

NOTE:

Media centers were one of the first projects to emerge for the Raspberry Pi on launch and they have gone on to become increasingly popular. In fact, they are so popular that the Raspberry Pi Foundation has invested in their development. Speaking to Eben Upton recently, he said that he’s a keen user of OpenELEC and is extremely happy with the performance of the latest version on the Raspberry Pi 2 with it. While the Raspberry Pi 1 and 2 both share the same Videocore IV GPU, which means that they both can easily work with large 1080p video files. The OpenELEC user interface is also quite a CPU-intensive process and it was common for users of the original Raspberry Pi to overclock their Pis to coax out every last ounce of performance. For Raspberry Pi 2 this isn’t the case, because of the immense improvements made to the CPU and RAM, and means that Raspberry Pi 2 is clearly the stable base that you need to build your media center upon.


Saturday, May 23, 2015

How to Remote control your Raspberry Pi 2

Using your Raspberry Pi is normally accomplished via a keyboard, mouse and monitor but at times this might be awkward, e.g. when controlling a robot or time-lapse photography rig. Remotely controlling a computer is nothing new but it‘s a handy solution to accessing your hard to reach Raspberry Pi project. In this project we’ll install an SSH server, which will enable us to remotely control the Raspberry Pi using the terminal from another machine. We’ll also install a VNC server which will enable us to use the Raspberry Pi desktop over a network. 

Connect up your Raspberry Pi and boot Raspbian to the desktop; you may need to log in using your username and password. If the Raspberry Pi 2 doesn’t boot straight to the desktop type startx in LXTerminal and press Enter. If you’re using a Wi-Fi dongle, make sure that it’s configured and has an IP address. If you’re using an Ethernet connection, open LXTerminal and type ifconfig to find your IP address.

Now we must configure the software that will run on the Pi and give us the access that we need. Open LXTerminal and type the following to setup an SSH server:

sudo raspi-config

Navigate to the Advanced Options Menu and look for SSH server, enable it and exit the application. If you’re asked to reboot, do so and return to the desktop. With the SSH server installed we can now test that it works using another computer. We’re using a laptop running Linux Mint and SSH’d into the Raspberry Pi using the terminal:

ssh pi@IP OF YOUR PI

The first time that you connect to the Raspberry Pi, SSH will ask you to confirm that the Pi is what you think it is via a unique fingerprint, and for this project we can accept that it’s correct. After a few moments you will be asked for your Raspberry Pi password and need to successfully log into your Pi. Any command issued from this point onwards will be run on the Raspberry Pi.

With the SSH server successfully installed, our attention shifts to installing the VNC server. In the SSH session run the following command:

sudo apt-get install tightvncserver

This installs the VNC server and to run the server type:

tightvncserver

You’ll be asked for a password – use a strong one with a maximum of eight characters. You will also be asked for a view-only password that isn’t needed at this time.

In the terminal you’ll see the output of the tightvncserver command, and it will advise you that a VNC session has been started and that you can connect using the IP address or hostname followed by: 1.

Now we need a VNC client on our computer to connect to the server running on the Pi 2. We’ve used Vinagre which comes installed on Linux Mint and Ubuntu. Open Vinagre and click on Connect, in the host box enter the IP address of your Raspberry Pi, followed by: 1 and click Connect. You will be asked for your VNC password. With the correct password entered you can now use your computer’s mouse and keyboard to control your Raspberry Pi and the Raspbian desktop is visible on your desktop.

For those of you looking to play Minecraft in this manner, we’re sorry to say that, at this time, it’s not possible due to the way Minecraft renders itself on the Raspberry Pi. Generally though, you’re now able to use your Pi remotely from another computer in your home. In fact, you can have more than one VNC connection running, which will enable two people to share a Raspberry Pi.

NOTE:

SSH is used by system administrators to remotely work with servers across the world, for instance, a VPS or server running a website or web application. Because there’s no physical access to the device a user has to remote in using SSH either via a terminal, or using a web interface provided by a host.
SSH connections are encrypted and it’s highly unlikely that anyone can see what’s being done, unlike VNC which should not be used over the internet. VNC sends its information via an unencrypted connection and any VNC ports that are open can be scanned by malicious parties. In fact, there’s a website that lists websites with open VNC ports and enables you to connect just like Chat Roulette. However, tunneling a VNC connection via SSH, grants you a level of security.
There are SSH applications for all OSes and on Linux it comes by default, and VNC applications are installed with Ubuntu and Linux Mint in the form of Vinagre.


KaOS 2015.02 Review

Unlike most other Linux distros that burden users with ample choice, KaOS has consciously decided to keep the options limited. The installable live distro is available only for 64-bit machines and offers only KDE as the desktop environment (DE). Its repos only feature x86_64 packages and the install yields a GTK-free base system. 

The package and desktop restriction isn't to ensure a bloat-free release, but because the developers believe in working only with the best available DE. By its own admission, the distro is designed for users who’ve tried others only to conclude that KDE is the best option for them.

Being a rolling release, users don't have to worry about fresh installs and complicated upgrades. With the underlying Pacman package management system, a single command is all you need to keep an installed system up to date.

Building blocks

The distro features the distro independent Calamares installer. Like most popular distros, KaOS doesn't let users choose what packages to install. However, the installer does provide several partitioning options, and the chance to carve out partitions to your liking. While there aren't any helpful tool tips to guide first time users, the installation process is straight forward and the install intuitive.

While the distro ships with the usual complement of standard apps, such as browser, office suite, music player and IM clients, it only carries the QT alternatives for each as far as possible. This isn't to say that GTK apps are entirely absent. But you’ll only find these where the QT counter parts aren't up to scratch or the software’s popularity necessitates their inclusion.

The distro doesn't use any upstream repos, choosing instead to build each package from scratch specifically for KaOS in its three repositories. The Core repository contains all the essentials like the Linux kernel, Systemd, etc. The Main repository comprises the drivers, libraries and firmware needed to get the apps to function properly. The apps themselves are relegated into the Apps repository, which is fully rolling. This means that KaOS provides rolling updates for all packages and that no package is ever older than one year, which ensures tighter integration.

The distro ships with Plasma 5 as the default desktop and features KDE 14.12 with all language packs preinstalled, proprietary NVidia drivers and Linux Kernel 3.18.7. It can play YouTube videos out of the box and supports a variety of multimedia formats. Due to its focus on QT apps, the distro offers Calligra 3.8.92 as the default office suite, although LibreOffice is available in the repos. The distro also includes various QT/KDE-specific internet apps such as Qupzilla web browser and KDE-telepathy.

You can install popular GTK apps such as Firefox 35.0.1, Thunderbird 31.4.0, etc. from the repos using the powerful Octopi package management tool. The latest release also features CacheCleaner, a tool for Octopi to remove packages from Pacman cache.

KaOS is designed for a very specific user base: KDE aficionados and advanced users who've finally tired of hopping distros and are skilled enough to work with a rolling release.

This is a well-rounded distro that delivers on its mission statement – a fully functional, rolling KDE release. We gave this a Cloudy Circuitry score of 85/100.


Bodhi Linux 3.0 Review

Bodhi Linux is essentially a one man project, so Jeff Hoogland’s retirement seemed to sound the death knell for the beloved build-your-own distro. Thankfully, he had a change of heart and returned to continue work on the release that was under development when he quit.

This third major release of Bodhi is based on Ubuntu 14.04 LTS and uses Linux kernel v3.16. This is also the first release that supports the UEFI BIOS found in nearly every new machine as well as the SeaBIOS found on some newer Acer and HP Chromebooks.

On the other end of the spectrum, the latest release also works with processors that don’t support PAE, such as the Pentium M Centrino.
In addition to borrowing the underlying infrastructure and core libraries, the project also uses a customized version of Ubuntu’s user friendly Ubiquity installer.

An enlightened desktop Bodhi is one of the few distro that uses the light and attractive Enlightenment desktop, and the latest release features a customized desktop based around Enlightenment E19.3. The one major change that long term users will notice is that unlike previous releases users aren’t asked to choose a layout style when they boot into the desktop. The developers argue that the consistent look will help make Bodhi more approachable to new users, although it wouldn’t have hurt to include other predefined styles in the Profile Selector tool like before.

In line with Bodhi’s philosophy of installing a minimum base for users to build their system, the distro ships with the Midori web browser and a bunch of Enlightenment apps written using the Enlightenment Foundation Libraries (EFL). These include the file manager, the Terminology terminal emulator which includes bells and whistles like a visual tab bar and Gravatar support, and the Ephoto picture viewer among others.

There’s also the ePad plain text editor which is written by Hoogland himself in EFL and replaces the Leafpad editor featured in previous releases. ePad in its current form supports most of the features you would expect from a text editor. Another in-house app of note is eepDater which is a simple but fully functional update manager.

Any distro that ships with a minimal set of apps and calls upon its users to flesh out their installation must have an exceptionally good package management system. Bodhi Linux, piggy-backs on the excellent apt-get packaging tool and the AptURL protocol, has an app installation platform that’s flexible and easy to use. New users can just use its online AppCenter, optimized for the included Midori web browser, while experienced users can use the Synaptic . Bodhi’s online Appcenter includes a limited number of frequently used apps – such as LibreOffice, Firefox, Okular, VLC, Handbrake, Thunderbird, Pidgin etc –has also been overhauled in this release. The search functionality has been improved and now looks up queries in the software titles as well as their descriptions for more meaningful results. Furthermore, users now have the ability to rate the apps.

Bodhi Linux is more than a stripped down version of Ubuntu. The distro adds features that’d be of use to users irrespective of their skill set: You can e.g. use the distro in Presentation mode which temporarily disables the screensaver, lock and power-saving features, and if you forget to enable this mode and quickly disable the screensaver, the distro offers to enable the Presentation mode for you. Now that’s what you call user-friendly.

This Linux distro is a wonderful minimal version for DIYers that provides an ideal base and all the suitable tools for customization. We gave this a Cloudy Circuitry score of 95/100.


How to create your own Raspberry Pi 2 chassis

We already used 3D printers for PC modding, taking you through the basics of using TinkerCad to design your objects. There’s far more to TinkerCad than making 2D fan grilles and modding components, though, and in this post we’re going to use it to create a case. 

Most reasonably priced 3D printers can only cater for sub mini-ITX motherboards, but Intel NUC and Raspberry Pi cases are definitely options for printers with 6in³ printing capacity or more. As Raspberry Pi 2 is the hot hobbyist product of the moment, we’re going to create and print a custom-designed case for it using the 3D Systems Cube 3 printer, while also showing you how to go about creating your own. As the Raspberry Pi 2 is fanless and doesn’t have any active cooling, this job is really easy and you can have some fun with the case design too.
Tools You’ll need:

1. TinkerCard
2. 3D printer or 3D printing service
3. Digital vernier caliper
4. Finger files

How to…

1. DOWNLOAD RASPBERRY PI STL

To create your Pi 2 case, you first need a 3D model of the PCB. Thankfully the Pi B+ PCB is physically identical to the Pi 2 in terms of case layout, and is available to download for free from [www.thingiverse.com]. Search for the Raspberry Pi B+ board by jayftee and grab the 9MB STL file.

2. IMPORT MODEL INTO TINKERCAD

Importing the STL file into TinkerCad [www.tinkercad.com] is easy, and you can then start to build your case around it. In the right-hand menu, under Import, simply point TinkerCad at your downloaded STL file and upload it.

3. START WITH A CUBE

Now you can start building the case, starting by dropping a cube shape into the workplane from the same menu. You can, of course, choose any shape but we’ll be making a rectangular case so we’re starting with a cube.

4. ENLARGE CUBE TO FORM BASE

Modify the cube so it’s the right size for the base of your case. You can either use the measurements provided by TinkerCad to guide you, or simply make the base a little larger than the PCB. The total PCB model size is 58.5x 86.89 mm, so your base needs to accommodate that area measurement.

5. CREATE SCREW HOLE INSERTS

With the PCB lined up on your base, create some cylinders for inserting holes into the case to mount the PCB. You can use standard PC screws – just make a cylinder that’s slightly smaller than the screw thread (a digital vernier caliper will come in handy), so the screw can bite into the plastic.

6. PLACE INSERTS INTO BASE

Move the inserts on to the case and position them in the PCB mounting holes, in order to ensure they line up once the case is printed – another good reason to have a 3D model of the PCB to hand.

7. CHECK BASE FOR CLEARANCE

You now need to raise the inserts, so they don’t go all the way through the base when you convert them in to holes. Lift them by 3-4mm so the screws can pass a little way into the base – you can check they’re clear by looking underneath the case.

8. CREATE CUT-OUT INSERT

As we saw in last month’s 3D printing feature, it’s best to create holes in as many parts of your project as possible to cut printing time and costs. We started by laying down a large object in the base to create an opening – we’re also moving the PCB model out of the way for now.

9. SWITCH TO HOLE MODE

Now convert the object into a hole by selecting it, then clicking on Hole in the Inspector box, which converts it from a colored object into a hole. It should now appear translucent, which indicates that it’s acting as a hole and not a solid object.

10. GROUP OBJECTS

To finish creating the hole, select the base and hole only (leave the mounting holes separate for now), and select Group from the top tool bar. This process will delete the area of the base with which the hole is merged.

11. CREATE CUT-OUT DESIGN

You can then create a vent using individual pieces or, as we did, drop some letters and numbers into place. You can simply enlarge or reduce them to size as needed, depending on your chosen vent design, or you could lay them on top.

12. INSERT SUPPORTS

To hold the characters in place, we created small supports that connect them to the case at the edges. They’ll still look like they’re suspended, but this reinforcement will help them to survive any knocks. We also reversed the lettering, so it will read the right way when you pick up the box.

13. GROUPOBJECTS

Merge your vent design objects into one group by selecting them and clicking the Group icon again, being careful to avoid any objects that you don’t want to group yet.

14. CLONE BASE

We want to apply the same design to the lid of the case, and the easiest way to do this job is to clone the entire base, then remove the PCB support holes as shown. You can move the lid to one side for now.

15. ADD PCB STANDOFFS

You don’t want to screw the PCB directly into the base, so create some small standoffs into which you can insert screws. These bits are just like the standoffs in a PC case, except you only need them to be 5mm or so high. Place these standoffs over the mounting holes.

16. CREATE HOLES

You can now convert the mounting holes from solid objects into holes. Check if they’re aligned with the standoffs, then click on each one and convert it into a hole using the same method employed in step 9.

17. GROUPOBJECTS

In the same way you grouped the vent objects together, you can now group all the base objects together so you can move on. Hold down the left mouse button down, as you would to select an area in Photoshop, or characters in Word, then click the Group button in the top menu.

18. CREATE SIDES

Now put the PCB model back in place and create some side sections. Only two sides of the Raspberry Pi 2 have ports, so the other two can be solid objects. We dropped in a couple of cube shapes and manipulated them to form 3mm-thick walls that run from end to end as shown.

19. CREATE LID MOUNTS

You’ll need away to mount the lid too. You could have a sliding lid, but we preferred the idea of securely screwing it into place. We created two mounts that could sit inside the case, level with the side sections.

20. INSTALL LID MOUNTS

These mounts sit diagonally from each other, and only two are needed so save space – most of the lid will rest on the base’s side sections anyway. We’ve placed the mounts so that there’s still enough clearance between the PCB and the side sections – at least 2-3mm.

21. ADD LID MOUNT SUPPORTS

We went through to the end and printed a test base at this point, but found the supports were too weak, breaking when screwing the lid into them. We went back and added these corner braces to strengthen them. You can also add vents in the sides – we opted for a hexagonal pattern.

22. PLACE LID

Now you can move the lid into position, lining it up with the base and side sections. You can then move onto finishing the side sections and creating holes for the mounting screws.

23. SURROUND PORTS

You don’t really need to create a sealed case with the Raspberry Pi 2, but a sealed case definitely looks neater, so we went some of the way, and surrounded the end ports at the side and the bottom by extending the lid.

24. CREATE PORT SIDE SECTION

We then added a further surround in the lid section, as well as a long side section as the final piece –we’ll cut holes into this part through which the ports can protrude. The idea will be to delete the PCB model, leaving a 3D-printable and two-part case.

25. CONVERT TO HOLE

By converting the side section to a hole, it becomes translucent so you can see the ports you need to cut out to provide access. There are just three – the HDMI port, micro-USB connector and audio output.

26. ADD PORT AND LID HOLES

You then need to recreate the ports from appropriately shaped objects, and then resize them to provide plenty of clearance around them. For the HDMI port, we opted for a rectangular hole, rather than a larger-sized hole shaped like an HDMI port, to ensure there was enough clearance.

27. PRINT YOUR DESIGN

Click on Design, then Download for 3D printing to get the STL file for your design, and either print it on your own 3D printer or use a third-party service, then enlarge any trouble some holes and file the edges. Here’s our design, printed on 3D Systems Cube 3, with a Pi 2 installed.


Monday, May 18, 2015

How to overclock, update, and multi-boot your Raspberry Pi 2

The similarities between the original BCM2835 and the new quad-core BCM2 extend to their support for overclocking, providing power users with a means to squeeze a little more power out of their Raspberry Pi the risk of a shortened lifespan. The safest way to get some extra speed out of your new device, assuming you’re running Raspbian, is to use the configuration wizard. At the terminal, type: 


sudo raspi-config

Scroll down to 7 Overclock, hit Enter, read and acknowledge the warning, then choose the bottom option – labeled Pi2 – from the list that appears. Make sure you don’t use any of the other options, including None; these settings are designed for the original Raspberry Pi, and could leave your shiny new Pi 2 running slower than stock speed. Exit the tool by tabbing to Finish and confirm you’d like to reboot when asked. For even higher speeds, you can adjust settings directly within the boot configuration file. Run the following command at the terminal:

nano /boot/config.txt

Head to the bottom of the file, and use the following to adjust the performance of the processor:

arm_freq - Core clock frequency in megahertz
gpu_freq - GPU clock frequency in megahertz
sdram_freq - Memory clock frequency in megahertz
over_voltage - Increase the SoC’s voltage, in steps of 0.025V

Be aware, however, that manually adjusting these settings – in particular the voltage – can render your warranty void.

GPIO expansion

Although the latest Raspberry Pi models have a longer general-purpose-input-output (GPIO) header than their predecessors, it still lacks many functions of rival devices – in particular support for hardware pulse-width modulation (PWM) or analogue inputs. The solution is a GPIO expansion board.

There are plenty of add-ons from which to choose, many of which are tailored to a particular task such as robotics or home automation. A comprehensive list is available at [elinux.org/RPi_ Expansion_Boards].

Updating the firmware and kernel

You’re almost certainly aware that Raspbian needs regular updates to keep it performing in tip-top condition, but you may be running an older kernel and firmware release if you’re relying on the traditional method of using this command:

sudo apt-get update && sudo apt-get upgrade

To ensure you have the very latest kernel and modules – providing bug fixes, stability and even performance improvements – you need to use a separate tool bundled with Raspbian. At the terminal, type the following command:

sudo rpi-update

This command refreshes the firmware, kernel and all the modules from the official GitHub repository, ensuring that your system is bang up to date.

Multi-boot via NOOBS

While its name may suggest that it’s designed for newcomers, NOOBS (New Out-Of-Box Software) includes one feature that power users may find very useful indeed: multi-boot support. Download NOOBS from [www.raspberrypi.org/downloads], and extract the contents of the Zip to a FAT32-formatted micro-SD card – there’s no need to mess around flashing raw images. Insert the card into the Pi and boot it, then tick the boxes next to as many operating systems as you’d like to install.

When installation is complete, the next boot will load a menu asking which of the installed operating systems you want to boot. Future boots will display this menu for ten seconds, after which the most recently booted OS will be automatically selected. When installing your OS, however, be aware that not every choice available in NOOBS is yet compatible with the Raspberry Pi 2.


How to Install Snappy Ubuntu Core to Raspberry Pi 2

While it isn’t a distribution for everyday use, Ubuntu Core is being positioned by its creator Canonical as the future of mobile and embedded computing. As a result, it can’t hurt to have a play ahead of time and, if you’re planning on creating and distributing packages for Ubuntu smartphones, Ubuntu Core on a Raspberry Pi offers a cheap way to start experimenting.

1. Download Ubuntu Core 

At the time of writing, Ubuntu Core wasn’t available through the NOOBS installer. As a result, the only way to get it up and running is to manually download the image file. Head to [www.raspberrypi.org/downloads] and download the latest release, which at the time of writing was Ubuntu Core Alpha 02. Note that, as Ubuntu requires at least the ARMv7 architecture, it’s incompatible with the ARMv6 original Raspberry Pi hardware. When the download has completed, extract the image file somewhere convenient.

2. Write image to micro-SD card 

As with Open ELEC, the Ubuntu Core image needs to be written to a micro-SD card, completely wiping any data currently on the card. Connect your card to your PC via a reader, then download Win32 ImageWriter from Google and use it to write the uncompressed image file. Users of Linux, OS X and other Posix-style operating systems can instead use the dd command line to write the image as with the following command, where XXX is the device ID of your SD card:

dd if=pi-snappy.img of=/dev/XXX

3. Update via Snappy

If you’re wondering why Ubuntu Core is often called ‘Snappy’ Ubuntu Core, it’s a reference to its new package manager. While the mainstream Ubuntu distribution uses the apt package manager, just like Raspbian, Ubuntu Core uses Snappy. For embedded use, Snappy has numerous benefits, including the ability to roll back any package to any point in time, but it will take time to get used to it. To make sure your Ubuntu Core installation is fully up to date, insert the micro-SD and plug in a keyboard, display, network cable and power, then log in with the username ‘ubuntu’ and password ‘ubuntu’. Type the following command:

sudo snappy update-versions

If you’re told that there are upgrades available, you can view and install them with:

snappy versions
sudo snappy update packagename

If you receive a certificate error, you’ll need to manually set the date and time on your system:

sudo date -s “Wed Apr 1 09:00:00 GMT 2015”

Naturally, change the date for the actual date and time of when you run the command, in 24-hour format.

4. Install WebDM

While most work on Snappy Core takes place at the command line, you can make your experience a little easier by installing WebDM – a package manager that’s accessible over the Raspberry Pi’s network port. Depending on the current release version and defaults selected, WebDM may or may not already be installed. To check, simply attempt to install it:

sudo snappy install webdm

Once the package has installed, if it wasn’t previously installed, you can verify it’s working by visiting http://raspberryip:4200 on the browser of any machine on the same network as the Pi, replacing ‘raspberryip’ with the Pi’s IP address. If you don’t know its IP address, go back to the terminal and type the following command:

ifconfig | grep inet\ addr

You can browse and install Software packages on this interface, but be aware that Ubuntu Core is in a very early alpha stage, so there isn’t much to see at present.

5. Experiment

As Ubuntu Core is in a very early alpha stage, it needs plenty of people to experiment with developing and using Snappy-packaged applications. The best way to get a handle on doing so is to visit the official tutorial at http:// developer.ubuntu.com/en/snappy, where you can take a tour of the operating system’s various features. You can also learn how to port Ubuntu Core to devices other than the Raspberry Pi 2, build or port existing apps to the Snappy package format, and even participate directly in the development of the open source Ubuntu Core.


Sunday, May 3, 2015

What are M.2 SSDs? Do you need to buy them?

You could be forgiven for not knowing a great deal about M.2, since the term and the technology have only been around a short while. Originally known as NGFF, or nextgeneration form factor, M.2 is a 67-pin connector that’s intended to replace the growing plethora of different standards for connecting storage devices and other peripherals to a motherboard. It’s included on some Z97 and X99 motherboards, and it’s starting to show up in a growing number of laptops too.



Saturday, May 2, 2015

Which the best operating system for your RaspberryPi 2?

Raspbian

The obvious choice for a general-purpose operating system, Raspbian was the first OS to receive support for the Raspberry Pi 2, and in a very clever manner. Rather than branching into two builds, Raspbian detects whether it’s running on the original ARMv6 BCM2835 or new ARMv7 BCM2836 and loads an appropriate kernel; everything in user-space, meanwhile, uses ARMv6 code.



How to build Raspberry Pi 2 Media Streamer using OpenELEC

One of the most common tasks for a housebound Raspberry Pi is to act as a media streamer, and that’s a job that the new Raspberry Pi 2, with its more powerful quad-core processor, can do with aplomb. Using the latest OpenELEC build, there’s no hint of the lag that plagued the user interface on the original Pi, and installing it is a breeze.



How to build a Raspberry Pi 2 File Server using Raspbian

While the strange configuration of its USB and network ports – which share a single USB 2 channel to the system-on-chip (SoC) – may limit the performance of the Raspberry Pi 2 when acting as a file server, its low cost and minuscule power draw mean it’s still a good choice for anyone who doesn’t need high-speed throughput.



How to use Apple Watch with iPhone

The first wearable gadget from Apple beams messages, Facebook updates and simplified apps to our wrists, eliminating the all-too-common need to take out our Apple devices to constantly check notifications. The Watch and the iPhone are intimately connected and should be considered as one system together. There are more than a dozen ways to interact with the Watch, from receiving glanceable notifications, to feeling ‘taptic’ feedback, to summoning Siri, according to WatchKit documentation for developers.



Why do you need to buy the newest MacBook?

Launched by Apple CEO Tim Cook in March, the new MacBook builds upon years of learning about miniaturisation during iPad and iPhone development to deliver the thinnest and lightest MacBook yet. “Can you even see it? Can you even feel it?” joked Cook. But not everyone is happy with the decision to equip the system with just one port (USB-C) to handle power, peripherals and external displays.




Wednesday, June 18, 2014

3D Printing – Things you need to know

The printing press is one of the greatest inventions of all time. It allowed for easy and rapid printing of books and information which spread literacy and knowledge across the world. The printing press revolutionize the spread of information.


Tuesday, June 17, 2014

GTX 780 Ti – Review and Benchmarks

Few things get us more excited around here. This high-end graphics card launches and as far as single GPU, the GTX 780 Ti is about as high end as it gets. We will start with its specs. It has the same GK 110 lineage in the Titan DNA as the GTX Titan and the GTX 780. It also has full 2,880 CUDA cores that is 25 percent more than GTX 780. It is clocked in 875 MHz base clock and 928 MHz boost clock. These additional CUDA cores and higher clock speeds complements to the 3 gigabytes of DDR5 memory at 7 gigahertz 384-bit bus.



Monday, June 16, 2014

How to Install an Intel LGA1156 or LGA1155 CPU Processor?

This time, we are going to show you how to install your Intel CPU using LGA 1156 or 1155 as fast as possible. Either the first step is to find a little golden triangle on your CPU and align that with the little plastic triangle on the cover, or once you remove the cover, the metal triangle that is on the CPU socket itself.



Next Page Home