Changes

From Amahi Wiki
Jump to: navigation, search
1,675 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><th>Command</th><th>Action</th></tr><tr><td>systemctl restart httpd.service httpd start = </td><td>restart web server</td></tr><tr> yum <td>dnf -y update = Automatically </td><td>automatically update fedoraFedora</td> rpm -Uvh http:<//dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm = updates HDAtr><tr> <td>rpm -q hda-platform = </td><td>check to see what version of HDA your you're running.</td></tr></table><br />Ubuntu (precede with sudo)<table border="1"><tr><th>Command</th><th>Action</th></tr><tr><td>service apache2 restart</td><td>restart web server</td></tr><tr><td>apt-get -y upgrade</td><td>automatically update Ubuntu</td></tr></table><br />
= HDA Script Commands =
* Must be run from the '''''/var/hda/platform/html/script''''' directory:
<pre>first-admin = returns name of first admin user</pre>
<pre>reset-user-password = reset a forgotten user password
'''Syntax:''' reset-user-password user</pre>
* Can be run from anywhere:
<pre>hda-change-gw = change gateway/router IP address
'''Syntax:''' hda-change-gw xxx.xxx.xxx.xxx</pre>
<pre>hda-change-dns = change DNS provider for HDA</pre>
<pre>hda-install-gem = install Ruby Gems</pre>
<pre>hda-create-db-and-user = create MySql user and database
'''Syntax:''' hda-create-db-and-user database</pre>
<pre>hda-new-install = manual install for Amahi
'''Syntax:''' hda-new-install code</pre>
<pre>hda-php-zone-change = change time zone</pre>
<pre>hda-refresh-shares = refresh HDA shares</pre>
<pre>hda-updates = check for HDA platform updates</pre>
'''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory. <table border= Linux Basic Commands ="1"><tr><th>Command</th><th>Action</th></tr><tr><td>first-admin</td><td>returns name of first admin user</td></tr><tr><td>[[BasicsReset_Amahi_Password|Linux Basic Commandsreset-user-password]] most users will need.</td><td>reset a forgotten user password</td></tr></table>
= uShare =
service amahi-ushare restart = restart ushare after adding new content
= VNCServer = vncserver = Starts the VNCServer vncserver -kill '''NOTE:1 = Stops the VNCServer''' Can be run from anywhere (located in '''/usr/bin''').
<table border= mt"1"><tr><th>Command</th><th>Action</th></tr><tr><td>hda-change-gw</td><td>change gateway/router IP address</td></tr><tr><td>hda-change-dns</td><td>change DNS provider for HDA</td></tr><tr><td>hda-daapd =install-gem</td><td>install a specific Ruby Gem</td></tr><tr><td>[[Application_Install_Scripts#hda-create-db-and-user utility script|hda-create-db-and-user]]</td><td>create MariaDB user and database</td></tr><tr><td>hda-new-install</td><td>DEPRECATED</td></tr><tr><td>hda-php-zone-change</td><td>change time zone</td></tr><tr><td>hda-refresh-shares</td><td>refresh HDA shares</td></tr><tr><td>hda-alias</td><td>SYSTEM 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</etctd><td>SYSTEM USE ONLY</init.dtd></mttr><tr><td>hda-daapd startsettings</td> <td>Dumps current settings</etctr><tr><td>hda-update-webapps</init.dtd><td>SYSTEM USE ONLY</mttd><tr><td>hda-daapd stopadd-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>
= Greyhole =Use just "greyhole" in a Terminal to get the list, since those could change in the future. Currently, they are:</table>
Usage: greyhole [ACTION] [OPTIONS] Where ACTION is one of: -?, --help Display this help and exit. -D, --daemon Start the daemon. -f, --fsck Schedule a fsck. -l, --balance Balance available space on storage pool devices. -s, --stats Display storage pool statistics. -S, --status Display what the Greyhole daemon is currently doing. -q, --view-queue Display the current work queue. -a, --empty-attic Empty the attic. -b, --debug=filename Debug past file operations.Miscellaneous = -p, --prerotate Pre-rotate task (for logrotate). -P, --postrotate Post-rotate task (for logrotate). -t, --thaw[<table border=path] Thaw a frozen directory. Greyhole will start working on"1"> files inside <pathtr>. If you don't supply an option, the list of frozen directories will be displayed.<th>Command</th> -w, --wait-for[=path] Tell Greyhole that the missing drive at <pathth>Action</th> will return soon, and that it shouldn't re-create additional file copies</tr> to replace it. If you don't supply an option, the available<tr> options (paths) will be displayed. <td>e2fsck -g, --gone[=path] Tell Greyhole that the missing drive at c /dev/sdb1<path/td> 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 <td>Check hard drive. Greyhole willsdb1 for errors</td> then make sure you don't loose any files, and that the</tr> correct number of file copies are created to replace the<tr> missing drive. If you don't supply an option, the available options (paths) will be displayed. For <td>​nscd --fsck, the available OPTIONS are:i hosts</td> -e, --email-report Send an email when fsck completes, to report <td>Clear DNS cache on what wasHDA</td> checked, and any error that was found.</tr> -y, --dont-walk-graveyard<tr> Speed up fsck by skipping the scan of the graveyard directories. Scanning the graveyards is only required to re<td>[[Application_Install_Scripts#The amahi-create symbolic links that might be missing from your shared directories. download utility script|​amahi-c, --if-conf-changed Only fsck if greyhole.conf changed since the last fsck.download]]</td> Used in the daily cron <td>similar to prevent unneccesary fsck runs. -dwget, --dir=path Only scan a specific directory, and all sub-directories.but uses SHA1</td> The specified directory should be a Samba share, or a</tr> sub-directory of a Samba share.</table><br />
12,424

edits