Changes

From Amahi Wiki
Jump to: navigation, search
361 bytes added ,  00:41, 10 December 2020
heading =WARNING|
message = This is recommended only for advanced users, proceed with caution.}}
This tutorial is now available as the Amahi [https://www.amahi.org/apps/greyhole-mount-shares-locally Greyhole Mount Shares Locally] application.
 
==Purpose==
username="amahi";
*The script may require the MariaDB root password be changed:
**Please see [[Database Root Password]] for the appropriate login password(change for Amahi 10 '''ONLY''').
**Also if you changed the MariaDB root password on your own.
:<blockquote>Change ''hda'' (line 25) to the appropriate password if needed:
<prestyle="white-space: pre-wrap; word-break: keep-all;">mysql -u root -p hda -e "select name from shares" hda_production | grep -v "^name$" | xargs -d "\n" mkdir -p</pre></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
ls -al /home/your_username/.smb_credentials
:'''NOTE:''' your_username and your_password in the .smb_credentials file needs to be the original username (1st Admin User) and password you created when you installed the OS ('''NOT''' ''root''). Also ensure the domain matches the ''Workgroup'' set for shares.
*To test your new mounts, you can execute as root user:
with
<pre style="white-space: pre-wrap; word-break: keep-all;">mysql -u root -p -e "select comment from shares" hda_production | grep -v "^comment$" | xargs -d "\n" mkdir -p</pre>
12,424

edits