How to open a terminal on my PC to the PinePhone?
#1
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.
  Reply
#2
【On your phone】
Code:
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).
Code:
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】
Code:
cat .ssh/id_rsa.pub
(Copy the output, if there is none or an error message, generate your SSH key.)

【On your phone】
Code:
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.)
母語は日本語ですが、英語も喋れます(ry
  Reply
#3
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
https://wiki.mobian-project.org/doku.php...ws-via-usb
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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 6,366 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 123 12-04-2024, 10:53 PM
Last Post: tracyanne
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 14 18,515 11-27-2024, 09:56 AM
Last Post: bsdbrulll
  eSIM on PinePhone just_a_q 8 5,038 11-05-2024, 11:10 AM
Last Post: zetabeta
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 287 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 5,900 10-30-2024, 08:07 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 466 10-05-2024, 02:20 PM
Last Post: KC9UDX
  How can I record video on a Pinephone? kk22 18 7,700 07-22-2024, 05:18 PM
Last Post: baptx
  Pinephone not booting, always vibrating alexander12 8 7,179 07-19-2024, 07:50 PM
Last Post: Blackheart
  PinePhone Pro P. Siera 2 985 07-17-2024, 12:41 AM
Last Post: P. Siera

Forum Jump:


Users browsing this thread: 1 Guest(s)