Difference between revisions of "Linux-hda commands"
From Amahi Wiki
(→uShare) |
|||
(47 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | = Linux Basic Commands = | ||
+ | [[Basics|Linux Basic Commands]] most users will need. | ||
+ | |||
= General Linux/HDA Commands = | = General Linux/HDA Commands = | ||
+ | Fedora (root user) | ||
<table border="1"> | <table border="1"> | ||
<tr> | <tr> | ||
Line 6: | Line 10: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>service | + | <td>systemctl restart httpd.service</td> |
<td>restart web server</td> | <td>restart web server</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>dnf -y update</td> |
− | <td>automatically update | + | <td>automatically update Fedora</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> | ||
<tr> | <tr> | ||
− | <td> | + | <td>service apache2 restart</td> |
− | <td> | + | <td>restart web server</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>apt-get -y upgrade</td> |
− | <td> | + | <td>automatically update Ubuntu</td> |
</tr> | </tr> | ||
− | </table> | + | </table><br /> |
= HDA Script Commands = | = HDA Script Commands = | ||
+ | |||
+ | '''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory. | ||
+ | |||
<table border="1"> | <table border="1"> | ||
<tr> | <tr> | ||
Line 34: | Line 52: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>reset-user-password</td> | + | <td>[[Reset_Amahi_Password|reset-user-password]]</td> |
<td>reset a forgotten user password</td> | <td>reset a forgotten user password</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
+ | '''NOTE:''' Can be run from anywhere (located in '''/usr/bin'''). | ||
<table border="1"> | <table border="1"> | ||
Line 61: | Line 79: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>hda-create-db-and-user</td> | + | <td>[[Application_Install_Scripts#hda-create-db-and-user utility script|hda-create-db-and-user]]</td> |
− | <td>create | + | <td>create MariaDB user and database</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>hda-new-install</td> | <td>hda-new-install</td> | ||
− | <td> | + | <td>DEPRECATED</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 77: | Line 95: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>hda-alias</td> |
− | <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</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> | ||
+ | <tr><td>hda-gems-install</td> | ||
+ | <td>SYSTEM USE ONLY</td> | ||
+ | </tr> | ||
+ | |||
</table> | </table> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
= Miscellaneous = | = 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>[[Application_Install_Scripts#The amahi-download utility script|amahi-download]]</td> | |
− | + | <td>similar to wget, but uses SHA1</td> | |
− | + | </tr> | |
− | + | </table><br /> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 01:24, 18 June 2017
Linux Basic Commands
Linux Basic Commands most users will need.
General Linux/HDA Commands
Fedora (root user)
Command | Action |
---|---|
systemctl restart httpd.service | restart web server |
dnf -y update | automatically update Fedora |
rpm -q hda-platform | check to see what version of HDA you're running |
Ubuntu (precede with sudo)
Command | Action |
---|---|
service apache2 restart | restart web server |
apt-get -y upgrade | automatically update Ubuntu |
HDA Script Commands
NOTE: Must be run from the /var/hda/platform/html/script directory.
Command | Action |
---|---|
first-admin | returns name of first admin user |
reset-user-password | reset a forgotten user password |
NOTE: Can be run from anywhere (located in /usr/bin).
Command | Action |
---|---|
hda-change-gw | change gateway/router IP address |
hda-change-dns | change DNS provider for HDA |
hda-install-gem | install a specific Ruby Gem |
hda-create-db-and-user | create MariaDB user and database |
hda-new-install | DEPRECATED |
hda-php-zone-change | change time zone |
hda-refresh-shares | refresh HDA shares |
hda-alias | SYSTEM USE ONLY |
hda-fix-sudoers | SYSTEM USE ONLY |
hda-install | Amahi 7 or greater ONLY |
hda-install-file | SYSTEM USE ONLY |
hda-register-apps | SYSTEM USE ONLY |
hda-settings | Dumps current settings |
hda-update-webapps | SYSTEM USE ONLY |
hda-add-apache-sudoers | SYSTEM USE ONLY |
hda-diskmount | Used to mount disk drives |
hda-gems-install | SYSTEM USE ONLY |
Miscellaneous
Command | Action |
---|---|
e2fsck -c /dev/sdb1 | Check hard drive sdb1 for errors |
nscd -i hosts | Clear DNS cache on HDA |
amahi-download | similar to wget, but uses SHA1 |