If you want to use this tool outside of the SDK installation directory you have to set SDKDIR environment variable. How to get root permission: sudo -A /bin/askpass-tool Sudo will ask when starting scripts sudo -E ./b2qt-flashing-wizard -E is needed to keep the X vars Variables needed: #!/bin/bash export HOME=/home/rkeller export XDG_SESSION_COOKIE=0dbc1b47e88f5cfa62c5818b00000237-1381472004.761811-1314725543 ./b2qt-flashing-wizard GUI stuff: kdesu gsu