How to open a terminal on my PC to the PinePhone?
When I connect my Librem 5 to a Linux PC via a USB cable, I can use the command picocom /dev/ttyACM0 on my PC to open a terminal inside the Librem 5. This is very convenient, since it allows me to use my PC's screen and keyboard and to easily cut and paste into the Librem 5 terminal.

However, I can't figure out how to get picocom to work with the PinePhone. How can I open a terminal in the PinePhone on my PC?
I'm currently running Mobian, but I would be interested in hearing solutions for other operating systems as well.
【On your phone】
sudo apt install ssh
sudo systemctl enable ssh

Then check your IP address (should be 192.168.x.x, 172.16.x.x, or 10.x.x.x, replace "x" with whatever shows up).
ip a

【On your PC】
ssh mobian@(IP address of your phone)

Then to skip the password (optional step, but very convenient if you frequently login):
【On your PC】
cat .ssh/
(Copy the output, if there is none or an error message, generate your SSH key.)

【On your phone】
mkdir .ssh # If not done already
nano .ssh/authorized_keys # or vi .ssh/authorized_keys, or vim .ssh/authorized_keys, or mcedit .ssh/authorized_keys etc.
(Paste the output you copied and save the file.)
If you really want a serial terminal rather than ssh you'll need to check how they configure the USB gadget mode. This is more of a pointer for research than a set of instructions as I don't know the details. There's an example in the Mobian wiki for changing between different networking gadgets at runtime using entries under /sys/kernel/config/usb_gadget/g1
There should be a similar way to add a serial gadget.
Once you have a serial interface you need to start getty or similar on the serial port, whether manually or using a service file like getty@ttyGS0.service

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I record video on a Pinephone? kk22 18 5,177 Yesterday, 05:18 PM
Last Post: baptx
  Pinephone not booting, always vibrating alexander12 8 5,726 07-19-2024, 07:50 PM
Last Post: Blackheart
  PinePhone Pro P. Siera 2 186 07-17-2024, 12:41 AM
Last Post: P. Siera
  eSIM on PinePhone just_a_q 6 3,388 07-02-2024, 01:30 AM
Last Post: zetabeta
  PinePhone Boots but only Shows Black Screen with Backlight danyeaw 1 177 06-30-2024, 10:18 AM
Last Post: danyeaw
  Pinephone won't boot. spha 13 4,222 05-15-2024, 10:31 PM
Last Post: Richy_T
  Pinephone boot. Richy_T 5 759 05-15-2024, 03:35 PM
Last Post: Richy_T
  PinePhone - boot from microSD laserpyramid 9 1,744 05-03-2024, 10:09 AM
Last Post: laserpyramid
  pinephone virtual keyboard aular 4 898 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 620 04-02-2024, 11:50 AM
Last Post: Kevin Kofler

Forum Jump:

Users browsing this thread: 1 Guest(s)