From PINE64
Jump to navigation Jump to search

Installing Arch on a PinePhone

Think of this a guide, MOST of these commands will need to be changed depending on your setup

Jumpdrive OR new image
cd ~/Downloads/
unxz ./pine64-pinephone.img.xz
lsblk (Plug in the SD card)
sudo umount /run/media/user/1FAE-0542/
sudo dd if=~/Downloads/pine64-pinephone.img of=/dev/sdd status=progress
sudo sync

Start Phone


sudo systemctl enable --now sshd
sudo systemctl disable --now sshd

Updating Arch

ssh alarm@
https://archlinux org/mirrorlist/all/https
sudo pacman -Sc
sudo pacman -Sy
sudo pacman -Rns $(pacman -Qtdq)
sudo pacman -S archlinux-keyring
sudo pacman -Syu

PinePhone Arch Packages

sudo pacman -S gedit
sudo pacman -S pcmanfm-gtk
sudo pacman -S danctnix-tweaks-app-pinephone danctnix-tweaks-app-phosh
sudo pacman -S gnome-screenshot
sudo pacman -S modem-manager-gui
sudo pacman -S aspell aspell-en
# go into gedit and select preferences >> spelling >> preferences >> highlight misspelled words
NOT sudo pacman -S hunspell-en_us
sudo pacman -S syncthing
sudo systemctl start system-syncthing.slice
sudo systemctl start syncthing@alarm.service
sudo systemctl enable syncthing@alarm.service
#local host: http://localhost:8384/

Arch Commands

Mount SD

sudo mkdir /home/SD
sudo chmod 777 /home/SD
sudo mount /dev/mmcblk0p1 /home/SD/


PHOSH - App filter

gsettings set sm.puri.phosh app-filter-mode '[]'
gsettings set sm.puri.phosh app-filter-mode '["adaptive"]'

Screen Scaling

OLD sudo pacman -S wlr-randr
OLD wlr-randr --output DSI-1 --scale 1.5
sudo nano /usr/share/phosh/phoc.ini
#change scale to 1.5 not 2

Restart Modem

sudo systemctl restart eg25-manager.service


gsettings list-recursively
gsettings list-recursively > test.txt

Building Arch packages

sudo pacman -S cmake make pkg-config wget fakeroot gcc


sudo pacman -S meson python-pkgconfig python-dbus python-distro python-requests python-pytz python-mutagen python-peewee granite meson ninja granite
cd /home/alarm/Downloads
tar -xvzf cozy-audiobooks.tar.gz
cd cozy-audiobooks
makepkg PKBUILD
scp /home/alarm/Downloads/cozy-audiobooks/cozy-audiobooks-1.1.2-1-aarch64.pkg.tar.xz mhenson@
#on a local computer run
repo-add /home/Network/Packages/aarch64/custom.db.tar.gz /home/Network/Packages/aarch64/cozy-audiobooks-1.1.2-1-aarch64.pkg.tar.xz


cd /home/alarm/Downloads
sudo pacman -S git meson
tar -xvzf tangram.tar.gz
cd tangram
makepkg PKBUILD
#mount network drive
sudo pacman -U ./tangram-1.4.0-2-any.pkg.tar.xz
cp ./tangram-1.4.0-2-any.pkg.tar.xz /home/Network/Packages/aarch64/
repo-add /home/Network/Packages/aarch64/custom.db.tar.gz /home/Network/Packages/aarch64/tangram-1.4.0-2-any.pkg.tar.xz