Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Mounting command samba / share, make a script to mount windows share< Next Oldest | Next Newest >
Kibe Offline





Group: Members
Posts: 3
Joined: June 2005
Posted: June 18 2005,04:03 QUOTE

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?
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: June 18 2005,14:45 QUOTE

>> 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
Back to top
Profile PM 
Kibe Offline





Group: Members
Posts: 3
Joined: June 2005
Posted: June 18 2005,23:40 QUOTE

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...
Back to top
Profile PM 
7 replies since Nov. 29 2004,12:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Mounting command samba / share

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code