This repo contains my notes for using the PinePhone. It includes some steps for setting up Arch Linux the way I like it, and some workarounds to compensate for things that aren't quite working yet on the PinePhone out of the box. These notes are mainly for me, but they're up here incase they may be useful to anyone else :)
I've been using my PinePhone as my daily driver since July 1st, 2021.
Dreemurrs's script for installing Arch on the PinePhone/PineTab with full disk encryption works perfectly. It can be found here -> archarm-mobile-fde-installer.
- Get things updated with
sudo pacman -Syu
. - Enable ssh
sudo systemctl start sshd.service
, only do this at home while you've got password auth enabled (especially with password123456
).
- SSH in to do the rest of this so that it's not all phone screen typing nonsense.
- Change password for alarm user (keep numeric so pin works)
passwd
. Thensu root
andpasswd
to change the root password...then exit. - Make ssh directory
mkdir ~/.ssh
. - Install some usefull stuff via
sudo pacman -S wget vim
- Download keys for key auth
wget https://github.com/d0n601.keys -O ~/.ssh/authorized_keys
. - Exit the session and ssh in again with no password to verify functionality.
- Disable password authentication to ssh via
sudo vim /etc/ssh/sshd_config
, and settingPasswordAuthentication no
.
sudo pacman -S nemo
sudo pacman -S gnome-podcasts
sudo pacman -S cronie
sudo systemctl enable cronie.service
- Install zsh and git via
sudo pacman -S zsh git
. - Install ohmyzsh via
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
. - Set my favorite theme via
ZSH_THEME="duellj"
in~/.zshrc
. - Clone zsh-autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Set very convenient auto suggestion plugin via
plugins=(git zsh-autosuggestions)
in~/.zshrc
. - Bonus:
sudo pacman -S cowfortune
and addcowfortune
to the bottom of~/.zshrc
.
I used Manjaro with Posh for a while before switching to Arch, and I missed the look of the default Manjaro setup.
- Clone the repo
git clone https://github.com/Ste74/papirus-maia-icon-theme.git
. - Make the directory icon
sudo mkdir /usr/share/icons/Papirus-Dark-Maia
. - Copy all the files from the dark theme over
sudo cp -R ./papirus-maia-icon-theme/Papirus-Dark-Maia/* /usr/share/icons/Papirus-Dark-Maia
. - Set the icons
gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark-Maia"
. - Reboot.
Some headphones worked, some didn't. I found the steps below allowed me to pair the nicer set of headphones I've got that weren't working before.
- Install Pulas Audio Bluetooth
sudo pacman -S pulseaudio-bluetooth
. - Add
Enable=Source,Sink,Media,Socket
to[General]
section of/etc/bluetooth/main.conf
. - Then
pulseaudio -k
.
sudo nmcli device wifi hotspot ifname wlan0 con-name Hotspot ssid YOURKOOLSSID password APASSWORDHERE
This sections is for temporary workarounds for things that aren't quite working on the PinePhone as of writing this. Hopefully this section will dwindle away to null
in the future.
While there aren't many applications with a GUI built for mobile devices, it's helpful to use desktop apps in "scale-to-fit" mode (if your eyesight is good enough).
gsettings set sm.puri.phoc scale-to-fit true
- Clone repo here via
git clone https://github.com/ProtonMail/proton-bridge.git
- Install dependencies
sudo pacman -S gcc libsecret go
.
Right now the alarm clock won't wake the phone from deep sleep, which means it will not work as an alarm clock. Currently Posh users can install the birdie app instead, which works excellent. I forked it to change the alarm sound to the more familar Ubuntu Touch alarm I'm used to, and to increase the snooze time significantly ;)
- Install dependencies if you've not done so already via
sudo pacman -S python-pip make gcc
. - Clone the original, or in this case my fork, via
git clone https://github.com/d0n601/birdie
. - Move into the directory
cd birdie
. - Install the dependencies via
pip3 install -r requirements.txt
.
The modem will drop connection from time to time. Instead of having to pay attention to it, make a cronjob and script to reset it if it's dropped off.
- Create script called
test-and-connect-modem.sh
.
#!/bin/bash
FILE=/dev/ttyUSB2
if ! test -c "$FILE"; then
systemctl restart eg25-manager
fi
- Set privileges and ownership of script
sudo chown root:root test-and-connect-modem.sh && sudo chmod 700 test-and-connect-modem.sh
. - Enable cron to run every minute via
sudo crontab -e
and add* * * * * /home/alarm/test-and-connect-modem.sh
.
Sending and recieving MMS now works simply by enabling the settings in Chatty and having mmsd-tng
installed source.