Login

Getting Started - Linux

Get Linux Up & Running On Your Pine

Windows
Apple
Linux
What You Need
Pine A64/A64+ Board
Power Supply That Provides 5V 2.0 Amps
A PC With A SD Card Reader
A Minimum 8GB MicroSD Card
A Compression Utility With XZ Support
Disk Imaging Utility
Step 1 Preparation
If you have not already done so please download a Linux image of your choosing.

You will also require a few tools to get the job done which include a compression utility that supports the xz format along with a disk image utility to write the image to your SD card.

Disk Image Utility: Win32 Disk Imager
Compression Utility: 7zip (32 Bit)
Compression Utility: 7zip (64 Bit)

Once the download for the compression utility is completed proceed with unzipping with Windows built in utility by right clicking on the 7zip file and selecting "Extract All". Once Windows has completed extracting the file simply double clicking on the "exe" to start the 7zip installation process and finally click install.

Now that 7zip is installed now proceed with right clicking on the win32-disk-imager.zip file and select "7-Zip" > "Extract to win32-disk-imager".

Finally right click on the Linux image you just downloaded and select "7-Zip" > "Extract Here".
Step 2 SD Card Imaging Via Win32 Disk Imager
Let's insert your MicroSD card into your pc/laptop card reader (may require micro to sd converter card) then proceed to use Win32 Disk Imager which is located in the win32-disk-imager folder you extracted to (double click Win32DiskImager.exe).

You should see the following
Now click on the little blue folder to select the Linux image you previously decompressed then once selected go to the dropdown box located under "Device" and select your SD card. To burn the image to your SD card simply click on "Write".

Once the image has been written to your SD card be sure to close the application and to eject/remove your SD card safely from Windows.
Step 1 Preparation
If you have not already done so please download a Linux image of your choosing.

If you wish to do things via a GUI utility and not via Terminal command line download the following.

Disk Image Utility: ApplePi Baker

Once the download for the disk image utility is completed proceed with the installation by double clicking on the DMG file downloaded.
Step 2a SD Card Imaging Via ApplePi-Baker
Let's insert your MicroSD card into your pc/laptop card reader (may require micro to sd converter card) then proceed to use ApplePi Baker.

You should see the following.
Now under "Pi-Ingredients: IMG Recipe" click on the "..." button and select your un-stuffed image then click on the "Restore Backup" button.

Once the image has been written to your SD card be sure to close the application and to unmount your SD card safely from Mac OS.
Step 2b SD Card Imaging Via Command Line
Open up Terminal and cd into the directory where you un-stuffed the Linux image you downloaded.

We will have to figure out which of your disks is the SD card on your Mac before we can write the image to disk so execute.
diskutil list
Pay attention to the disk number that matches the size of your SD card's and is most likely using the "FDisk_partition_scheme". With the disk number identified execute the following commands (disk2 will be used as an example):
diskutil unmountDisk /dev/disk2
sudo dd if=pine64-image-name.img of=/dev/disk2 bs=1M
Now patiently wait until the command completes writing the image to the SD card.

Once the image has been written to your SD card be sure to unmount your SD card safely from Mac OS.
Step 1 Preparation
If you have not already done so please download a Linux image of your choosing.

If you wish to do things via a GUI utility and not via Terminal command line install the following (Debian/Ubuntu example).
sudo -i
apt-get install gnome-disk-utility
Finally right click on the Linux image you just downloaded and select "Extract Here" if you are using GUI (Mate/Unity/Gnome etc). If you are using Terminal do the following (Debian/Ubuntu example).
sudo -i
cd ~/location_Linux_image
unzip pine64-image-name.zip -d ./
Step 2a SD Card Imaging Via GUI
Let's insert your MicroSD card into your pc/laptop card reader (may require micro to sd converter card) then proceed to use "Disks" which can be found under "Accessories" section of your applications menu.

You should see the following.
Now select the disk you wish to write to and then click on the "Gear" looking button at the top of the UI and select "Restore Disk Image...". Now click on the "File Folder Icon" then select the Linux image file you decompressed (.img) and finally click "Start Restoring...".

Once the image has been written to your SD card be sure to close the application and to unmount your SD card safely from Linux.
Step 2b SD Card Imaging Via Command Line
Open up Terminal and cd into the directory where you decompressed the Linux image you downloaded.

We will have to figure out which of your disks is the SD card on your machine before we can write the image to disk so execute.
lsblk
Pay attention to the disks listed (they will appear as /dev/sda /dev/sdb etc). Look for the /dev/sdX option that matches your SD card's details (size attribute). If you are in doubt eject your disk and re-run the command and if you noticed the output is missing a disk then chances are that is the disk you want to use. Now proceed with the following command (/dev/sdb will be used as an example):
sudo umount /dev/sdb1
sudo dd if=pine64-image-name.img of=/dev/sdb bs=1M
Now patiently wait until the command completes writing the image to the SD card.

Once the image has been written to your SD card be sure to unmount your SD card safely from Linux.
Step 3 Booting
Now insert your SD card into the Pine64 and power it on by connecting the power adapter cable to the microusb port.

Once booted, login with the provided credentials for the image downloaded and execute the following commands (if using a GUI open a terminal application).
sudo -i
/usr/local/sbin/pine64_update_uboot.sh
/usr/local/sbin/pine64_update_kernel.sh
resize_rootfs.sh
reboot
If you are having problems be sure the visit our Linux FAQs page.