Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a Launcher that will do privileged (requires root) commands, but I don't want to see the terminal or have to type my password into the terminal. So I found the command, gksudo that allows me to enter my password so that I can escalate my privilege level. Now I want to couple this, so that I can change the partition priority using this command cgpt add -i 6 -P 0 -S 0 /dev/sda (this command is privileged) and have it automatically reboot from this one launcher.

I setup a Luncher like this:

Name: ChromeOS


Command: gksudo gnome-terminal -e "cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot"


But it does not work. Any tips?

share|improve this question

You don't need a gnome-terminal while running commands with gksudo .

just add this to the launcher .

gksudo cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot
share|improve this answer
I will give this a shot after I'm done watching the F1 (I have to switch to Ubuntu to play AVI files ... I really think CrOS should have support for AVI files out of the box, but I digress.) – Mark Tomlin May 8 '11 at 2:47
That did not work for me. – Mark Tomlin May 8 '11 at 23:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.