Other Help Topics :: Mounting command samba / share



Well, I'm quite new both to Linux and DSL, so forgive me for asking this, but someone could post more detailled information about:
1) How this executable can be created?
2) where should it be placed?
3) What file do I need to edit to make it run automaticaly?

>> Well, I'm quite new both to Linux and DSL,

We all were when we started.

>> so forgive me for asking this

You have achieved forgiveness

>> 1) How this executable can be created?

You create an executable shell script by creating a file in an editor (say beaver) and making the first line:

#!/bin/bash

and adding your lines after that.  When you save the file (named whatever you like, extensions don't matter), run the command chmod 777 myFile (myfile is your file's name)to make it executable.  Then typing the name of that file (if it's in your current directory or in your path) will run that script.

>> 2) where should it be placed?

That depends on you. I'd create in in my home directory (/home/dsl) and then when I knew it worked move it to the /usr/bin directory.

>> 3) What file do I need to edit to make it run automaticaly?

You mean at startup?  I'd put it at the end of the /opt/bootlocal.sh file

Thanks for all your answers clacker!

I feel after a long period only using MS trash, I'm using more my brain and I really get excited!

:D

EDIT:

Everything worked fine, all my MP3 stuff is now auto mounted in my small notebook HDD! :D

Except I might remove this from the scrit:

mkdir ~/mnt
mkdir ~/mnt/MN120GHOSTNEW
mkdir ~/mnt/MN120GHOSTNEW/DSL$

Don't see why I should always make those directories...


original here.