teamdfir / sift

SIFT
MIT License
493 stars 65 forks source link

XUbuntu 18.04 SIFT install failure and fix #506

Closed gnittala closed 1 year ago

gnittala commented 3 years ago

Hello, I was installing SIFT via the CLI on Xubuntu 18.04 and SIFT installation fails. The saltstack.log file is attached and there are 5 failures - all related to gnome dock.

OS version details

NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

Error details

$ grep "result: false" saltstack.log 2>/dev/null | wc -l
5
gsettings set org.gnome.shell favorite-apps "['gnome-terminal.desktop','firefox.desktop', 'org.gnome.Nautilus.desktop']"

On the XUbuntu machine this fails. And the root cause of this is because of two missing packages.

I found this by running the gsettings and noticing that on xubuntu these are not available

$ gsettings set org.gnome.shell favorite-apps "['gnome-terminal.desktop','firefox.desktop', 'org.gnome.Nautilus.desktop']"
No such schema “org.gnome.shell”

Fix

sudo apt-get install gnome-shell-extensions gnome-shell-extension-dashtodock

I understand that the supported distro mentions 18.04 Ubuntu Desktop (only default Gnome Desktop) but it might be useful to add this a dependency so that this can work on lightweight Ubuntu distributions too. The specific failures are detailed in the siftlog-failures-20210117.txt file.

saltstack.log siftlog-failures-20210117.txt

ekristen commented 3 years ago

I'll take a look at adding these two dependencies.

Regards, -Erik

On Sun, Jan 17, 2021 at 8:24 AM gnittala notifications@github.com wrote:

Hello, I was installing SIFT via the CLI on Xubuntu 18.04 and SIFT installation fails. The saltstack.log file is attached and there are 5 failures - all related to gnome dock. OS version details

NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

$ grep "result: false" saltstack.log 2>/dev/null | wc -l

5

The main cause of the error is this

gsettings set org.gnome.shell favorite-apps "['gnome-terminal.desktop','firefox.desktop', 'org.gnome.Nautilus.desktop']"

On the XUbuntu machine this fails. And the root cause of this is because of two missing packages.

  • gnome-shell-extensions
  • gnome-shell-extension-dashtodock

I found this by running the gsettings and noticing that on xubuntu these are not available

$ gsettings set org.gnome.shell favorite-apps "['gnome-terminal.desktop','firefox.desktop', 'org.gnome.Nautilus.desktop']"

No such schema “org.gnome.shell”

The fix is to sudo apt-get install gnome-shell-extensions gnome-shell-extension-dashtodock

I understand that the supported distro mentions 18.04 Ubuntu Desktop (only default Gnome Desktop) but it might be useful to add this a dependency so that this can work on lightweight Ubuntu distributions too. The specific failures are detailed in the siftlog-failures-20210117.txt file.

saltstack.log https://github.com/teamdfir/sift/files/5826302/saltstack.log siftlog-failures-20210117.txt https://github.com/teamdfir/sift/files/5826308/siftlog-failures-20210117.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/teamdfir/sift/issues/506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALZSPCSNWGMSNETP2HAB3S2L6JNANCNFSM4WGF37QA .

digitalsleuth commented 3 years ago

After looking into this, it seems that the gnome-shell-extension-dashtodock is only available on Bionic, Hirsute and above, but not on Focal.

Technically, the deb package under Hirsute available on the Ubuntu PPA does install and appears to work on Focal, so it "could" be a viable option. However, any changes that might occur with this package which only function in Hirsute could then break future compatibility in Focal.

@ekristen , if you're interested in giving it a go for Bionic and Focal, I can do up a state which will run on both, but the Focal one will need a direct download of the deb package from the PPA for install.

ekristen commented 1 year ago

We are dropping 18.04 and only supporting 20.04 and 22.04 as soon as https://github.com/teamdfir/sift-saltstack/pull/80 is merged.

Side Note: SIFT CLI will be officially deprecated as of March 1, 2023, and is replaced with cast