Changes

From Amahi Wiki
Jump to: navigation, search
415 bytes added ,  15:40, 6 September 2017
== Download and Setup ==
* As '''root'''(or precede commands with <code>sudo</code>), install the mount_shares_locally initd script:
=== On Amahi 7 10 or greater (Fedora) === dnf install cifs-utils cp /usr/share/hda-ctl/mount_shares_locally /etc/init.d chmod +x /etc/init.d/mount_shares_locally chkconfig --add mount_shares_locally === Amahi 7/8/9 (Fedora) ===
yum install cifs-utils
curl -o /etc/init.d/mount_shares_locally <nowiki>http://dl.amahi.org</nowiki>/mount_shares_locally.fedora
chkconfig --add mount_shares_locally
::'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 package manageror greater.
=== On Amahi 6 (Ubuntu 12.04) ===
sudo apt-get install cifs-utils curl
sudo curl -o /etc/init.d/mount_shares_locally <nowiki>http://dl.amahi.org/mount_shares_locally.ubuntu</nowiki>
== Configuration ==
* As '''root''', edit ''/etc/init.d/mount_shares_locally''**Replace ''"***set this string to your username!***"'' (line 12) with your username. For example ''': username="amahi"''';*The script may require the MariaDB root password be changed: **Please see [[Database Root Password]] for the appropriate login password.**If Also if you changed MySQL the MariaDB root password, it must be updated in the mount_shares_locally scripton your own. :<blockquote>Change ''hda'' (line 2425) to your new the appropriate passwordif needed:<pre>mysql -u root -p hda -e "select name from shares" hda_production | grep -v "^name$" | xargs -d "\n" mkdir -p</pre> :'''NOTE:''' Refer to [[Database Root Password]] for the appropriate login password.</blockquote>
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).
vi /home/your_username/.smb_credentials
with
mysql -u root -phda p -e "select comment from shares" hda_production | grep -v "^comment$" | xargs -d "\n" mkdir -p  '''WARNING:''' Please see [[Database Root Password]] for the appropriate login password.
==Troubleshooting==
12,424

edits