GithubHelp home page GithubHelp logo

abheekda1 / apple-friendly-samba Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 1.0 45 KB

This bash script will create a samba share for you that will be visible in Finder and for Time Machine.

Shell 100.00%
apple-samba samba-share samba-user avahi-daemon finder linux

apple-friendly-samba's Introduction

Apple Friendly Samba

This bash script will create a samba share for you that will be visible in Finder and for Time Machine.

Preparation

The first thing to do is install samba and the avahi daemon. This will depend on you Linux distro. Once you have done that, start the Samba daemon and Avahi daemon services.

Secondly, you must first create a samba user. This command will create a new samba user:

sudo smbpasswd -a "username"

The username must be an existing user on the machine.

How it works

The way the script works is by taking user input and modifying an existing smb.conf file in this repository. Once it does that, it backs up the existing smb.conf to /etc/samba/smb.conf.bak, and moves the modified smb.conf file to /etc/samba.

To use the script

After you've opened up a terminal, the first thing you're going to want to do is clone the repository to a convenient location.

cd ~/
git clone https://github.com/ADawesomeguy/apple-samba

Once you've done that, go into the folder and run apple-samba-create.

cd apple-samba
./apple-samba-create

You will be prompted to enter your administrator password.

Once you've done that, answer a few prompts, and your share will be created!

Adding new shares

To add new shares, simply run the apple-samba-add script, and answer a few prompts along the way.

./apple-samba-add

Resetting samba

To reset Samba to default, just run the apple-samba-reset script, which will back up the existing smb.conf file and replace it with the default smb.conf file.

./apple-samba-reset

Thanks for using this script!

apple-friendly-samba's People

Contributors

abheekda1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dennis605

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.