Red Barn's original hostname: cornell-MS73-HB2-000
Zeus came preinstalled with LSA libs and StorCLI tools for the hardware RAID controller:
$ lspci | grep RAID 0000:6a:00.0 RAID bus controller: Broadcom / LSI MegaRAID 12GSAS/PCIe Secure SAS39xx
In Downloads/lsi, subdirectories lsa
and sc
were found to contain software installers:
LSA = LSI Storage Authority software
sc = StorCLI = command-line interface tool for managing MegaRAID controllers on Linux systems
https://techdocs.broadcom.com/us/en/storage-and-ethernet-connectivity/enterprise-storage-solutions/storcli-12gbs-megaraid-tri-mode/1-0/v11673312.html
$ cd ~/Downloads/lsi/sc/storcli_rel/Unified_storcli_all_os/Ubuntu $ dpkg-deb --contents storcli_007.3103.0000.0000_all.deb ## shows parent directories of the one executable that was installed... -rwxr-xr-x root/root 8548768 2024-08-22 12:54 ./opt/MegaRAID/storcli/storcli64 $ cd ~/Downloads/lsi/lsa/webgui_rel/gcc_11.2.x $ dpkg-deb --contents LSIStorageAuthority-008.012.007.000-1_amd64.deb ## when run on all 3 .deb files, the above command shows files present in /opt/lsi] $ apt list --installed | grep -i lsi lsistorageauthority/now 008.012.007.000-1 amd64 [installed,local] $ apt list --installed | grep -i lsa ... lsa-lib-utils2/now 9.00-1 amd64 [installed,local] lsa-lib-utils/now 1.18-1 amd64 [installed,local] ... $ apt list --installed | grep -i storcli storcli/now 007.3103.0000.0000 all [installed,local]
Zeus also came preinstalled with NVIDIA drivers and tools.
NVIDIA CUDA appears to be installed in /usr/local/cuda-12.8 (though not nvc++).
*** Proceed by installing other needed software and enabling remote access. ***
Install Intel oneAPI HPC Toolkit to get Intel Fortran Compiler, Intel MPI, other tools
https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2025-1/apt-001.html#HPC-APT
## download the key to system keyring $ wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null ## add signed entry to apt sources and configure the APT client to use Intel repository: $ echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list $ sudo apt update $ sudo apt upgrade $ sudo apt install intel-oneapi-hpc-toolkit ## reboot
Install OpenSSH server
$ sudo apt install net-tools $ sudo apt install openssh-server $ sudo systemctl start ssh.service
Check for Linux firewalls
$ sudo ufw status Status: inactive $ iptables -V iptables v1.8.10 (nf_tables) $ systemctl status nftables O nftables.service - nftables Loaded: loaded (/usr/lib/systemd/system/nftables.service; disabled; preset: enabled) Active: inactive (dead) Docs: man:nft(8) http://wiki.nftables.org $ sudo npt list tables ## no output $ sudo npt list ruleset ## no output $ sudo iptables-save ## no output $ systemctl status ## no firewalld listed... conclusion, no Linux firewall is active
Install various useful bits
$ apt list --installed | grep dkms dkms/noble,noble,now 3.0.11-1ubuntu13 all [installed,automatic] nvidia-dkms-570/unknown,now 570.133.20-0ubuntu1 amd64 [installed] $ sudo apt install emacs ## chose "no configuration" for Postfix configuration $ sudo apt install cmake
Install xrdp (this initial install turned out to need MANY tweaks, later)
https://medium.com/itversity/how-to-set-up-rdp-on-ubuntu-24-04-for-remote-access-b008411727b7
$ sudo apt install xrdp $ sudo adduser xrdp ssl-cert $ telnet localhost 3389 $ telnet localhost 22
Install temperature monitors, as the machine seemed to be running a bit hot
https://askubuntu.com/a/536477
$ sudo apt install psensor $ sudo apt install lm-sensors $ sudo sensors-detect ## only detected "coretemp" as an additional sensor, auto-added it to /etc/modules ## driver "coretemp" corresponds to "Intel digital thermal sensor" $ sudo service kmod start
Install ParaView
$ sudo apt update $ sudo apt upgrade $ sudo apt install paraview
Add first user
$ sudo adduser <first_user> ## uid and gid 1002 were assigned to first user, as gid 1001 was taken by vtune $ grep 1001 /etc/group $ sudo usermod -aG sudo <first_user>
GNOME desktop looks non-standard. Did Red Barn install extensions? What's "ding"?
https://rastersoft.com/programas/ding.html
https://askubuntu.com/a/1133799
$ gnome-extensions list ding@rastersoft.com tiling-assistant@ubuntu.com ubuntu-appindicators@ubuntu.com ubuntu-dock@ubuntu.com
Editing /etc/xrdp/startwm.sh got the GNOME extensions working in xrdp, as well as the console
https://askubuntu.com/questions/1404245/remote-desktop-from-windows-onto-ubuntu-22-04-takes-me-to-a-xrdp-login-then-a-bl/1404412#1404412
https://askubuntu.com/a/1404412
https://askubuntu.com/a/1509416
$ cp /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.bak $ emacs /etc/xrdp/startwm.sh # the three lines below were added; it was all redone later export $(dbus-launch) export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME $ sudo apt install dbus-launch
GNOME was very laggy from home; try Xfce as a lighter-weight alternative
https://www.vps-mart.com/blog/install-xfce-and-xrdp-service-on-remote-ubuntu
$ sudo install xfce4 ## chose lightdm over gdm3 as the display manager, initially $ sudo reboot $ echo "xfce4-session" | tee .xsession # later changed to startxfce4, as it's preferred $ sudo systemctl restart xrdp ## xfce4 desktop appeared successfully in xrdp ## But with lightdm, lock screen for GNOME is disabled. Go back to gdm3: $ sudo dpkg-reconfigure gdm3 $ sudo reboot $ cat /etc/X11/default-display-manager /usr/sbin/gdm3
Install xfce4-goodies after finding out what's in the package (uninstalled later!):
https://packages.debian.org/buster/xfce/xfce4-goodies
$ sudo apt install xfce4-goodies $ sudo reboot
The following was needed to cure a nasty "system program" crash at login
The program that was crashing turned out be a screensaver
$ sudo apt remove light-locker
Learned that Xorg was the default display, not Wayland
This can be seen by clicking the lower-right gear symbol at login
Or do this after logging in via xrdp, with either GNOME or Xfce as the desktop:
$ echo $XDG_SESSION_TYPE x11
It seems X11 is needed because NVIDIA has problems with Wayland:
$ cat /usr/lib/udev/rules.d/61-gdm.rules ... # For nvidia drivers versions Above 510, prefer Xorg by default ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_prefer_xorg" ...
Thus Xorg gets set if NVIDIA driver is > 510 (comments are confusing)
Note that driver modesetting has been enabled for NVIDIA drivers:
$ cat /etc/modprobe.d/nvidia-graphics-drivers-kms.conf options nvidia-drm modeset=1
Did this an extra measure of protection against Wayland:
$ sudo cp /etc/gdm3/custom.conf /etc/gdm3/custom.conf.bak $ emacs /etc/gdm3/custom.conf ## uncomment WaylandEnable=false
Not done, but could be, to make Xfce (or other DE) the default EVERYWHERE:
## sudo update-alternatives --config x-session-manager
Final choices: Display server - Xorg (constrained by NVIDIA card)
Display manager, i.e., graphical login manager - gdm3 (works better with GNOME)
Desktop environments - GNOME 46 (default), Xfce4 (via .xsession)
Window managers - Mutter, xfwm4
https://en.wikipedia.org/wiki/Windowing_system
Change hostname to match LPS subnet name
$ hostname cornell-MS73-HB2-000 $ sudo hostnamectl set-hostname zeus $ hostname zeus
Put xfce4-terminal, Firefox, and ParaView launchers in the taskbar for new users
Experimented with right-click taskbar > Panel... > Add New Items > Launcher
Added a second user (uid 1029) for testing purposes
The following combination was found to work, but only after many, many false starts:
For xfce4-terminal, use xfce4-terminal.desktop in /usr/share/applications
For Firefox, copy firefox_firefox.desktop from /var/lib/snapd/desktop/applications to /usr/share/applications
Edit the copy of firefox_firefox.desktop to set Icon=/snap/firefox/current/default256.png
(Based on
https://forum.snapcraft.io/t/overriding-desktop-files-on-ubuntu-snaps/6599)
(Exact solution:
https://discourse.ubuntu.com/t/firefox-snap-testing-2021-2022/24663/101)
For ParaView, use org.paraview.ParaView.desktop in /usr/share/applications
The above locations are searched automatically at first login; also if panel is wiped out
(See
https://askubuntu.com/questions/224006/resetting-xfce-panels-to-default-settings)
$ cd /etc/xdg/xfce4/panel $ sudo cp -p default.xml default.xml.bak $ sudo emacs default.xml $ diff default.xml.bak default.xml 84c84 < <value type="string" value="xfce4-terminal-emulator.desktop"/> --- > <value type="string" value="xfce4-terminal.desktop"/> 89c89 < <value type="string" value="xfce4-file-manager.desktop"/> --- > <value type="string" value="firefox_firefox.desktop"/> 94c94 < <value type="string" value="xfce4-web-browser.desktop"/> --- > <value type="string" value="org.paraview.ParaView.desktop"/>
Customized copy will appear as ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
Personalized launchers appear in ~/.config/xfce4/panel/launcher-17 to -19
During testing of the above, Firefox wouldn't start properly, even from the command line...
Error: .../user.slice/user-1029.slice/session-c11.scope is not a snap cgroup
Solution: edit /etc/xrdp/startwm.sh to remove $(dbus-launch)
Reason: dbus-launch resets variables that shouldn't be changed after starting X
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491
Firefox then started, but slowly; solution was ultimately to remove xdg-desktop-portal-gnome
Removing it seemed to have no ill effects on either GNOME or Xfce desktops over xdrp
https://bbs.archlinux.org/viewtopic.php?id=285590
https://askubuntu.com/questions/1529418/some-applications-start-very-slow-after-boot-on-ubuntu-24-04
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/74
First tried commenting out export XDG_CURRENT_DESKTOP=ubuntu:GNOME
However, doing that in /etc/xrdp/startwm.sh disables desktop extensions in GNOME
The "snap cgroup" error above revealed that Firefox is among the apps sandboxed using snap
But xdg-desktop-portal-gnome might be needed by Firefox and other snaps?
https://github.com/flatpak/xdg-desktop-portal/discussions/1394
https://askubuntu.com/questions/1278364/how-do-i-find-out-which-snaps-are-using-which-versions-of-the-runtime
Check dependencies using a couple of commands -
$ snap connections $ snap connections firefox ## Shows a connection to gnome-42-22-04 that might be a problem? Try it anyway? $ sudo apt remove xdg-desktop-portal-gnome
Firefox then started well but gave a warning:
$ firefox Gtk-Message: 14:36:19.647: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Solution could be just to remove atk-adaptor...
https://stackoverflow.com/questions/75406844/not-loading-module-atk-bridge-the-functionality-is-provided-by-gtk-natively
However, removing libatk-adaptor also removes ubuntu-desktop and ubuntu-desktop-minimal:
$ apt remove --dry-run libatk-adaptor ... The following packages will be REMOVED: libatk-adaptor ubuntu-desktop ubuntu-desktop-minimal
Doing "unset GTK_MODULES" eliminates the warning, but only in the current shell
Found that this variable is set globally by /etc/X11/Xsession.d/90atk-adaptor, so don't start the latter
https://forum.xfce.org/viewtopic.php?id=13152
https://manpages.ubuntu.com/manpages/noble/man5/Xsession.5.html
$ sudo mv /etc/X11/Xsession.d/90atk-adaptor /etc/X11/Xsession.d/90atk-adaptor.unneeded
Change the default backdrop for xfce4 desktops from xfce-shapes.png to xfce-verticals.png
Customize it for a desktop interactively, then use the config file as a model for the default config
Note, this needs to be done for two monitors under screen0: monitorrdp0 and monitorDP-2
https://unix.stackexchange.com/questions/204586/change-default-xfce-backdrop-for-all-users-via-cli
https://forum.xfce.org/viewtopic.php?id=14986
Turns out there is no default xfce4-desktop.xml file in /etc/xdg/xfce4/xfconf/xfce-perchannel-xml
$ sudo cp ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
Likewise, make Dark Pastels the default font color for Xfce Terminal, after selecting it personally
$ sudo cp ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
Make Xfce the default desktop for all new users by creating /etc/skel/.xsession
https://askubuntu.com/questions/1251513/new-user-use-etc-skel
$ echo "startxfce4" | tee ~/.xsession startxfce4 $ chmod +x ~/.xsession $ sudo cp ~/.xsession /etc/skel
Keep snapd from spamming the syslog with errors every couple of seconds
https://askubuntu.com/questions/1443676/snapd-desktop-integration-syslog-spam/1443938#1443938
$ sudo snap remove snapd-desktop-integration
Install Visual Studio Code (vscode) as a snap
https://code.visualstudio.com/docs/setup/linux
https://canonical.com/blog/visual-studio-code-launches-as-a-snap
$ sudo snap install --classic code $ code $ snap run code # another way to run vscode This generates an annoying pop-up: Authentication required The login keyring did not get unlocked when you logged into your computer
There are several ways to avoid it...
https://askubuntu.com/questions/1352398/asking-for-password-when-i-open-vscode-for-the-first-time
$ code --password-store=basic
Install bare-bones Miniforge for all users https://askubuntu.com/a/1508264
https://github.com/conda-forge/miniforge
$ wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh" $ sudo bash Miniforge3-Linux-x86_64.sh [accept a license?] yes [install location?] /opt/miniforge3 [do init for root?] no
Test if it works outside of sudo
$ /opt/miniforge3/bin/conda init $ conda config --set auto_activate_base false (restart shell) $ which conda /opt/miniforge3/condabin/conda
Time to refresh everything again!
$ sudo apt update $ sudo apt upgrade
TROUBLE! A non-sudo reboot failed because it said another user was logged in on xrdp-sesman (?)
Search: "xdrp session not terminating after logout"
https://github.com/neutrinolabs/xrdp/issues/3434
$ loginctl $ systemctl status --no-pager session-c4.scope CGroup: /user.slice/user-1002.slice/session-c4.scope |--119452 /usr/libexec/geoclue-2.0/demos/agent |--119823 pw-cli -m -d load-module libpipewire-module-xrdp ... ## Try to solve this later, force a reboot for now... $ sudo reboot
NON-SOLUTIONS: tried this first, superseding all previous edits of /etc/xrdp/startwm.sh:
https://github.com/matt335672/xrdp/wiki/Running-GNOME-on-Ubuntu-24.04-LTS
Didn't solve the problem. A series of unsuccessful experiments followed:
https://github.com/neutrinolabs/pipewire-module-xrdp
$ sudo apt remove pipewire-module-xrdp $ sudo apt remove xfce4-goodies $ apt list --installed | grep xfce4-terminal # shows it is still present ## Can no longer get a desktop at all using RDP - start reinstalling stuff via ssh $ sudo apt install pipewire-module-xrdp $ sudo install lightdm ## select lightdm over gdm3 as desktop manager
Turned out client was the problem, not the server - restart client, now OK
However, got a message "The system will suspend now!", ssh session was dropped
https://forums.debian.net/viewtopic.php?p=782606#p782606
This interrupted an attempt to configure Postfix, but there seemed to be no consequence
Had to go to the console to recover, reverted to gdm3
$ sudo touch /etc/systemd/sleep.conf.d/nosuspend.conf $ sudo emacs /etc/systemd/sleep.conf.d/nosuspend.conf # add the following lines [Sleep] AllowSuspend=no AllowHibernation=no AllowSuspendThenHibernate=no AllowHybridSleep=no $ sudo dpkg-reconfigure gdm3 $ sudo reboot
Noticed that more than one dbus-daemon was running, but this seems to be OK
https://manpages.ubuntu.com/manpages/bionic/en/man1/dbus-daemon.1.html
SOLUTION: hide or remove X11 startup scripts that do not terminate correctly upon Xfce lsistorageauthority
https://www.reddit.com/r/kde/comments/1e76oj4/im_looking_for_a_way_to_disable_geoclue_demo_agent/
https://www.reddit.com/r/linuxquestions/comments/do7bex/whats_the_geoclue_demo_agent_startup_entry_for/
https://askubuntu.com/questions/1344050/how-to-disable-tracker-on-ubuntu-20-04
https://askubuntu.com/questions/563143/how-to-prevent-deja-dup-monitor-from-running-or-completely-delete-it
$ sudo mkdir /etc/xdg/autostart/Disabled $ sudo mv /etc/xdg/autostart/geoclue-demo-agent.desktop /etc/xdg/autostart/Disabled $ sudo mv /etc/xdg/autostart/tracker-miner-fs-3.desktop /etc/xdg/autostart/Disabled $ sudo mv /etc/xdg/autostart/print-applet.desktop /etc/xdg/autostart/Disabled $ sudo apt remove deja-dup
Try a couple of things to make GNOME more responsive from off campus
https://www.reddit.com/r/Ubuntu/comments/1ceun0e/xrdp_extremely_slow/
https://www.reddit.com/r/Ubuntu/comments/1ceun0e/comment/lckudb4
$ sudo cp -p /etc/xrdp/xrdp.ini /etc/xrdp.ini.bak ## uncomment tcp_send_buffer_bytes=32768, change value to 4194304 $ sudo emacs /etc/xrdp/xrdp.ini $ systemctl restart xrdp $ sudo sysctl -w net.core.wmem_max=8388608 $ sudo touch /etc/sysctl.d/xrdp.conf $ sudo emacs /etc/sysctl.d/xrdp.conf ## add single line, net.core.wmem_max=8388608
Firefox does not have a frame for its window in Xfce
Solution is to right-click toolbar, choose Customize Toolbar..., and check "Title Bar"
This is not fixable for all users, as snap does read global preferences from anywhere
https://forum.manjaro.org/t/xfce-window-manager-theme-not-being-applied-to-firefox/140496/2
https://support.mozilla.org/en-US/questions/1401832
https://superuser.com/questions/1807184/in-snap-firefox-on-linux-where-to-put-the-files-to-lock-preferences
The Postfix situation was unresolved; it was causing "systemd status" to report "degraded"
https://unix.stackexchange.com/questions/447561/systemctl-status-shows-state-degraded
$ systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION o postfix@-.service loaded failed failed Postfix Mail Transport Agent...
Seems OK just to remove it - it got installed with emacs, not on purpose
https://unix.stackexchange.com/questions/712961/disabling-postfix-on-ubuntu-20-04-on-startup
$ sudo systemctl disable postfix $ sudo apt purge postfix $ sudo apt autoremove $ sudo reboot
CAUTION! Don't use the pop-up GUI window to do OS updates! Here's what happened:
Error message when installing package intel-pti-0.120.12.1-5 -
Trying to overwrite /opt/intel/oneapi/pti/intel-pti-0.120.12.1-5 which is also in package intel-pti-dev-0.120.12.1-5
$ sudo apt update $ sudo apt upgrade # failed $ sudo apt --fix-broken install # worked $ sudo reboot $ sudo apt update $ sudo apt upgrade # worked
Want to make sure all users get the Intel Fortran compiler and Intel MPI by default
Also, need another fix for Firefox, as it won't start in GNOME desktop due to snap container
Firefox solution: put "export XAUTHORITY=$HOME/.Xauthority" in everyone's .profile
https://askubuntu.com/questions/1461966/firefox-from-terminal-on-remote-ubuntu-22-04-via-vnc-cannot-open-display
Solve both problems at the same time, based on a similar solution that worked on Hermes...
$ sudo touch /etc/profile.d/zzintel-snap.sh $ sudo emacs /etc/profile.d/zzintel-snap.sh $ cat /etc/profile.d/zzintel-snap.sh if [ -z "`echo $PATH | grep intel`" ]; then . /opt/intel/oneapi/compiler/latest/env/vars.sh > /dev/null . /opt/intel/oneapi/mpi/latest/env/vars.sh > /dev/null fi ## The next line enables snap applications to run in a remote desktop [ "$DISPLAY" != ":1" ] && export XAUTHORITY=$HOME/.Xauthority
Install more useful bits
$ sudo apt install gedit $ sudo apt install screen $ sudo apt install tmux $ sudo apt autoremove
To start active testing, a test user had his data files transferred to Zeus
The only files in $HOME that seemed worth copying were .bashrc, .emacs, .condarc
These files from $HOME were moved into $HOME/dotfiles_from_Hermes on Zeus
Identical username and UID were added to Zeus with "adduser --uid"
Files were transferred to Zeus
(Got locked out of Hermes with "chage -E 0", but then restored with "chage -E -1")
Several more test users were subsequently added...
Handy command for getting rid of Xfce sessions that were accidentally saved -
[SOLVED] Starting XFCE opens the same applications several times
https://forum.xfce.org/viewtopic.php?id=16160
"delete the contents of ~/.cache/session"
Discovery! X11 initialization was unsetting LD_LIBRARY_PATH in non-login shells
https://stackoverflow.com/questions/74780758/where-is-ld-library-path-unset
https://stackoverflow.com/questions/24230948/debian-wheezy-7-5-variable-ld-library-path-not-loading-in-user-sessions/24234212#24234212
$ sudo emacs /etc/X11/Xsession.d/89preserve_ld_library_path ## SRL 6/24/25: workaround to get LD_LIBRARY_PATH exported for Intel oneAPI STARTUP="/usr/bin/env LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${STARTUP}"
Discovery! A bug in ParaView 5.11.2 prevented PERSEUS VTK files from being loaded
https://discourse.paraview.org/t/unable-to-open-data-with-paraview/14218/18
ERROR: In vtkXMLParser.cxx, line 375 vtkXMLDataParser (0x5e2284e66000): Error parsing XML in stream at line 47, column 1, byte index 2648: not well-formed (invalid token)Solution: Download binary from https://www.paraview.org/download/
$ sudo tar xfvz ParaView-5.13.3-MPI-Linux-Python3.10-x86_64.tar.gz $ sudo mv ParaView-5.13.3-MPI-Linux-Python3.10-x86_64 /opt $ sudo mv /usr/bin/paraview /usr/bin/paraview-broken $ sudo ln -s /opt/ParaView-5.13.3-MPI-Linux-Python3.10-x86_64/bin/paraview /usr/bin/paraview
Install Mathematica 14.2.1 (GUI is now called WolframNB)
Go to https://account.wolfram.com/products, log in, go to Site License (Cornell University)
Download, follow links to installation instructions for Linux -
$ sudo bash Wolfram_14.2.1_LIN_Bndl.sh ## accept all defaults
Start GUI, do "Sign In to Activate Your Product" (starts default browser) - successful
Install COMSOL Multiphysics 6.3.0.420, following the steps in its Installation Guide:
$ unzip Downloads/COMSOL63_lnx.zip $ cd Downloads/COMSOL63_lnx/ $ sudo ./setup
To delete outdated, disabled snap packages and check snap loop devices:
$ snap list --all $ sudo snap remove firefox --revision=6638 # etc. $ losetup -a $ sudo losetup -d /dev/loop5 # etc. ## might take a reboot to remove old devices
To automate the above, use the snap_clean.sh script, as copied from a blog
https://ashrafur.medium.com/how-to-clean-up-old-snap-revisions-and-remove-loop-devices-93e38f1ad1f8
$ cat snap_clean.sh #!/bin/sh set -eu LANG=C snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do snap remove "$snapname" --revision="$revision" done $ chmod 755 snap_clean.sh
Later in Sept., the LSI Storage Authority web client for the RAID was entirely removed.
On 7/31, Red Barn had been alerted that an "LSA" process was taking 100% of a CPU.
The first three commands below did NOT work to stop it, but the last one did:
$ sudo systemctl disable --now LsiSASH $ sudo update-rc.d LSAService disable $ sudo update-rc.d LsiSASH disable $ sudo /etc/init.d/LsiSASH stop
Two months after that, the final steps of removing LSA were carried out as root:
$ sudo su $ cd /opt$ rm -rf lsi$ apt purge lsi-lib-utils # this did not work $ apt purge lsistorageauthority $ dpkg -l | grep lsa-lib ii lsa-lib-utils 1.18-1 amd64 Third party libraries ii lsa-lib-utils2 9.00-1 amd64 Third party libraries $ dpkg --remove lsa-lib-utils $ dpkg --remove lsa-lib-utils2 $ exit $ ps aux | grep LSA | grep -v grep daemon 4234 0.0 0.0 3848 2140 ? Ss May29 23:23 /opt/lsi/LSA/libs2/./slpd $ sudo kill -9 4234