diff --git a/README.md b/README.md index 0b3498a..d0cb340 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,8 @@ Personal Linux-related configs to help me succeed in life (or at least simplify it). Feel free to try or poke around in the source (it's all human-readable bash), or heck even add "cool stuff" to help each other out! + +## Usage +Explaining section for not-so-intuitive configurations + +- alias `sambaserver`: please `cd` into the directoy is needed to be shared and execute `sambaserver` followed by `"shareuser;"`, then just login with username `shareuser` and the provided password with the host computer as URL/IP, autodiscovery of both the host and the share was tested working on Windows and a Samsung Tablet. diff --git a/bashrc_overrides/convenience_aliases b/bashrc_overrides/convenience_aliases index cfe47e7..18c6fdb 100644 --- a/bashrc_overrides/convenience_aliases +++ b/bashrc_overrides/convenience_aliases @@ -2,3 +2,5 @@ alias pubkey='cat ~/.ssh/id_rsa.pub' alias hosts='sudo nano /etc/hosts' alias historygrep='history | grep' alias newrepo='bash <(curl -s https://get.bjphoster.com/new-git-repo.sh)' + +alias sambaserver='docker run -it --rm --network host -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -s "sambashare;/share;yes;no;no;shareuser" -w "WORKGROUP"'