Installation Guides

Deepin 
     Tested and Working in 
•	Manjaro Deepin 10.06
•	Deepin 15.2

All

This package must be installed for each user. This package contains a zip file, a Readme file, and an installer script (install.sh) used in the installation process. The installer script will extract the HDSentinel.zip file and do some basic housekeeping.

HDSentinel.zip contains the HDSentinel program, a Readme file, an icon file, a simple script to launch HDSentinel directly using the gnome-terminal emulator, and a custom launcher to be used with the script. The launch script is very, very basic. It is primarily for folks who are not familiar with scripting and/or are new to Linux. If you know your way around a script, you probably do not need these and can get this done on your own. If you know enough to have a terminal emulator preference, this will be baby steps to you. This is aimed at folks who don't spend a lot of time outside of the GUIs. That said, the package does make installing and using HDSentinel a lot easier.

The launch script automatically generates and saves a report. This feature is already built into HDSentinel with the -r switch. By default HDSentinel saves the report in the same folder as the HDSentinel program, (in this case ~/HDSentinel/) with the name "report.txt", which is overwritten each time "HDSentinel -r" is executed. This means old reports are not saved. The launch script enables the -r switch but alters the naming protocol and saves the report with a filename that includes the creation date and time, so that the reports are easily identified and old reports are saved rather than overwritten.  If the user does not wish to generate a full report, there is a nosave script. It can be launched manually, but it is not installed automatically. The scripts are located at ~/HDSentinel/Gnome/ 

Permissions should be set automatically, but if the launchers do not work properly, you'll need to be sure the permissions are set on the HDSentinel program file to allow executing the file as a program, and also do the same thing for the launch script, and the launcher. 

Deepin
You need to install Gnome-Terminal from the Deepin Store. Just search in the store for terminal and it will come up. Gnome-Terminal gives us an easy way to hold the terminal open, so we want use it and the gnome HDS installer. You also need to install unzip (when they say it's a lightweight distro, they aren't kidding). Sadly in addition to not being installed, you can't find it in their store either (at least not when I wrote this). But no worries, it's easy to install. Open a terminal and enter sudo apt-get install unzip and hit return. When it's done doing its thing, you'll have a nice copy of the unzip utility on your computer. 
After installing unzip and gnome-terminal, and downloading the installer, you must set the file to be executable in the Properties>Permissions tab. In addition, you must also set some things up in your file manager. To open Files (the file manager for Deepin) click on the Files Icon in the Dock (taskbar) at the bottom of the screen. With Files open you will get a menu bar at the top of the window. Click on the purple File Icon in the upper left corner of the window. Click Preferences>Behavior tab and in the Executable Text Files section, select either Run executable text files when they are opened or Ask what to do. 
You must also create a profile for Gnome-Terminal. To create a profile for Gnome-Terminal, open a Gnome-Terminal window by clicking on the Launcher (menu) Icon in the Dock (taskbar) at the bottom of the screen. It's the one with the white rocketship taking off. You do not want the Deepin Terminal, you want just plain Terminal (which is the Gnome-Terminal). Its way down near the bottom of the list so scroll down till you see it and click on it.
You'll have a menu bar at the top of the terminal window (if you don't, you clicked on the Deepin Terminal not the Gnome-Terminal). Click on File>New Profile, name your new profile HoldOpen. Click on the Command Tab and set the When command exits box to hold the terminal open. Close the editing Profile popup and the terminal window. Now you can click on the installer HDSgnomeXXinstaller.run (where XX is either 32 or 64, depending on which version of the OS you are running) and select Run in Terminal.
At this point you should  have an HDSentinel Icon on the desktop and in the Menu (what they call Launcher, that rocketship button), in the System section. Click (or double click for the desktop Icon) on either HDS Icon, and the program will spawn a gnome-terminal and execute. It will hold open the terminal when finished so you can see a synopsis of the report it generated. But the full report will be saved in your home folder, in a subfolder called HDSentinel. You can also add the HDS Icon to the Dock if you want. Click on the Launcher rocketship icon again, scroll down to the HDS Icon in the menu, right click on the HDS Icon and select Send to Dock.

Manjaro Deepin
This isn't running the Gnome DE, but in addition to its Deepin Terminal, this distro also includes Gnome-Terminal. Since gnome-terminal gives us an easy way to hold the terminal open, we want to use it and the gnome installer.
After downloading the installer you must set the file to be executable in the Properties>Permissions tab. In addition, you must also set some things up in your file manager. To open Files (the file manager for Deepin) click on the Files Icon in the Dock (taskbar) at the bottom of the screen. With Files open you will get a menu bar at the top of the window. Click on the purple File Icon in the upper left corner of the window. Click Preferences>Behavior tab and in the Executable Text Files section, select either Run executable text files when they are opened or Ask what to do. (Hint, to close this preferences window, you have to be a bit of a mind reader. There is no close, exit or even just an X. You can either right click on the gray bar at the top (the bar that has Preferences in the middle) and select Close, or remember the keyboard shortcut, which is Alt+F4. You must also create a profile for Gnome-Terminal. To create a profile for Gnome-Terminal, open a terminal by clicking on the Launcher (menu) Icon in the Dock (taskbar) at the  bottom of the screen. It's the one with the red button with the white rocketship taking off). You do not want the Deepin Terminal, you want just plain Terminal (which is Gnome-Terminal). It's way down near the bottom of the list so scroll down till you see it and click on it.
You'll have a menu bar at the top of the terminal window (if you don't, you clicked on the Deepin terminal not the Gnome-Terminal). Click on File>New Profile, name your new profile HoldOpen. Click on the Command Tab and set the When command exits box to hold the terminal open. Close the editing Profile popup and the terminal window. Now you can click on the installer HDSgnomeXXinstaller.run (where XX is either 32 or 64, depending on which version of the OS you are running) and select Run in Terminal.
At this point you should have an HDSentinel Icon on the desktop and in the Menu (what they call Launcher, that rocketship button). Click (or double click) on either HDS Icon, and the program will spawn a gnome-terminal and execute. It will hold open the terminal when finished so you can see a synopsis of the report it generated. But the full report will be saved in your home folder, in a subfolder called HDSentinel. You can also add the HDS Icon to the Dock if you want. Click on the Launcher rocketship icon again, scroll down to the HDS Icon in the menu, right click on the HDS Icon and select Send to Dock.