LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-23-2012, 12:24 AM   #1
skcloo
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Mapping a network drive on a Windows PC to access a Debian Linux PC


From my Windows PC, I would like to map a network drive to access a Debian Linux (version 2.30.2) PC. Could you please let me know if I need to install any client on my Windows workstation and the mapping command syntax?

Thank you.

Steve
 
Old 01-23-2012, 12:28 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Try Gigolo you can use it to map Windows folders or to share folders in your Linux box. You might need samba client too.

Regards
 
Old 01-23-2012, 01:00 AM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
As far as I understand it, Gigolo is meant to handle network shares where Linux is the client.

My reading of the OP's question is that Windows is the client. That is, the OP wants to access files on the Debian machine through a mapped drive on the Windows machine (and not vice versa).

If my reading is correct, then the answers to your questions are:
1. No, you do not need to install a client on your Windows machine
2. You need to install Samba on your Debian machine ("apt-get install samba" as root or search for "samba" in the GUI synaptic package manager), and configure it to allow access to one or more directories in your filesystem

Samba comes with a sample configuration file that has simple file sharing examples. It's quite simple to set up as long as you read the comments in the configuration file.
 
Old 01-23-2012, 04:03 AM   #4
jebe88
LQ Newbie
 
Registered: Jan 2012
Location: Germany
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
Although not necessarely required I'd suggest to use the same user name on the Linux and the Windows machine.
Don't forget to restart samba after you modified it's configuration: /etc/init.d/samba restart
Once you have samba up and running, just use 'map network drive' from the Windows explorer.
 
Old 01-23-2012, 03:59 PM   #5
skcloo
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank very much for all the response. The direction of the traffic is to access the Linux box from a Windows 7 station. How about using the SSH client for the Windows? I just found about this on http://www.bitvise.com/tunnelier?gcl...FehgTAodTCQTfA. Any advice?

Thanks,


Steve
 
Old 01-24-2012, 03:32 AM   #6
jebe88
LQ Newbie
 
Registered: Jan 2012
Location: Germany
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
SSH is a protocol for secure data communication (see https://en.wikipedia.org/wiki/Secure_Shell). It's main purpose is to provide encrypted data communication between client and server for otherwise unencrypted services. One of those is SFTP which allows file transfers between machines.
If you want to use this, you'll need a specific client software for your Windows PC and, depending on what you intend to do, you might have to fiddle around with the configuration on your Linux box as well. The client software for Windows will most likely cost you some money and the file transfer service will not be fully integrated into the Windows environment - you'll always have to use the client software for transferring files between Linux and your local Windows hard drive. For these reasons I'd strongly recommend to use samba on the Linux machine. This is far more flexible and you'll have a seamless integration into Windows, where a mapped network drive shows up like another local hard drive allowing each and every Windows application to access it transparently.
As mentioned by Dark Helmet already, it shouldn't be too hard to set up a working samba server. If you don't need any sophisticated stuff and if the username on your Windows PC is the same as your normal user name on the Linux box, it should be sufficient to login as root on your Linux box, then do:
#> apt-get install samba (you'll be asked for your workgroup name. Use same as the one of your PC, which can be found under system settings->system some lines below 'computer name')
#> smbpasswd -a <your user name> (Give yourself a password. This doesn't need to be the same as for the Linux user)
On your Windows PC, open the Windows Explorer, click on 'map network drive' and choose a drive letter you want to use. Click on 'Search' near the 'Folder' edit field (might take a while until you see something there), choose your Linux machine and the folder with your user name, click OK and then 'Finish'. Provide the password you entered above when you are asked for that.
 
Old 01-25-2012, 11:50 PM   #7
skcloo
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you so very much for all the advices.

Steve
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping Network drive through windows running on VMPlayer DrDwayne Linux - Virtualization and Cloud 2 10-28-2011 09:54 AM
mapping a windows network drive andy1974 Linux - Networking 8 02-01-2011 06:09 PM
windows question: how do I script network drive mapping w/ username/password? genmaicha General 2 07-24-2010 02:06 AM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 01:16 PM
Mapping a network drive in linux jmarsh Linux - Networking 11 12-13-2002 12:08 PM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration