Sunday, August 31, 2008

How to setting SAMBA using GUI

you're going to need an easy way to share files between linux and windows. In this article we will walk through setting up a Samba share on your Suse 10 machine that you can map as a drive on your Windows machine. To start, click the House icon in the lower left of your Suse 10 desktop to open a File Manager as a normal user. This will put you in your home directory which is normally /home/yourusername, in my case it is /home/frodo



Next we will create a new folder in our home directory and name it webshare.
Click the Edit Menu and choose Create New -> Folder, then enter the name of the folder



You have probably figured out by now that linux lets you have as many desktops as you like. I have configured 6 of them as you can see 1 through 6 in the menu bar at the bottom of my screen (above). To
configure how many desktops you can right click in one of the numbered squares in the menu bar and choose Configure Desktops. In the screen above Desktop 1 is active and I have my File Manager open in that desktop. Next, click on desktop 2 and we will open YaST on this desktop. System -> Control Center (YaST), you will be prompted for the root password.



As shown above, click the Network Services item on the left then click Samba Server to configure Samba and add our new webshare folder as a share.
You will be prompted for a domain name. If you have a local domain name enter it here. If not feel free to make something up like we did during the Suse 10 installation when we chose a host name and domain in the network settings. I put middleearth.home for mine as shown below.


I don't have a domain controller on my local domain at home and I don't want to configure Samba as a domain controller, so I checked Not a Domain Controller.


Next I set it to start Samba during bootup then I click the Shares tab to setup my share. Also be sure to check the box and open a port in the Firewall to allow your local network to access the share.



Now I create a share named webshare that points to my /home/frodo/webshare folder. I unchecked inherit ACLs and unchecked Read Only


Next Click Finish as shown below.



I had to do some modification to the configuration file for Samba to get the share to actually work for me. I'm in no way a Samba or linux guru yet myself so don't think this is neccesarily the best practice but this is what worked for me and it should work for you. If someone with more expertise out there wants to email me with a better procedure I will update this article happily. You'll need to open System ->File Manager -> File Manager Super User Mode to do this because only root has permission on the configuration files. Now browse to /etc/samba/ and open smb.conf in a Text Editor



Scroll to the bottom of the file and you'll see the section for the share you just setup in YaST. Add the missing settings as shown above, of course put your linux user name where I have frodo. Now save and
close the file.

Before I move on I'd like to talk a little about linux configuration in general. While there are some nice GUI tools like YaST for configuring many of the settings on your linux machine, most of the GUI configuration tools are really just a front end on top of text files where the settings are stored. Almost everything you will
ever need to configure is located in a text file somewhere below the /etc folder. Its just a matter of knowing which file has which settings and what the possible options are for each setting. There is a lot of
documentation available for these settings both online and in the man and info pages locally on the linux machine Those coming from a windows world sometimes perceive this as an indicator that linux administration is difficult. But think about it, as an ASP.NET developer you are probably very familiar with storing settings for your web apps in the Web.config file and editing these settings seems trivial to you. When you are familiar with the file and the settings it seems very easy and the fact that all you need is a text editor is very convenient isn't it? I say this because this is a paradigm shift I went through. I used to think linux administration was difficult and then as I became familiar with the files and settings of interest to me my point of view changed.

Now getting back to setting up the share, we now need to restart the Samba service for our setting changes in the smb.conf file to take effect. Open YaST again or switch to the desktop where you already have it open if you still have it open. Then as shown below click System in the left pane and then System Services (Runlevel)



This is where you can configure which services are running similar to what you would do on windows using the Service Management Console.



Click on smb Samba File and Print services as shown above then click Disable to stop the service



Now after it stops click it again and then click Enable to start the service again.



Now while you're in the services administration section of YaST, scroll up the service list and see if apache2 is already running. If not start that service as well by clicking it then clicking Enable. Now click
Finish and it will save your settings.

Now most likely you are like me and working at home so you don't have a Domain Name Server (DNS) to resolve names of the computers on your local network. Since I want to be able to connect to my Suse 10 machine by name I will create an entry in my hosts file to map a friendly name to the ip address of the Suse 10 machine. On windows, this file is typically located at c:\Windows\system32\drivers\etc\

