Difference between revisions of "Linux-hda commands"
From Amahi Wiki
Line 33: | Line 33: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>service apache2 | + | <td>service apache2 restart</td> |
<td>restart web server</td> | <td>restart web server</td> | ||
</tr> | </tr> |
Revision as of 21:36, 23 February 2014
Linux Basic Commands
Linux Basic Commands most users will need.
General Linux/HDA Commands
Fedora
Command | Action |
---|---|
service httpd start | restart web server |
yum -y update | automatically update fedora |
rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm | updates HDA |
rpm -q hda-platform | check to see what version of HDA you're running |
- Ubuntu
Command | Action |
---|---|
service apache2 restart | restart web server |
apt-get -y upgrade | automatically update Ubuntu |
HDA Script Commands
Command | Action |
---|---|
first-admin | returns name of first admin user |
reset-user-password | reset a forgotten user password |
NOTE: Must be run from the /var/hda/platform/html/script directory.
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 MySql user and database |
hda-new-install | manual install for Amahi |
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 | deprecated - use amahi-installer |
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 |
NOTE: Can be run from anywhere (located in /usr/bin).
Miscellaneous
Command | Action |
---|---|
e2fsck -c /dev/sdb1 | Check hard drive sdb1 for errors |
nscd -i hosts | Clear DNS cache on HDA |