How to open a terminal on my PC to the PinePhone? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127) +--- Thread: How to open a terminal on my PC to the PinePhone? (/showthread.php?tid=15443) |
How to open a terminal on my PC to the PinePhone? - amosbatto - 11-30-2021 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. RE: How to open a terminal on my PC to the PinePhone? - ryo - 12-01-2021 【On your phone】 Code: sudo apt install 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 【On your phone】 Code: mkdir .ssh # If not done already RE: How to open a terminal on my PC to the PinePhone? - wibble - 12-01-2021 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?id=howto:networking#connecting-the-pinephone-to-windows-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 |