qca / boardfarm

Main repo moved to:
https://github.com/mattsm/boardfarm/
BSD 3-Clause Clear License
70 stars 54 forks source link

hard coded username "root" to connect to the boards? #65

Closed yi-liang closed 7 years ago

yi-liang commented 7 years ago

Seems when SSH connect to a board, the expected prompt is prompt = ['root\@.:.#', '/ # ', ".*:~ #",".+@.+:~\$"] /boardfarm/devices/debian.py line 21 which doesn't handle for generic/customised prompt? e.g. raspberry pi's user name could be pi

fasolens commented 7 years ago

You can add to the prompt list what you need. To use non root user you need to use sudo before a lot of commands.

mattsm commented 7 years ago

Also running as a non-root user has not quite been resolved yet.

wwahammy commented 7 years ago

@yi-liang: As @mattsm said, boardfarm doesn't really support running as a non-root user yet. prpl's fork of Boardfarm https://github.com/prplfoundation/boardfarm does have a prototype of non-root user support but it's not in a state where it can be merged upstream. That said, it does function moderately well for us so I encourage you to check out the work we've done.

I'll also be doing a presentation tomorrow at the prplwrt meeting on how prpl sets up boardfarm so I'll try to address some of the changes there.

yi-liang commented 7 years ago

thanks, @fasolens @mattsm @ericschultz