PINE64
Help with ssh and setting default apps - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: Help with ssh and setting default apps (/showthread.php?tid=17330)



Help with ssh and setting default apps - jojuma - 09-10-2022

Hello,

while setting up postmarketos on pinephone I encountered some problems, I don't get along with.

Probably the easier one: I try to access the PP shell via SSH like described on https://wiki.postmarketos.org/wiki/SSH.
The password should be the same like I use for sudo commands, right? But whatever I try, my password is not correct...
And which is the correct folder to put the public key?

Secondly I'm trying to set a default app as video player.
I tried using the xdg-mime command like described on https://wiki.alpinelinux.org/wiki/Default_applications.
But it says
Code:
/bin/ash: xdg-mime: not found
What am I supposed to do about this? xdg-utils should be working, shouldn't it? Or is this about "ash" and "bash"?

I'd be grateful for any hints


RE: Help with ssh and setting default apps - zetabeta - 09-10-2022

(09-10-2022, 07:22 AM)jojuma Wrote: Hello,

while setting up postmarketos on pinephone I encountered some problems, I don't get along with.

Probably the easier one: I try to access the PP shell via SSH like described on https://wiki.postmarketos.org/wiki/SSH.
The password should be the same like I use for sudo commands, right? But whatever I try, my password is not correct...

Secondly I'm trying to set a default app as video player.
I tried using the xdg-mime command like described on https://wiki.alpinelinux.org/wiki/Default_applications.
But it says
Code:
/bin/ash: xdg-mime: not found
What am I supposed to do about this? xdg-utils should be working, shouldn't it? Or is this about "ash" and "bash"?

I'd be grateful for any hints

usually user name is required and for pmos it is "user", mobian has "mobian", archlinux has "alarm" and manjaro has "manjaro".

Code:
$ ssh -p 22 user@ip-number-or-hostname

although in pinephone, i found out that authentication module crashes or malfunctions some cases, so reboot is required.

pmos has firewall activated by default, so it might cause some blocks. proper way is to add necessary holes to the firewall rules. but if lazy.

Code:
## disables firewall, not necessarily good idea for some.
$ sudo service nftables stop

for that default app, i cannot give direct advice but in my knowledge it is handled by gnome components, maybe gsettings.


RE: Help with ssh and setting default apps - jojuma - 09-10-2022

SSH is working now. It was indeed the username, which was wrong. "user" worked.
I was confused, since the username in the terminal is not "user".

Thanks for that!