Introduction

In this guide you will be provided with the commands to install and uninstall a Mac or Linux Agent as well as the File Locations and Agent Control relating to the Linux and Mac Agents. Each of the Commands and Directories have been checked and thoroughly tested. Should you experience any issues with running these commands or locating the files in the File Locations provided, please contact support@naverisk.com for assistance.

1.0 Installing Linux/Mac Agents

First, download the correct 64bit or 32bit version from your Naverisk console.  

When downloading Linux agents please download them directly to a Linux based machine. If you download the agent to a Windows machine first, then the installer can be modified when sending to the Linux device, resulting in extraction errors.

Install using:

  • sudo bash ./{downloadedfile.sh}

If you need to upgrade it, just repeat the installation command with the new installer.

Mac – Download agent package and double Click to Install.

NOTE: Splashtop Streamer is required as a separate installation on a Mac to enable Naverisk RC to work for Macs. We recommend that this is installed at the same time as the Naverisk Agent. Splashtop Streamer for MacOS can be obtained from https://www.splashtop.com/downloads.

Splashtop Streamer and Naverisk RC are currently unavailable for Linux agents.

2.0 Removing Linux/Mac Agents

Remove Linux or Mac agents by running the following commands in sequence:

2.1 Linux Agents:

sudo systemctl stop naverisk-agent

sudo rm -rf /var/Naverisk

sudo rm -rf /usr/share/Naverisk

sudo rm -rf /root/Naverisk

sudo rm /etc/systemd/system/naverisk-agent.service

2.2 Linux Agents (older versions):

sudo initctl stop naverisk-agent

sudo rm -rf /var/Naverisk

sudo rm -rf /usr/share/Naverisk

sudo rm -rf /root/Naverisk

sudo rm /etc/init/naverisk-agent.conf

2.3 Mac Agents:

Locate the Naverisk Application using ‘Finder’ and move this to the trash. 

sudo launchctl unload /System/Library/LaunchDaemons/com.naverisk.agent.plist

sudo rm -rf /Library/Naverisk

sudo rm -rf /usr/share/Naverisk

sudo rm -rf /var/root/Library/Logs/Naverisk

sudo rm /System/Library/LaunchDaemons/com.naverisk.agent.plist

2.4 Mac Agents (older versions):

sudo launchctl unload /System/Library/LaunchDaemons/com.naverisk.agent.plist

sudo rm -rf /Library/Naverisk

sudo rm -rf /usr/share/Naverisk

sudo rm -rf /var/root/Library/Logs/Naverisk

sudo rm /System/Library/LaunchDaemons/com.naverisk.agent.plist

 

3.0 File Locations

3.1 Linux:

Log files - /root/Naverisk

Config file - /var/Naverisk/Agent

Executable - /usr/share/Naverisk

Service defn - /etc/systemd/system/naverisk-agent.service – Ubuntu 16 and above

Service defn - /etc/init/naverisk-agent.conf – Ubuntu 14 and below

3.2 Mac El Capitan & Above:

Log files - /Applications/Naverisk.app/Contents/macOS/Naverisk

Config files - /Applications/Naverisk.app/Contents/MacOS/Naverisk/Agent/

Executable - /Applications/ Naverisk.app/Contents/MacOS

Packages = /Applications/Naverisk.app/Contents/MacOS/Naverisk/Packages/

Service defn - /Library/LaunchDaemons/

3.3 Mac (older versions):

Log files - /var/root/Library/Logs/Naverisk/

Config files - /Library/Naverisk/

Executable - /usr/share/Naverisk/

Packages = /usr/share/Naverisk/Packages/

Service defn - /System/Library/LaunchDaemons/

4.0 Agent Control

4.1 Ubuntu 14+:

sudo systemctl status naverisk-agent

sudo systemctl stop naverisk-agent

sudo systemctl start naverisk-agent

4.2 Ubuntu (older versions):

sudo initctl status naverisk-agent

sudo initctl stop naverisk-agent

sudo initctl start naverisk-agent

4.3 RedHat:

service naverisk-agent status

service naverisk-agent stop

service naverisk-agent start

4.4 Mac:

sudo launchctl start com.naverisk.agent

sudo launchctl stop com.naverisk.agent (The agent will auto restart following this command)

sudo launchctl unload /Library/LaunchDaemons/com.naverisk.agent.plist (Prevents agent being run)

sudo launchctl load /Library/LaunchDaemons/com.naverisk.agent.plist (Recreate agent service)

5.0 Troubleshooting

Mac: Note - Apple has enabled a default security feature called System Integrity Protection, also known as rootless, in OS X 10.11 onward. The rootless feature is aimed at preventing a macOS X compromise by malicious code, whether intentionally or accidentally. This has affected a large number of Software vendors, including Naverisk. We are working on a revised Agent installer for Mac, but in the interim you can install Naverisk on Mac by temporarily disabling System Integrity Protection.

Disabling rootless is aimed exclusively at advanced Mac users. Do so at your own risk, this is not specifically recommended.

5.1 Disabling/Enabling Rootless System Integrity Protection in OS X El Capitan 10.11 +

  1. Reboot the Mac and hold down Command + R keys simultaneously after you hear the start-up chime, this will boot OS X into Recovery Mode.
  2. From the Recovery Partition, click Utilities from the menu bar, and then select Terminal.
  3. Type the following command into the terminal csrutil disable; reboot then press enter.
  4. You will then see a message that System Integrity Protection has been disabled and your Mac needs to restart for changes to take effect.
  5. The Mac will then reboot itself automatically, and boot as normal.
  6. Install the Naverisk agent as normal.
  7. Confirm the Naverisk agent is running.
  8. Reboot the Mac and hold down Command + R keys simultaneously to boot back into Recovery mode.
  9. From the Recovery Partition, click Utilities from the menu bar, and then select Terminal.
  10. Type the following command into the terminal csrutil enable; reboot then press enter to re-enable System Integrity Protection and re-instate protection against unauthorized installations.
  11. The Mac will then reboot itself automatically, and boot as normal.
Did this answer your question?