Changes

From Amahi Wiki
Jump to: navigation, search
2,565 bytes added ,  02:21, 16 June 2020
rpm -qa --last | head
echo -e ${white}</pre>
== README1ST ==
Terminal Scripts Application README FILE
========================================
The following scripts are included:
* automysqlbackup: Backup multiple MySQL databases on a given schedule.
* diskspace: Displays graphical depiction of all drive space used and remaining.
* dnflog: Shows latest Fedora updates that have been applied.
* dsalert: Sends email if a disk has used a set percentage of space. Requires the system have outgoing email capability.
* folderspace: Displays how much space a specific folder occupies.
* hdaupdates: Shows latest Amahi updates to your HDA.
* smartchk: Provides health status of disks drives set in the script.
* systeminfo: Displays various criteria about the system, to include host name, IP address, uptime, etc.
* weather: Shows weather for a given location as preset in the script.
 
ALL the above scripts may require some modification for your system.
* systeminfo and weather script has a variable that must be changed for your geographical area.
* smartchk requires modification to list all mounted hard disk drives in your system.
* automysqlbackup has various settings will need adjusted for your system. See the [[https://wiki.amahi.org/index.php/Database_Backup:automysqlbackup]] page for details.
Dependencies Installed for Scripts
==================================
* sysinfo: pciutils and procinfo
* smartchk: smartmontools
* dsalert: smartmontools
 
dos2unix (installed with this application)
==========================================
What is it?
<blockquote>dos2unix is a tool to convert text files from DOS line endings (carriage return + line feed) to Unix line endings (line feed). It is also capable of conversion between UTF-16 to UTF-8. Invoking the unix2dos command can be used to convert from Unix to DOS. This tool comes in handy when sharing files between Windows and Linux machines. </blockquote>
 
Why would I need this tool?
<blockquote>While editing files on a machine running some form of Windows and uploading them to a Linux server is convenient, it can cause unforeseen complications. Windows-based text editors put special characters at the end of lines to denote a line return or newline. Normally harmless, some applications on a Linux server cannot understand these characters and can cause the service to not respond correctly. There is a simple way to correct this problem: dos2unix.</blockquote>
 
The dos2unix command is a simple way to make sure that files that have been edited and uploaded from a Windows machine to a Linux machine work and behave correctly.
12,424

edits