You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanna clone the Ubuntu system, so I need to delete RustDesk.toml and reset password with command line again.
When running sudo rustdesk --password mypassword in .sh, it will return:
Connection refused (os error 111)
But it will not return error when I run in terminal manually.
My shell script:
#!/bin/bash
echo 'This will reset RustDesk ID and set password`'
sudo systemctl stop rustdesk.service
sudo rm -rf /root/.config/rustdesk/RustDesk.toml
rm -rf ~/.config/rustdesk/RustDesk.toml
rm -rf ~/.config/rustdesk/RustDesk_hwcodec.toml
rm -rf ~/.config/rustdesk/RustDesk_local.toml
sudo systemctl start rustdesk.service
sudo rustdesk --password mypassword
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
System: Ubuntu 24.04
I wanna clone the Ubuntu system, so I need to delete
RustDesk.toml
and reset password with command line again.When running
sudo rustdesk --password mypassword
in.sh
, it will return:But it will not return error when I run in terminal manually.
My shell script:
Beta Was this translation helpful? Give feedback.
All reactions