Pine64-arch install: Difference between revisions
From wikinotes
m (Will moved page Pine64-arch pinephone to Pine64-arch install without leaving a redirect) |
No edit summary |
||
Line 32: | Line 32: | ||
</source> | </source> | ||
</blockquote><!-- Install --> | </blockquote><!-- Install --> | ||
= Serial Port = | |||
<blockquote> | |||
You can purchase a USB-C-headphone jack adapter and connect via serial cable.<br> | |||
See https://bloggerbust.ca/post/my-first-experience-connecting-to-the-phinephone-via-serial-console/ | |||
</blockquote><!-- Serial Port --> | |||
= Flashing Image = | |||
<blockquote> | |||
<source lang="bash"> | |||
# 1. download image from releases on https://github.com/dreemurrs-embedded/Pine64-Arch | |||
# 2. decompress image | |||
xz -d pine.img.xz | |||
# 3. flash image | |||
sudo dd if=pine.img of=/dev/mmcblk1 bs=1M status=progress conv=fsync | |||
</source> | |||
</blockquote><!-- Flashing Image --> | |||
= Custom Install = | |||
<blockquote> | |||
<source lang="bash"> | |||
# set username (superficial, does not affect unix user) | |||
# you can create additional users, but not login as them | |||
Settings > Users | |||
</source> | |||
<source lang="bash"> | |||
# interactive login, then enable ssh | |||
# user: alarm | |||
# pass: 123456 | |||
sudo systemctl enable sshd | |||
sudo systemctl start sshd | |||
# temporarily start x2goserver to configure finnicky desktop apps w/ mouse | |||
sudo pacman -S x2goserver | |||
sudo systemctl start x2goserver | |||
# obtain ip address | |||
ip addr | |||
# adjust apps to phone (fixes evolution, possibly gnome apps) | |||
dconf write /sm/puri/phoc/scale-to-fit true | |||
# continue over ssh | |||
</source> | |||
From here, use generate installscript using <code>${saltmaster}/setup/hydrospanner/archlinux-arm/</code>.<br> | |||
Make sure to restart or disable salt-minion following provisioning. | |||
</blockquote><!-- Custom Install --> | |||
= Carrier Configuration = | |||
<blockquote> | |||
calls/non-imessage sms works (chatty). 4G connected, but not assigned an ip addr. | |||
<source lang="yaml"> | |||
- put sim card in (mine is too large, but kind of works) | |||
- settings > mobile: | |||
- [x] enable (top-right) | |||
- [x] mobile data | |||
- network mode: 2G, 3G, 4G | |||
- network: koodo | |||
- access point names: | |||
# sp.telus.com | |||
# able to call/send-recv sms | |||
# unable to connect to internet | |||
</source> | |||
I also had to go to https://koodomobile.com/imessage and disable imessage. (?) | |||
</blockquote><!-- Carrier Configuration --> | |||
= Mobile Data Connection = | |||
<blockquote> | |||
my sim card was not pin-locked. | |||
<source lang="bash"> | |||
sudo nmcli c show # list connections | |||
sudo nmcli dev status # list avail devices | |||
sudo nmcli connection # list connections | |||
sudo nmcli connection up ${conn_name} # bring up connection | |||
sudo systemctl status ModemManager # modem status | |||
sudo journalctl -u ModemManager.service # logs | |||
</source> | |||
Additional/low-level configuration resources: | |||
{| | |||
|- | |||
| https://unix.stackexchange.com/questions/113975/configure-gsm-connection-using-nmcli | |||
|- | |||
| https://www.freedesktop.org/software/ModemManager/man/1.0.0/mmcli.8.html | |||
|- | |||
| https://core.docs.ubuntu.com/en/stacks/network/modem-manager/docs/configuring-cellular-connections | |||
|- | |||
| https://forum.pine64.org/showthread.php?tid=9268&highlight=connect+mobile+data | |||
|} | |||
</blockquote><!-- mobile data connection --> | |||
= Media = | |||
<blockquote> | |||
<source lang="bash"> | |||
~/Music # scp music here for gnome-music | |||
</source> | |||
</blockquote><!-- music --> | |||
= Tips/Tricks = | |||
<blockquote> | |||
<source lang="bash"> | |||
# apparently gnome-contacts inherits carddav contacts from evolution | |||
# evolution can be resized to fit screen using `dconf`. | |||
dconf write /sm/puri/phoc/scale-to-fit true | |||
</source> | |||
</blockquote><!-- Tips/Tricks --> |
Revision as of 01:59, 13 March 2022
You may also be interested in Archlinux arm hydrospanner
Documentation
github https://github.com/dreemurrs-embedded/Pine64-Arch/releases
Tutorials
archlinux arm on pinephone https://xnux.eu/howtos/install-arch-linux-arm.html
Install
# 1. download 'phosh' release from github # (can likely use bare release now) # 2. extract xz -d ping.img.xz # 2. dd .img file to SD card sudo dd if=pine.img of=/dev/mmcblk1 bs=1M status=progress conv=fsync
Serial Port
You can purchase a USB-C-headphone jack adapter and connect via serial cable.
See https://bloggerbust.ca/post/my-first-experience-connecting-to-the-phinephone-via-serial-console/
Flashing Image
# 1. download image from releases on https://github.com/dreemurrs-embedded/Pine64-Arch # 2. decompress image xz -d pine.img.xz # 3. flash image sudo dd if=pine.img of=/dev/mmcblk1 bs=1M status=progress conv=fsync
Custom Install
# set username (superficial, does not affect unix user) # you can create additional users, but not login as them Settings > Users# interactive login, then enable ssh # user: alarm # pass: 123456 sudo systemctl enable sshd sudo systemctl start sshd # temporarily start x2goserver to configure finnicky desktop apps w/ mouse sudo pacman -S x2goserver sudo systemctl start x2goserver # obtain ip address ip addr # adjust apps to phone (fixes evolution, possibly gnome apps) dconf write /sm/puri/phoc/scale-to-fit true # continue over sshFrom here, use generate installscript using
${saltmaster}/setup/hydrospanner/archlinux-arm/
.
Make sure to restart or disable salt-minion following provisioning.
Carrier Configuration
calls/non-imessage sms works (chatty). 4G connected, but not assigned an ip addr.
- put sim card in (mine is too large, but kind of works) - settings > mobile: - [x] enable (top-right) - [x] mobile data - network mode: 2G, 3G, 4G - network: koodo - access point names: # sp.telus.com # able to call/send-recv sms # unable to connect to internetI also had to go to https://koodomobile.com/imessage and disable imessage. (?)
Mobile Data Connection
my sim card was not pin-locked.
sudo nmcli c show # list connections sudo nmcli dev status # list avail devices sudo nmcli connection # list connections sudo nmcli connection up ${conn_name} # bring up connection sudo systemctl status ModemManager # modem status sudo journalctl -u ModemManager.service # logsAdditional/low-level configuration resources:
Media
~/Music # scp music here for gnome-music
Tips/Tricks
# apparently gnome-contacts inherits carddav contacts from evolution # evolution can be resized to fit screen using `dconf`. dconf write /sm/puri/phoc/scale-to-fit true