Skip to content

Instantly share code, notes, and snippets.

@fallenangel3k
Created January 22, 2021 16:51
Show Gist options
  • Select an option

  • Save fallenangel3k/2c98f66bab36e0957ac462f7bb3660e9 to your computer and use it in GitHub Desktop.

Select an option

Save fallenangel3k/2c98f66bab36e0957ac462f7bb3660e9 to your computer and use it in GitHub Desktop.
gksu & gksudo replacement
Ubuntu 18.04: Some installation programs and others do need gksudo or gksu to be available with the same name. To make these work:
Install gnome version of ssh-askpass. Without this the password dialog may be hidden behind another window:
sudo apt-get install ssh-askpass-gnome
Create new file my-gksudo.sh:
sudo -H gedit /etc/profile.d/my-gksudo.sh
file content:
export SUDO_ASKPASS=/usr/bin/ssh-askpass
Create new files gksudo and gksu with identical content:
sudo -H gedit /usr/bin/gksudo
and
sudo -H gedit /usr/bin/gksu
file content for both:
sudo -A $@
Make gksudo and gksu executable:
sudo chmod +x /usr/bin/gksudo
And
sudo chmod +x /usr/bin/gksu
Reboot the computer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment