From 0b90de2958577b5d6bd55afa78097701e16ab54b Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Wed, 26 Feb 2020 16:14:35 +0100 Subject: [PATCH 1/2] Allow running Ubiquity on an SSH session Allow this by specifying the $DISPLAY. --- install-zfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-zfs.sh b/install-zfs.sh index 6246057..2888581 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -731,7 +731,7 @@ Proceed with the configuration as usual, then, at the partitioning stage: whiptail --msgbox "$dialog_message" 30 100 fi - ubiquity --no-bootloader + DISPLAY=:0 ubiquity --no-bootloader swapoff -a From e36837876143f9f0b66df680a233c9e651be23ff Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Wed, 26 Feb 2020 16:19:39 +0100 Subject: [PATCH 2/2] Fix display permissions required for running Ubiquity as root Not clear why this is happening now, but it was required for Debian, so it's a standard. --- install-zfs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install-zfs.sh b/install-zfs.sh index 2888581..3ca4801 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -731,6 +731,11 @@ Proceed with the configuration as usual, then, at the partitioning stage: whiptail --msgbox "$dialog_message" 30 100 fi + # The display is restricted only to the owner (`user`), so we need to allow any user to access + # it. + # + sudo -u "$SUDO_USER" env DISPLAY=:0 xhost + + DISPLAY=:0 ubiquity --no-bootloader swapoff -a @@ -767,8 +772,7 @@ Proceed with the configuration as usual, then, at the partitioning stage: whiptail --msgbox "$dialog_message" 30 100 fi - # The display is restricted only to the owner (`user`), so we need to allow any user to access - # it. + # See install_operating_system(). # sudo -u "$SUDO_USER" env DISPLAY=:0 xhost +