Skip to main content
edited body
Source Link
neuron
  • 2k
  • 12
  • 20

You can add the following to your ~/.bashrc and source it then.

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:password /size:1024x768 /clipboard /cert-ignore &
}

To execute: xfreerdpp xxx.xxx.xxx.xxx &

Please also consider the security concern raised by @Nasha too.

In order to pass the password as an argument you can do:

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:$2 /size:1024x768 /clipboard /cert-ignore &
}

And then execute: xfreerdpp xxx.xxx.xxx.xxx password &

You can add the following to your ~/.bashrc and source it then.

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:password /size:1024x768 /clipboard /cert-ignore
}

To execute: xfreerdpp xxx.xxx.xxx.xxx &

Please also consider the security concern raised by @Nasha too.

In order to pass the password as an argument you can do:

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:$2 /size:1024x768 /clipboard /cert-ignore
}

And then execute: xfreerdpp xxx.xxx.xxx.xxx password &

You can add the following to your ~/.bashrc and source it then.

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:password /size:1024x768 /clipboard /cert-ignore &
}

To execute: xfreerdpp xxx.xxx.xxx.xxx

Please also consider the security concern raised by @Nasha too.

In order to pass the password as an argument you can do:

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:$2 /size:1024x768 /clipboard /cert-ignore &
}

And then execute: xfreerdpp xxx.xxx.xxx.xxx password

Source Link
neuron
  • 2k
  • 12
  • 20

You can add the following to your ~/.bashrc and source it then.

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:password /size:1024x768 /clipboard /cert-ignore
}

To execute: xfreerdpp xxx.xxx.xxx.xxx &

Please also consider the security concern raised by @Nasha too.

In order to pass the password as an argument you can do:

xfreerdpp() {
    xfreerdp /v:$1 /u:username /d:domain /p:$2 /size:1024x768 /clipboard /cert-ignore
}

And then execute: xfreerdpp xxx.xxx.xxx.xxx password &