Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
793 stars 187 forks source link

Freerdp server select #661

Closed yamcia closed 2 years ago

yamcia commented 3 years ago

I would like to get (after booting) a list of rdp connection. My thinststion.conf.build (part of) looks like this:

MULTI

SESSION_0_TYPE=freerdp SESSION_0_TITLE="Server Select" SESSION_0_AUTOSTART=On

SESSION_0_ICON=On

SESSION_0_FREERDP_SERVER="DUMMY.COM" SESSION_0_FREERDP_OPTIONS="DUMMY OPTIONS" FREERDP_SELECT_SERVER=YES FREERDP_SERVER_0 = 10.0.1.10 FREERDP_SERVER_0_OPTIONS = " /cert-ignore /multimon /d:www /smartcard /usb:auto" FREERDP_SERVER_1 = 10.0.1.11 FREERDP_SERVER_1_OPTIONS = " /cert-ignore /multimon /d:www /smartcard /usb:auto"

Unfortunately it doesn't work. After booting I receive a xdialog man page. What is wrong with it?

Thinstation commented 3 years ago

You don't need SESSION_0_FREERDP_SERVER or _OPTIONS. The FREERDP_SERVER_0 and _1, need to have a numerical tag starting at 1 along with the IP or DNS name. It's a little un-intuitive, as the SERVER index starts at 0, and the tag index starts at 1. 'IP' might need some single tick inner quotes. In the example you can see it looks like this. FREERDP_SERVER_0="1 Big_Bad_Server_Donald" FREERDP_SERVER_0_OPTIONS="-sec-nla /d:thinstation.local" FREERDP_SERVER_1="2 Big_Bad_Server_Road_Runner" FREERDP_SERVER_1_OPTIONS="-sec-nla /cert-ignore /d:thinstation.local"

yamcia commented 3 years ago

I did as you suggested. Now I receive a list of servers but I can't connect to any. After choosing one of those I get fields to put my cridentials (an user name and a password). After pressing "Connect" a prompt with reconnection appears. Single connection works very well. Is any log to verify connections?

Thinstation commented 3 years ago

Sorry, not really my code. I updated it a little bit. Got rid of those silly tags. Try the latest commit.

yamcia commented 3 years ago

Unfortunately the changes haven't helped. I receive a prompt with reconnection option. Is there any option to log this operation?

Thinstation commented 3 years ago

Drop the index tag.

You could add set -x to etc/cmd/freerdp.options, then call pkg window freerdp from command line

On Wed, Aug 25, 2021 at 3:57 AM yamcia @.***> wrote:

Unfortunately the changes haven't helped. I receive a prompt with reconnection option. Is there any option to log this operation?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/661#issuecomment-905395279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47TOTDURVAC5EVOL2NLT6TECPANCNFSM5CP3CDBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

yamcia commented 3 years ago

See nothing :( at least nothing I could understand. May be select_server option is not working any more

Thinstation commented 3 years ago

It works for me. I have updated the example documentation.

On Wed, Aug 25, 2021 at 2:35 PM yamcia @.***> wrote:

See nothing :( at least nothing I could understand. May be select_server option is not working any more

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/661#issuecomment-905892580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47R5BBZPCDXLDUMUAJTT6VO3PANCNFSM5CP3CDBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

yamcia commented 3 years ago

I can't find it

Thinstation commented 3 years ago

https://github.com/Thinstation/thinstation/blob/6.2-Stable/ts/build/packages/freerdp/build/conf/50freerdp

yamcia commented 3 years ago

Thanks, I will keep struggling may problems :)