Changes

From Amahi Wiki
Jump to: navigation, search
2,059 bytes removed ,  01:24, 18 June 2017
= Linux Basic Commands =
[[Basics|Linux Basic Commands]] most users will need.
 
= General Linux/HDA Commands =
Fedora (root user)
<table border="1">
<tr>
</tr>
<tr>
<td>systemctl restart httpd.service httpd start</td>
<td>restart web server</td>
</tr>
<tr>
<td>yum dnf -y update</td><td>automatically update fedoraFedora</td></tr><tr><td>rpm -q hda-platform</td><td>check to see what version of HDA you're running</td></tr></table><br />Ubuntu (precede with sudo)<table border="1"><tr><th>Command</th><th>Action</th>
</tr>
<tr>
<td>rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpmservice apache2 restart</td><td>updates HDArestart web server</td>
</tr>
<tr>
<td>rpm apt-q hdaget -platformy upgrade</td><td>check to see what version of HDA your runningautomatically update Ubuntu</td>
</tr>
</table><br />
= HDA Script Commands =
 
'''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory.
 
<table border="1">
<tr>
</tr>
<tr>
<td>[[Reset_Amahi_Password|reset-user-password]]</td>
<td>reset a forgotten user password</td>
</tr>
</table>
'''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory.
'''NOTE:''' Can be run from anywhere (located in '''/usr/bin''').
<table border="1">
</tr>
<tr>
<td>[[Application_Install_Scripts#hda-create-db-and-userutility script|hda-create-db-and-user]]</td><td>create MySql MariaDB user and database</td>
</tr>
<tr>
<td>hda-new-install</td>
<td>manual install for AmahiDEPRECATED</td>
</tr>
<tr>
</tr>
<tr>
<td>hhdahda-updatesalias</td><td>displays list of HDA platform updatesSYSTEM USE ONLY</td></tr><tr><td>hda-fix-sudoers</td><td>SYSTEM USE ONLY</td></tr><tr><td>hda-install</td><td>Amahi 7 or greater ONLY</tr><tr><td>hda-install-file</td><td>SYSTEM USE ONLY</td></tr><tr><td>hda-register-apps</td><td>SYSTEM USE ONLY</td></tr><tr><td>hda-settings</td><td>Dumps current settings</tr><tr><td>hda-update-webapps</td><td>SYSTEM USE ONLY</td><tr><td>hda-add-apache-sudoers</td><td>SYSTEM USE ONLY</td></tr><tr><td>hda-diskmount</td><td>Used to mount disk drives</td>
</tr>
<tr><td>hda-gems-install</td>
<td>SYSTEM USE ONLY</td>
</tr>
 
</table>
'''NOTE:''' Can be run from anywhere (located in '''/usr/bin'''). = Linux Basic Commands Miscellaneous =[[Basics|Linux Basic Commands]] most users will need. = uShare <table border="1"> service amahi-ushare restart = restart ushare after adding new content<tr><th>Command</th>= VNCServer =<th>Action</th> vncserver = Starts the VNCServer</tr> vncserver -kill :1 = Stops the VNCServer<tr> = mt<td>e2fsck -daapd = c /etcdev/init.dsdb1</mt-daapd starttd> <td>Check hard drive sdb1 for errors</etctd></init.d/mt-daapd stoptr><tr>= Greyhole =Use just "greyhole" in a Terminal to get the list, since those could change in the future. Currently, they are:  Usage: greyhole [ACTION] [OPTIONS] Where ACTION is one of: <td>​nscd -?, --help Display this help and exit.i hosts</td> -D, --daemon Start the daemon. -f, --fsck Schedule a fsck. -l, --balance Balance available space <td>Clear DNS cache on storage pool devices.HDA</td> -s, --stats Display storage pool statistics.</tr> -S, --status Display what the Greyhole daemon is currently doing.<tr> <td>[[Application_Install_Scripts#The amahi-q, download utility script|​amahi--view-queue Display the current work queue. -a, --empty-attic Empty the attic. -b, --debug=filename Debug past file operations. -p, --prerotate Pre-rotate task (for logrotate). -P, --postrotate Post-rotate task (for logrotate). -t, --thaw[=pathdownload]] Thaw a frozen directory. Greyhole will start working on files inside <path/td>. If you don't supply an option, the list of frozen directories will be displayed. -w, --wait-for[=path] Tell Greyhole that the missing drive at <pathtd> will return soon, and that it shouldn't re-create additional file copies similar to replace it. If you don't supply an optionwget, the availablebut uses SHA1</td> options (paths) will be displayed.</tr> -g, --gone[=path] Tell Greyhole that the missing drive at <path/table><br /> is gone for good. Greyhole will start replacing the missing file copies instantly. If you don't supply an option, the available options (paths) will be displayed. -n, --going[=path] Tell Greyhole that you want to remove a drive. Greyhole will then make sure you don't loose any files, and that the correct number of file copies are created to replace the missing drive. If you don't supply an option, the available options (paths) will be displayed. For --fsck, the available OPTIONS are: -e, --email-report Send an email when fsck completes, to report on what was checked, and any error that was found. -y, --dont-walk-graveyard Speed up fsck by skipping the scan of the graveyard directories. Scanning the graveyards is only required to re-create symbolic links that might be missing from your shared directories. -c, --if-conf-changed Only fsck if greyhole.conf changed since the last fsck. Used in the daily cron to prevent unneccesary fsck runs. -d, --dir=path Only scan a specific directory, and all sub-directories. The specified directory should be a Samba share, or a sub-directory of a Samba share.
12,424

edits