Interesting that we also have an etc folder on Windows isn't it? Anyway, the hosts file in that folder is just a text file, you can open it in Notepad or a text editor of your choosing (Don't use a Word Processor)

You will see a line with

127.0.0.1 localhost


this is how every machine knows that the hostname localhost refers to itself. The use of localhost is a conventional naming on both windows and linux. 127.0.0.1 is what is known as the loopback ip address
becuase it always points to the machine you are on.

Now we will add the ip address of your Suse 10 machine with a friendly name of your choosing. I put the following 2 lines:

172.16.0.21 isengard

172.16.0.21 isengard.middleearth.home

Note that you can map multiple names to the same ip address. I chose names that correspond to the host name I setup on my Suse machine but I could put whatever I want for host name mappings like

172.16.0.21 hamsandwich

This will resolve the host name(s) I put to the ip address I put at least for this Windows machine. Save the host file and then in a web browser on your windows machine go to http://isengard (or whatever host name you put) and you should see the default apache web page served from your Suse 10 machine. Nice huh?

Finally, open Windows Explorer
and choose Tools -> Map Network Drive, then pick an available drive letter and for the Folder put \\isengard\webshare (of course replace isengard with whatver host name you put in your hosts file.

Stay tuned for the next article and we will finally learn to setup mojoPortal on the Suse 10 machine using apache Virtual Hosts. Learning this will allow you to setup as many sites as you like on your Suse 10
machine so you can develop and test your own applications.

Thanks
to www.joeaudette.com

55 comments:

Anonymous said...

alprazolam price 2mg xanax to sleep - order xanax off internet

Anonymous said...

buy zolpidem online zolpidem 25mg - zolpidem tartrate 78 3

Anonymous said...

ambien online side effects of ambien cr 12.5 - drug interactions ambien trazodone

Anonymous said...

buy diazepam diazepam online kaufen rezeptfrei - buy diazepam online no prescription needed

Anonymous said...

valium diazepam diazepam 10mg duration - diazepam de 10mg

Anonymous said...

valium generic valium dosage 20mg - what is valium prescribed for

Anonymous said...

sniffing diazepam where to buy cheap diazepam - diazepam 2 mg recreational

Anonymous said...

buy diazepam online diazepam yahoo - diazepam for dogs dosage

Anonymous said...

buy ativan online high dose ativan considered - ativan side effects double vision

Anonymous said...

lorazepam vs diazepam diazepam buy no prescription - diazepam to buy

Anonymous said...

ambien sleep medication ambien side effects in women - whats street price ambien

Anonymous said...

soma pain carisoprodol st john's wort - buy watson brand soma online

Anonymous said...

buy ambien online ambien 10 mg - white capsule-shaped film-coated tablets - ambien cr snort

Anonymous said...

buy carisoprodol carisoprodol 350 mg how many to get high - medicine carisoprodol 350 mg

Anonymous said...

buy ambien online retail cost ambien cr - ambien generic versus ambien

Anonymous said...

buy valium online valium effects fetus - cat anxiety valium

Anonymous said...

soma drug is soma medication a narcotic - buy soma cube uk

Anonymous said...

buy soma generic order soma legally online - soma medication buy online

Anonymous said...

Drug Mice prednisone sale - prednisone without prescription http://www.prednisone4sale.com/#prednisone-without-prescription

Anonymous said...

Acne Medications Similar To Proactiv generic fluconazole - order fluconazole http://www.diflucansaleonline.net/#order-fluconazole , [url=http://www.diflucansaleonline.net/#generic-diflucan-online ]generic diflucan online [/url]

Anonymous said...

Statistics Prescription Drug Abuse escitalopram cost - escitalopram no prescription http://www.costoflexaproonline.net/#escitalopram-no-prescription , [url=http://www.costoflexaproonline.net/#escitalopram-online ]escitalopram online [/url]

Anonymous said...

buy cialis online is cialis daily covered by insurance - cialis price reviews

Anonymous said...

tfv atorvastatin no prescription - atorvastatin without prescription http://www.lipitordiscountonline.net/#atorvastatin-price, [url=http://www.lipitordiscountonline.net/#atorvastatin-price]lipitor price [/url]

Anonymous said...

generic tramadol tramadol hcl 50 mg tab teva - tramadol withdrawal length

Anonymous said...

buy tramadol tramadol 50mg tablets street value - generic tramadol no prescription overnight

Anonymous said...

xanax online xanax bar quotes - xanax 2mg xr

Anonymous said...

generic xanax alprazolam 0.5 mg tablet side effects - blue generic xanax pills

Anonymous said...

order xanax online xanax side effects in teenagers - can someone overdose xanax

Anonymous said...

carisoprodol 350 mg 350 mg carisoprodol generic soma - carisoprodol online cheap

Anonymous said...

generic xanax xanax bars 2090 - xanax orange pill

Anonymous said...

tramadol online pharmacy tramadol wiki - order tramadol with saturday delivery

Anonymous said...

1 buy cymbalta - cymbalta price http://www.cymbaltabuyonline.net/#cymbalta-cost, [url=http://www.cymbaltabuyonline.net/#cymbalta-cost]order cymbalta online[/url]

Anonymous said...

buy tramadol online tramadol 50 mg compared to vicodin - tramadol online no prescription needed

Anonymous said...

buy cialis online buy cheap generic cialis online - buy cialis online using paypal

Anonymous said...

buy tramadol online tramadol to buy online - tramadol 50mg can you snort

Anonymous said...

xanax online yellow 1mg xanax - images for generic xanax

Anonymous said...

cheap tramadol tramadol is generic for what drug - dosage for tramadol for dogs

Anonymous said...

buy cialis online generic cialis line - buy cialis online forum

Anonymous said...

buy cialis online legal to buy cialis online - cialis price rise

Anonymous said...

http://landvoicelearning.com/#51438 tramadol hcl interactions - tramadol 100 mg m/r

Anonymous said...

buy tramadol online cheap tramadol withdrawal and depression - tramadol medication no prescription

Anonymous said...

buy tramadol tramadol dosage cats - tramadol overdose coma

Anonymous said...

buy tramadol tramadol withdrawal long does take - tramadol for dogs overdose

Anonymous said...

cheap tramadol online tramadol 50 mg caps - tramadol 100mg wikipedia

Anonymous said...

buy tramadol online can i order tramadol online legally - tramadol hcl overdose

Anonymous said...

buy tramadol online where to buy tramadol safely - can buy tramadol usa

Anonymous said...

lorazepam no prescription ativan dosage usage - info lorazepam 1mg tablets

Anonymous said...

Gjdydx xeofeg hngtnar xd [url=http://nikenzshoes.webs.com/]nike free [/url]
fjzojo jm btmfu vxstd [url=http://nikeshoesnzstore.webs.com/]nike shoes nz[/url]
soutef Vtxeyx ku adraz [url=http://cheapnike-shoes.webs.com/]cheap nike shoes[/url]

http://docwetrust.com/forum/member.php?36697-rrfbljtrpo
http://www.shannonvine.com/blog/?p=3235&cpage=234#comment-108222
http://amer-kneeboard.org/phpbb/memberlist.php?mode=viewprofile&u=53070

Anonymous said...

ways to buy ativan online ativan bipolar - long does ativan high last

Anonymous said...

http://reidmoody.com/#41572 ativan overdose pediatrics - is 1mg of lorazepam a lot

Anonymous said...

http://ranchodelastortugas.com/#93851 pass mouth swab drug test xanax - generic 3mg xanax

Anonymous said...

http://staam.org/#21236 tramadol 10mg - tramadol for dogs recommended dosage

Anonymous said...

buy tramadol cheap no prescription tramadol side effects - high with tramadol

Anonymous said...

buy tramadol 100mg buy tramadol online no prescription next day delivery - tramadol 400 mg dose

Anonymous said...

Youг aгticlе has еstablіѕhed helρful to mе.
It’s ѵery іnformatiνe аnԁ you're simply naturally extremely well-informed in this area. You have got opened my personal eye in order to numerous opinion of this specific subject with interesting and sound content material.

my blog post ... buy viagra online