Changes

From Amahi Wiki
Jump to: navigation, search
1,305 bytes added ,  01:24, 18 June 2017
<strong>= Linux Basic Commands =[[Basics|Linux Basic Commands]] most users will need. = General Linux/HDA Commands=Fedora (root user)<table border="1"><tr><th>Command</strongth><th>Action<br/th></tr><tr><td>systemctl restart httpd.service httpd start = </td><td>restart web server<br/td></tr><tr>yum <td>dnf -y update = Automatically </td><td>automatically update fedoraFedora<br/td>rpm -Uvh http:<//dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm = updates HDAtr><brtr><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/>ps guax | grep yum = HDA Script Commands = kills all yum process
<strong>ushare<'''NOTE:''' Must be run from the '''''/strong><br>service amahi-ushare restart = restart ushare after adding new contentvar/hda/platform/html/script''''' directory.
<strongtable border="1"><tr><th>Command</th><th>Action</th>VNCServer</strongtr><brtr><td>first-admin</td><td>returns name of first admin user</td></tr>vncserver = Starts the VNCServer<brtr>vncserver <td>[[Reset_Amahi_Password|reset-user-kill :1 = Stops the VNCServerpassword]]</td><td>reset a forgotten user password</td></tr></table>
<strong>mt-daapd</strong><br>
/etc/init.d/mt-daapd start<br>
/etc/init.d/mt-daapd stop
<strong>greyhole<'''NOTE:''' Can be run from anywhere (located in '''/strong><br>greyhole --daemon = Start the daemon<br>greyhole --fsck = Schedule a fsck<br>greyhole --balance = Balance available space on storage pool devices<br>greyhole --stats = Display statistics<br>greyhole --empty-attic = Empty attic<br>greyhole --debug <filename> = Debug file operations<br>greyhole --thaw = List frozen directories<br>greyhole --thaw <shareusr/directory> = Thaw a frozen directory<br>greyhole --prerotate = Pre-rotate task<br>greyhole --postrotate = Post-rotate task<br>bin''').
When <pathtable border="1"><tr><th>Command</th><th>, one of your storage pool directories, isAction</will become unavailable:th><br/tr>greyhole <tr><td>hda-change-waitgw</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-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<path/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><pathtd> will return soonSYSTEM USE ONLY<br/td>greyhole <tr><td>hda-add-apache-sudoers</td><td>SYSTEM USE ONLY</td></tr><tr><td>hda-gone diskmount</td><pathtd> = Used to mount disk drives<path/td> is gone for good<br/tr>greyhole <tr><td>hda-gems-going install<path/td> = <td>SYSTEM USE ONLY</td><path/tr> will be gone for good
</table>
= Miscellaneous =<table border="1"><tr><th>Command</th><th>Action</th></tr><tr><td>e2fsck -c /dev/sdb1</td><td>Check hard drive sdb1 for errors</td></tr><tr><td>​nscd -i hosts</td><td>Clear DNS cache on HDA</td></tr><tr><td>[[BasicsApplication_Install_Scripts#The amahi-download utility script|Linux Basic Commands​amahi-download]] most users will need.</td><td>similar to wget, but uses SHA1</td></tr></table><br />
12,424

edits