06.08.2015 Views

RASPBERRY PI

MagPi36

MagPi36

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FeatureGET STARTED WITH <strong>RASPBERRY</strong> <strong>PI</strong>INSTALLING AND UPDATING SOFTWAREExpand and maintain Raspbian for a long-lasting Raspberry Pi experienceINSTALL NEW SOFTWAREYou’re not limited to the softwarethat’s just on Raspbian when youinstall it. Raspbian has access tothousands of different programsthat you can download and install,just as you would with smartphoneapps. Raspbian doesn’t have anapp store, though, so you need toinstall them using the terminal.This does require you to alreadyknow what the software is calledto install it in the terminal, sinceyou can’t browse the software inthe same way as on your phone. Ifyou’re not sure of the exact nameof the software you want, you mayhave to Google it. Otherwise, ifyou’re looking for a specific kind ofapp, you can use a command likethe following to search for it:When it’s installed, youcan immediately startusing your new software,no restart required$ apt-cache search ftpIt will return a list of packages andtheir details. The package nameis how you install the software; inour case, FileZilla comes back asan FTP client. Its package name is‘filezilla’. So, to install it, we use:$ sudo apt-get installfilezillaThis will download the packageand any other necessary softwareit needs to run, and installit to Raspbian.UPDATE YOURSOFTWARE AND OSThe software on Raspbian willbe periodically updated online,bringing with it bug fixes andsecurity updates. Those don’tautomatically sync with theRaspberry Pi, though, and youshould regularly check to see ifthere are any updates for yoursystem. This is handled entirelyin the terminal again, much likethe software installation.The update process consistsof two parts: first you need toupdate the repositories; thisis the list of available softwareand their versions kept on yoursystem. You do that by firstentering the command:It may look likegobbledygook, butit’s telling Raspbianwhich softwareneeds to be updatedThis will check online tosee the state of the softwarerepositories and report back tothe Raspberry Pi, saving anychanges. It will then determinewhat software can be and shouldbe updated, but you then needto tell it to perform the updatewith this command:$ sudo apt-get upgradeEvery now and then, theremay be a major update to theRaspbian operating system,bringing with it big changeslike a new interface or browser,etc. It’s very rare, but when ithappens, you can perform theupgrade with:Raspbian asks you to agree to aninstallation with a simple press of Y$ sudo apt-get update$ sudo apt dist-upgrade22 August 2015raspberrypi.org/magpi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!